Properly fix live CSS reloading & remove deprecated colors in Hyprlock

This commit is contained in:
Franek 2025-05-03 08:42:15 +02:00
parent 62dfc37e79
commit f70bd9f219
11 changed files with 17 additions and 36 deletions

2
.gitignore vendored
View File

@ -1,7 +1,7 @@
# AGS # AGS
node_modules/ node_modules/
@girs/ @girs/
styles/colors.scss
# Hyprland # Hyprland
hyprland.conf hyprland.conf
hyprpaper.conf

View File

@ -30,9 +30,11 @@ const setupBars = async (monitor_id: number) => {
return windows; return windows;
}; };
const STYLES = `${GLib.get_user_config_dir()}/theme_colors.scss`; const STYLES = GLib.get_user_config_dir() + "/ags/styles/style.scss";
const THEME_COLORS_PATH = GLib.get_user_config_dir() + "/theme_colors.scss";
const monitorCSS = () => monitorFile( const monitorCSS = () => monitorFile(
STYLES, THEME_COLORS_PATH,
() => { () => {
exec(`sass ${STYLES} /tmp/ags-style.css`); exec(`sass ${STYLES} /tmp/ags-style.css`);
App.apply_css('/tmp/ags-style.css', true); App.apply_css('/tmp/ags-style.css', true);

View File

@ -1,4 +1,4 @@
@use '../../../theme_colors.scss' as *; @use '../theme_colors.scss' as *;
window.bar { window.bar {
font-weight: bold; font-weight: bold;

View File

@ -1,4 +1,4 @@
@use '../../../theme_colors.scss' as *; @use '../theme_colors.scss' as *;
window.battery_info { window.battery_info {
font-weight: bold; font-weight: bold;
@ -53,4 +53,4 @@ window.battery_info button {
color: $base0B; color: $base0B;
} }
} }
} }

View File

@ -1,4 +1,4 @@
@use '../../../theme_colors.scss' as *; @use '../theme_colors.scss' as *;
.clipboard { .clipboard {
entry { entry {

View File

@ -1,4 +1,4 @@
@use '../../../theme_colors.scss' as *; @use '../theme_colors.scss' as *;
.launcher { .launcher {
entry { entry {
@ -56,4 +56,4 @@
margin-bottom: 8px; margin-bottom: 8px;
} }
} }
} }

View File

@ -1,4 +1,4 @@
@use '../../../theme_colors.scss' as *; @use '../theme_colors.scss' as *;
window.quick_settings { window.quick_settings {
font-weight: bold; font-weight: bold;

View File

@ -1,4 +1,4 @@
@use '../../../theme_colors.scss' as *; @use './theme_colors.scss' as *;
@use 'variables' as *; @use 'variables' as *;
@use 'mixins'; @use 'mixins';

View File

@ -0,0 +1 @@
/home/sadorowo/.config/theme_colors.scss

View File

@ -1,5 +1,3 @@
source = $HOME/.cache/wal/colors-hyprland.conf
general { general {
enable_fingerprint = true enable_fingerprint = true
fingerprint_ready_message = Place your finger on the sensor fingerprint_ready_message = Place your finger on the sensor
@ -7,19 +5,14 @@ general {
} }
background { background {
monitor = blur_passes = 2
path = screenshot
blur_passes = 1
contrast = 0.8 contrast = 0.8
brightness = 0.4 brightness = 0.4
vibrancy = 0.1
vibrancy_darkness = 0.4
} }
label { label {
monitor = monitor =
text = cmd[update:1000] echo $(date +"%H") text = cmd[update:1000] echo $(date +"%H")
color = $color5
font_size = 180 font_size = 180
font_family = SF Mono Black font_family = SF Mono Black
@ -31,7 +24,6 @@ label {
label { label {
monitor = monitor =
text = cmd[update:1000] echo $(date +"%M") text = cmd[update:1000] echo $(date +"%M")
color = $color6
font_size = 100 font_size = 100
font_family = SF Mono Black font_family = SF Mono Black
@ -43,7 +35,6 @@ label {
label { label {
monitor = monitor =
text = cmd[update:1000] echo $(date +"%S") text = cmd[update:1000] echo $(date +"%S")
color = $color6
font_size = 60 font_size = 60
font_family = SF Mono Black font_family = SF Mono Black
@ -52,24 +43,12 @@ label {
valign = center valign = center
} }
label {
monitor =
text = $FPRINTMESSAGE
color = $color6
font_size = 15
position = 0, 100
halign = center
valign = bottom
}
input-field { input-field {
monitor = monitor =
size = 250, 50 size = 250, 50
dots_size = 0.1 dots_size = 0.1
dots_spacing = 0.3 dots_spacing = 0.3
font_color = $color6 fade_on_empty = true
#fade_on_empty = true
position = 0, 140 position = 0, 140
halign = center halign = center
@ -79,7 +58,6 @@ input-field {
label { label {
monitor = monitor =
text = cmd[update:9000000] echo "$(curl -s 'wttr.in?format=%t' | tr -d '+')" text = cmd[update:9000000] echo "$(curl -s 'wttr.in?format=%t' | tr -d '+')"
color = $color0
font_size = 24 font_size = 24
font_family = SFMono Nerd Font font_family = SFMono Nerd Font

View File

@ -1 +1 @@
/nix/store/bwhz6gwfbpjfyi8669nmdisr8vlcvrvs-home-manager-files/.config/hypr/hyprpaper.conf /nix/store/89nadapq2lq48hfm9v2a1zzd759n5pw4-home-manager-files/.config/hypr/hyprpaper.conf