feat: replace wlogout with tofi

This commit is contained in:
lightly-toasted 2025-08-05 16:31:04 +09:00
parent 4a99766e87
commit 5706fe32cb
4 changed files with 20 additions and 7 deletions

16
home/toast/bin/powermenu.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
choice=$(printf """
󰍃 Logout
⏻ Shutdown
 Reboot
 Suspend
 Hibernate
""" | tofi)
case "$choice" in
"󰍃 Logout") uwsm stop ;;
"⏻ Shutdown") systemctl poweroff ;;
" Reboot") systemctl reboot ;;
" Suspend") systemctl suspend ;;
" Hibernate") systemctl hibernate ;;
esac

View file

@ -10,7 +10,6 @@
./programs/fonts.nix ./programs/fonts.nix
./programs/hyprland.nix ./programs/hyprland.nix
./programs/tofi.nix ./programs/tofi.nix
./programs/wlogout.nix
./programs/zsh.nix ./programs/zsh.nix
./programs/firefox.nix ./programs/firefox.nix
./programs/yazi.nix ./programs/yazi.nix
@ -26,6 +25,9 @@
username = "toast"; username = "toast";
homeDirectory = "/home/toast"; homeDirectory = "/home/toast";
stateVersion = "24.11"; stateVersion = "24.11";
file = {
"bin" = { source = ./bin; recursive = true; };
};
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View file

@ -72,7 +72,7 @@
"$mod, mouse_up, workspace, e-1" "$mod, mouse_up, workspace, e-1"
"$mod SHIFT, S, exec, env HYPRSHOT_DIR=/data/Backup/Screenshots hyprshot -m region" "$mod SHIFT, S, exec, env HYPRSHOT_DIR=/data/Backup/Screenshots hyprshot -m region"
"$mod SHIFT, E, exec, wlogout" "$mod SHIFT, E, exec, ~/bin/powermenu.sh"
]; ];
bindel = [ bindel = [

View file

@ -1,5 +0,0 @@
{
programs.wlogout = {
enable = true;
};
}