configure inputs in sway
This commit is contained in:
parent
3173e5efa4
commit
3d02938194
1 changed files with 7 additions and 25 deletions
|
|
@ -28,34 +28,16 @@ in {
|
||||||
config = {
|
config = {
|
||||||
inherit modifier;
|
inherit modifier;
|
||||||
bars = [];
|
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;
|
services.mako.enable = true;
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue