dmenu-settings (726B)
1 #!/usr/bin/sh 2 # this opens a promt with device settings managed through dmenu 3 # let's build a dmenu-os lol 4 5 # original sources or inspiration 6 # - https://gist.github.com/Nervengift/844a597104631c36513c 7 # - https://github.com/ClydeDroid/rofi-bluetooth 8 # - https://github.com/firecat53/networkmanager-dmenu 9 # - https://github.com/c-14/dmenu-scripts/blob/master/dmenu-udevil.sh 10 11 open=$(echo -e "bluetooth\nnetwork\naudio\nusb\nscreen" | dmenu -p "settings:") 12 13 case $open in 14 bluetooth) 15 dmenu-bluetooth 16 ;; 17 network) 18 dmenu-network 19 ;; 20 audio) 21 dmenu-audio 22 ;; 23 usb) 24 dmenu-usb 25 ;; 26 screen) 27 dmenu-screen 28 ;; 29 *) 30 exit 31 ;; 32 esac