summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmlog
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/dmlog15
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');