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; inherit pkgs;
modules = [ modules = [
./home.nix ./home.nix
./wm/river.nix
./wm/waybar.nix
stylix.homeManagerModules.stylix stylix.homeManagerModules.stylix
./stylix.nix ./stylix.nix
./wm/river.nix
./wm/swaylock.nix
./wm/waybar.nix
./wm/wluma.nix ./wm/wluma.nix
]; ];
extraSpecialArgs = { extraSpecialArgs = {

View file

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

View file

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