Compare commits
2 Commits
f0afe4c45a
...
2671dfefd2
| Author | SHA1 | Date | |
|---|---|---|---|
| 2671dfefd2 | |||
| 2e6802f327 |
27
.config/hypr/hypridle.conf
Normal file
27
.config/hypr/hypridle.conf
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# ~/.config/hypr/hypridle.conf
|
||||||
|
|
||||||
|
# Lock after 5 minutes (300 seconds)
|
||||||
|
listener {
|
||||||
|
timeout = 300
|
||||||
|
on-timeout = hyprlock
|
||||||
|
on-resume = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
# Turn off monitors after 10 minutes
|
||||||
|
listener {
|
||||||
|
timeout = 600
|
||||||
|
on-timeout = hyprctl dispatch dpms off
|
||||||
|
on-resume = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
# Suspend system after 20 minutes
|
||||||
|
listener {
|
||||||
|
timeout = 1200
|
||||||
|
on-timeout = systemctl suspend
|
||||||
|
}
|
||||||
|
|
||||||
|
# Optional: notification before locking (requires notify-send)
|
||||||
|
listener {
|
||||||
|
timeout = 270
|
||||||
|
on-timeout = notify-send "Locking soon..." "Screen will lock in 30 seconds."
|
||||||
|
}
|
||||||
@@ -26,6 +26,7 @@ $menu = ~/.config/rofi/launchers/type-7/launcher.sh
|
|||||||
# exec-once = nm-applet &
|
# exec-once = nm-applet &
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
# exec-once = waybar & hyprpaper & firefox
|
||||||
exec-once = waybar &
|
exec-once = waybar &
|
||||||
|
exec-once = hypridle &
|
||||||
exec = hyprpaper
|
exec = hyprpaper
|
||||||
exec-once = wlsunset -l 47.6 -L -122.3 -t 3500 -T 6000
|
exec-once = wlsunset -l 47.6 -L -122.3 -t 3500 -T 6000
|
||||||
exec-once = /usr/bin/udiskie &
|
exec-once = /usr/bin/udiskie &
|
||||||
@@ -223,6 +224,9 @@ bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
|
|||||||
bind = $mainMod, Space, togglespecialworkspace, magic
|
bind = $mainMod, Space, togglespecialworkspace, magic
|
||||||
bind = $mainMod SHIFT, Space, movetoworkspacesilent, special:magic
|
bind = $mainMod SHIFT, Space, movetoworkspacesilent, special:magic
|
||||||
|
|
||||||
|
# Lock
|
||||||
|
bind = $mainMod, ESCAPE, exec, hyprlock
|
||||||
|
|
||||||
# Control windows
|
# Control windows
|
||||||
bind = $mainMod, equal, splitratio, 0.05 # make focused split wider
|
bind = $mainMod, equal, splitratio, 0.05 # make focused split wider
|
||||||
bind = $mainMod, minus, splitratio, -0.05 # make focused split narrower
|
bind = $mainMod, minus, splitratio, -0.05 # make focused split narrower
|
||||||
|
|||||||
25
.config/hypr/hyprlock.conf
Normal file
25
.config/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
background {
|
||||||
|
monitor =
|
||||||
|
path = screenshot
|
||||||
|
blur_passes = 3
|
||||||
|
brightness = 0.8
|
||||||
|
}
|
||||||
|
|
||||||
|
input-field {
|
||||||
|
monitor =
|
||||||
|
size = 300, 50
|
||||||
|
outline_thickness = 2
|
||||||
|
position = 0, -100
|
||||||
|
rounding = 5
|
||||||
|
inner_color = rgba(0, 0, 0, 0.5)
|
||||||
|
outer_color = rgba(255, 255, 255, 0.2)
|
||||||
|
font_color = rgba(255,255,255,1)
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = Welcome back, $USER
|
||||||
|
position = 0, 150
|
||||||
|
font_size = 22
|
||||||
|
color = rgba(255,255,255,0.8)
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"label" : "lock",
|
"label" : "lock",
|
||||||
"action" : "swaylock",
|
"action" : "hyprlock",
|
||||||
"text" : "Lock",
|
"text" : "Lock",
|
||||||
"keybind" : "l"
|
"keybind" : "l"
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"label" : "suspend",
|
"label" : "suspend",
|
||||||
"action" : "swaylock -f && systemctl suspend",
|
"action" : "systemctl suspend",
|
||||||
"text" : "Suspend",
|
"text" : "Suspend",
|
||||||
"keybind" : "u"
|
"keybind" : "u"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user