configure inputs in sway
This commit is contained in:
parent
3173e5efa4
commit
3d02938194
1 changed files with 7 additions and 25 deletions
|
|
@ -28,32 +28,14 @@ in {
|
|||
config = {
|
||||
inherit modifier;
|
||||
bars = [];
|
||||
input = {
|
||||
"*" = {
|
||||
xkb_layout = "gb";
|
||||
xkb_options = "esperanto:qwerty,lv3:ralt_switch";
|
||||
};
|
||||
"type:touchpad".natural_scroll = "enabled";
|
||||
};
|
||||
};
|
||||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
systemdTarget = "graphical-session.target";
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "${pkgs.swaylock-effects}/bin/swaylock";
|
||||
}
|
||||
{
|
||||
event = "lock";
|
||||
command = "${pkgs.swaylock-effects}/bin/swaylock";
|
||||
}
|
||||
];
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 300;
|
||||
command = "${pkgs.swaylock-effects}/bin/swaylock -f";
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
command = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.mako.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue