mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 01:24:05 -05:00
upower
This commit is contained in:
parent
d3622881ea
commit
ff064d6d56
4 changed files with 12 additions and 10 deletions
|
|
@ -27,11 +27,8 @@ in
|
|||
|
||||
home.packages = with pkgs; [
|
||||
foot
|
||||
polkit_gnome
|
||||
swayidle
|
||||
sway-audio-idle-inhibit
|
||||
swaylock-effects
|
||||
hyprlock
|
||||
wljoywake
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
5
hosts/common/optional/battery.nix
Normal file
5
hosts/common/optional/battery.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.upower = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue