From da2dd3530331df2a92c7166d24c05e5167bbfc86 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 8 Sep 2024 02:51:26 +0100 Subject: (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. --- Scripts/.local/scripts/qdisplay | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 Scripts/.local/scripts/qdisplay (limited to 'Scripts/.local') 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)" -- cgit v1.2.3-13-gbd6f