diff --git a/env/.config/i3/config b/env/.config/i3/config index f97affc..31b4bc3 100644 --- a/env/.config/i3/config +++ b/env/.config/i3/config @@ -9,6 +9,9 @@ # layout, use the i3-config-wizard # + +exec ~/.local/bin/system/start-scripts/autostart.sh + # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font b612:monospace 8 @@ -26,7 +29,7 @@ font b612:monospace 8 # 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 +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. @@ -44,6 +47,29 @@ exec_always --no-startup-id xmodmap -e "clear lock" exec_always --no-startup-id xmodmap -e "keycode 9 = Caps_Lock NoSymbol Caps_Lock" exec_always --no-startup-id xmodmap -e "keycode 66 = Escape NoSymbol Escape" + +workspace 1 output HDMI-A-1 +workspace 2 output HDMI-A-1 +workspace 3 output HDMI-A-1 +workspace 4 output HDMI-A-1 +workspace 5 output HDMI-A-1 +workspace 6 output HDMI-A-1 +workspace 7 output HDMI-A-1 +workspace 8 output HDMI-A-1 +workspace 9 output HDMI-A-1 +workspace 10 output HDMI-A-1 + +workspace 11 output DP-1 +workspace 12 output DP-1 +workspace 13 output DP-1 +workspace 14 output DP-1 +workspace 15 output DP-1 +workspace 16 output DP-1 +workspace 17 output DP-1 +workspace 18 output DP-1 +workspace 19 output DP-1 +workspace 20 output DP-1 + # use these keys for focus, movement, and resize directions when reaching for # the arrows is not convenient set $up k @@ -68,6 +94,7 @@ bindsym $mod+q kill # start dmenu (a program launcher) bindsym $mod+d exec --no-startup-id "rofi -x11 -show drun" +bindsym $mod+SHIFT+D exec $HOME/.local/bin/system/rofi-search-web.sh # A more modern dmenu replacement is rofi: # bindsym $mod+d exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a @@ -168,6 +195,32 @@ 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 +mode "mon2" { + bindsym $mod+1 workspace number 11 + bindsym $mod+2 workspace number 12 + bindsym $mod+3 workspace number 13 + bindsym $mod+4 workspace number 14 + bindsym $mod+5 workspace number 15 + bindsym $mod+6 workspace number 16 + bindsym $mod+7 workspace number 17 + bindsym $mod+8 workspace number 18 + bindsym $mod+9 workspace number 19 + bindsym $mod+0 workspace number 20 + bindsym $mod+Shift+1 move container to workspace number 11 + bindsym $mod+Shift+2 move container to workspace number 12 + bindsym $mod+Shift+3 move container to workspace number 13 + bindsym $mod+Shift+4 move container to workspace number 14 + bindsym $mod+Shift+5 move container to workspace number 15 + bindsym $mod+Shift+6 move container to workspace number 16 + bindsym $mod+Shift+7 move container to workspace number 17 + bindsym $mod+Shift+8 move container to workspace number 18 + bindsym $mod+Shift+9 move container to workspace number 19 + bindsym $mod+Shift+0 move container to workspace number 20 + + bindsym $mod+o mode "default" +} +bindsym $mod+o mode "mon2" + # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) diff --git a/env/.config/i3status/config b/env/.config/i3status/config new file mode 100644 index 0000000..52ccec0 --- /dev/null +++ b/env/.config/i3status/config @@ -0,0 +1,53 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 +} + +order += "ipv6" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +order += "disk /" +order += "load" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +disk "/" { + format = "%avail" +} + +load { + format = "%1min" +} + +memory { + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +tztime local { + format = "%a %m/%d/%Y %I:%M%p" +} diff --git a/env/.local/bin/scripts/backup/backup-tol b/env/.local/bin/scripts/backup/backup-tol index abe0bfe..4ea231c 100755 --- a/env/.local/bin/scripts/backup/backup-tol +++ b/env/.local/bin/scripts/backup/backup-tol @@ -15,7 +15,7 @@ fsyncb () { fi } -syncfile=".surf/styles .urlview .gnupg .local/bin/lf-gadgets .local/share/applications/custom .config/FreeTube .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE stuff/media/music stuff/manual-programs/mediamtx" +syncfile=".surf/styles .urlview .gnupg .local/bin/lf-gadgets .local/share/applications/custom .config/FreeTube .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/gajim/theme stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE stuff/media/music stuff/manual-programs/mediamtx" #sync game stuff target="laptop:~" diff --git a/env/.local/bin/scripts/backup/bbackup b/env/.local/bin/scripts/backup/bbackup index f13f7a7..b73f6fb 100755 --- a/env/.local/bin/scripts/backup/bbackup +++ b/env/.local/bin/scripts/backup/bbackup @@ -15,7 +15,7 @@ fsyncb () { fi } -syncfile="stuff .surf/styles .config/eDEX-UI/ .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .local/share/applications/custom .local/share/osu .librewolf" +syncfile="stuff .surf/styles .config/eDEX-UI/ .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .config/gajim/theme .local/share/applications/custom .local/share/osu .librewolf" target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor" exclude="--exclude node_modules --exclude node_modules_23 --exclude **/target --exclude LinVAM/pyenv" diff --git a/env/.local/bin/scripts/setkey-x11-i3.sh b/env/.local/bin/scripts/setkey-x11-i3.sh new file mode 100755 index 0000000..c8edcc4 --- /dev/null +++ b/env/.local/bin/scripts/setkey-x11-i3.sh @@ -0,0 +1,3 @@ +xmodmap -e "clear lock" +xmodmap -e "keycode 9 = Caps_Lock NoSymbol Caps_Lock" +xmodmap -e "keycode 66 = Escape NoSymbol Escape" diff --git a/env/.local/bin/system/start-scripts/autostart.sh b/env/.local/bin/system/start-scripts/autostart.sh index fb73060..fbe0aca 100755 --- a/env/.local/bin/system/start-scripts/autostart.sh +++ b/env/.local/bin/system/start-scripts/autostart.sh @@ -41,6 +41,8 @@ if [ -z "$(pgrep -f lessons-loop.sh)" ]; then ./lessons-loop.sh & fi +pactl load-module module-null-sink sink_name=audio-share + if [ -z "$(pgrep wezterm)" ]; then sleep 2 wezterm -e ~/.local/bin/system/task.sh &