add scripts
This commit is contained in:
parent
da6833b55b
commit
a1d7377ca1
17 changed files with 265 additions and 45 deletions
21
.local/scripts/powermenu.fish
Executable file
21
.local/scripts/powermenu.fish
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set input (echo -e 'Suspend\nShutdown\nRestart' | fuzzel --dmenu -l 3 || exit 0)
|
||||
|
||||
set check (echo -e 'Cancel\nProceed' | fuzzel --dmenu -l 2 || exit 0)
|
||||
|
||||
if test $check = "Cancel"
|
||||
exit 0
|
||||
end
|
||||
|
||||
switch $input
|
||||
case Suspend
|
||||
systemctl suspend
|
||||
|
||||
case Shutdown
|
||||
systemctl poweroff
|
||||
|
||||
case Restart
|
||||
systemctl restart
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue