diff options
| -rw-r--r-- | .config/x11/xinitrc | 2 | ||||
| -rwxr-xr-x | .local/bin/dmlog | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 0ea4b85..ba8a798 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -30,8 +30,8 @@ startif() { } dunst_shit() { - sleep 1 startif dunst + [ $host = "mother" ] && return sleep 2 startif lowbat } diff --git a/.local/bin/dmlog b/.local/bin/dmlog index a5f9b15..5b99d4f 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -95,7 +95,9 @@ sub action notify("g'night, partner!"); sleep 2; if (HOSTNAME eq 'mother') { - system('umount', '-f', '/var/dev/ceres'); + system(LOGINCTL_PATH, 'terminate-session', 'self'); + # system('umount', '-f', '/var/dev/ceres'); + sleep 2 exec(LOGINCTL_PATH, 'suspend'); } elsif (HOSTNAME eq 'po-rbo') { |
