Compare commits
4 commits
0f64cf7137
...
1e65b6da57
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e65b6da57 | ||
|
|
e7add39b93 | ||
|
|
5b81e86c5b | ||
|
|
11d2d51544 |
5 changed files with 41 additions and 10 deletions
|
|
@ -1,13 +1,7 @@
|
||||||
general {
|
general {
|
||||||
# Define the lock command for hypridle
|
inhibit_sleep = 3
|
||||||
# This is used whenever hypridle or listeners need to lock the screen
|
lock_cmd = pidof hyprlock || ~/.config/hypr/scripts/lock.sh
|
||||||
lock_cmd = pidof hyprlock || hyprlock
|
before_sleep_cmd = loginctl lock-session
|
||||||
|
|
||||||
# Runs before system suspend (safety net if you manually suspend)
|
|
||||||
# On a desktop, you can remove this if you never suspend manually
|
|
||||||
before_sleep_cmd = ~/.config/hypr/scripts/lock.sh
|
|
||||||
|
|
||||||
# Restore screen after sleep
|
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on
|
after_sleep_cmd = hyprctl dispatch dpms on
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,15 @@
|
||||||
|
auth {
|
||||||
|
fingerprint {
|
||||||
|
enabled = true
|
||||||
|
ready_message = Scan fingerprint to unlock
|
||||||
|
present_message = Scanning...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
animations {
|
||||||
|
animation = fadeOut, 0
|
||||||
|
}
|
||||||
|
|
||||||
background {
|
background {
|
||||||
path = ~/.config/hypr/wallpapers/Purple.jpg
|
path = ~/.config/hypr/wallpapers/Purple.jpg
|
||||||
blur_passes = 2
|
blur_passes = 2
|
||||||
|
|
|
||||||
8
hypr/scripts/lid-close.sh
Executable file
8
hypr/scripts/lid-close.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
pkill -x dim
|
||||||
|
hyprctl switchxkblayout all 0
|
||||||
|
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
|
||||||
|
hyprlock --no-fade-in &
|
||||||
|
hyprctl dispatch dpms off
|
||||||
|
wait
|
||||||
|
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
hyprctl switchxkblayout all 0
|
hyprctl switchxkblayout all 0
|
||||||
fcitx5-remote -s keyboard-us-dvorak
|
fcitx5-remote -s keyboard-us-dvorak
|
||||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
|
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
|
||||||
hyprlock && wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
hyprlock --no-fade-in && wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
"hyprland/language",
|
"hyprland/language",
|
||||||
"custom/notifications",
|
"custom/notifications",
|
||||||
"custom/idle-inhibit",
|
"custom/idle-inhibit",
|
||||||
|
"battery",
|
||||||
"custom/power"
|
"custom/power"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
@ -114,6 +115,22 @@
|
||||||
"format": " ⏻ ",
|
"format": " ⏻ ",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click": "wlogout --protocol layer-shell"
|
"on-click": "wlogout --protocol layer-shell"
|
||||||
|
},
|
||||||
|
|
||||||
|
"battery": {
|
||||||
|
"interval": 60,
|
||||||
|
"states": {
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"on-discharging-warning": "notify-send -u normal 'Low Battery'",
|
||||||
|
"on-discharging-critical": "notify-send -u critical 'Very Low Battery'",
|
||||||
|
"on-charging-100": "notify-send -u normal 'Battery Full!'"
|
||||||
|
},
|
||||||
|
"format": "{capacity}% {icon}",
|
||||||
|
"format-icons": ["", "", "", "", ""],
|
||||||
|
"max-length": 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue