Browse Source

Merge pull request #36 from darkeddie/main

Cleanup of RofiPower.sh
pull/38/head
Ja.KooLit 2 years ago committed by GitHub
parent
commit
2735c9d976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      config/hypr/scripts/RofiPower.sh

10
config/hypr/scripts/RofiPower.sh

@ -29,12 +29,6 @@ rofi_cmd() {
echo "$chosen_option" echo "$chosen_option"
} }
# Pass variables to rofi dmenu
run_rofi() {
chosen_option=$(rofi_cmd)
echo "$chosen_option"
}
# Execute Command # Execute Command
run_cmd() { run_cmd() {
case $1 in case $1 in
@ -63,5 +57,5 @@ run_cmd() {
} }
# Actions # Actions
chosen_option=$(run_rofi) chosen_option=$(rofi_cmd)
run_cmd "${chosen_option% *}" run_cmd "${chosen_option% *}"

Loading…
Cancel
Save