feat(swaylock): style swaylock with stylix

This commit is contained in:
Khaïs COLIN 2024-08-09 12:43:33 +02:00
parent 12686f70c8
commit cdc79de2bb
4 changed files with 20 additions and 6 deletions

View file

@ -42,10 +42,13 @@
inherit pkgs;
modules = [
./home.nix
./wm/river.nix
./wm/waybar.nix
stylix.homeManagerModules.stylix
./stylix.nix
./wm/river.nix
./wm/swaylock.nix
./wm/waybar.nix
./wm/wluma.nix
];
extraSpecialArgs = {

View file

@ -21,7 +21,7 @@ in {
# https://superuser.com/a/1803183
wl-clipboard
# wm river utils
swaylock playerctl brightnessctl
playerctl brightnessctl
river-shifttags.packages.${system}.default
# dev tools
gitu

View file

@ -1,5 +1,5 @@
let
swaylock-command = "swaylock --ignore-empty-password --show-failed-attempts --daemonize --show-keyboard-layout --color 212733";
lock-command = "swaylock";
in
{
wayland.windowManager.river = {
@ -17,8 +17,8 @@ in
map = {
normal = {
# screen lock & suspend
"Control+Alt L" = "spawn '${swaylock-command}'";
"Control+Alt+Shift L" = "spawn '${swaylock-command} & systemctl suspend'";
"Control+Alt L" = "spawn '${lock-command}'";
"Control+Alt+Shift L" = "spawn '${lock-command} & systemctl suspend'";
# terminal
"Super Return" = "spawn kitty";
# frequent programs

View file

@ -0,0 +1,11 @@
{
programs.swaylock = {
enable = true;
settings = {
ignore-empty-password = true;
show-failed-attempts = true;
daemonize = true;
show-keyboard-layout = true;
};
};
}