diff options
| author | joe <rbo@gmx.us> | 2025-10-24 13:54:18 +0200 |
|---|---|---|
| committer | joe <rbo@gmx.us> | 2025-10-24 13:54:18 +0200 |
| commit | e70c72b13177830df833c949dd7833394cbffc4f (patch) | |
| tree | a642772a23d7fb53da1f14aaa9b624d60cf841f0 /.local/bin/dmlog | |
| parent | up (diff) | |
| download | dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.gz dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.bz2 dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.xz dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.tar.zst dotfiles-bsd-e70c72b13177830df833c949dd7833394cbffc4f.zip | |
removed more icons
Diffstat (limited to '.local/bin/dmlog')
| -rwxr-xr-x | .local/bin/dmlog | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/.local/bin/dmlog b/.local/bin/dmlog index c31a270..a5f9b15 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -27,13 +27,6 @@ use constant CONFIRM => [ "yes" ]; -my $icon; - -$icon = ""; -$icon = " " if HOSTNAME eq 'mother'; -$icon = " " if HOSTNAME eq 'po-rbo'; -$icon = " " if HOSTNAME eq 'mars'; - sub notify { my ($str) = @_; @@ -82,7 +75,7 @@ sub action "-fail-color", "0xcc241d"); } else { - exec(SLOCK_PATH . " && exec herbe '$icon welcome back, partner!'"); + exec(SLOCK_PATH . " && exec herbe 'welcome back, partner!'"); } } elsif ($var eq ${+LIST}[1]) { @@ -99,7 +92,7 @@ sub action } } else { - notify("$icon g'night, partner!"); + notify("g'night, partner!"); sleep 2; if (HOSTNAME eq 'mother') { system('umount', '-f', '/var/dev/ceres'); @@ -128,13 +121,13 @@ sub action elsif (HOSTNAME eq 'po-rbo') { exec('doas', 'systemctl', 'reboot'); } - notify("$icon rebootin', partner!"); + notify("rebootin', partner!"); exec(SHUTDOWN_PATH, '-r', 'now'); } } elsif ($var eq ${+LIST}[4]) { if (confirm($var, $color) == 1) { - notify("$icon farewell, partner!"); + notify("farewell, partner!"); sleep 2; if (HOSTNAME eq 'mother') { exec(LOGINCTL_PATH, 'poweroff'); |
