Properly fix live CSS reloading & remove deprecated colors in Hyprlock
This commit is contained in:
parent
62dfc37e79
commit
f70bd9f219
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
||||
# AGS
|
||||
node_modules/
|
||||
@girs/
|
||||
styles/colors.scss
|
||||
|
||||
# Hyprland
|
||||
hyprland.conf
|
||||
hyprpaper.conf
|
||||
|
@ -30,9 +30,11 @@ const setupBars = async (monitor_id: number) => {
|
||||
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(
|
||||
STYLES,
|
||||
THEME_COLORS_PATH,
|
||||
() => {
|
||||
exec(`sass ${STYLES} /tmp/ags-style.css`);
|
||||
App.apply_css('/tmp/ags-style.css', true);
|
||||
|
@ -1,4 +1,4 @@
|
||||
@use '../../../theme_colors.scss' as *;
|
||||
@use '../theme_colors.scss' as *;
|
||||
|
||||
window.bar {
|
||||
font-weight: bold;
|
||||
|
@ -1,4 +1,4 @@
|
||||
@use '../../../theme_colors.scss' as *;
|
||||
@use '../theme_colors.scss' as *;
|
||||
|
||||
window.battery_info {
|
||||
font-weight: bold;
|
||||
|
@ -1,4 +1,4 @@
|
||||
@use '../../../theme_colors.scss' as *;
|
||||
@use '../theme_colors.scss' as *;
|
||||
|
||||
.clipboard {
|
||||
entry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
@use '../../../theme_colors.scss' as *;
|
||||
@use '../theme_colors.scss' as *;
|
||||
|
||||
.launcher {
|
||||
entry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
@use '../../../theme_colors.scss' as *;
|
||||
@use '../theme_colors.scss' as *;
|
||||
|
||||
window.quick_settings {
|
||||
font-weight: bold;
|
||||
|
@ -1,4 +1,4 @@
|
||||
@use '../../../theme_colors.scss' as *;
|
||||
@use './theme_colors.scss' as *;
|
||||
|
||||
@use 'variables' as *;
|
||||
@use 'mixins';
|
||||
|
1
ags/styles/theme_colors.scss
Symbolic link
1
ags/styles/theme_colors.scss
Symbolic link
@ -0,0 +1 @@
|
||||
/home/sadorowo/.config/theme_colors.scss
|
@ -1,5 +1,3 @@
|
||||
source = $HOME/.cache/wal/colors-hyprland.conf
|
||||
|
||||
general {
|
||||
enable_fingerprint = true
|
||||
fingerprint_ready_message = Place your finger on the sensor
|
||||
@ -7,19 +5,14 @@ general {
|
||||
}
|
||||
|
||||
background {
|
||||
monitor =
|
||||
path = screenshot
|
||||
blur_passes = 1
|
||||
blur_passes = 2
|
||||
contrast = 0.8
|
||||
brightness = 0.4
|
||||
vibrancy = 0.1
|
||||
vibrancy_darkness = 0.4
|
||||
}
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo $(date +"%H")
|
||||
color = $color5
|
||||
font_size = 180
|
||||
font_family = SF Mono Black
|
||||
|
||||
@ -31,7 +24,6 @@ label {
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo $(date +"%M")
|
||||
color = $color6
|
||||
font_size = 100
|
||||
font_family = SF Mono Black
|
||||
|
||||
@ -43,7 +35,6 @@ label {
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo $(date +"%S")
|
||||
color = $color6
|
||||
font_size = 60
|
||||
font_family = SF Mono Black
|
||||
|
||||
@ -52,24 +43,12 @@ label {
|
||||
valign = center
|
||||
}
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = $FPRINTMESSAGE
|
||||
color = $color6
|
||||
font_size = 15
|
||||
|
||||
position = 0, 100
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 250, 50
|
||||
dots_size = 0.1
|
||||
dots_spacing = 0.3
|
||||
font_color = $color6
|
||||
#fade_on_empty = true
|
||||
fade_on_empty = true
|
||||
|
||||
position = 0, 140
|
||||
halign = center
|
||||
@ -79,7 +58,6 @@ input-field {
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:9000000] echo "$(curl -s 'wttr.in?format=%t' | tr -d '+')"
|
||||
color = $color0
|
||||
font_size = 24
|
||||
font_family = SFMono Nerd Font
|
||||
|
||||
|
@ -1 +1 @@
|
||||
/nix/store/bwhz6gwfbpjfyi8669nmdisr8vlcvrvs-home-manager-files/.config/hypr/hyprpaper.conf
|
||||
/nix/store/89nadapq2lq48hfm9v2a1zzd759n5pw4-home-manager-files/.config/hypr/hyprpaper.conf
|
Loading…
x
Reference in New Issue
Block a user