rofi powermenu + themes, polybar amd_gpu module, nvim icon fix mason, add powermenu on i3

This commit is contained in:
Tiago Sousa 2023-05-19 14:33:01 +01:00
parent aa29dcc3a8
commit 56bb5ee23d
10 changed files with 387 additions and 5 deletions

View 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