From 5298ac3c26bd9e12dd75299a168f9b1324294de3 Mon Sep 17 00:00:00 2001 From: committer Date: Sun, 19 May 2024 15:48:05 -0500 Subject: [PATCH] u --- dots/i3wm/config | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/dots/i3wm/config b/dots/i3wm/config index 5f9a4ea..912f804 100644 --- a/dots/i3wm/config +++ b/dots/i3wm/config @@ -190,8 +190,9 @@ bar { # xprop | grep -i 'class' # (The first part of the WM_CLASS is the instance, the second part is the class) - +# --- # print screen +# --- # print: select region # shift+print: window # ctrl+print: delayed screenshot (for context menu) @@ -199,17 +200,27 @@ bindsym --release Print exec --no-startup-id scrot -s -f -e 'xclip $f -selection bindsym --release Shift+Print exec --no-startup-id scrot -u -e 'xclip $f -selection clipboard -t image/png' '/home/poq/syncDir/0_downloads/%Y%m%d%H%M%S_$wx$h.png' bindsym Ctrl+Print exec --no-startup-id scrot -d 3 -e 'xclip $f -selection clipboard -t image/png' '/home/poq/syncDir/0_downloads/%Y%m%d%H%M%S_$wx$h.png' +# --- # run programs +# --- exec --no-startup-id nextcloud exec_always --no-startup-id setxkbmap -model pc105 -layout us,no -option grp:caps_toggle,grp_led:scroll; # keyboard layout switch exec --no-startup-id pasystray exec --no-startup-id nitrogen --restore; sleep 1; compton -b +exec_always --no-startup-id xset dpms 0 0 1800; # screen off after 30 min (1800 sec) +exec --no-startup-id xautolock -time 60 -locker i3lock; # lock after 60 minutes + +# --- # shortcuts +# --- bindsym $mod+F3 exec pcmanfm; # start file manager -# misc -workspace_auto_back_and_forth yes; # nifty to press the same workspace number and go back to previous +# media control +bindsym XF86AudioPlay exec --no-startup-id playerctl play +bindsym XF86AudioStop exec --no-startup-id playerctl pause +bindsym XF86AudioNext exec --no-startup-id playerctl next +bindsym XF86AudioPrev exec --no-startup-id playerctl previous # jump to specific application # c - Coding ide (vscodium) @@ -227,6 +238,7 @@ bindsym $mod+k [class="GitKraken"] focus bindsym $mod+n [class="Subl"] focus bindsym $mod+y [class="REAPER"] focus +# submenu: display control bindsym $mod+Ctrl+9 mode "$mode_displays" set $mode_displays (l)ock displays, (o)ff & lock displays mode "$mode_displays" { @@ -238,6 +250,7 @@ mode "$mode_displays" { bindsym Escape mode "default" } +# submenu: logout / reboot / shutdown ++ bindsym $mod+Ctrl+0 mode "$mode_system" set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown mode "$mode_system" { @@ -254,6 +267,7 @@ mode "$mode_system" { bindsym Escape mode "default" } +# submenu: move bindsym $mod+p focus floating; mode "move_container" mode "move_container" { bindsym Up move up 20px @@ -265,13 +279,7 @@ mode "move_container" { bindsym Escape mode "default" } -bindsym XF86AudioPlay exec --no-startup-id playerctl play -bindsym XF86AudioStop exec --no-startup-id playerctl pause -bindsym XF86AudioNext exec --no-startup-id playerctl next -bindsym XF86AudioPrev exec --no-startup-id playerctl previous - -exec_always --no-startup-id xset dpms 0 0 1800; # screen off after 30 min (1800 sec) - -exec --no-startup-id xautolock -time 60 -locker i3lock - -#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork \ No newline at end of file +# --- +# misc +# --- +workspace_auto_back_and_forth yes; # nifty to press the same workspace number and go back to previous