u
This commit is contained in:
@@ -190,8 +190,9 @@ bar {
|
|||||||
# xprop | grep -i 'class'
|
# xprop | grep -i 'class'
|
||||||
# (The first part of the WM_CLASS is the instance, the second part is the class)
|
# (The first part of the WM_CLASS is the instance, the second part is the class)
|
||||||
|
|
||||||
|
# ---
|
||||||
# print screen
|
# print screen
|
||||||
|
# ---
|
||||||
# print: select region
|
# print: select region
|
||||||
# shift+print: window
|
# shift+print: window
|
||||||
# ctrl+print: delayed screenshot (for context menu)
|
# 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 --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'
|
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
|
# run programs
|
||||||
|
# ---
|
||||||
exec --no-startup-id nextcloud
|
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_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 pasystray
|
||||||
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
|
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
|
# shortcuts
|
||||||
|
# ---
|
||||||
bindsym $mod+F3 exec pcmanfm; # start file manager
|
bindsym $mod+F3 exec pcmanfm; # start file manager
|
||||||
|
|
||||||
# misc
|
# media control
|
||||||
workspace_auto_back_and_forth yes; # nifty to press the same workspace number and go back to previous
|
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
|
# jump to specific application
|
||||||
# c - Coding ide (vscodium)
|
# c - Coding ide (vscodium)
|
||||||
@@ -227,6 +238,7 @@ bindsym $mod+k [class="GitKraken"] focus
|
|||||||
bindsym $mod+n [class="Subl"] focus
|
bindsym $mod+n [class="Subl"] focus
|
||||||
bindsym $mod+y [class="REAPER"] focus
|
bindsym $mod+y [class="REAPER"] focus
|
||||||
|
|
||||||
|
# submenu: display control
|
||||||
bindsym $mod+Ctrl+9 mode "$mode_displays"
|
bindsym $mod+Ctrl+9 mode "$mode_displays"
|
||||||
set $mode_displays (l)ock displays, (o)ff & lock displays
|
set $mode_displays (l)ock displays, (o)ff & lock displays
|
||||||
mode "$mode_displays" {
|
mode "$mode_displays" {
|
||||||
@@ -238,6 +250,7 @@ mode "$mode_displays" {
|
|||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# submenu: logout / reboot / shutdown ++
|
||||||
bindsym $mod+Ctrl+0 mode "$mode_system"
|
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
|
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
|
||||||
mode "$mode_system" {
|
mode "$mode_system" {
|
||||||
@@ -254,6 +267,7 @@ mode "$mode_system" {
|
|||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# submenu: move
|
||||||
bindsym $mod+p focus floating; mode "move_container"
|
bindsym $mod+p focus floating; mode "move_container"
|
||||||
mode "move_container" {
|
mode "move_container" {
|
||||||
bindsym Up move up 20px
|
bindsym Up move up 20px
|
||||||
@@ -265,13 +279,7 @@ mode "move_container" {
|
|||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play
|
# ---
|
||||||
bindsym XF86AudioStop exec --no-startup-id playerctl pause
|
# misc
|
||||||
bindsym XF86AudioNext exec --no-startup-id playerctl next
|
# ---
|
||||||
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
workspace_auto_back_and_forth yes; # nifty to press the same workspace number and go back to 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user