Sway : Add Z toggles.
This commit is contained in:
parent
2530c2ddf3
commit
6e25402f04
|
@ -22,6 +22,7 @@
|
||||||
./module/Sound.nix
|
./module/Sound.nix
|
||||||
./module/Tiling.nix
|
./module/Tiling.nix
|
||||||
./module/Workspace.nix
|
./module/Workspace.nix
|
||||||
|
./module/Session.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
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-g = config.lib.stylix.colors.base0B-rgb-g;
|
||||||
positive-r = config.lib.stylix.colors.base0B-rgb-r;
|
positive-r = config.lib.stylix.colors.base0B-rgb-r;
|
||||||
};
|
};
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
emoji.name = config.stylix.fonts.emoji.name;
|
emoji.name = config.stylix.fonts.emoji.name;
|
||||||
monospace.name = config.stylix.fonts.monospace.name;
|
monospace.name = config.stylix.fonts.monospace.name;
|
||||||
|
@ -47,6 +48,7 @@
|
||||||
desktop = config.stylix.fonts.sizes.desktop;
|
desktop = config.stylix.fonts.sizes.desktop;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
opacity = {
|
opacity = {
|
||||||
application = config.stylix.opacity.applications;
|
application = config.stylix.opacity.applications;
|
||||||
desktop = config.stylix.opacity.desktop;
|
desktop = config.stylix.opacity.desktop;
|
||||||
|
|
Loading…
Reference in a new issue