summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/dmlog31
-rwxr-xr-x.local/bin/rkb5
-rwxr-xr-x.local/bin/tsm-done.sh7
3 files changed, 12 insertions, 31 deletions
diff --git a/.local/bin/dmlog b/.local/bin/dmlog
index 8b529df..3f31e8d 100755
--- a/.local/bin/dmlog
+++ b/.local/bin/dmlog
@@ -12,7 +12,7 @@ use constant {
KILL_PATH => '/usr/bin/killall',
SHUTDOWN_PATH => '/sbin/shutdown',
LOGINCTL_PATH => '/usr/bin/loginctl',
- NOTIF_PATH => 'notify-send',
+ NOTIF_PATH => 'herbe',
HOSTNAME => (split /\./, hostname())[0]
};
use constant LIST => [
@@ -27,6 +27,13 @@ use constant CONFIRM => [
"yes"
];
+my $icon;
+
+$icon = "";
+$icon = " " if HOSTNAME eq 'mother';
+$icon = " " if HOSTNAME eq 'po-rbo';
+$icon = " " if HOSTNAME eq 'mars';
+
sub confirm
{
my ($var, $color) = @_;
@@ -64,12 +71,7 @@ sub action
"-fail-color", "0xcc241d");
}
else {
- my $icon;
- $icon = "";
- $icon = " " if HOSTNAME eq 'mother';
- $icon = " " if HOSTNAME eq 'po-rbo';
- $icon = " " if HOSTNAME eq 'mars';
- exec(SLOCK_PATH . " && notify-send -u normal -t 4000 welcome '$icon welcome back, partner!'");
+ exec(SLOCK_PATH . " && herbe '$icon welcome back, partner!'");
}
}
elsif ($var eq ${+LIST}[1]) {
@@ -88,10 +90,7 @@ sub action
else {
system(
NOTIF_PATH,
- '-u',
- 'normal',
- 'shutdown',
- ' g\'night, partner!'
+ "$icon g'night, partner!"
);
sleep 2;
if (HOSTNAME eq 'mother') {
@@ -123,10 +122,7 @@ sub action
}
system(
NOTIF_PATH,
- '-u',
- 'normal',
- 'shutdown',
- ' rebootin\', partner!'
+ "$icon rebootin', partner!"
);
exec(SHUTDOWN_PATH, '-r', 'now');
}
@@ -135,10 +131,7 @@ sub action
if (confirm($var, $color) == 1) {
system(
NOTIF_PATH,
- '-u',
- 'normal',
- 'shutdown',
- ' farewell, partner!'
+ "$icon farewell, partner!"
);
sleep 2;
if (HOSTNAME eq 'mother') {
diff --git a/.local/bin/rkb b/.local/bin/rkb
deleted file mode 100755
index ff870d3..0000000
--- a/.local/bin/rkb
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-notify-send -u low -t 2000 'kb' ' Restored Esc/Tab'
-setxkbmap -option
-setxkbmap -layout us -variant intl
diff --git a/.local/bin/tsm-done.sh b/.local/bin/tsm-done.sh
deleted file mode 100755
index 1bea50b..0000000
--- a/.local/bin/tsm-done.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-notify-send \
- -u normal \
- -t 10000 \
- 'Transmission' \
- ' Torrent <b>'"$TR_TORRENT_NAME"'</b> downloaded to <b>'"$TR_TORRENT_DIR"'</b>'