I need to switch Rofi with Wofi or better. Added wlogout.

This commit is contained in:
uzy lol 2024-12-27 23:01:58 -08:00
parent a184270677
commit aaa70ddf69
6 changed files with 95 additions and 52 deletions

View File

@ -10,6 +10,7 @@
./network-manager.nix ./network-manager.nix
./rofi.nix ./rofi.nix
./cliphist.nix ./cliphist.nix
./wlogout.nix
]; ];
programs.kitty.enable = true; programs.kitty.enable = true;
@ -61,11 +62,11 @@
]; ];
bindel = [ bindel = [
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+" ",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+"
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" ",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" ",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
",XF86MonBrightnessUp, exec, brightnessctl s 10%+" ",XF86MonBrightnessUp, exec, brightnessctl s 2%+"
",XF86MonBrightnessDown, exec, brightnessctl s 10%-" ",XF86MonBrightnessDown, exec, brightnessctl s 2%-"
]; ];
input = { input = {
@ -79,7 +80,6 @@
}; };
decoration = { decoration = {
}; };
}; };

43
home/modules/wlogout.nix Normal file
View File

@ -0,0 +1,43 @@
{
programs.wlogout = {
enable = true;
layout = [
{
label = "lock";
action = "loginctl lock-session";
text = "Lock";
keybind = "l";
}
{
label = "hibernate";
action = "systemctl hibernate";
text = "Hibernate";
keybind = "h";
}
{
label = "logout";
action = "loginctl terminate-user $USER";
text = "Logout";
keybind = "e";
}
{
label = "shutdown";
action = "systemctl poweroff";
text = "Shutdown";
keybind = "s";
}
{
label = "suspend";
action = "systemctl suspend";
text = "Suspend";
keybind = "u";
}
{
label = "reboot";
action = "systemctl reboot";
text = "Reboot";
keybind = "r";
}
];
};
}