mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 11:35:41 +00:00
feat: replace wlogout with tofi
This commit is contained in:
parent
4a99766e87
commit
5706fe32cb
4 changed files with 20 additions and 7 deletions
16
home/toast/bin/powermenu.sh
Executable file
16
home/toast/bin/powermenu.sh
Executable 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
|
|
@ -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;
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
programs.wlogout = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue