ansible-desktop/roles/dwm/files/usr/local/bin/dwm-gnome
Przemek Grondek 248d57f67a Add dwm-gnome
2023-04-29 15:47:14 +02:00

19 lines
632 B
Bash
Executable File

#!/bin/sh
egister with gnome-session so that it does not kill the whole session thinking it is dead.
test -n "$DESKTOP_AUTOSTART_ID" && {
dbus-send --print-reply --session --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.RegisterClient "string:dwm-gnome" "string:$DESKTOP_AUTOSTART_ID"
}
# Support for merging .Xresources
test -e $HOME/.Xresources && {
xrdb -merge $HOME/.Xresources
}
dwm
# Logout process.
test -n "$DESKTOP_AUTOSTART_ID" && {
dbus-send --print-reply --session --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.Logout "uint32:1"
}