Merge pull request #2 from erdivartanovich/patch-powermenu

Fix rofi powermenu add -no-config
This commit is contained in:
erdiansyah
2021-05-08 23:59:20 +07:00
committed by GitHub
22 changed files with 54 additions and 32 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+3 -2
View File
@@ -8,7 +8,7 @@
dir="~/.config/polybar/material/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,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -64,6 +64,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -72,7 +73,7 @@ confirm_exit() {
# Message
msg() {
rofi -theme "$DIR/$theme/message.rasi" -e "Available Options - yes / y / no / n"
rofi -no-config -theme "$DIR/$theme/message.rasi" -e "Available Options - yes / y / no / n"
}
# Variable passed to rofi
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -28,7 +29,7 @@ confirm_exit() {
# Message
msg() {
rofi -theme "$dir/message.rasi" -e "Options : yes / y / no / n"
rofi -no-config -theme "$dir/message.rasi" -e "Options : yes / y / no / n"
}
# Variable passed to rofi
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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
+2 -1
View File
@@ -20,6 +20,7 @@ logout=" Logout"
# Confirmation
confirm_exit() {
rofi -dmenu\
-no-config\
-i\
-no-fixed-num-lines\
-p "Are You Sure? : "\
@@ -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