add: hypridle & hyprlock default config, it must be placed in ~/.config/hypr
This commit is contained in:
34
configs/niri_l/hypr/hypridle.conf
Normal file
34
configs/niri_l/hypr/hypridle.conf
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
general {
|
||||||
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 150 # 2.5min.
|
||||||
|
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||||
|
on-resume = brightnessctl -r # monitor backlight restore.
|
||||||
|
}
|
||||||
|
|
||||||
|
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
||||||
|
listener {
|
||||||
|
timeout = 150 # 2.5min.
|
||||||
|
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||||
|
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 300 # 5min
|
||||||
|
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 330 # 5.5min
|
||||||
|
on-timeout = niri msg action power-off-monitors # screen off when timeout has passed
|
||||||
|
on-resume = niri msg action power-on-monitors && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 1800 # 30min
|
||||||
|
on-timeout = systemctl suspend # suspend pc
|
||||||
|
}
|
||||||
133
configs/niri_l/hypr/hyprlock.conf
Normal file
133
configs/niri_l/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,133 @@
|
|||||||
|
# BACKGROUND
|
||||||
|
background {
|
||||||
|
monitor =
|
||||||
|
path = ~/.config/hypr/hyprlock.png
|
||||||
|
blur_passes = 0
|
||||||
|
contrast = 0.8916
|
||||||
|
brightness = 0.8172
|
||||||
|
vibrancy = 0.1696
|
||||||
|
vibrancy_darkness = 0.0
|
||||||
|
}
|
||||||
|
|
||||||
|
# GENERAL
|
||||||
|
general {
|
||||||
|
no_fade_in = false
|
||||||
|
grace = 0
|
||||||
|
disable_loading_bar = false
|
||||||
|
}
|
||||||
|
|
||||||
|
# GREETINGS
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = Welcome!
|
||||||
|
color = rgba(216, 222, 233, .75)
|
||||||
|
font_size = 55
|
||||||
|
font_family = SF Pro Display Bold
|
||||||
|
position = 150, 320
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# Time
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "<span>$(date +"%I:%M")</span>"
|
||||||
|
color = rgba(216, 222, 233, .75)
|
||||||
|
font_size = 40
|
||||||
|
font_family = SF Pro Display Bold
|
||||||
|
position = 240, 240
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# Day-Month-Date
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo -e "$(date +"%A, %B %d")"
|
||||||
|
color = rgba(216, 222, 233, .75)
|
||||||
|
font_size = 19
|
||||||
|
font_family = SF Pro Display Bold
|
||||||
|
position = 217, 175
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# Profie-Photo
|
||||||
|
image {
|
||||||
|
monitor =
|
||||||
|
path = ~/.config/hypr/vivek.png
|
||||||
|
border_size = 2
|
||||||
|
border_color = rgba(255, 255, 255, .75)
|
||||||
|
size = 95
|
||||||
|
rounding = -1
|
||||||
|
rotate = 0
|
||||||
|
reload_time = -1
|
||||||
|
reload_cmd =
|
||||||
|
position = 270, 25
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# USER-BOX
|
||||||
|
shape {
|
||||||
|
monitor =
|
||||||
|
size = 320, 55
|
||||||
|
color = rgba(255, 255, 255, .1)
|
||||||
|
rounding = -1
|
||||||
|
border_size = 0
|
||||||
|
border_color = rgba(255, 255, 255, 1)
|
||||||
|
rotate = 0
|
||||||
|
xray = false # if true, make a "hole" in the background (rectangle of specified size, no rotation)
|
||||||
|
|
||||||
|
position = 160, -140
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# USER
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = $USER
|
||||||
|
color = rgba(216, 222, 233, 0.80)
|
||||||
|
outline_thickness = 0
|
||||||
|
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||||
|
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
|
||||||
|
dots_center = true
|
||||||
|
font_size = 16
|
||||||
|
font_family = SF Pro Display Bold
|
||||||
|
position = 275, -140
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# INPUT FIELD
|
||||||
|
input-field {
|
||||||
|
monitor =
|
||||||
|
size = 320, 55
|
||||||
|
outline_thickness = 0
|
||||||
|
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||||
|
dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0
|
||||||
|
dots_center = true
|
||||||
|
outer_color = rgba(255, 255, 255, 0)
|
||||||
|
inner_color = rgba(255, 255, 255, 0.1)
|
||||||
|
font_color = rgb(200, 200, 200)
|
||||||
|
fade_on_empty = false
|
||||||
|
font_family = SF Pro Display Bold
|
||||||
|
placeholder_text = <i><span foreground="##ffffff99">🔒 Enter Pass</span></i>
|
||||||
|
hide_input = false
|
||||||
|
position = 160, -220
|
||||||
|
halign = left
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# CURRENT SONG
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(~/.config/hypr/Scripts/songdetail.sh)"
|
||||||
|
color = rgba(255, 255, 255, 0.65)
|
||||||
|
font_size = 14
|
||||||
|
font_family = JetBrains Mono Nerd, SF Pro Display Bold
|
||||||
|
position = 210, 45
|
||||||
|
halign = left
|
||||||
|
valign = bottom
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user