This commit is contained in:
TheWanderingCrow 2025-12-31 12:20:24 -05:00
parent d3622881ea
commit ff064d6d56
4 changed files with 12 additions and 10 deletions

View file

@ -27,11 +27,8 @@ in
home.packages = with pkgs; [
foot
polkit_gnome
swayidle
sway-audio-idle-inhibit
swaylock-effects
hyprlock
wljoywake
];

View file

@ -5,8 +5,6 @@
set $mod Mod4
set $term foot
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # FIXME: Look at dank polkit
#######
# DMS #
#######
@ -57,14 +55,15 @@ exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP WA
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
###############
# IDLE CONFIG # # FIXME: Switch to DankGreeter
###############
####################
# IDLE/LOCK CONFIG #
####################
exec swayidle -w timeout 300 'hyprlock'
set $lock 'dms ipc call lock lock'
exec swayidle -w timeout 300 $lock
exec wljoywake # prevent screen sleep on joystick input
set $lock 'hyprlock'
bindswitch --reload --locked lid:on exec $lock
for_window [app_id="firefox"] inhibit_idle fullscreen
bindsym $mod+Shift+z exec $lock

View file

@ -0,0 +1,5 @@
{
services.upower = {
enable = true;
};
}

View file

@ -35,6 +35,7 @@
# Optional configs
"hosts/common/optional/audio.nix"
"hosts/common/optional/battery.nix"
"hosts/common/optional/bluetooth.nix"
"hosts/common/optional/keyd.nix"
"hosts/common/optional/pentesting.nix"