feat(swaylock): style swaylock with stylix
This commit is contained in:
parent
12686f70c8
commit
cdc79de2bb
4 changed files with 20 additions and 6 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
11
home-manager/wm/swaylock.nix
Normal file
11
home-manager/wm/swaylock.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ignore-empty-password = true;
|
||||
show-failed-attempts = true;
|
||||
daemonize = true;
|
||||
show-keyboard-layout = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue