mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: use prettier lockscreen
This commit is contained in:
parent
b9dd4618bb
commit
f2c95fd046
1 changed files with 77 additions and 61 deletions
|
|
@ -6,85 +6,101 @@
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
source = $HOME/nixos-config/modules/home/hyprland/mocha.conf
|
source = $HOME/nixos-config/modules/home/hyprland/mocha.conf
|
||||||
|
|
||||||
$accent = $mauve
|
$accent = 0xb3$tealAlpha
|
||||||
$accentAlpha = $mauveAlpha
|
$accentAlpha = $tealAlpha
|
||||||
$font = JetBrainsMono Nerd Font
|
$font = JetBrainsMono Nerd Font
|
||||||
|
|
||||||
# GENERAL
|
# GENERAL
|
||||||
general {
|
general {
|
||||||
disable_loading_bar = true
|
disable_loading_bar = true
|
||||||
hide_cursor = true
|
hide_cursor = true
|
||||||
}
|
}
|
||||||
|
|
||||||
# BACKGROUND
|
# BACKGROUND
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/nixos-config/modules/home/hyprland/lockscreen.png
|
path = ~/Pictures/wallpapers/others/street-by-ahwx.jpg
|
||||||
blur_passes = 0
|
blur_passes = 2
|
||||||
color = $base
|
color = $base
|
||||||
}
|
}
|
||||||
|
|
||||||
# TIME
|
# TIME
|
||||||
#label {
|
label {
|
||||||
# monitor =
|
monitor =
|
||||||
# text = cmd[update:30000] echo "$(date +"%R")"
|
text = cmd[update:30000] echo "$(date +"%R")"
|
||||||
# color = $text
|
color = $text
|
||||||
# font_size = 90
|
font_size = 90
|
||||||
# font_family = $font
|
font_family = $font
|
||||||
# position = -30, 0
|
position = -130, -100
|
||||||
# halign = right
|
halign = right
|
||||||
# valign = top
|
valign = top
|
||||||
#}
|
shadow_passes = 2
|
||||||
|
}
|
||||||
|
|
||||||
# DATE
|
# DATE
|
||||||
#label {
|
label {
|
||||||
# monitor =
|
monitor =
|
||||||
# text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
|
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
|
||||||
# color = $text
|
color = $text
|
||||||
# font_size = 25
|
font_size = 25
|
||||||
# font_family = $font
|
font_family = $font
|
||||||
# position = -30, -150
|
position = -130, -250
|
||||||
# halign = right
|
halign = right
|
||||||
# valign = top
|
valign = top
|
||||||
#}
|
shadow_passes = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
# KEYBOARD LAYOUT
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = $LAYOUT
|
||||||
|
color = $text
|
||||||
|
font_size = 20
|
||||||
|
font_family = $font
|
||||||
|
rotate = 0 # degrees, counter-clockwise
|
||||||
|
|
||||||
|
position = -130, -310
|
||||||
|
halign = right
|
||||||
|
valign = top
|
||||||
|
shadow_passes = 2
|
||||||
|
}
|
||||||
|
|
||||||
# USER AVATAR
|
# USER AVATAR
|
||||||
|
image {
|
||||||
|
monitor =
|
||||||
|
path = $HOME/.face
|
||||||
|
size = 350
|
||||||
|
border_color = $accent
|
||||||
|
rounding = -1
|
||||||
|
|
||||||
#image {
|
position = 0, 75
|
||||||
# monitor =
|
halign = center
|
||||||
# path = ~/.face
|
valign = center
|
||||||
# size = 100
|
shadow_passes = 2
|
||||||
# border_color = $accent
|
}
|
||||||
#
|
|
||||||
# position = 0, 75
|
|
||||||
# halign = center
|
|
||||||
# valign = center
|
|
||||||
#}
|
|
||||||
|
|
||||||
# INPUT FIELD
|
# INPUT FIELD
|
||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 300, 60
|
size = 400, 70
|
||||||
outline_thickness = 4
|
outline_thickness = 4
|
||||||
dots_size = 0.2
|
dots_size = 0.2
|
||||||
dots_spacing = 0.5
|
dots_spacing = 0.2
|
||||||
dots_center = true
|
dots_center = true
|
||||||
outer_color = $accent
|
outer_color = $accent
|
||||||
inner_color = rgba(24, 24, 36, 1)
|
inner_color = $surface0
|
||||||
#inner_color = $surface0
|
font_color = $text
|
||||||
font_color = rgba(203, 164, 243, 1)
|
fade_on_empty = false
|
||||||
#font_color = $text
|
placeholder_text = <span foreground="##$textAlpha"> Logged in as $USER</span>
|
||||||
fade_on_empty = false
|
hide_input = false
|
||||||
placeholder_text = <span foreground="##$accentAlpha"> <span foreground="##$accentAlpha"><b>$USER</b></span></span>
|
check_color = $accent
|
||||||
#placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
|
fail_color = $red
|
||||||
hide_input = false
|
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
||||||
check_color = $accent
|
capslock_color = $yellow
|
||||||
fail_color = $red
|
position = 0, -185
|
||||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
halign = center
|
||||||
capslock_color = $yellow
|
valign = center
|
||||||
position = 0, -48
|
shadow_passes = 2
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}'';
|
}'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue