Sway : Add Z toggles.

This commit is contained in:
Dmitry Voronin 2024-04-10 11:04:06 +03:00
parent 2530c2ddf3
commit 6e25402f04
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,7 @@
./module/Sound.nix
./module/Tiling.nix
./module/Workspace.nix
./module/Session.nix
];
};
in {

View file

@ -0,0 +1,6 @@
{ key, style, ... }: {
text = ''
bindsym $mod+${key.action.wait} exec '_twice 1 swaylock -F -c 000000 -k --font "${style.font.serif.name}" --font-size ${toString(style.font.size.desktop)}'
bindsym $mod+Shift+${key.action.exit} exec '_twice 1 systemctl poweroff -i'
'';
}

View file

@ -35,6 +35,7 @@
positive-g = config.lib.stylix.colors.base0B-rgb-g;
positive-r = config.lib.stylix.colors.base0B-rgb-r;
};
font = {
emoji.name = config.stylix.fonts.emoji.name;
monospace.name = config.stylix.fonts.monospace.name;
@ -47,6 +48,7 @@
desktop = config.stylix.fonts.sizes.desktop;
};
};
opacity = {
application = config.stylix.opacity.applications;
desktop = config.stylix.opacity.desktop;