X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/007ff825a7bdf58e51f146e2b68922b244746221..318aaea93157046b868008b6bbf65afaca2de01d:/.config/sway/config?ds=sidebyside diff --git a/.config/sway/config b/.config/sway/config index ddd4d4e..94e7cd7 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -21,6 +21,10 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # # You can get the names of your outputs by running: swaymsg -t get_outputs +# output DP-1 res 2560x1440 pos 1366,0 +# # 672 = 1440 - 768 +# output LVDS-1 pos 0,760 + output DP-1 res 2560x1440 pos 0,0 # 672 = 1440 - 768 output LVDS-1 pos 2560,760 @@ -40,7 +44,7 @@ exec swayidle \ set $floating_term $term -name floating for_window [class="URxvt" instance="floating"] floating enable -set $mode_launch (⏎)urxvt, (e)macs, iceweasel (a)minb (c)hr (p)riv, ice(C)at +set $mode_launch (⏎)urxvt | (e)macs | iceweasel (a)minb (c)hr (p)riv | ice(C)at mode "$mode_launch" { bindsym Return exec $floating_term, mode "default" bindsym e exec emacs, mode "default" @@ -182,6 +186,7 @@ mode "$mode_launch" { # move focus to the parent container bindsym $mod+a focus parent + bindsym $mod+Shift+a focus child # # Scratchpad: # @@ -223,7 +228,7 @@ bindsym $mod+Shift+r mode "resize" # Power button # -set $mode_system System (l)ock, (e)xit sway, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown +set $mode_system System (l)ock | (e)xit sway | (s)uspend | (h)ibernate | (r)eboot | (S)hutdown mode "$mode_system" { bindsym l exec swaylock, mode "default" bindsym e exec swaymsg exit, mode "default" @@ -239,6 +244,7 @@ mode "$mode_system" { } # bindsym XF86PowerOff mode "$mode_system" bindsym $mod+Shift+e mode "$mode_system" +bindsym XF86ScreenSaver exec swaylock # # Presentation mode @@ -264,14 +270,15 @@ mode notifications { # Screenshotting # -bindsym $mod+Shift+s mode screenshot -mode screenshot { +set $mode_screenshot (a)ll | (r)egion +mode "$mode_screenshot" { bindsym a exec grim $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default bindsym r exec slurp | grim -g - $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default bindsym Escape mode default bindsym q mode default } +bindsym Print mode "$mode_screenshot" # # Window configurations