From 818ee1951fefee02f3b8386f177a3480c596a527 Mon Sep 17 00:00:00 2001 From: darkeddie Date: Sun, 26 Nov 2023 21:24:34 +1100 Subject: [PATCH 1/2] Cleanup of RofiPower --- config/hypr/scripts/RofiPower.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/config/hypr/scripts/RofiPower.sh b/config/hypr/scripts/RofiPower.sh index 84d8643..6978d2d 100755 --- a/config/hypr/scripts/RofiPower.sh +++ b/config/hypr/scripts/RofiPower.sh @@ -26,13 +26,6 @@ rofi_cmd() { -kb-select-5 "s" \ -kb-select-6 "h" \ -theme ~/.config/rofi/config-powermenu.rasi | awk '{print $1}') - echo "$chosen_option" -} - -# Pass variables to rofi dmenu -run_rofi() { - chosen_option=$(rofi_cmd) - echo "$chosen_option" } # Execute Command @@ -63,5 +56,5 @@ run_cmd() { } # Actions -chosen_option=$(run_rofi) +chosen_option=$(rofi_cmd) run_cmd "${chosen_option% *}" \ No newline at end of file From c9507b677cc478128906083cb5834fa130aad06e Mon Sep 17 00:00:00 2001 From: Daniel <48409433+darkeddie@users.noreply.github.com> Date: Sun, 26 Nov 2023 10:32:16 +0000 Subject: [PATCH 2/2] Update RofiPower.sh --- config/hypr/scripts/RofiPower.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/hypr/scripts/RofiPower.sh b/config/hypr/scripts/RofiPower.sh index 6978d2d..b8ca76b 100755 --- a/config/hypr/scripts/RofiPower.sh +++ b/config/hypr/scripts/RofiPower.sh @@ -26,6 +26,7 @@ rofi_cmd() { -kb-select-5 "s" \ -kb-select-6 "h" \ -theme ~/.config/rofi/config-powermenu.rasi | awk '{print $1}') + echo "$chosen_option" } # Execute Command @@ -57,4 +58,4 @@ run_cmd() { # Actions chosen_option=$(rofi_cmd) -run_cmd "${chosen_option% *}" \ No newline at end of file +run_cmd "${chosen_option% *}"