rofi powermenu + themes, polybar amd_gpu module, nvim icon fix mason, add powermenu on i3
This commit is contained in:
parent
aa29dcc3a8
commit
56bb5ee23d
10 changed files with 387 additions and 5 deletions
28
.config/rofi/scripts/powermenu.sh
Executable file
28
.config/rofi/scripts/powermenu.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#! /usr/bin/env bash
|
||||
OPTIONS="Suspend\nLock\nReboot\nPower-off\nExit i3\n"
|
||||
|
||||
LAUNCHER="rofi -dmenu -i -p Power"
|
||||
LOCKER="betterlockscreen -l"
|
||||
|
||||
option=$(echo -e "$OPTIONS" | $LAUNCHER | awk '{print $1}' | tr -d '\r\n')
|
||||
|
||||
if [ ${#option} -gt 0 ]
|
||||
then
|
||||
case $option in
|
||||
Suspend)
|
||||
$LOCKER ;systemctl suspend
|
||||
;;
|
||||
Reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
Lock)
|
||||
$LOCKER
|
||||
;;
|
||||
Power-off)
|
||||
systemctl poweroff
|
||||
;;
|
||||
Exit)
|
||||
eval exit i3
|
||||
;;
|
||||
esac
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue