Merge pull request #122 from erdivartanovich/master

Patch powermenu weird display if host rofi config exist
This commit is contained in:
Aditya Shakya
2022-08-25 10:35:13 +05:30
committed by GitHub
22 changed files with 75 additions and 53 deletions
+4 -3
View File
@@ -8,7 +8,7 @@
dir="~/.config/polybar/hack/scripts/rofi"
uptime=$(uptime -p | sed -e 's/up //g')
rofi_command="rofi -theme $dir/powermenu.rasi"
rofi_command="rofi -no-config -theme $dir/powermenu.rasi"
# Options
shutdown=" Shutdown"
@@ -20,7 +20,8 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-i\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
-theme $dir/confirm.rasi
@@ -28,7 +29,7 @@ confirm_exit() {
# Message
msg() {
rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
rofi -no-config -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
}
# Variable passed to rofi