diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-09-08 02:51:26 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-09-08 02:51:26 +0100 |
commit | da2dd3530331df2a92c7166d24c05e5167bbfc86 (patch) | |
tree | a1502b2118ce6f0ff4eeb77293d672388e5428a7 /Scripts/.local | |
parent | 92a7b502fde9b3859ee8b4992fac700e03404d40 (diff) | |
download | dotfiles-da2dd3530331df2a92c7166d24c05e5167bbfc86.tar.gz dotfiles-da2dd3530331df2a92c7166d24c05e5167bbfc86.tar.bz2 dotfiles-da2dd3530331df2a92c7166d24c05e5167bbfc86.zip |
(Script)+qdisplay for displaying questions about the system
Essentially a way for me to call dwm status bar scripts with a
notification. Useful in full screen modes where I may not see my
battery.
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-x | Scripts/.local/scripts/qdisplay | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/qdisplay b/Scripts/.local/scripts/qdisplay new file mode 100755 index 0000000..665d1f5 --- /dev/null +++ b/Scripts/.local/scripts/qdisplay @@ -0,0 +1,34 @@ +#!/usr/bin/env sh + +script="" +case "$(printf "Date\nBattery\nBluetooth\nMusic\nNetwork\nVolume\nTemperature\nMemory\nUptime" | dmenu -i -p "Select: ")" in + "Date") + script="datetime" + ;; + "Battery") + script="battery" + ;; + "Bluetooth") + script="bluetooth-status" + ;; + "Music") + script="music" + ;; + "Network") + script="connection" + ;; + "Volume") + script="volume" + ;; + "Temperature") + script="temperature" + ;; + "Memory") + script="memory" + ;; + "Uptime") + script="uptime_status" + ;; +esac + +notify-send -u low "$(~/.local/scripts/status/$script)" |