summaryrefslogtreecommitdiff
path: root/.config/wpg/templates
diff options
context:
space:
mode:
Diffstat (limited to '.config/wpg/templates')
-rw-r--r--.config/wpg/templates/i3.base74
1 files changed, 42 insertions, 32 deletions
diff --git a/.config/wpg/templates/i3.base b/.config/wpg/templates/i3.base
index f3e4cb4..6fa542f 100644
--- a/.config/wpg/templates/i3.base
+++ b/.config/wpg/templates/i3.base
@@ -31,6 +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
# move focused container to workspace
bindsym $mod+shift+1 move container to workspace $ws1
@@ -90,10 +91,10 @@ bindsym $mod+shift+$right move right
bindsym $mod+shift+$up move up
# resize
-bindsym $mod+i resize grow height 50 or 10
-bindsym $mod+o resize grow width 50 or 10
-bindsym $mod+u resize shrink height 50 or 10
-bindsym $mod+y resize shrink width 50 or 10
+bindsym $mod+i resize grow height 100 or 10
+bindsym $mod+o resize grow width 100 or 10
+bindsym $mod+u resize shrink height 100 or 10
+bindsym $mod+y resize shrink width 100 or 10
## LAYOUT
# split direction
@@ -115,36 +116,34 @@ bindsym $mod+shift+s floating toggle; sticky toggle
bindsym $mod+space focus mode_toggle
## SHORTCUTS
-bindsym $mod+shift+F1 exec --no-startup-id firefox /usr/local/share/doc/freebsd/handbook/book.html
-bindsym $mod+F2 exec --no-startup-id firefox
-bindsym $mod+shift+F2 exec --no-startup-id firefox --private-window
-bindsym $mod+F3 exec i3-filescmd.sh
-bindsym $mod+F4 exec i3-mailcmd.sh
-bindsym $mod+F5 exec i3-newsboatcmd.sh
-bindsym $mod+F6 exec url_handler.sh `xclip -selection clipboard -o`
-bindsym $mod+F7 exec dict.sh
+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+F6 exec --no-startup-id url_handler.sh `xclip -selection clipboard -o`
+bindsym $mod+F7 exec --no-startup-id dict.sh
bindsym $mod+F8 exec toggle-webcam.sh
-bindsym $mod+Shift+F8 exec toggle-screencast.sh
-bindsym $mod+F9 exec abraham-porter.sh
-bindsym $mod+shift+F9 exec toggle-compositing.sh
-bindsym $mod+F10 exec mixer vol 0 && $sigaudio
-bindsym $mod+F11 exec mixer vol -5 && $sigaudio
-bindsym $mod+Shift+F11 exec xautolock -toggle
-bindsym $mod+F12 exec mixer vol +5 && $sigaudio
-bindsym $mod+Shift+F12 exec i3-mixercmd.sh
-bindsym $mod+Return split horizontal; exec alacritty
-bindsym $mod+Shift+Return split vertical; exec alacritty
+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+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+Tab exec i3-msg workspace back_and_forth
-bindsym $mod+a exec rofi -show run
+bindsym $mod+a exec --no-startup-id rofi -show run
bindsym $mod+shift+q kill
-bindsym --release Print exec i3-screeniecmd.sh
-bindsym --release shift+Print exec i3-screenie_regioncmd.sh
-bindsym --release $mod+Print exec i3-screenie_regioncmd.sh
+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 Mod4+p exec nvidia-settings
-bindsym XF86AudioLowerVolume exec mixer vol -5 && $sigaudio
-bindsym XF86AudioMute exec mixer vol 0 && $sigaudio
-bindsym XF86AudioRaiseVolume exec mixer vol +5 && $sigaudio
+bindsym XF86AudioLowerVolume exec --no-startup-id mixer vol -5 && $sigaudio
+bindsym XF86AudioMute exec --no-startup-id mixer vol 0 && $sigaudio
+bindsym XF86AudioRaiseVolume exec --no-startup-id mixer vol +5 && $sigaudio
# scratchpad terminal
bindsym $mod+shift+p move scratchpad
@@ -159,7 +158,7 @@ set $mode_system 󰌾l 󰩈e 󰤄s 󰤁r 󰤂shift+s
mode "$mode_system" {{
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym l exec --no-startup-id $locker, mode "default"
- bindsym s exec --no-startup-id $locker && sleep 2 && doas acpiconf -s3, 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 Return mode "default"
@@ -167,6 +166,16 @@ mode "$mode_system" {{
bindsym Escape mode "default"
}}
+set $mode_volume 󰝞J 󰝝K 󰸈M
+mode "$mode_volume" {{
+ bindsym j exec mixer vol -5 && $sigaudio
+ bindsym m exec mixer vol 0 && $sigaudio
+ bindsym k exec mixer vol +5 && $sigaudio
+ bindsym Return mode "default"
+ bindsym q mode "default"
+ bindsym Escape mode "default"
+}}
+
set $mode_help 󱊫Help/Handbook 󱊬Browser 󱊭Files 󱊮Email 󱊯News 󱊰YouTube 󱊱Dictionary 󱊲Dock/Compositor 󱊳Ports 󱊴Webcam/Screencast 󱊵AutoLock-Toggle 󱊶Mixer
mode "$mode_help" {{
bindsym Return mode "default"
@@ -176,6 +185,7 @@ mode "$mode_help" {{
bindsym $mod+Insert mode "$mode_system"
bindsym $mod+F1 mode "$mode_help"
+bindsym $mod+F12 mode "$mode_volume"
## BARS
bar {{
@@ -205,4 +215,4 @@ for_window [title = "pwcview"] border pixel 1; floating enable; sticky enable; m
for_window [title = "sxiv"] floating enable
## STARTUP
-exec --no-startup-id firefox
+exec firefox