summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-28 20:54:09 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-28 20:54:09 -0500
commit514f130fa95f2cc24cbccdf7e8b8dd2b38b52f58 (patch)
tree24f0d24984582094b76cfe2281c02e5944301a31
parent2ca667744959fb6077f9cb9396ccdef4352d57dc (diff)
downloaddotfiles-514f130fa95f2cc24cbccdf7e8b8dd2b38b52f58.tar.xz
dotfiles-514f130fa95f2cc24cbccdf7e8b8dd2b38b52f58.zip
cleaned up i3 config
-rw-r--r--.config/i3/config40
-rw-r--r--.config/i3blocks/config6
-rw-r--r--.config/wpg/templates/i3.base40
3 files changed, 43 insertions, 43 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 1aec666..dd6a9e6 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -31,7 +31,7 @@ bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
-bindsym $mod+Tab exec i3-msg workspace back_and_forth
+bindsym $mod+Tab workspace back_and_forth
# move focused container to workspace
bindsym $mod+shift+1 move container to workspace $ws1
@@ -45,7 +45,7 @@ bindsym $mod+shift+8 move container to workspace $ws8
bindsym $mod+shift+9 move container to workspace $ws9
bindsym $mod+shift+0 move container to workspace $ws10
-## GAPS/BORDERS
+## BORDERS
default_border pixel 2
default_floating_border pixel 2
hide_edge_borders smart
@@ -119,27 +119,27 @@ bindsym $mod+space focus mode_toggle
bindsym $mod+shift+F1 exec firefox /usr/local/share/doc/freebsd/handbook/book.html
bindsym $mod+F2 exec firefox
bindsym $mod+shift+F2 exec firefox --private-window
-bindsym $mod+F3 exec --no-startup-id i3-filescmd.sh
-bindsym $mod+F4 exec --no-startup-id i3-mailcmd.sh
-bindsym $mod+F5 exec --no-startup-id i3-newsboatcmd.sh
+bindsym $mod+F3 exec alacritty -e zsh -i -c "vifm ~ ~/downloads"
+bindsym $mod+F4 exec alacritty -t "Reading Email" -e zsh -i -c mutt && mbsync -c ~/.config/mbsync/mbsyncrc -a && pkill -77 i3blocks
+bindsym $mod+F5 exec alacritty -t "Reading News" -e zsh -i -c newsboat && pkill -78 i3blocks
bindsym $mod+F6 exec --no-startup-id url_handler.sh
bindsym $mod+F7 exec --no-startup-id dict.sh
-bindsym $mod+F8 exec toggle-webcam.sh
-bindsym $mod+Shift+F8 exec --no-startup-id toggle-screencast.sh
+bindsym $mod+F8 exec "pkill pwcview || exec pwcview -f 30 -s sif"
+bindsym $mod+shift+F8 exec --no-startup-id toggle-screencast.sh
bindsym $mod+F9 exec --no-startup-id abraham-porter.sh
-bindsym $mod+shift+F9 exec --no-startup-id toggle-compositing.sh
+bindsym $mod+shift+F9 exec --no-startup-id "killall picom || exec picom"
#bindsym $mod+F10 exec
#bindsym $mod+F11 exec
-bindsym $mod+Shift+F11 exec --no-startup-id xautolock -toggle
-bindsym $mod+Shift+F12 exec --no-startup-id i3-mixercmd.sh
-bindsym $mod+Return split horizontal; exec --no-startup-id alacritty
-bindsym $mod+Shift+Return split vertical; exec --no-startup-id alacritty
-bindsym $mod+Shift+Insert exec --no-startup-id $locker
-bindsym $mod+a exec --no-startup-id rofi -show run
+bindsym $mod+shift+F11 exec xautolock -toggle
+bindsym $mod+shift+F12 exec alacritty -e zsh -i -c mixertui && pkill -75 i3blocks
+bindsym $mod+Return split horizontal; exec alacritty
+bindsym $mod+shift+Return split vertical; exec alacritty
+bindsym $mod+shift+Insert exec $locker
+bindsym $mod+a exec rofi -show run
bindsym $mod+shift+q kill
-bindsym --release Print exec --no-startup-id i3-screeniecmd.sh
-bindsym --release shift+Print exec --no-startup-id i3-screenie_regioncmd.sh
-bindsym --release $mod+Print exec --no-startup-id i3-screenie_regioncmd.sh
+bindsym --release Print exec scrot -z -e 'mkdir -p ~/pictures/screenshots && mv $f ~/pictures/screenshots/'
+bindsym --release shift+Print exec scrot -sfz -e 'mkdir -p ~/pictures/screenshots && mv $f ~/pictures/screenshots/'
+bindsym --release $mod+Print exec scrot -sfz -e 'mkdir -p ~/pictures/screenshots && mv $f ~/pictures/screenshots/'
bindsym Mod4+p exec nvidia-settings
bindsym XF86AudioLowerVolume exec --no-startup-id mixer vol -5 && $sigaudio
bindsym XF86AudioMute exec --no-startup-id mixer vol 0 && $sigaudio
@@ -156,11 +156,11 @@ bindsym $mod+shift+r restart
set $mode_system 󰌾l 󰩈e 󰤄s 󰤁r 󰤂shift+s
mode "$mode_system" {
- bindsym e exec --no-startup-id i3-msg exit, mode "default"
+ bindsym e exit
bindsym l exec --no-startup-id $locker, mode "default"
bindsym s exec --no-startup-id $locker ; exec --no-startup-id sleep 2 && doas acpiconf -s3, mode "default"
- bindsym r exec --no-startup-id doas reboot, mode "default"
- bindsym shift+s exec --no-startup-id doas poweroff, mode "default"
+ bindsym r exec doas reboot
+ bindsym shift+s exec doas poweroff
bindsym Return mode "default"
bindsym q mode "default"
bindsym Escape mode "default"
diff --git a/.config/i3blocks/config b/.config/i3blocks/config
index c2d44e1..367681d 100644
--- a/.config/i3blocks/config
+++ b/.config/i3blocks/config
@@ -49,7 +49,7 @@ command=[ -f /tmp/cast.mkv ] && printf "󰻂\n" || return 0
[audio]
interval=once
signal=10
-command=vol=$(mixer vol|cut -d':' -f2) ; printf "󰕾%.3d\n" $vol ; [ $vol -eq 0 ] && return 33 || return 0
+command=vol=$(mixer vol|cut -d':' -f2) ; printf "󰕾%.2d\n" $vol ; [ $vol -eq 0 ] && return 33 || return 0
[disk]
interval=10
@@ -61,7 +61,7 @@ command=printf "󰍛%s\n" $(top -n | grep Mem | cut -w -f2)
[load]
interval=10
-command=cpu_count=$(sysctl -n hw.ncpu) ; avg_load=$(sysctl vm.loadavg|cut -w -f3) ; percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1"|bc -l) ; printf "󰻠%.3d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0
+command=cpu_count=$(sysctl -n hw.ncpu) ; avg_load=$(sysctl vm.loadavg|cut -w -f3) ; percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1"|bc -l) ; printf "󰻠%.2d%%\n" $percent ; [ $percent -ge 70 ] && return 33 || return 0
[temp]
interval=10
@@ -69,7 +69,7 @@ command=celcius=$(sysctl -n dev.cpu.0.temperature|cut -d'.' -f1) ; printf "󰔏%
[battery]
interval=59
-command=status=$(apm -b) ; level=$(apm -l) ; [ $status -eq 3 ] && printf "󰂄%.3d%%" $level || printf "󰂁%.3d%%" $level && [ $status -eq 2 ] && return 33 || return 0
+command=status=$(apm -b) ; level=$(apm -l) ; [ $status -eq 3 ] && printf "󰂄%.2d%%" $level || printf "󰂁%.2d%%" $level && [ $status -eq 2 ] && return 33 || return 0
[date]
interval=59
diff --git a/.config/wpg/templates/i3.base b/.config/wpg/templates/i3.base
index 4b9067a..f38f203 100644
--- a/.config/wpg/templates/i3.base
+++ b/.config/wpg/templates/i3.base
@@ -31,7 +31,7 @@ bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
-bindsym $mod+Tab exec i3-msg workspace back_and_forth
+bindsym $mod+Tab workspace back_and_forth
# move focused container to workspace
bindsym $mod+shift+1 move container to workspace $ws1
@@ -45,7 +45,7 @@ bindsym $mod+shift+8 move container to workspace $ws8
bindsym $mod+shift+9 move container to workspace $ws9
bindsym $mod+shift+0 move container to workspace $ws10
-## GAPS/BORDERS
+## BORDERS
default_border pixel 2
default_floating_border pixel 2
hide_edge_borders smart
@@ -119,27 +119,27 @@ bindsym $mod+space focus mode_toggle
bindsym $mod+shift+F1 exec firefox /usr/local/share/doc/freebsd/handbook/book.html
bindsym $mod+F2 exec firefox
bindsym $mod+shift+F2 exec firefox --private-window
-bindsym $mod+F3 exec --no-startup-id i3-filescmd.sh
-bindsym $mod+F4 exec --no-startup-id i3-mailcmd.sh
-bindsym $mod+F5 exec --no-startup-id i3-newsboatcmd.sh
+bindsym $mod+F3 exec alacritty -e zsh -i -c "vifm ~ ~/downloads"
+bindsym $mod+F4 exec alacritty -t "Reading Email" -e zsh -i -c mutt && mbsync -c ~/.config/mbsync/mbsyncrc -a && pkill -77 i3blocks
+bindsym $mod+F5 exec alacritty -t "Reading News" -e zsh -i -c newsboat && pkill -78 i3blocks
bindsym $mod+F6 exec --no-startup-id url_handler.sh
bindsym $mod+F7 exec --no-startup-id dict.sh
-bindsym $mod+F8 exec toggle-webcam.sh
-bindsym $mod+Shift+F8 exec --no-startup-id toggle-screencast.sh
+bindsym $mod+F8 exec "pkill pwcview || exec pwcview -f 30 -s sif"
+bindsym $mod+shift+F8 exec --no-startup-id toggle-screencast.sh
bindsym $mod+F9 exec --no-startup-id abraham-porter.sh
-bindsym $mod+shift+F9 exec --no-startup-id toggle-compositing.sh
+bindsym $mod+shift+F9 exec --no-startup-id "killall picom || exec picom"
#bindsym $mod+F10 exec
#bindsym $mod+F11 exec
-bindsym $mod+Shift+F11 exec --no-startup-id xautolock -toggle
-bindsym $mod+Shift+F12 exec --no-startup-id i3-mixercmd.sh
-bindsym $mod+Return split horizontal; exec --no-startup-id alacritty
-bindsym $mod+Shift+Return split vertical; exec --no-startup-id alacritty
-bindsym $mod+Shift+Insert exec --no-startup-id $locker
-bindsym $mod+a exec --no-startup-id rofi -show run
+bindsym $mod+shift+F11 exec xautolock -toggle
+bindsym $mod+shift+F12 exec alacritty -e zsh -i -c mixertui && pkill -75 i3blocks
+bindsym $mod+Return split horizontal; exec alacritty
+bindsym $mod+shift+Return split vertical; exec alacritty
+bindsym $mod+shift+Insert exec $locker
+bindsym $mod+a exec rofi -show run
bindsym $mod+shift+q kill
-bindsym --release Print exec --no-startup-id i3-screeniecmd.sh
-bindsym --release shift+Print exec --no-startup-id i3-screenie_regioncmd.sh
-bindsym --release $mod+Print exec --no-startup-id i3-screenie_regioncmd.sh
+bindsym --release Print exec scrot -z -e 'mkdir -p ~/pictures/screenshots && mv $f ~/pictures/screenshots/'
+bindsym --release shift+Print exec scrot -sfz -e 'mkdir -p ~/pictures/screenshots && mv $f ~/pictures/screenshots/'
+bindsym --release $mod+Print exec scrot -sfz -e 'mkdir -p ~/pictures/screenshots && mv $f ~/pictures/screenshots/'
bindsym Mod4+p exec nvidia-settings
bindsym XF86AudioLowerVolume exec --no-startup-id mixer vol -5 && $sigaudio
bindsym XF86AudioMute exec --no-startup-id mixer vol 0 && $sigaudio
@@ -156,11 +156,11 @@ bindsym $mod+shift+r restart
set $mode_system 󰌾l 󰩈e 󰤄s 󰤁r 󰤂shift+s
mode "$mode_system" {{
- bindsym e exec --no-startup-id i3-msg exit, mode "default"
+ bindsym e exit
bindsym l exec --no-startup-id $locker, mode "default"
bindsym s exec --no-startup-id $locker ; exec --no-startup-id sleep 2 && doas acpiconf -s3, mode "default"
- bindsym r exec --no-startup-id doas reboot, mode "default"
- bindsym shift+s exec --no-startup-id doas poweroff, mode "default"
+ bindsym r exec doas reboot
+ bindsym shift+s exec doas poweroff
bindsym Return mode "default"
bindsym q mode "default"
bindsym Escape mode "default"