Update .config/rofi/powermenu/type-1/powermenu.sh

This commit is contained in:
punkfairie 2024-08-05 18:11:30 -07:00
parent 7e5115aa89
commit 3d16f38c3d
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -11,11 +11,11 @@
# Current Theme
dir="$HOME/.config/rofi/powermenu/type-1"
theme='style-1'
theme='style-5'
# CMDs
uptime="`uptime -p | sed -e 's/up //g'`"
host=`hostname`
uptime="$(uptime -p | sed -e 's/up //g')"
host=$(hostname)
# Options
shutdown=' Shutdown'
@ -88,23 +88,23 @@ run_cmd() {
# Actions
chosen="$(run_rofi)"
case ${chosen} in
$shutdown)
run_cmd --shutdown
;;
$reboot)
run_cmd --reboot
;;
$lock)
if [[ -x '/usr/bin/betterlockscreen' ]]; then
betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock
fi
;;
$suspend)
run_cmd --suspend
;;
$logout)
run_cmd --logout
;;
$shutdown)
run_cmd --shutdown
;;
$reboot)
run_cmd --reboot
;;
$lock)
if [[ -x '/usr/bin/betterlockscreen' ]]; then
betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock
fi
;;
$suspend)
run_cmd --suspend
;;
$logout)
run_cmd --logout
;;
esac