Compare commits

...

8 commits

Author SHA1 Message Date
f8c7220503 Suspend 2024-11-28 21:40:48 +00:00
7507936818 Fix syntax errors 2024-11-28 21:39:47 +00:00
ecb37e9a36 Use home 2024-11-28 21:37:32 +00:00
4ffb2792f9 Use Delete 2024-11-28 21:35:53 +00:00
b890478dcd Use del 2024-11-28 21:34:46 +00:00
ddfe7e6362 Use control+alt+delete 2024-11-28 21:34:10 +00:00
bdda60a48e delete to del 2024-11-28 21:33:23 +00:00
f23f7983d9 Setup power rofi menu 2024-11-28 21:32:32 +00:00
3 changed files with 20 additions and 0 deletions

View file

@ -37,6 +37,7 @@ in {
file = {
"/home/${username}/.scripts/audio/get-sink-name.sh".source = ./home/scripts/audio/get-sink-name.sh;
"/home/${username}/.cache/scripts/get-sink-name.txt".source = ./home/cache/audio/get-sink-name.txt;
"/home/${username}/.cache/scripts/power.sh".source = ./home/scripts/system/power.sh;
};
packages = with pkgs; [

View file

@ -0,0 +1,18 @@
#!/bin/bash
option=$(printf "Sleep\nLogout\nShutdown\nRestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
if [ "$option" = "Sleep" ];
then
i3lock-fancy -g -t "System Locked" -f Hack-Regular
systemctl suspend
elif [ "$option" = "Logout" ];
then
i3-msg exit
elif [ "$option" = "Shutdown" ];
then
poweroff
elif [ "$option" = "Restart" ];
then
reboot
fi

View file

@ -191,6 +191,7 @@ bindsym $mod+Mod1+r reload
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
bindsym Control+Mod1+Delete exec "bash /home/vylpes/.cache/scripts/power.sh"
# resize window (you can also use the mouse for that)
mode "resize" {