Compare commits
3 commits
ffeea5a19b
...
10f6beba2a
Author | SHA1 | Date | |
---|---|---|---|
10f6beba2a | |||
b6337aaa0e | |||
b139fa9449 |
2 changed files with 6 additions and 5 deletions
|
@ -1,18 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
option=$(printf "Sleep\nLogout\nShutdown\nRestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
|
option=$(printf "sleep\nlogout\nshutdown\nrestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
|
||||||
|
|
||||||
if [ "$option" = "Sleep" ];
|
if [ "$option" = "sleep" ];
|
||||||
then
|
then
|
||||||
i3lock-fancy -g -t "System Locked" -f Hack-Regular
|
i3lock-fancy -g -t "System Locked" -f Hack-Regular
|
||||||
systemctl suspend
|
systemctl suspend
|
||||||
elif [ "$option" = "Logout" ];
|
elif [ "$option" = "logout" ];
|
||||||
then
|
then
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
elif [ "$option" = "Shutdown" ];
|
elif [ "$option" = "shutdown" ];
|
||||||
then
|
then
|
||||||
poweroff
|
poweroff
|
||||||
elif [ "$option" = "Restart" ];
|
elif [ "$option" = "restart" ];
|
||||||
then
|
then
|
||||||
reboot
|
reboot
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -115,6 +115,7 @@
|
||||||
gco = "git checkout";
|
gco = "git checkout";
|
||||||
|
|
||||||
s = "swallow";
|
s = "swallow";
|
||||||
|
nrb = "sudo nixos-rebuild switch --flake /home/vylpes/flake#\${HOST}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue