diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-05 21:57:40 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-05 21:57:40 +0200 |
| commit | 8f1bad5de975e24e641ff7a18a665f8a6cd48774 (patch) | |
| tree | 2cda6e3faa46108be5e9d5c9140ea166ca142edb /old | |
| parent | 71a43325c4b523c781202785390bb11149d204e7 (diff) | |
| download | scripts-8f1bad5de975e24e641ff7a18a665f8a6cd48774.tar.gz scripts-8f1bad5de975e24e641ff7a18a665f8a6cd48774.zip | |
Merged some status scripts into one. The functionality as changed a bit, check the source if you relied on notify-* scripts.
Diffstat (limited to 'old')
| -rwxr-xr-x | old/notify-battery | 10 | ||||
| -rwxr-xr-x | old/notify-time | 15 |
2 files changed, 25 insertions, 0 deletions
diff --git a/old/notify-battery b/old/notify-battery new file mode 100755 index 0000000..0294b70 --- /dev/null +++ b/old/notify-battery | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Popup battery notification, based on the script battery-status | ||
| 4 | |||
| 5 | # Requires: notify-send or similar | ||
| 6 | |||
| 7 | #notify=notify-send | ||
| 8 | notify=herbe | ||
| 9 | |||
| 10 | $notify "Battery" "$(battery-status)" | ||
diff --git a/old/notify-time b/old/notify-time new file mode 100755 index 0000000..4b77c74 --- /dev/null +++ b/old/notify-time | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Little notification to show time and date | ||
| 4 | |||
| 5 | # Requires: notify-send or similar | ||
| 6 | |||
| 7 | # TODO: check if it still works with notify-send | ||
| 8 | |||
| 9 | #notify=notify-send | ||
| 10 | notify=herbe | ||
| 11 | |||
| 12 | t=$(date +"%H:%M:%S") | ||
| 13 | d=$(date +"%d %B %Y, %A") | ||
| 14 | |||
| 15 | $notify "$t" "$d" | ||
