diff --git a/.config/sway/config b/.config/sway/config index 3d36ce4..2ad9b60 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -163,7 +163,11 @@ bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file bindsym $mod+Shift+c reload # exit sway (logs you out of your X session) -bindsym $mod+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your X session.' -B 'Yes, exit' 'sway-msg exit'" +bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' + +# Cycle windows in and out of scratchpad +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show # resize window (you can also use the mouse for that) mode "resize" { @@ -211,3 +215,8 @@ input * { accel_profile "flat" pointer_accel 0.0 } + +# Execute dbus environment stuff +# This makes the user keychain work among other things +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP +exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP