Some work on Scripts

notable changes:
- rename `bt-connect` to `bt_connect`
- rename `music` to `media` and make it generic instead of checking
  Spotify
- make separate script to set background to a preset black image
- make all shebangs "#!/usr/bin/env sh"
This commit is contained in:
2025-04-05 19:25:48 +01:00
parent 981804b78c
commit 0d7970742f
18 changed files with 40 additions and 69 deletions

View File

@@ -1,37 +1,21 @@
#!/usr/bin/env sh
script=""
case "$(printf "Date\nBattery\nBrightness\nBluetooth\nMusic\nNetwork\nVolume\nTemperature\nMemory\nUptime" | dmenu -i -p "Select: ")" in
"Date")
script="datetime"
;;
"Battery")
script="battery"
;;
"Brightness")
script="brightness"
;;
"Bluetooth")
script="bluetooth-status"
;;
"Music")
script="music"
;;
"Network")
script="connection"
;;
"Volume")
script="volume"
;;
"Temperature")
script="temperature"
;;
"Memory")
script="memory"
;;
"Uptime")
script="uptime_status"
;;
choices="Date\nBattery\nBrightness\nBluetooth\nMedia\nNetwork\nVolume\nTemperature\nMemory\nUptime"
choice=$(printf $choices | dmenu -i -p "Select: ")
case $choice in
"Date") script="datetime" ;;
"Battery") script="battery" ;;
"Brightness") script="brightness" ;;
"Bluetooth") script="bluetooth-status" ;;
"Media") script="media" ;;
"Network") script="connection" ;;
"Volume") script="volume" ;;
"Temperature") script="temperature" ;;
"Memory") script="memory" ;;
"Uptime") script="uptime_status" ;;
*) exit 1 ;;
esac
notify-send -u low "$(~/.local/scripts/status/$script)"