Sway : Add Z toggles.
This commit is contained in:
parent
2530c2ddf3
commit
6e25402f04
|
@ -22,6 +22,7 @@
|
|||
./module/Sound.nix
|
||||
./module/Tiling.nix
|
||||
./module/Workspace.nix
|
||||
./module/Session.nix
|
||||
];
|
||||
};
|
||||
in {
|
||||
|
|
6
module/sway/module/Session.nix
Normal file
6
module/sway/module/Session.nix
Normal 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'
|
||||
'';
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue