Merge branch 'dev' of github.com:ksyasuda/SudacodeRice into dev

This commit is contained in:
ksyasuda 2021-11-07 01:41:22 -07:00
commit 578337483b
9 changed files with 417 additions and 230 deletions

View File

@ -1,3 +1,38 @@
# Sudacode Dotfiles # Sudacode Rice
A collection of my Linux (Arch btw) configuration and dotfiles A collection of my Linux (Arch btw) configuration and dotfiles
## Screenshots
<div align="center">
<p><b><i>Ordering:</b> Top Left -> Top Right -> Bottom Left -> Bottom Right</i></p>
<p>vim, bpytop, cava, ncmpcpp</p>
<img width="80%" src="screenshots/home1.png">
<p>(firefox, doom emacs, doom emacs, neofetch)</p>
<img width="80%" src="screenshots/home2.png">
</div>
## Current Setup
_Click the links to get quick access to the relevant code/files_
- Desktop Environment: [EndeavourOS](https://endeavouros.com/) (Arch btw)
- Window Manager: [i3-gaps](https://github.com/Airblader/i3)
- [i3 config](i3-wm/config-desktop)
- Compositor: [ibhagwan's picom fork](https://github.com/ibhagwan/picom)
- [picom config](picom/picom.conf)
- Notification Server: [dunst](https://github.com/dunst-project/dunst)
- [dunst config](dunst/dunstrc)
- Terminal Emulator: [alacritty-ligatures](https://aur.archlinux.org/packages/alacritty-ligatures/)
- [alacritty config](alacritty/alacritty.yml)
- [colorscheme](alacritty/alacritty.onedark.yml)
- Text Editors: [vim](https://www.vim.org/) and [doom emacs](https://github.com/hlissner/doom-emacs)
- [vimrc](dotfiles/.vimrc)
- [doom config](doom)
- Audio Player: [mpd](https://www.musicpd.org/) with [ncmpcpp](https://github.com/ncmpcpp/ncmpcpp)
- [mpd config](mpd/mpd.conf)
- [ncmpcpp config](ncmpcpp/ncmpcpp.config)
- Audio Visualizer: [cava](https://github.com/karlstav/cava)
- [cava config](cava/cavaconfig)
- System Monitor: [bpytop](https://github.com/aristocratos/bpytop)
- Firefox Startpage: [my startpage](https://github.com/ksyasuda/Firefox-Startpage)

34
README.org Normal file
View File

@ -0,0 +1,34 @@
#+TITLE: Readme
#+DATE: Sun Nov 7 00:34:12 2021
*A collection of my Linux (Arch btw) configuration and dotfiles*
* Screenshots
/Ordering of programs Top Left -> Top Right -> Bottom Left -> Bottom Right/
#+CAPTION: Home screen with vim, bpytop, cava, and ncmpcpp
[[./screenshots/home1.png]]
#+CAPTION: Home screen with firefox, doom emacs, and neofetch
[[./screenshots/home2.png]]
* Current Setup
Click the links to get quick access to the relevant code/files
** Desktop Environment: [[https://endeavouros.com/][EndeavourOS]] (Arch BTW)
** Window Manager: [[https://github.com/Airblader/i3][i3-gaps]]
** Compositor: [[https://github.com/ibhagwan/picom][ibhagwan's picom fork]]
*** [[./picom/picom.conf][picom config]]
** Notification Server: [[https://github.com/dunst-project/dunst][dunst]]
*** [[./dunst/dunstrc][dunst config]]
** Terminal Emulator: [[https://aur.archlinux.org/packages/alacritty-ligatures/][alacritty-ligatures]]
*** [[./alacritty/alacritty.yml][alacritty config]]
** Text Editors: [[https://www.vim.org/][vim]] and [[https://github.com/hlissner/doom-emacs][doom-emacs]]
*** [[./dotfiles/.vimrc][vimrc]]
*** [[./doom][doom config]]
** Audio Player: [[https://www.musicpd.org/][mpd]] with [[https://github.com/ncmpcpp/ncmpcpp][ncmpcpp]]
*** [[./mpd/mpd.conf][mpd config]]
*** [[./ncmpcpp/ncmpcpp.config][ncmpcpp config]]
** Audio Visualizer: [[https://github.com/karlstav/cava][cava]]
*** [[./cava/cavaconfig][cava config]]
** System Monitor: [[https://github.com/aristocratos/bpytop][bpytop]]
** Firefox Startpage: [[https://github.com/ksyasuda/Firefox-Startpage][firefox startpage]]

View File

@ -13,29 +13,15 @@ set $mod Mod1
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font pango:monospace 8 # font pango:monospace 8
set $term alacritty
# This font is widely installed, provides lots of unicode glyphs, right-to-left # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8 font pango:DejaVu Sans Mono 10
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py increase
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py decrease
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status; exec --no-startup-id ~/i3/scripts/dunst_volume/dunst_volume.py mute
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3; exec --no-startup-id ~/i3/scripts/dunst_volume.py mute
set $up k set $up k
set $down j set $down j
@ -45,117 +31,38 @@ set $right l
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod
# start a terminal
bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
# bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec rofi -modi drun,run -show drun
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+g split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
# set $ws1 "1" # set $ws1 "1: "
# set $ws2 "2" # set $ws2 "2: "
# set $ws3 "3" # set $ws3 "3: ﬏"
# set $ws4 "4" # set $ws4 "4: "
set $ws1 "1: " # set $ws5 "5: ﮷"
set $ws2 "2: " # set $ws6 "6"
set $ws3 "3: ﬏" # set $ws7 "7"
set $ws4 "4: " # set $ws8 "8"
set $ws5 "5: ﮷" # set $ws9 "9: "
set $ws6 "6" # set $ws10 "0"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9: "
set $ws10 "0"
# switch to workspace set $ws10 "0: ﭮ"
bindsym $mod+1 workspace number $ws1 set $ws1 "1: "
bindsym $mod+2 workspace number $ws2 set $ws2 "2: "
bindsym $mod+3 workspace number $ws3 set $ws3 "3: ﱘ"
bindsym $mod+4 workspace number $ws4 set $ws4 "4: "
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace set $ws5 "5: "
bindsym $mod+Shift+1 move container to workspace number $ws1 set $ws6 "6: "
bindsym $mod+Shift+2 move container to workspace number $ws2 set $ws7 "7: "
bindsym $mod+Shift+3 move container to workspace number $ws3 set $ws8 "8: "
bindsym $mod+Shift+4 move container to workspace number $ws4 set $ws9 "9: "
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c reload # ------------------------------------------------------------------------------
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) #
bindsym $mod+Shift+r restart # RESIZE
# exit i3 (logs you out of your X session) #
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # ------------------------------------------------------------------------------
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {
@ -190,7 +97,12 @@ bindsym $mod+r mode "resize"
# } # }
## i3-gaps START
# ------------------------------------------------------------------------------
#
# i3-gaps
#
# ------------------------------------------------------------------------------
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
@ -319,7 +231,6 @@ gaps inner 20
## I3-GAPS END ## I3-GAPS END
# BORDERS
# make all windows have a 3 pixel border # make all windows have a 3 pixel border
for_window [class=".*"] border pixel 3 for_window [class=".*"] border pixel 3
@ -331,13 +242,48 @@ for_window[workspace="4: "] border pixel 3
# if title, make the title center aligned # if title, make the title center aligned
title_align center title_align center
## client colors # ------------------------------------------------------------------------------
#
# COLORS
#
# ------------------------------------------------------------------------------
# Define colors variables:
set $darkbluetrans #08052be6
set $darkblue #08052b
set $lightblue #5294e2
set $urgentred #e53935
set $white #ffffff
set $black #000000
set $purple #e345ff
set $darkgrey #383c4a
set $grey #b0b5bd
set $mediumgrey #8b8b8b
set $yellowbrown #e1b700
set $blue #2C4762
# define colors for windows:
#class border bground text indicator child_border
# client.focused $lightblue $darkblue $white $purple $mediumgrey
# client.unfocused $darkblue $darkblue $grey $purple $darkgrey
# client.focused_inactive $darkblue $darkblue $grey $purple $black
# client.urgent $urgentred $urgentred $white $purple $yellowbrown
# class border backgr text indicate child_border # class border backgr text indicate child_border
# client.focused #56a7b5 #282c34 #ffffff #2e9ef4 #56a7b5 # client.focused #56a7b5 #282c34 #ffffff #2e9ef4 #56a7b5
client.focused #2878af #282c34 #ffffff #2e9ef4 #2878af
# client.focused #a8d385 #282c34 #ffffff #50b62c #a8d385 # client.focused #a8d385 #282c34 #ffffff #50b62c #a8d385
# client.focused #2878af #282c34 #ffffff #2e9ef4 #2878af
client.focused #2C4762 #282c34 #ffffff #2e9ef4 #2878af
client.unfocused #3d4450 #282c34 #ffffff #1e90ff #3d4450 client.unfocused #3d4450 #282c34 #ffffff #1e90ff #3d4450
# ------------------------------------------------------------------------------
#
# window properties
#
# ------------------------------------------------------------------------------
## disable floating, borders ## disable floating, borders
for_window [title="Desktop — Plasma"] kill; floating enable; border none for_window [title="Desktop — Plasma"] kill; floating enable; border none
for_window [class="plasmashell"] floating enable; for_window [class="plasmashell"] floating enable;
@ -350,16 +296,244 @@ for_window [class="Kmix"] floating enable; border none
for_window [class="Klipper"] floating enable; border none for_window [class="Klipper"] floating enable; border none
for_window [class="Plasmoidviewer"] floating enable; border none for_window [class="Plasmoidviewer"] floating enable; border none
for_window [class="(?i)*nextcloud*"] floating disable for_window [class="(?i)*nextcloud*"] floating disable
# for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 1600px, move down 450px for_window [window_role="pop-up"] floating enable
# for_window [class="plasmashell" window_type="notification"] floating enable, move down 100, move right 965, resize set 400 150, border none for_window [window_role="task_dialog"] floating enable
for_window [class="plasmawindowed" window_type="notification"] floating enable, move position 1000 55, resize set 400 150; no_focus [class="plasmashell" window_type="notification"]
# no_focus [class="plasmashell" window_type="notification"] # for_window [class="plasmashell" window_type="notification"] floating enable, move position 4060 100, resize set 400 150;
for_window [class="Microsoft Teams - Preview"] border none
for_window [class="Steam"] floating enable; border none for_window [class="Steam"] floating enable; border none
for_window [class="plasmawindowed"] border none for_window [class="plasmawindowed"] border none
# for_window [class='plasmawindowed' title='TodoList'] resize set 500 500
for_window [class="plasmawindowed" title="TodoList"] resize set 600
# Android emulator - eecs285 project4
for_window [title="Android Emulator - Pixel_3a_API_30:5554"] floating enable, border none
for_window [class="rdesktop"] floating enable, border none;
for_window [class="Pauvcontrol" instance="pavucontrol"] floating enable
for_window [class="Yad" instance="yad"] floating enable
for_window [class="Galculator" instance="galculator"] floating enable
for_window [title="System Tray"] floating enable, border none
for_window [title="System Tray" window_type="normal"] move scratchpad
# ------------------------------------------------------------------------------
#
# ASSIGN TO WORKSPACES
#
# ------------------------------------------------------------------------------
# assign [class="^firefox$"] $ws6
# assign [class="^Code$"] $ws7
# assign [class="^plasmawindowed$"] $ws4
# # Assign and move spotify to workspace 9
# for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws2
assign [class="^firefox$"] $ws1
assign [class="^Google-chrome-beta$"] $ws1
assign [class="^Code$"] $ws7
assign [class="^discord$"] $ws10
assign [class="^Thunar"] $ws2
assign [class="^dolphin"] $ws2
assign [class="^Dbeaver"] $ws9
# Assign and move spotify to workspace 9
# for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws9
# ------------------------------------------------------------------------------
#
# Launch On Startup
#
# ------------------------------------------------------------------------------
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Unlock KWallet
exec --no-startup-id /usr/lib/pam_kwallet_init
# exec --no-startup-id dbus-launch dunst --config ~/.config/dunst/dunstrc
# start the calendar and todolist plasmoids
# exec --no-startup-id ~/scripts/calendar.sh
# exec --no-startup-id ~/scripts/todo.sh
exec --no-startup-id dunst --config ~/.config/dunst/dunstrc
exec --no-startup-id /usr/bin/variety --profile /home/sudacode/.config/variety/
exec --no-startup-id i3-msg 'workspace 3: ﱘ'; exec $term -e ncmpcpp
exec --no-startup-id i3-msg 'workspace 4: '; exec emc ~/org/
exec --no-startup-id i3-msg 'workspace 6: '; exec emacsclient -n -c -e '(+vterm/here nil)'
exec --no-startup-id /usr/bin/emacs --daemon
# ------------------------------------------------------------------------------
#
# LAUNCH EACH i3 RELOAD
#
# ------------------------------------------------------------------------------
# launch polybar on startup
exec_always --no-startup-id $HOME/SudacodeRice/scripts/launch_desktop.sh
# launch picom in the background
## Picom taking up too much cpu right now
exec_always --no-startup-id $HOME/SudacodeRice/scripts/picom.sh
# run wallpaper script to set random wallpaper
exec_always --no-startup-id /home/sudacode/scripts/wallpaper.sh
# start systary
# exec_always --no-startup-id "plasmawindowed org.kde.plasma.systemtray"
# ------------------------------------------------------------------------------
#
# Monitor Assignments
#
# -----------------------------------------------------------------------------
# workspaces for dual monitors
workspace $ws10 output DP-4
workspace $ws1 output DP-4
workspace $ws2 output DP-4
workspace $ws3 output DP-4
workspace $ws4 output DP-4
workspace $ws5 output DP-0
workspace $ws6 output DP-0
workspace $ws7 output DP-0
workspace $ws8 output DP-0
workspace $ws9 output DP-0
# ------------------------------------------------------------------------------
#
# CUSTOM KEYBINDS
#
# ------------------------------------------------------------------------------
# start a terminal
bindsym $mod+Return exec $term
# kill focused window
bindsym $mod+q kill
# start dmenu (a program launcher)
# bindsym $mod+d exec --no-startup-id dmenu_run
bindsym $mod+d exec --no-startup-id rofi -mode drun -show drun -config ~/.config/rofi/rofidmenu.rasi
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec rofi -modi drun,run -show drun
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+g split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+Shift+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+Shift+a exec /usr/local/bin/aniwrapper
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# focus the child container
#bindsym $mod+d focus child
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status; exec --no-startup-id ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py increase
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status; exec --no-startup-id ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py decrease
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status; exec --no-startup-id ~/SudacodeRice/scripts/dunst_volume/dunst_volume.py mute
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3; exec --no-startup-id ~/SudacodeRice/scripts/dunst_volume.py mute
# using plasma's logout screen instead of i3's
# bindsym $mod+Shift+e exec --no-startup-id qdbus-qt5 org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1
## CUSTOM KEYBINDS
# start rofi tabswitcher # start rofi tabswitcher
bindsym Mod1+ISO_Left_Tab exec --no-startup-id $HOME/scripts/tabswitcher.sh bindsym Mod1+ISO_Left_Tab exec --no-startup-id $HOME/SudacodeRice/scripts/tabswitcher.sh
# changer borders # changer borders
bindsym Mod1+y border pixel 3 bindsym Mod1+y border pixel 3
# bindsym Mod1+t border normal 3 # bindsym Mod1+t border normal 3
@ -370,86 +544,63 @@ bindsym Mod1+u border none
# bindsym Mod1+m exec $menu # bindsym Mod1+m exec $menu
# run dmenu # run dmenu
bindsym Mod1+d exec --no-startup-id ~/scripts/dmenu-desktop.sh # bindsym Mod1+d exec --no-startup-id ~/SudacodeRice/scripts/dmenu-desktop.sh
# launch rofi menu and menu full # launch rofi menu and menu full
bindsym Mod1+o exec --no-startup-id $HOME/i3/scripts/menu_full_desktop bindsym Mod1+o exec --no-startup-id $HOME/SudacodeRice/scripts/menu_full
# bindsym Mod1+d exec --no-startup-id /home/sudacode/scripts/menu # bindsym Mod1+d exec --no-startup-id /home/sudacode/scripts/menu
# bind the windows key to menu # bind the windows key to menu
bindsym Super_L exec --no-startup-id $HOME/scripts/menu-desktop # bindsym Super_L exec --no-startup-id $HOME/SudacodeRice/scripts/menu_small
bindsym Super_L exec --no-startup-id ~/.config/eww/launch_eww
# Bind Alt+m to take screenshot with flameshot
bindsym Mod1+m exec --no-startup-id $HOME/scripts/flameshot_full.sh
# bind Alt+p to run pavucontrol script # bind Alt+p to run pavucontrol script
bindsym Mod1+p exec --no-startup-id $HOME/scripts/pavucontrol.sh bindsym Mod1+p exec --no-startup-id pavucontrol
# Bind F7 to Next Song # Bind F7 to Next Song
bindsym XF86AudioPrev exec --no-startup-id $HOME/scripts/spotify-controls.sh -b; exec --no-startup-id $HOME/i3/scripts/music-controls.sh -p bindsym XF86AudioPrev exec --no-startup-id $HOME/SudacodeRice/scripts/music-controls.sh -p
# Bind F8 to Pause/Play # Bind F8 to Pause/Play
bindsym XF86AudioPlay exec --no-startup-id $HOME/scripts/spotify-controls.sh -p; exec --no-startup-id $HOME/i3/scripts/music-controls.sh -t bindsym XF86AudioPlay exec --no-startup-id $HOME/SudacodeRice/spotify-controls.sh -p; exec --no-startup-id $HOME/SudacodeRice/scripts/music-controls.sh -t
# Bind F9 to Next Song # Bind F9 to Next Song
bindsym XF86AudioNext exec --no-startup-id $HOME/scripts/spotify-controls.sh -n; exec --no-startup-id $HOME/i3/scripts/music-controls.sh -n bindsym XF86AudioNext exec --no-startup-id $HOME/SudacodeRice/spotify-controls.sh -n; exec --no-startup-id $HOME/SudacodeRice/scripts/music-controls.sh -n
# bind alt b to bpytop # bind alt b to bpytop
bindsym Mod1+b exec --no-startup-id alacritty -e bpytop bindsym Mod1+b exec --no-startup-id $term -e bpytop
# bind alt n to ncmpcpp # bind alt n to ncmpcpp
bindsym Mod1+n exec --no-startup-id alacritty -e ncmpcpp bindsym Mod1+n exec --no-startup-id $term -e ncmpcpp
# get a new wallpaper # get a new wallpaper
bindsym Control+Mod1+n exec --no-startup-id $HOME/scripts/new-wallpaper.sh # bindsym Control+Mod1+n exec --no-startup-id $HOME/SudacodeRice/scripts/new-wallpaper.sh
# VARIETY
bindsym Control+Mod1+n exec --no-startup-id variety -n
bindsym $mod+Shift+f exec --no-startup-id variety -f
bindsym Control+Mod1+f exec --no-startup-id firefox bindsym Control+Mod1+f exec --no-startup-id firefox
## ASSIGN TO WORKSPACES bindsym $mod+t exec --no-startup-id thunar
# assign [class="^firefox$"] $ws6
# assign [class="^Code$"] $ws7
# assign [class="^plasmawindowed$"] $ws4
# # Assign and move spotify to workspace 9
# for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws2
assign [class="^firefox$"] $ws2 # ROFI
assign [class="^Code$"] $ws3 bindsym $mod+m exec --no-startup-id bash /usr/bin/rofi-mpd -s
assign [class="^plasmawindowed$"] $ws4
assign [class="^discord$"] $ws10
# Assign and move spotify to workspace 9
# for_window [class="Spotify"] move --no-auto-back-and-forth to workspace $ws9
# Unlock KWallet bindsym $mod+Shift+p exec --no-startup-id ~/SudacodeRice/scripts/rofi/rofi-picom.sh
# exec --no-startup-id /usr/lib/pam_kwallet_init bindsym Control+g exec --no-startup-id ~/SudacodeRice/scripts/rofi/rofi-search.sh
## ON STARTUP bindsym Control+Shift+s exec --no-startup-id ~/Work/rofi/rofi-ssh.sh "$HOME/SudacodeRice/rofi/flat-orange.rasi"
# launch polybar on startup bindsym Control+Shift+r exec --no-startup-id ~/Work/rofi/rofi-rdp.sh
exec_always --no-startup-id /home/sudacode/i3/scripts/launch_desktop.sh bindsym $mod+Shift+s exec --no-startup-id ~/Work/rofi/rofi-stream.sh
# launch picom in the background
## Picom taking up too much cpu right now
exec_always --no-startup-id /home/sudacode/scripts/picom.sh
# run wallpaper script to set random wallpaper
exec_always --no-startup-id /home/sudacode/scripts/wallpaper.sh
# start the calendar and todolist plasmoids
exec --no-startup-id ~/scripts/calendar.sh
exec --no-startup-id ~/scripts/todo.sh
# exec_always --no-startup-id /usr/share/knotifications5
# exec_always --no-startup-id /usr/lib/notification-daemon-1.0/notification-daemon
exec --no-startup-id dunst
# for_window [class='plasmawindowed' title='TodoList'] resize set 500 500 # Make the currently focused window a scratchpad
for_window [class="plasmawindowed" title="TodoList"] resize set 600 bindsym $mod+Shift+minus move scratchpad
# Android emulator - eecs285 project4
for_window [title="Android Emulator - Pixel_3a_API_30:5554"] floating enable, border none
for_window [class="rdesktop"] floating enable, border none;
# workspaces for dual monitors # Show the first scratchpad window
workspace $ws10 output HDMI-0 bindsym $mod+minus scratchpad show
workspace $ws1 output DP-2
workspace $ws2 output DP-2 # bindsym Mod1+Shift+t [title="System Tray"] scratchpad show, resize set 250 260, move position center
workspace $ws3 output DP-2
workspace $ws4 output HDMI-0 bindsym $mod+e exec --no-startup-id emacsclient -n -c ~
workspace $ws5 output HDMI-0 bindsym $mod+Shift+v exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)'
workspace $ws6 output HDMI-0 bindsym $mod+Shift+Return exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)'
workspace $ws7 output HDMI-0 bindsym Control+Shift+a exec --no-startup-id ~/SudacodeRice/scripts/emc ~/Projects/Scripts/ani-cli
workspace $ws8 output HDMI-0 bindsym Control+e exec --no-startup-id ~/SudacodeRice/scripts/emc ~/.config
workspace $ws9 output HDMI-0

View File

@ -140,6 +140,6 @@ cache=yes
ytdl-format=best ytdl-format=best
ytdl_path=/usr/locla/bin/yt-dlp ytdl_path=/usr/locla/bin/yt-dlp
volume=30 volume=50
audio-spdif=ac3,eac3,dts-hd,truehd audio-spdif=ac3,eac3,dts-hd,truehd
glsl-shaders="~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl" glsl-shaders="~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl"

View File

@ -10,16 +10,6 @@ acolor = #FFFFFF
curgent = #EF5350 curgent = #EF5350
coccupied = #42A5F5 coccupied = #42A5F5
#shade1 = #311B92
#shade2 = #4527A0
#shade3 = #512DA8
#shade4 = #5E35B1
#shade5 = #673AB7
#shade1 = #471A3B
#shade2 = #5E1E40
#shade3 = #742246
#shade4 = #882748
#shade5 = #AA2E50
shade1 = #17191e shade1 = #17191e
shade2 = #1e2127 shade2 = #1e2127
shade3 = #191c21 shade3 = #191c21

View File

@ -1,17 +1,3 @@
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;;
;; ____ __ __
;; / __ \____ / /_ __/ /_ ____ ______
;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
;; /_/ \____/_/\__, /_.___/\__,_/_/
;; /____/
;;
;; Created By Aditya Shakya @adi1090x
;;
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
include-file = $HOME/SudacodeRice/include-modules.ini include-file = $HOME/SudacodeRice/include-modules.ini
[color] [color]
@ -24,16 +10,6 @@ acolor = #FFFFFF
curgent = #EF5350 curgent = #EF5350
coccupied = #42A5F5 coccupied = #42A5F5
#shade1 = #311B92
#shade2 = #4527A0
#shade3 = #512DA8
#shade4 = #5E35B1
#shade5 = #673AB7
#shade1 = #471A3B
#shade2 = #5E1E40
#shade3 = #742246
#shade4 = #882748
#shade5 = #AA2E50
shade1 = #17191e shade1 = #17191e
shade2 = #1e2127 shade2 = #1e2127
shade3 = #222834 shade3 = #222834

BIN
screenshots/home1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

BIN
screenshots/home2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

View File

@ -5,9 +5,10 @@ multi-media keys on my laptop.
""" """
import os import os
import sys
import subprocess import subprocess
import sys
from pathlib import Path from pathlib import Path
import config import config
@ -25,7 +26,7 @@ def get_volume() -> int:
args = ['pulsemixer --get-volume'] args = ['pulsemixer --get-volume']
proc = execute_with_capture(args) proc = execute_with_capture(args)
output = proc.stdout output = proc.stdout
volume = int(output.split(' ')[0]) volume = output.split(' ')[0]
return volume return volume