I need to switch Rofi with Wofi or better. Added wlogout.
This commit is contained in:
parent
a184270677
commit
aaa70ddf69
@ -10,6 +10,7 @@
|
||||
./network-manager.nix
|
||||
./rofi.nix
|
||||
./cliphist.nix
|
||||
./wlogout.nix
|
||||
];
|
||||
|
||||
programs.kitty.enable = true;
|
||||
@ -61,11 +62,11 @@
|
||||
];
|
||||
|
||||
bindel = [
|
||||
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+"
|
||||
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
|
||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
",XF86MonBrightnessUp, exec, brightnessctl s 10%+"
|
||||
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
||||
",XF86MonBrightnessUp, exec, brightnessctl s 2%+"
|
||||
",XF86MonBrightnessDown, exec, brightnessctl s 2%-"
|
||||
];
|
||||
|
||||
input = {
|
||||
@ -79,7 +80,6 @@
|
||||
};
|
||||
|
||||
decoration = {
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
43
home/modules/wlogout.nix
Normal file
43
home/modules/wlogout.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user