Changed wlogout to tui
This commit is contained in:
parent
56b6b91e57
commit
b532a2b8f4
12 changed files with 24 additions and 166 deletions
22
themes/base/.config/fish/functions/powermenu.fish
Normal file
22
themes/base/.config/fish/functions/powermenu.fish
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
function powermenu
|
||||
set choice (printf "Logout\nReboot\nShutdown\nLock" | fzf \
|
||||
--prompt=" power " \
|
||||
--no-info \
|
||||
--no-sort \
|
||||
--border=rounded \
|
||||
--border-label=" system " \
|
||||
--color="bg:#141514,bg+:#1e1f1e,fg:#f4decd,fg+:#f4decd,hl:#ef934d,hl+:#ef934d,prompt:#ef934d,pointer:#ef934d,border:#2a2b2a,label:#ef934d" \
|
||||
--pointer=">" \
|
||||
--margin=2,4)
|
||||
|
||||
switch $choice
|
||||
case Logout
|
||||
swaymsg exit
|
||||
case Reboot
|
||||
systemctl reboot
|
||||
case Shutdown
|
||||
systemctl poweroff
|
||||
case Lock
|
||||
swaylock -f -c 141514
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue