Compare commits

...

2 commits

Author SHA1 Message Date
dabcb8d77b
fix: adjust coordinates for toki-earth lock screen
My two machines have different resolutions, so we need to convert
between their pixel sizes.
2025-04-06 04:07:55 -04:00
8c8c8c7486
fix: update EWW config for toki-earth status bar 2025-04-06 04:07:55 -04:00
2 changed files with 78 additions and 74 deletions

View file

@ -381,7 +381,7 @@
:artist-limit 30 :artist-limit 30
:title-limit 25))) :title-limit 25)))
(defwidget earth_bar_right_edge [] (defwidget earth_bar_right_edge [screen]
(box :orientation "h" (box :orientation "h"
:space-evenly false :space-evenly false
:halign "end" :halign "end"
@ -394,7 +394,7 @@
(bar_storage) (bar_storage)
(bar_ram) (bar_ram)
(bar_sep) (bar_sep)
(bar_idleinhibit))) (bar_power :screen screen)))
(defwidget earth_bar_layout [screen] (defwidget earth_bar_layout [screen]
(centerbox :class "bar" (centerbox :class "bar"
@ -408,7 +408,7 @@
(box :orientation "h" (box :orientation "h"
:space-evenly false :space-evenly false
(earth_bar_right_wing) (earth_bar_right_wing)
(earth_bar_right_edge)))) (earth_bar_right_edge :screen screen))))
(defwindow fire_bar [screen] (defwindow fire_bar [screen]

View file

@ -12,79 +12,83 @@
# Hyprlock # Hyprlock
programs.hyprlock.enable = true; programs.hyprlock.enable = true;
programs.hyprlock.settings = { programs.hyprlock.settings =
general = { let
hide_cursor = true; adjustX = x: if config.machine == "earth" then builtins.floor (x / 2) else x;
disable_loading_bar = true; adjustY = y: if config.machine == "earth" then builtins.floor (y / 1.8) else y;
grace = 180; in {
general = {
hide_cursor = true;
disable_loading_bar = true;
grace = 180;
};
background = [
{
monitor = "";
path = "screenshot";
blur_passes = 2;
blur_size = 6;
brightness = 0.4;
contrast = 0.5;
}
];
label = [
{
monitor = "";
halign = "center";
valign = "center";
position = "0, ${builtins.toString (adjustY 480)}";
text = "cmd[update:1000] date '+%H:%M:%S'";
color = "rgb(a9b1d6)";
font_family = "Quicksand";
font_size = adjustY 102;
}
{
monitor = "";
halign = "center";
valign = "center";
position = "0, ${builtins.toString (adjustY 370)}";
text = "cmd[update:60000] date '+%A %Y-%m-%d'";
color = "rgb(a9b1d6)";
font_family = "Quicksand";
font_size = adjustY 32;
}
{
monitor = "";
halign = "center";
valign = "center";
position = "0, ${builtins.toString (adjustY (-240))}";
text = "Login: $USER";
color = "rgb(a9b1d6)";
font_family = "Quicksand";
font_size = adjustY 26;
}
];
input-field = [
{
monitor = "";
halign = "center";
valign = "center";
size = "${builtins.toString (adjustX 800)}, ${builtins.toString (adjustY 70)}";
position = "0, ${builtins.toString (adjustY (-160))}";
dots_center = true;
fade_on_empty = false;
font_family = "Quicksand";
font_color = "rgb(a9b1d6)";
inner_color = "rgb(1a1b26)";
outer_color = "rgb(a9b1d6)";
check_color = "rgb(e0af68)";
fail_color = "rgb(f7768e)";
outline_thickness = 3;
placeholder_text = ''<span foreground="##565f89">Password</span>'';
shadow_passes = 2;
}
];
}; };
background = [
{
monitor = "";
path = "screenshot";
blur_passes = 2;
blur_size = 6;
brightness = 0.4;
contrast = 0.5;
}
];
label = [
{
monitor = "";
halign = "center";
valign = "center";
position = "0, 480";
text = "cmd[update:1000] date '+%H:%M:%S'";
color = "rgb(a9b1d6)";
font_family = "Quicksand";
font_size = 102;
}
{
monitor = "";
halign = "center";
valign = "center";
position = "0, 370";
text = "cmd[update:60000] date '+%A %Y-%m-%d'";
color = "rgb(a9b1d6)";
font_family = "Quicksand";
font_size = 32;
}
{
monitor = "";
halign = "center";
valign = "center";
position = "0, -240";
text = "Login: $USER";
color = "rgb(a9b1d6)";
font_family = "Quicksand";
font_size = 26;
}
];
input-field = [
{
monitor = "";
halign = "center";
valign = "center";
size = "800, 70";
position = "0, -160";
dots_center = true;
fade_on_empty = false;
font_family = "Quicksand";
font_color = "rgb(a9b1d6)";
inner_color = "rgb(1a1b26)";
outer_color = "rgb(a9b1d6)";
check_color = "rgb(e0af68)";
fail_color = "rgb(f7768e)";
outline_thickness = 3;
placeholder_text = ''<span foreground="##565f89">Password</span>'';
shadow_passes = 2;
}
];
};
# Swaybg # Swaybg
systemd.user.services.swaybg = { systemd.user.services.swaybg = {