Font and hyprland lock stuff
This commit is contained in:
@ -7,6 +7,9 @@
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
|
||||
# Lockscreen
|
||||
bind = $mainMod, Escape, exec, $lockscreen
|
||||
|
||||
# Screenshot
|
||||
bind = , Print, exec, $screenshot
|
||||
bind = CTRL, Print, exec, $screenshotSelect
|
||||
|
34
.config/hypr/hypridle.conf
Normal file
34
.config/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 = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # 30min
|
||||
on-timeout = systemctl suspend # suspend pc
|
||||
}
|
@ -23,6 +23,7 @@ $browser = firefox
|
||||
$email = thunderbird
|
||||
$screenshot = grim
|
||||
$screenshotSelect = grim -g "$(slurp)"
|
||||
$lockscreen = hyprlock
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
@ -30,7 +31,7 @@ $screenshotSelect = grim -g "$(slurp)"
|
||||
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
exec-once = waybar
|
||||
exec-once = hyprpaper
|
||||
exec-once = hyprpaper & hypridle
|
||||
exec-once = dunst
|
||||
exec-once = [workspace 2 silent] $browser
|
||||
exec-once = [workspace 1 silent] $terminal
|
||||
@ -43,7 +44,6 @@ exec-once = [workspace 1 silent] $terminal
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
#env = ELECTRON_OZONE_PLATFORM_HINT,"wayland"
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
|
106
.config/hypr/hyprlock.conf
Normal file
106
.config/hypr/hyprlock.conf
Normal file
@ -0,0 +1,106 @@
|
||||
# sample hyprlock.conf
|
||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
||||
#
|
||||
# rendered text in all widgets supports pango markup (e.g. <b> or <i> tags)
|
||||
# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks
|
||||
#
|
||||
# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace
|
||||
#
|
||||
# you can get started by copying this config to ~/.config/hypr/hyprlock.conf
|
||||
#
|
||||
|
||||
$font = Monospace
|
||||
$font_dune = Dune Rise
|
||||
|
||||
general {
|
||||
hide_cursor = true
|
||||
}
|
||||
|
||||
auth {
|
||||
fingerprint {
|
||||
enabled = true
|
||||
ready_message = Scan fingerprint to unlock
|
||||
present_message = Scanning...
|
||||
retry_delay = 250 # in milliseconds
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
bezier = linear, 1, 1, 0, 0
|
||||
animation = fadeIn, 1, 2, linear
|
||||
animation = fadeOut, 1, 2, linear
|
||||
animation = inputFieldDots, 1, 2, linear
|
||||
}
|
||||
|
||||
background {
|
||||
monitor =
|
||||
path = ~/wallpapers/dune.jpg
|
||||
blur_passes = 0
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 20%, 5%
|
||||
outline_thickness = 3
|
||||
inner_color = rgba(0, 0, 0, 0.3)
|
||||
|
||||
outer_color = rgba(f26d00ff) rgba(fcd705ff) 45deg
|
||||
check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg
|
||||
fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg
|
||||
|
||||
font_color = rgba(fce4b8ff)
|
||||
fade_on_empty = false
|
||||
rounding = 15
|
||||
|
||||
shadow_size = 8
|
||||
shadow_passes = 2
|
||||
|
||||
font_family = $font
|
||||
placeholder_text = Input password...
|
||||
fail_text = $PAMFAIL
|
||||
|
||||
# uncomment to use a letter instead of a dot to indicate the typed password
|
||||
# dots_text_format = *
|
||||
# dots_size = 0.4
|
||||
dots_spacing = 0.3
|
||||
|
||||
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
|
||||
# hide_input = true
|
||||
|
||||
position = 0, -200
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# TITLE
|
||||
label {
|
||||
monitor =
|
||||
text = Dune-OS
|
||||
font_size = 90
|
||||
font_family = $font_dune
|
||||
|
||||
shadow_size = 10
|
||||
shadow_passes = 3
|
||||
|
||||
#color = rgba(fc9e07ff)
|
||||
|
||||
position = 0, 400
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# TIME
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME
|
||||
font_size = 25
|
||||
font_family = $font
|
||||
|
||||
shadow_size = 5
|
||||
shadow_passes = 2
|
||||
|
||||
position = 0, -300
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
Reference in New Issue
Block a user