Skip to content

Commit

Permalink
Clean up swaylock configuration
Browse files Browse the repository at this point in the history
In the process of figuring out what happened. Turns out it's a breaking
change in pam management in nixos unstable. Tracking issue: NixOS/nixpkgs#157112
  • Loading branch information
tomhoule committed Jan 30, 2022
1 parent ba061f0 commit 4ddc7dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hm/tom/modules/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ output * bg ~/.config/sway/wallpaper fill
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 300 'swaylock' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
before-sleep 'swaylock'

### Input configuration
#
Expand Down Expand Up @@ -106,7 +106,7 @@ seat seat0 xcursor_theme whiteglass
bindsym XF86MonBrightnessDown exec brillo -U 10

# Lock
bindsym $mod+Ctrl+l exec swaylock -c 010100 -i ~/.config/sway/wallpaper
bindsym $mod+Ctrl+l exec swaylock

# Screenshots
bindsym Print exec grim -t png -g "$(slurp)" ~/Pictures/$(date +%Y-%m-%d_%H-%m-%S).png;
Expand Down
1 change: 1 addition & 0 deletions hm/tom/modules/sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ in
'';

"waybar".source = config.localHome.waybarConfigDir;
"swaylock/config".source = ./swaylock-config;
};
}
5 changes: 5 additions & 0 deletions hm/tom/modules/sway/swaylock-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
color=010100
image=~/.config/sway/wallpaper
daemonize
show-keyboard-layout
indicator-caps-lock

0 comments on commit 4ddc7dc

Please sign in to comment.