feat: replace my bemenu logout script with wleave.
This commit is contained in:
parent
9a6149e0ae
commit
70c3d70ea3
2 changed files with 36 additions and 10 deletions
|
|
@ -18,6 +18,7 @@
|
|||
wl-clipboard
|
||||
waylock
|
||||
inputs.pyprland.packages.${pkgs.stdenv.hostPlatform.system}.pyprland
|
||||
hyprshutdown
|
||||
];
|
||||
|
||||
# Enable and setup tofi
|
||||
|
|
@ -107,6 +108,40 @@
|
|||
# Disable stylix to add full css, I only need it to add colors
|
||||
stylix.targets.waybar.addCss = false;
|
||||
|
||||
programs.wleave = {
|
||||
enable = true;
|
||||
settings = {
|
||||
margin = 200;
|
||||
buttons-per-row = "1/1";
|
||||
delay-command-ms = 100;
|
||||
close-on-lost-focus = true;
|
||||
show-keybinds = true;
|
||||
buttons = [
|
||||
{
|
||||
label = "logout";
|
||||
action = "hyprshutdown";
|
||||
text = "Logout";
|
||||
keybind = "e";
|
||||
icon = "${pkgs.wleave}/share/wleave/icons/logout.svg";
|
||||
}
|
||||
{
|
||||
label = "shutdown";
|
||||
action = "systemctl poweroff";
|
||||
text = "Shutdown";
|
||||
keybind = "s";
|
||||
icon = "${pkgs.wleave}/share/wleave/icons/shutdown.svg";
|
||||
}
|
||||
{
|
||||
label = "reboot";
|
||||
action = "systemctl reboot";
|
||||
text = "Reboot";
|
||||
keybind = "r";
|
||||
icon = "${pkgs.wleave}/share/wleave/icons/reboot.svg";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Enable and install waybar
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue