Update .config/rofi/powermenu/type-1/powermenu.sh
This commit is contained in:
parent
7e5115aa89
commit
3d16f38c3d
1 changed files with 22 additions and 22 deletions
|
@ -11,11 +11,11 @@
|
||||||
|
|
||||||
# Current Theme
|
# Current Theme
|
||||||
dir="$HOME/.config/rofi/powermenu/type-1"
|
dir="$HOME/.config/rofi/powermenu/type-1"
|
||||||
theme='style-1'
|
theme='style-5'
|
||||||
|
|
||||||
# CMDs
|
# CMDs
|
||||||
uptime="`uptime -p | sed -e 's/up //g'`"
|
uptime="$(uptime -p | sed -e 's/up //g')"
|
||||||
host=`hostname`
|
host=$(hostname)
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=' Shutdown'
|
shutdown=' Shutdown'
|
||||||
|
@ -88,23 +88,23 @@ run_cmd() {
|
||||||
# Actions
|
# Actions
|
||||||
chosen="$(run_rofi)"
|
chosen="$(run_rofi)"
|
||||||
case ${chosen} in
|
case ${chosen} in
|
||||||
$shutdown)
|
$shutdown)
|
||||||
run_cmd --shutdown
|
run_cmd --shutdown
|
||||||
;;
|
;;
|
||||||
$reboot)
|
$reboot)
|
||||||
run_cmd --reboot
|
run_cmd --reboot
|
||||||
;;
|
;;
|
||||||
$lock)
|
$lock)
|
||||||
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
if [[ -x '/usr/bin/betterlockscreen' ]]; then
|
||||||
betterlockscreen -l
|
betterlockscreen -l
|
||||||
elif [[ -x '/usr/bin/i3lock' ]]; then
|
elif [[ -x '/usr/bin/i3lock' ]]; then
|
||||||
i3lock
|
i3lock
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
$suspend)
|
$suspend)
|
||||||
run_cmd --suspend
|
run_cmd --suspend
|
||||||
;;
|
;;
|
||||||
$logout)
|
$logout)
|
||||||
run_cmd --logout
|
run_cmd --logout
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue