This commit is contained in:
Marco Thomas
2021-03-22 11:45:17 +01:00
parent 6bd43114dc
commit b90e03fc03
6 changed files with 13 additions and 42 deletions

View File

@@ -1,22 +0,0 @@
#!/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

View File

@@ -3,7 +3,6 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
if type "xrandr"; then
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$mon polybar --reload bottom &
if [ $mon = "eDP" ]; then
MONITOR=$mon polybar --reload laptop &
else