mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: make hyprlock very pretty
This commit is contained in:
parent
e9586ec2c3
commit
a97c34b28f
1 changed files with 95 additions and 101 deletions
|
|
@ -1,106 +1,100 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
text = "rgb(251, 241, 199)";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.hyprlock = {
|
home.packages = [ pkgs.hyprlock ];
|
||||||
enable = true;
|
xdg.configFile."hypr/hyprlock.conf".text = ''
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
source = $HOME/nixos-config/modules/home/hyprland/mocha.conf
|
|
||||||
|
|
||||||
$accent = 0xb3$tealAlpha
|
|
||||||
$accentAlpha = $tealAlpha
|
|
||||||
$font = JetBrainsMono Nerd Font
|
|
||||||
|
|
||||||
# GENERAL
|
|
||||||
general {
|
|
||||||
disable_loading_bar = true
|
|
||||||
hide_cursor = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# BACKGROUND
|
# BACKGROUND
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/Pictures/wallpapers/others/street-by-ahwx.jpg
|
path = ${/home/liv/Pictures/wallpapers/others/liv-schiermonnikoog-zonsondergang.jpeg}
|
||||||
blur_passes = 2
|
blur_passes = 1
|
||||||
color = $base
|
contrast = 0.8916
|
||||||
|
brightness = 0.8172
|
||||||
|
vibrancy = 0.1696
|
||||||
|
vibrancy_darkness = 0.0
|
||||||
}
|
}
|
||||||
|
|
||||||
# TIME
|
# GENERAL
|
||||||
|
general {
|
||||||
|
hide_cursor = true
|
||||||
|
no_fade_in = false
|
||||||
|
grace = 0
|
||||||
|
disable_loading_bar = false
|
||||||
|
}
|
||||||
|
|
||||||
|
# Time
|
||||||
label {
|
label {
|
||||||
monitor =
|
monitor =
|
||||||
text = cmd[update:30000] echo "$(date +"%R")"
|
text = cmd[update:1000] echo "$(date +"%k:%M")"
|
||||||
color = $text
|
color = rgba(235, 219, 178, .9)
|
||||||
font_size = 90
|
font_size = 111
|
||||||
font_family = $font
|
font_family = JetBrainsMono NF Bold
|
||||||
position = -130, -100
|
position = 0, 270
|
||||||
halign = right
|
halign = center
|
||||||
valign = top
|
valign = center
|
||||||
shadow_passes = 2
|
}
|
||||||
}
|
|
||||||
|
# Day
|
||||||
# DATE
|
label {
|
||||||
label {
|
monitor =
|
||||||
monitor =
|
text = cmd[update:1000] echo "- $(date +"%A, %B %d") -"
|
||||||
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
|
color = rgba(235, 219, 178, .9)
|
||||||
color = $text
|
font_size = 20
|
||||||
font_size = 25
|
font_family = CaskaydiaCove Nerd Font
|
||||||
font_family = $font
|
position = 0, 160
|
||||||
position = -130, -250
|
halign = center
|
||||||
halign = right
|
valign = center
|
||||||
valign = top
|
}
|
||||||
shadow_passes = 2
|
|
||||||
}
|
|
||||||
|
# USER-BOX
|
||||||
# KEYBOARD LAYOUT
|
shape {
|
||||||
label {
|
monitor =
|
||||||
monitor =
|
size = 350, 50
|
||||||
text = $LAYOUT
|
color = rgba(225, 225, 225, .2)
|
||||||
color = $text
|
rounding = 15
|
||||||
font_size = 20
|
border_size = 0
|
||||||
font_family = $font
|
border_color = rgba(255, 255, 255, 0)
|
||||||
rotate = 0 # degrees, counter-clockwise
|
rotate = 0
|
||||||
|
|
||||||
position = -130, -310
|
position = 0, -230
|
||||||
halign = right
|
halign = center
|
||||||
valign = top
|
valign = center
|
||||||
shadow_passes = 2
|
}
|
||||||
}
|
|
||||||
|
# USER
|
||||||
# USER AVATAR
|
label {
|
||||||
image {
|
monitor =
|
||||||
monitor =
|
text = $USER
|
||||||
path = $HOME/.face
|
color = rgba(235, 219, 178, .9)
|
||||||
size = 350
|
font_size = 16
|
||||||
border_color = $accent
|
font_family = CaskaydiaCove Nerd Font
|
||||||
rounding = -1
|
position = 0, -230
|
||||||
|
|
||||||
position = 0, 75
|
|
||||||
halign = center
|
halign = center
|
||||||
valign = center
|
valign = center
|
||||||
shadow_passes = 2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# INPUT FIELD
|
# INPUT FIELD
|
||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 400, 70
|
size = 350, 50
|
||||||
outline_thickness = 4
|
outline_thickness = 0
|
||||||
dots_size = 0.2
|
rounding = 15
|
||||||
dots_spacing = 0.2
|
dots_size = 0.25 # Scale of input-field height, 0.2 - 0.8
|
||||||
|
dots_spacing = 0.4 # Scale of dots' absolute size, 0.0 - 1.0
|
||||||
dots_center = true
|
dots_center = true
|
||||||
outer_color = $accent
|
outer_color = rgba(255, 255, 255, 0)
|
||||||
inner_color = $surface0
|
inner_color = rgba(225, 225, 225, 0.2)
|
||||||
font_color = $text
|
color = rgba(235, 219, 178, .9)
|
||||||
|
font_color = rgba(235, 219, 178, .9)
|
||||||
fade_on_empty = false
|
fade_on_empty = false
|
||||||
placeholder_text = <span foreground="##$textAlpha"> Logged in as $USER</span>
|
placeholder_text = <i><span foreground="##ebdbb2e5">Enter Password</span></i>
|
||||||
hide_input = false
|
hide_input = false
|
||||||
check_color = $accent
|
position = 0, -300
|
||||||
fail_color = $red
|
|
||||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
|
||||||
capslock_color = $yellow
|
|
||||||
position = 0, -185
|
|
||||||
halign = center
|
halign = center
|
||||||
valign = center
|
valign = center
|
||||||
shadow_passes = 2
|
}
|
||||||
}'';
|
'';
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue