Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Configs/.config/hypr/hypridle.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
$SCREENLOCK = hyprlock # If you prefer to use swaylock: 'swaylock -f'
# $SCREENLOCK = swaylock -f

general {
lock_cmd = $SCREENLOCK
unlock_cmd = #notify-send "unlock!" # same as above, but unlock
before_sleep_cmd = $SCREENLOCK # command ran before sleep
after_sleep_cmd = # notify-send "Awake!" # command ran after sleep
ignore_dbus_inhibit = 0
}

# Dims the display
listener {
timeout = 120
on-timeout = brightnessctl -s && brightnessctl s 1%
on-resume = brightnessctl -r
}

# Lock it first before dpms off so that screen won't show for a moment after wakeup.
listener {
timeout = 300
on-timeout = $SCREENLOCK
}

# DPMS off
listener {
timeout = 420
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}

# Suspend
listener {
timeout = 600
on-timeout = systemctl suspend
}

# Source anything from this path if you want to add your own listner
source = ~/.config/hypridle/*
7 changes: 4 additions & 3 deletions Configs/.config/hypr/userprefs.t2
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ bind = $mainMod+Shift, G, exec, pkill -x rofi || $scrPath/gamelauncher.sh # laun
# β–ˆβ–‘β–‘β€ƒβ–„β–€β–ˆβ€ƒβ–ˆβ–‘β–ˆβ€ƒβ–ˆβ–„β–‘β–ˆβ€ƒβ–ˆβ–€β–€β€ƒβ–ˆβ–‘β–ˆ
# β–ˆβ–„β–„β€ƒβ–ˆβ–€β–ˆβ€ƒβ–ˆβ–„β–ˆβ€ƒβ–ˆβ–‘β–€β–ˆβ€ƒβ–ˆβ–„β–„β€ƒβ–ˆβ–€β–ˆ

# exec-once = swayidle -w timeout 600 'swaylock' timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' # lock after 10 mins, sleep after 15 mins // install swayidle
# exec-once = swayidle -w timeout 1200 'swaylock; hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' timeout 1800 'systemctl suspend' # lock and sleep after 20 mins, suspend after 30 mins // install swayidle
# exec-once = libinput-gestures // install libinput-gestures
# exec-once = swayidle -w timeout 600 'swaylock' timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' # lock after 10 mins, turn off monitor after 15 mins // install swayidle
#exec-once = swayidle -w timeout 1200 'swaylock; hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' timeout 1800 'systemctl suspend' # lock & turn off monitor after 20 mins, suspend after 30 mins // install swayidle
#exec-once = libinput-gestures
#exec-once = hypridle


# β–ˆβ–‘β–ˆβ–‘β–ˆβ€ƒβ–ˆβ€ƒβ–ˆβ–„β–‘β–ˆβ€ƒβ–ˆβ–€β–„β€ƒβ–ˆβ–€β–ˆβ€ƒβ–ˆβ–‘β–ˆβ–‘β–ˆβ€ƒ β€ƒβ–ˆβ–€β–ˆβ€ƒβ–ˆβ–‘β–ˆβ€ƒβ–ˆβ–‘β–‘β€ƒβ–ˆβ–€β–€β€ƒβ–ˆβ–€
Expand Down
1 change: 1 addition & 0 deletions Scripts/restore_cfg.lst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Y|Y|${HOME}/.config/hyde|wallbash|hyprland
Y|Y|${HOME}/.config/hypr|animations.conf hyprland.conf windowrules.conf themes|hyprland
N|Y|${HOME}/.config/hypr|keybindings.conf monitors.conf userprefs.conf|hyprland
N|Y|${HOME}/.config/hypr|nvidia.conf|hyprland nvidia-utils
N|Y|${HOME}/.config/hypr|hypridle.conf|hypridle
Y|Y|${HOME}/.local/share|bin|hyprland
Y|Y|${HOME}/.config|kitty|kitty
Y|Y|${HOME}/.config|Kvantum|kvantum
Expand Down