configure inputs in sway

This commit is contained in:
Tristan 2024-01-22 15:38:50 +00:00
parent 3173e5efa4
commit 3d02938194

View file

@ -28,34 +28,16 @@ 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;
programs.waybar = {