Use stylix and refactor related things
This commit is contained in:
parent
f173a43c72
commit
96dc27ff50
19 changed files with 600 additions and 397 deletions
|
@ -32,9 +32,9 @@
|
|||
gaps_in = 0;
|
||||
gaps_out = 0;
|
||||
border_size = 2;
|
||||
"col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg";
|
||||
"col.inactive_border" = "0x00000000";
|
||||
border_part_of_window = false;
|
||||
# "col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg";
|
||||
# "col.inactive_border" = "0x00000000";
|
||||
# border_part_of_window = false;
|
||||
no_border_on_floating = false;
|
||||
};
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
|||
offset = "0 2";
|
||||
range = 20;
|
||||
render_power = 3;
|
||||
color = "rgba(00000055)";
|
||||
# color = "rgba(00000055)";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -234,36 +234,25 @@
|
|||
|
||||
# windowrule
|
||||
windowrule = [
|
||||
"float,imv"
|
||||
"center,imv"
|
||||
"size 1200 725,imv"
|
||||
"float,mpv"
|
||||
"center,mpv"
|
||||
"tile,Aseprite"
|
||||
"size 1200 725,mpv"
|
||||
"float,class:vimiv"
|
||||
"center,class:vimiv"
|
||||
"float,class:mpv"
|
||||
"center,class:mpv"
|
||||
"size 1200 725,class:mpv"
|
||||
"float,title:^(float_kitty)$"
|
||||
"center,title:^(float_kitty)$"
|
||||
"size 950 600,title:^(float_kitty)$"
|
||||
# "pin,wofi"
|
||||
# "float,wofi"
|
||||
# "noborder,wofi"
|
||||
"tile, neovide"
|
||||
"idleinhibit focus,mpv"
|
||||
"float,udiskie"
|
||||
"tile, class:neovide"
|
||||
"idleinhibit focus,class:mpv"
|
||||
"float,class:udiskie"
|
||||
"float,title:^(Volume Control)$"
|
||||
"float,title:^(Firefox — Sharing Indicator)$"
|
||||
"move 0 0,title:^(Firefox — Sharing Indicator)$"
|
||||
"size 700 450,title:^(Volume Control)$"
|
||||
"move 40 55%,title:^(Volume Control)$"
|
||||
];
|
||||
|
||||
# windowrulev2
|
||||
windowrulev2 = [
|
||||
"float, title:^(Picture-in-Picture)$"
|
||||
"opacity 1.0 override 1.0 override, title:^(Picture-in-Picture)$"
|
||||
"pin, title:^(Picture-in-Picture)$"
|
||||
"opacity 1.0 override 1.0 override, title:^(.*imv.*)$"
|
||||
"opacity 1.0 override 1.0 override, title:^(.*mpv.*)$"
|
||||
"opacity 1.0 override 1.0 override, class:(Aseprite)"
|
||||
"opacity 1.0 override 1.0 override, class:(Unity)"
|
||||
"idleinhibit focus, class:^(mpv)$"
|
||||
|
|
|
@ -1,97 +1,73 @@
|
|||
{pkgs, ...}: {
|
||||
programs.hyprlock.enable = true;
|
||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
||||
$red = rgb(f38ba8)
|
||||
$yellow = rgb(f9e2af)
|
||||
$lavender = rgb(b4befe)
|
||||
{config, ...}: {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = let
|
||||
colors = with config.lib.stylix.colors; {
|
||||
text = base05;
|
||||
accent = base0E;
|
||||
warning = base0A;
|
||||
};
|
||||
in {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
};
|
||||
|
||||
$mauve = rgb(cba6f7)
|
||||
$mauveAlpha = cba6f7
|
||||
background = {
|
||||
path = "~/.config/hypr/wallpaper.png";
|
||||
blur_passes = 2;
|
||||
};
|
||||
|
||||
$base = rgb(1e1e2e)
|
||||
$surface0 = rgb(313244)
|
||||
$text = rgb(cdd6f4)
|
||||
$textAlpha = cdd6f4
|
||||
label = [
|
||||
# Time
|
||||
{
|
||||
text = "cmd[update:30000] echo \"<b><big> $(date +\"%R\") </big></b>\"";
|
||||
color = "rgb(${colors.text})";
|
||||
font_size = 110;
|
||||
shadow_passes = 3;
|
||||
shadow_size = 3;
|
||||
|
||||
$accent = $lavender
|
||||
$accentAlpha = $mauveAlpha
|
||||
$font = JetBrainsMono Nerd Font
|
||||
position = "0, -100";
|
||||
halign = "center";
|
||||
valign = "top";
|
||||
}
|
||||
|
||||
# GENERAL
|
||||
general {
|
||||
disable_loading_bar = true
|
||||
hide_cursor = true
|
||||
}
|
||||
# Date
|
||||
{
|
||||
text = "cmd[update:43200000] echo \"$(date +\"%A, %d %B %Y\")\"";
|
||||
color = "rgb(${colors.text})";
|
||||
font_size = 18;
|
||||
position = "0, -300";
|
||||
halign = "center";
|
||||
valign = "top";
|
||||
}
|
||||
];
|
||||
|
||||
# BACKGROUND
|
||||
background {
|
||||
monitor =
|
||||
path = ~/.config/hypr/wallpaper.png
|
||||
color = $base
|
||||
blur_passes = 2
|
||||
}
|
||||
# User Avatar
|
||||
image = {
|
||||
path = "~/.face.png";
|
||||
size = 125;
|
||||
border_color = "rgb(${colors.accent})";
|
||||
|
||||
# TIME
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:30000] echo "<b><big> $(date +"%R") </big></b>"
|
||||
color = $text
|
||||
font_size = 110
|
||||
font_family = $font
|
||||
shadow_passes = 3
|
||||
shadow_size = 3
|
||||
position = "0, -450";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
|
||||
position = 0, -100
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# DATE
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
|
||||
color = $text
|
||||
font_size = 18
|
||||
font_family = $font
|
||||
position = 0, -300
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# USER AVATAR
|
||||
|
||||
image {
|
||||
monitor =
|
||||
path = ~/.face.png
|
||||
size = 125
|
||||
border_color = $accent
|
||||
|
||||
position = 0, -450
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# INPUT FIELD
|
||||
input-field {
|
||||
monitor =
|
||||
size = 300, 60
|
||||
outline_thickness = 4
|
||||
dots_size = 0.2
|
||||
dots_spacing = 0.4
|
||||
dots_center = true
|
||||
outer_color = $accent
|
||||
inner_color = $surface0
|
||||
font_color = $text
|
||||
fade_on_empty = false
|
||||
placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
|
||||
hide_input = false
|
||||
check_color = $accent
|
||||
fail_color = $red
|
||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
||||
capslock_color = $yellow
|
||||
position = 0, -100
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
'';
|
||||
input-field = {
|
||||
size = "300, 60";
|
||||
outline_thickness = 4;
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.4;
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "<span foreground=\"##${colors.text}\"><i> Logged in as </i><span foreground=\"##${colors.accent}\">$USER</span></span>";
|
||||
hide_input = false;
|
||||
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
|
||||
capslock_color = "rgb(${colors.warning})";
|
||||
position = "0, -100";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue