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;
|
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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
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