From 33646a123068c0aa66bb4dff6d0d9373d6cef1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 8 Dec 2019 21:59:31 -0300 Subject: [PATCH] Clean-up sway config. * Remove options from swaylock command that are included in its config file. * Add suspend command for when the lid is closed. * Remove layout specifiers. --- wm/.config/sway/config | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/wm/.config/sway/config b/wm/.config/sway/config index d913e80..1874539 100644 --- a/wm/.config/sway/config +++ b/wm/.config/sway/config @@ -122,7 +122,9 @@ exec swayidle -w \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock' # Manual behavior -bindsym $mod+Shift+x exec swaylock -f -c 000000 +bindsym $mod+Shift+x exec swaylock +# Sleep when closed behavior +bindswitch --reload lid:on exec systemctl suspend ## Layout # Split in horizontal orientation @@ -238,19 +240,12 @@ for_window [app_id="waybar" floating] { move down 120px # adjust if some menus still don't fit } -## Pre-configured workspaces -# Music -exec swaymsg 'workspace media; layout tabbed' -for_window [app_id="spotify"] move container to workspace $wsm +## Window assignment # Work -exec swaymsg 'workspace nth; layout tabbed' assign [app_id="Kicad"] $wsn assign [title="CubeMX"] $wsn # PDF -exec swaymsg 'workspace pdf; layout tabbed' assign [app_id="okular"] $wsp -# Return to first workspace -exec swaymsg 'workspace 1;' ## Application specific settings for_window [app_id="krunner"] floating enable