...
 
Commits (2)
#!/bin/sh
#
# Small wrapper script that stops the graphical session cleanly, waiting for all
# apps to exit and removing the environment variables (keep that in sync with
# what is exported in the sway config!), only then executing the command given.
# Use it with commands like "shutdown", "reboot", "swaymsg exit" or whatever
# else terminates the graphical session in some way.
systemctl --user stop sway-session.target graphical-session.target
systemctl --user unset-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XCURSOR_SIZE XCURSOR_THEME XDG_CURRENT_DESKTOP
$@
......@@ -199,7 +199,8 @@ font SF Pro Display 9
# get shut down before sway exits.
# Note that this only unsets variables for systemd, dbus does not support
# unsetting them. So I guess try to avoid launching stuff with dbus?
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' 'systemctl --user stop sway-session.target graphical-session.target && systemctl --user unset-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XCURSOR_SIZE XCURSOR_THEME XDG_CURRENT_DESKTOP && swaymsg 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' 'systemctl --user stop sway-session.target graphical-session.target && systemctl --user unset-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XCURSOR_SIZE XCURSOR_THEME XDG_CURRENT_DESKTOP && swaymsg 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 'shutdown' 'stop_apps_and poweroff' -B 'reboot' 'stop_apps_and reboot' -B 'logout' 'stop_apps_and swaymsg exit'
#
# Moving around:
#
......
......@@ -26,3 +26,4 @@ for_window [app_id="evolution"] floating enable
for_window [app_id="evolution" title=" Evolution$"] floating disable
for_window [title="^Android Emulator -"] floating enable
for_window [title="^Emulator$"] floating enable
for_window [title="Firefox - Weitergabe-Indikator"] floating enable