mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
Update: added powermenu, minor bug fixes
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ font="dedede"
|
||||
green="9ece6a"
|
||||
red="db4b4b"
|
||||
|
||||
i3lock -n --force-clock -F -i ~/Pictures/wallpapers/lockscreen2.png -e \
|
||||
i3lock -n --force-clock -F -i ~/Pictures/wallpapers/lockscreen.png -e \
|
||||
--refresh-rate=1 --line-uses-inside --pointer=default --pass-media-keys --pass-volume-keys --pass-screen-keys \
|
||||
--inside-color="$green" --ring-color="$green" --insidever-color="$green" --ringver-color="$green" --insidewrong-color="$red" --ringwrong-color="$red" \
|
||||
--keyhl-color="$green" --separator-color="$green" --bshl-color="$green" --color=000000 \
|
||||
|
||||
Executable
+48
@@ -0,0 +1,48 @@
|
||||
#!/bin/sh
|
||||
|
||||
# rofi theme
|
||||
theme="$HOME/.config/rofi/main_without_icons.rasi"
|
||||
|
||||
get_options() {
|
||||
echo " Poweroff"
|
||||
echo " Reboot"
|
||||
echo " Hibernate"
|
||||
echo " Lock"
|
||||
echo " Suspend"
|
||||
echo " Log out"
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
# get choice from rofi
|
||||
choice=$( (get_options) | rofi -dmenu -i -fuzzy -p "" -theme "$theme")
|
||||
|
||||
# run the selected command
|
||||
case $choice in
|
||||
' Poweroff')
|
||||
systemctl poweroff
|
||||
;;
|
||||
' Reboot')
|
||||
systemctl reboot
|
||||
;;
|
||||
' Hibernate')
|
||||
systemctl hibernate
|
||||
;;
|
||||
' Lock')
|
||||
lock
|
||||
;;
|
||||
' Suspend')
|
||||
systemctl suspend
|
||||
;;
|
||||
' Log out')
|
||||
i3-msg exit
|
||||
;;
|
||||
esac
|
||||
|
||||
# done
|
||||
set -e
|
||||
}
|
||||
|
||||
main &
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user