asroot (950B)
1 #!/bin/bash 2 3 DIR="$HOME/.config/bspwm" 4 5 rofi_command="rofi -theme $DIR/rofi/themes/asroot.rasi" 6 7 # Apps 8 terminal=" Termite" 9 files=" Pcmanfm" 10 editor=" Geany" 11 clifm=" Ranger" 12 lpad=" Leafpad" 13 vim=" Vim" 14 15 # Variable passed to rofi 16 options="$terminal\n$files\n$editor\n$clifm\n$lpad\n$vim" 17 18 chosen="$(echo -e "$options" | $rofi_command -p "Run as root(#)" -dmenu -selected-row 0)" 19 case $chosen in 20 $terminal) 21 apps_as_root 'termite --class termite-float -c /root/.config/bspwm/termite/config' 22 ;; 23 $files) 24 apps_as_root 'dbus-run-session pcmanfm' 25 ;; 26 $editor) 27 apps_as_root geany 28 ;; 29 $clifm) 30 apps_as_root 'termite --class termite-float -c /root/.config/bspwm/termite/config -e ranger' 31 ;; 32 $lpad) 33 apps_as_root leafpad 34 ;; 35 $vim) 36 apps_as_root 'termite --class termite-float -c /root/.config/bspwm/termite/config -e vim' 37 ;; 38 esac 39 40