X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/5c23e4974f6a7c1e2d57179ff282bf0e3c99aec6..f791e3e46c70d4b20ddab30475251fb57091434c:/.config/sway/config diff --git a/.config/sway/config b/.config/sway/config index 565ff37..e1a421b 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -22,8 +22,8 @@ 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 0,0 -# 597 = (2560/2) - (1366/2) -output LVDS-1 pos 597,1440 +# 672 = 1440 - 768 +output LVDS-1 pos 2560,760 ### Idle configuration @@ -36,10 +36,28 @@ exec swayidle \ # # Basics: # + +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 +mode "$mode_launch" { + bindsym Return exec $floating_term, mode "default" + bindsym e exec emacs, mode "default" + bindsym a exec iceweasel -P aminb, mode "default" + bindsym c exec iceweasel -P chr, mode "default" + bindsym p exec iceweasel -P chr -private, mode "default" + bindsym Shift+c exec icecat, mode "default" + + # back to normal: Escape, or q + bindsym Escape mode "default" + bindsym q mode "default" +} + bindsym XF86Launch1 mode "$mode_launch" + # start a terminal bindsym $mod+Return exec $term - bindsym $mod+Shift+Return exec $term -name floating - for_window [class="URxvt" instance="floating"] floating enable + bindsym $mod+Shift+Return exec $floating_term # kill focused window bindsym $mod+Shift+q kill @@ -164,6 +182,7 @@ exec swayidle \ # move focus to the parent container bindsym $mod+a focus parent + bindsym $mod+Shift+a focus child # # Scratchpad: #