Sway : Extra notes for keyd issue.

This commit is contained in:
Dmitry Voronin 2024-05-08 23:42:54 +03:00
parent 702e57dba3
commit 0ac1617f7f
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 6 additions and 8 deletions

View file

@ -16,7 +16,7 @@ in {
];
services.gnome.gnome-keyring.enable = lib.mkForce false;
systemd.services.keyd.path = [ script ];
systemd.services.keyd.path = [ script pkgs.sway ];
environment.systemPackages = with pkgs; [
gnome.adwaita-icon-theme # GTK icons.
grim slurp # Screenshot.

View file

@ -1,5 +1,6 @@
{ pkgs, lib, ... }: {
environment.systemPackages = with pkgs; [ keyd ];
services.keyd = {
enable = true;
keyboards.default = {
@ -45,11 +46,12 @@
};
layer_system = {
f = "command(swayscript montoggle)";
c = "command(loginctl kill-user voronind)";
l = "command(powerlimit toggle)";
# m = "command(swayscript montoggle)";
m = "command(swayscript montoggle)";
p = "command(powersave toggle)";
# v = "command(swayscript vrrtoggle)";
v = "command(swayscript vrrtoggle)";
x = "command(systemctl poweroff -i)";
z = "command(systemctl suspend -i)";
};
@ -65,6 +67,6 @@
# HACK: Workaround for powersave/powerlimit/swayscript scripts.
systemd.services.keyd.serviceConfig.ProtectKernelTunables = lib.mkForce false;
systemd.services.keyd.serviceConfig.ProtectHome = lib.mkForce false;
# systemd.services.keyd.serviceConfig.ProtectHome = lib.mkForce false;
# systemd.services.keyd.environment.KEYD_DEBUG = "1";
}

View file

@ -10,10 +10,6 @@
for socket in $(_sway_find_sockets); do
SWAYSOCK="''${socket}" ''${1}
done
echo FUCKME | systemd-cat
ls /run/user/ | systemd-cat
ls /run/user/1000 | systemd-cat
}
'';
}