diff options
Diffstat (limited to 'bin/guiscripts/dmpower')
| -rwxr-xr-x | bin/guiscripts/dmpower | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/bin/guiscripts/dmpower b/bin/guiscripts/dmpower index 5c333a8..f03fd8e 100755 --- a/bin/guiscripts/dmpower +++ b/bin/guiscripts/dmpower @@ -1,3 +1,13 @@  #!/bin/sh -choice="$(echo "poweroff\nreboot\nhibernate" | dmenu -l 1 -g 3)" +if [ "$MENUCMD" = "tofi" ] +then +	menucmd="tofi --width 10% --height 10% --padding-left 2%"  +elif [ "$MENUCMD" = "dmenu" ] +then +	menucmd="dmenu -g 2 -l 1" +else +	menucmd="fzf" +fi + +choice="$(echo "poweroff\nreboot\nhibernate" | $menucmd)"  test -z "$choice" || doas "$choice" | 
