From f9b491031d8f179f906f4372a68f74db88ba427e Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 10 Jun 2024 07:29:40 -0500 Subject: [PATCH 1/3] Improved legibility for light themes --- profiles/work/home.nix | 5 +++++ user/wm/hyprland/hyprland.nix | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/profiles/work/home.nix b/profiles/work/home.nix index 7aae935..a23480c 100644 --- a/profiles/work/home.nix +++ b/profiles/work/home.nix @@ -223,4 +223,9 @@ news.display = "silent"; + gtk.iconTheme = { + package = pkgs.papirus-icon-theme; + name = if (config.stylix.polarity == "dark") then "Papirus-Dark" else "Papirus-Light"; + }; + } diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 70d58d2..dc14aaf 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -372,7 +372,8 @@ in passes = 2 ignore_opacity = true contrast = 1.17 - brightness = 0.8 + brightness = '' + (if (config.stylix.polarity == "dark") then "0.8" else "1.25") + '' + xray = true } } From f34f77bb368575e40f3b8d28e86cfcc95910fec9 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 10 Jun 2024 07:29:50 -0500 Subject: [PATCH 2/3] Better background for alph theme --- themes/alph/backgroundsha256.txt | 2 +- themes/alph/backgroundurl.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/alph/backgroundsha256.txt b/themes/alph/backgroundsha256.txt index 7cd44c4..f942354 100644 --- a/themes/alph/backgroundsha256.txt +++ b/themes/alph/backgroundsha256.txt @@ -1 +1 @@ -sha256-U3ygNj/JrenMGDOqNN0xuY3gV373mgdS/ADo0WKUjfI= +sha256-ZM0X0IXsUwAgxdZileDOol8kBANxjW8oGrgha3OFjYE= diff --git a/themes/alph/backgroundurl.txt b/themes/alph/backgroundurl.txt index 7d3d001..8398587 100644 --- a/themes/alph/backgroundurl.txt +++ b/themes/alph/backgroundurl.txt @@ -1 +1 @@ -https://images7.alphacoders.com/104/thumb-1920-1049413.jpg +https://r4.wallpaperflare.com/wallpaper/132/401/75/painting-clouds-sky-landscape-wallpaper-57bfb2f40fd59f8acf4284a1e191c785.jpg From 182e103f0b7b12c68649e0a5f6ed1172f2e092f0 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 10 Jun 2024 08:09:11 -0500 Subject: [PATCH 3/3] Restart nwggrid-server for stylix theme changes --- sync-posthook.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sync-posthook.sh b/sync-posthook.sh index 383937b..9dcca1f 100755 --- a/sync-posthook.sh +++ b/sync-posthook.sh @@ -16,6 +16,7 @@ pgrep Hyprland &> /dev/null && echo "Reloading hyprland" && hyprctl reload &> /d pgrep .waybar-wrapped &> /dev/null && echo "Restarting waybar" && killall .waybar-wrapped && echo "Running waybar" && waybar &> /dev/null & disown; pgrep fnott &> /dev/null && echo "Restarting fnott" && killall fnott && echo "Running fnott" && fnott &> /dev/null & disown; pgrep hyprpaper &> /dev/null && echo "Reapplying background via hyprpaper" && killall hyprpaper && echo "Running hyprpaper" && hyprpaper &> /dev/null & disown; +pgrep nwggrid-server &> /dev/null && echo "Restarting nwggrid-server" && killall nwggrid-server && echo "Running nwggrid-wrapper" && nwggrid-wrapper &> /dev/null & disown; # emacs pgrep emacs &> /dev/null && echo "Reloading emacs stylix theme" && echo "Running emacsclient --no-wait --eval \"(load-theme 'doom-stylix t nil)\"" && emacsclient --no-wait --eval "(load-theme 'doom-stylix t nil)" &> /dev/null;