Update zsh

This commit is contained in:
Marco Thomas
2021-02-05 13:41:36 +01:00
parent f3550e49cc
commit c9d14b029b
2 changed files with 29 additions and 3 deletions

22
files/scripts/dmenu-power.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
FONT="Product Sans:pixelsize=15:antialias=true:rgba=rgb"
BGCOL="#000000"
FGCOL="#ffffff"
SELBGCOL="#98c379"
SELFGCOL="#000000"
COMMANDS="
poweroff\n
reboot\n
lock\n
"
command=$(echo -e $COMMANDS | \
dmenu -fn "$FONT" -nb $BGCOL -nf $FGCOL -sb $SELBGCOL -sf $SELFGCOL)
[ "$command" = "" ] && exit 1
if [ "$command" = "lock" ]; then
lock.sh && exit 0
else
systemctl $command && exit 0
fi