Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treewide: wallpaper refactor #102

Closed
wants to merge 119 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
1e71220
fix waybar
SomeGuyNamedMay Mar 29, 2023
6bc7413
fix
SomeGuyNamedMay Mar 29, 2023
a9a0e9d
add bar to workspace button
SomeGuyNamedMay Mar 29, 2023
6860f44
fix for hyprland
SomeGuyNamedMay Mar 29, 2023
04658cd
trys to make bar in workspaces work correctly
SomeGuyNamedMay Mar 30, 2023
72cdcf6
try another fix
SomeGuyNamedMay Mar 30, 2023
48b610b
remove padding
SomeGuyNamedMay Mar 30, 2023
c91e6f1
change base05 to base00
SomeGuyNamedMay Mar 30, 2023
d8ea134
fix documentation
SomeGuyNamedMay Mar 30, 2023
04f3869
make workspaces without backgrounds look better
SomeGuyNamedMay Mar 30, 2023
bde16ee
change workspace color to contrast with base00
SomeGuyNamedMay Mar 30, 2023
9db1531
change the selected workspace to a lighter color as well
SomeGuyNamedMay Mar 30, 2023
58be697
add padding
SomeGuyNamedMay Mar 31, 2023
10a43c6
quick fix for fonts
SomeGuyNamedMay Mar 31, 2023
bb5731f
Merge branch 'danth:master' into master
SomeGuyNamedMay Mar 31, 2023
35e1ae7
Merge branch 'danth:master' into master
SomeGuyNamedMay Apr 23, 2023
bff10aa
Merge branch 'danth:master' into master
SomeGuyNamedMay Apr 30, 2023
a031f9c
Merge branch 'danth:master' into master
SomeGuyNamedMay May 24, 2023
32fb3b0
Merge branch 'danth:master' into master
SomeGuyNamedMay Jun 13, 2023
542b3d4
Merge branch 'danth:master' into master
SomeGuyNamedMay Jul 7, 2023
03c4569
Merge branch 'danth:master' into master
SomeGuyNamedMay Jul 8, 2023
2c1a3da
Merge branch 'danth:master' into master
SomeGuyNamedMay Jul 10, 2023
8f08e7b
Merge branch 'danth:master' into master
SomeGuyNamedMay Jul 15, 2023
b17f4d4
Merge branch 'danth:master' into master
SomeGuyNamedMay Aug 12, 2023
d586920
initial commit adding base types, and support generating a colorschem…
SomeGuyNamedMay May 30, 2023
af579eb
add module support for wallpapers, as well as make the peramiters of …
SomeGuyNamedMay May 31, 2023
3c1b528
move some stuff into the constructors
SomeGuyNamedMay Jun 1, 2023
83c99ab
move some logic to generators
SomeGuyNamedMay Jun 2, 2023
052e3b8
the image constructor works now
SomeGuyNamedMay Jun 2, 2023
a262a06
add optional colorscheme rather then generated image colorscheme
SomeGuyNamedMay Jun 2, 2023
d8d0986
all constructors now functional, now working on implementing the chan…
SomeGuyNamedMay Jun 3, 2023
0e4a944
sway is now working for every type of wallpaper
SomeGuyNamedMay Jun 3, 2023
88f6218
all wallpaper types now work with sway and depreciation message was a…
SomeGuyNamedMay Jun 4, 2023
621621b
Update stylix/palette.nix
SomeGuyNamedMay Jun 5, 2023
ab67b84
begin lib migration and add depreciation warning
SomeGuyNamedMay Jun 5, 2023
706e1a4
quick fix
SomeGuyNamedMay Jun 5, 2023
d153d57
bunch of fixes
SomeGuyNamedMay Jun 5, 2023
8752d05
move a bunch of logic into lib
SomeGuyNamedMay Jun 6, 2023
af14305
bunch of fixes
SomeGuyNamedMay Jun 7, 2023
fc52669
fix doc error
SomeGuyNamedMay Jun 7, 2023
fc13277
add xorg support
SomeGuyNamedMay Jun 8, 2023
2d26ebb
add legacy support
SomeGuyNamedMay Jun 10, 2023
1dc469d
fix
SomeGuyNamedMay Jun 10, 2023
72d6e95
all legacy options now working correctly
SomeGuyNamedMay Jun 11, 2023
f075b3b
properly do type checking
SomeGuyNamedMay Jun 11, 2023
470c536
better way of type checking
SomeGuyNamedMay Jun 11, 2023
725f74a
change to Fill constructor and added docs
SomeGuyNamedMay Jun 12, 2023
a316a53
update docs
SomeGuyNamedMay Jun 12, 2023
8d1702c
fix typos
SomeGuyNamedMay Jun 12, 2023
72ab9de
fix another typo
SomeGuyNamedMay Jun 12, 2023
c01c1f0
Support slideshow wallpapers on GNOME :sparkles:
danth Jun 13, 2023
4c0d3b4
update docs on gnome
SomeGuyNamedMay Jun 13, 2023
7da783e
Add table of supported wallpapers :memo:
danth Jun 14, 2023
3937413
finish xorg support
SomeGuyNamedMay Jun 14, 2023
e9e2df2
quick fix
SomeGuyNamedMay Jun 15, 2023
e199bcc
fix slideshow support on xorg
SomeGuyNamedMay Jun 15, 2023
945a586
just realised how qutebrowsers dark mode works, my bad lol
SomeGuyNamedMay Jun 23, 2023
169bb74
Update lib/constructors.nix
SomeGuyNamedMay Jun 27, 2023
2966ab4
Update lib/types.nix
SomeGuyNamedMay Jun 27, 2023
c4070bc
Update modules/sway/hm.nix
SomeGuyNamedMay Jun 27, 2023
390955f
variety of changes for slideshow
SomeGuyNamedMay Jun 28, 2023
aa24865
add docs for slideshow
SomeGuyNamedMay Jun 28, 2023
91b6990
formating
SomeGuyNamedMay Jun 28, 2023
babb14a
Improve option description and error messages :speech_balloon:
danth Jul 2, 2023
73cd697
update configuration.md
SomeGuyNamedMay Jul 3, 2023
f507cde
update some more of the docs
SomeGuyNamedMay Jul 3, 2023
7b710f1
further restrict types
SomeGuyNamedMay Jul 3, 2023
a4f58d7
gnome fix, further type restriction not possible as it disallows usin…
SomeGuyNamedMay Jul 7, 2023
c2708f0
another fix
SomeGuyNamedMay Jul 7, 2023
d1ceadc
sway default to swww, and adapt kde for the refactor
SomeGuyNamedMay Jul 15, 2023
71a7554
Add KDE to list of supported wallpapers :memo:
danth Jul 23, 2023
5213fd5
Simplify code for constructors :recycle:
danth Jul 26, 2023
776ea99
fix gnome
SomeGuyNamedMay Aug 12, 2023
7c46aac
Move extra CSS to the end of the file (#147)
y-syo Aug 13, 2023
b3c709e
epkgs.trivialBuild: set dummy version (#150)
bbigras Sep 10, 2023
55b210b
Add support for Hyprland (#145)
TotalChaos05 Sep 10, 2023
954a625
gnome fix
SomeGuyNamedMay Sep 10, 2023
05c8c15
add wallpaper support to hyprland and simplify sway wallpapers
SomeGuyNamedMay Sep 11, 2023
0e50578
finish hyprland support
SomeGuyNamedMay Sep 11, 2023
4756a1a
Merge branch 'master' into wallpaper-refactor
danth Sep 23, 2023
15ea085
Add Hyprland support to table :memo:
danth Sep 23, 2023
70bdef1
Rearrange options and update docs :children_crossing: :memo:
danth Sep 23, 2023
6ab1ef7
Adjust docs :memo:
danth Sep 24, 2023
7c50775
`config.lib.stylix.colors` → `config.stylix.colors` :wastebasket:
danth Sep 30, 2023
61cb583
Fix wallpaper not appearing on Hyprland :bug:
danth Oct 8, 2023
d73f0fe
changes swww script to systemd service
SomeGuyNamedMay Oct 9, 2023
d6a2dd3
add wallpaper for unsupported modules
SomeGuyNamedMay Oct 9, 2023
c176990
Merge branch 'master' into wallpaper-refactor
danth Oct 10, 2023
b3f0b9a
Improve swww service :bug: :recycle:
danth Oct 14, 2023
177d8d6
Disable fade in for static wallpapers on wlroots :dizzy:
danth Oct 19, 2023
78659ee
Link to supported software :memo:
danth Oct 22, 2023
1bd7093
Merge branch 'master' into wallpaper-refactor
danth Oct 28, 2023
f85672a
Update Qutebrowser module to use new polarity utils :alien:
danth Oct 28, 2023
88c4318
Update Xresources module to use new colors option :alien:
danth Oct 28, 2023
18b83cc
Adjust docs :memo:
danth Oct 28, 2023
c9a98dd
Refactor ffmpeg command into function :recycle:
danth Oct 28, 2023
1c3edf5
Fix group variable changes in Hyprland module :bug:
danth Oct 28, 2023
dd20511
Refactor xorg commands into shared module :recycle:
danth Nov 1, 2023
c720ab8
Tidy up Rofi module :art:
danth Nov 1, 2023
1d360e2
Merge branch 'master' into wallpaper-refactor
danth Nov 1, 2023
bd61e79
small fix
SomeGuyNamedMay Nov 3, 2023
3007cd4
small fix
SomeGuyNamedMay Nov 14, 2023
5d666dc
Move types into namespace :truck:
danth Nov 18, 2023
2481fc6
Tidy up overridable scheme type :recycle:
danth Nov 18, 2023
3ddd609
Store custom types in an attribute :technologist:
danth Nov 18, 2023
4ba0a07
Rename `static` to `image` :truck:
danth Nov 18, 2023
6f26e5f
Restore old behaviour for inheriting color scheme :bug:
danth Nov 18, 2023
d1b6ac5
Fix error with wallpaper symlink for slideshows :ambulance:
danth Nov 18, 2023
7a080cb
Implement black box type :recycle:
danth Dec 3, 2023
dee2709
Merge branch 'master' into wallpaper-refactor
danth Dec 3, 2023
3045cbb
Fix slideshow script for file names containing spaces :bug:
danth Dec 4, 2023
953b4c7
Merge branch 'master' into wallpaper-refactor
danth Dec 25, 2023
3019a34
Merge branch 'master' into wallpaper-refactor
danth Dec 29, 2023
6abdf39
Integrate new documentation with wallpaper refactor :memo:
danth Dec 29, 2023
25076e1
stylix: use functions in lib
Mar 5, 2024
a512ba8
Merge pull request #1 from Sntx626/wallpaper-refactor
SomeGuyNamedMay Mar 17, 2024
7d818a7
refactor(lib/utils): simplify math expression
trueNAHO Mar 18, 2024
ea1d3b1
fix(lib/utils): resolve syntax error
trueNAHO Mar 18, 2024
08299f4
stylix: remove local gitignore file
trueNAHO Mar 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions lib/utils.nix
SomeGuyNamedMay marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converting these to functions (like toHex, toInt, toPolarity) will make our lib folder only depend on pkgs and the upstream lib, without reading anything from config. I'm hoping that will allow it to be passed as a module argument without causing infinite recursion.

Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,28 @@

{
config.lib.stylix = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably create a library independent of config and tell the user how to extend their lib with ours.

This way we can finally be free of the config argument.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A completely separate library (stylix / stylixLib or something) may be easier than trying to extend the existing lib.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a separate library is probably a better idea, extending lib doesnt seem to be worth the effort

# get the opacity values as strings in hexadecimal, integer and floating point values for the four opacity options
desktopOpacity-hex = lib.toHexString ((((builtins.ceil (config.stylix.opacity.desktop * 100)) * 255) / 100));
desktopOpacity-int = builtins.toString (builtins.ceil (config.stylix.opacity.desktop * 100));
desktopOpacity-float = builtins.toString config.stylix.opacity.desktop;
# get the opacity values as strings in hexadecimal, integer and floating point values

opacityToHex = opacity: lib.toHexString (
((builtins.ceil (opacity * 100)) * 255 / 100)
trueNAHO marked this conversation as resolved.
Show resolved Hide resolved
);

applicationsOpacity-hex = lib.toHexString ((((builtins.ceil (config.stylix.opacity.applications * 100)) * 255) / 100));
applicationsOpacity-int = builtins.toString (builtins.ceil (config.stylix.opacity.applications * 100));
applicationsOpacity-float = builtins.toString config.stylix.opacity.applications;
opacityToInt = opacity: builtins.toString (
builtins.ceil (opacity * 100));

opacityToFloat = opacity: builtins.toString
opacity;

terminalOpacity-hex = lib.toHexString ((((builtins.ceil (config.stylix.opacity.terminal * 100)) * 255) / 100));
terminalOpacity-int = builtins.toString (builtins.ceil (config.stylix.opacity.terminal * 100));
terminalOpacity-float = builtins.toString config.stylix.opacity.terminal;


popupsOpacity-hex = lib.toHexString ((((builtins.ceil (config.stylix.opacity.popups * 100)) * 255) / 100));
popupsOpacity-int = builtins.toString (builtins.ceil (config.stylix.opacity.popups * 100));
popupsOpacity-float = builtins.toString config.stylix.opacity.popups;

backgroundPolarity =
polarityFrom = colors:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the function takes the color attr set.
This makes it relatively simple to call the function.

However this argument is not type checked. This will result in misleading errors at best and is documented nowhere atm. (except for this comment...)

Should we take red, green and blue as arguments instead?

let
red = lib.toInt config.stylix.colors.base00-rgb-r;
green = lib.toInt config.stylix.colors.base00-rgb-g;
blue = lib.toInt config.stylix.colors.base00-rgb-b;
red = lib.toInt colors.base00-rgb-r;
green = lib.toInt colors.base00-rgb-g;
blue = lib.toInt colors.base00-rgb-b;
in
if (red + green + blue >= 150) then "light" else "dark";
if
(red + green + blue) >= 150
then "light"
else "dark";

# Generate a PNG image containing a named color

Expand Down
41 changes: 23 additions & 18 deletions modules/bemenu/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,28 @@ with config.stylix.fonts;
};

config = lib.mkIf config.stylix.targets.bemenu.enable {
home.sessionVariables.BEMENU_OPTS = with config.stylix.targets.bemenu; builtins.concatStringsSep " " [
# Inspired from https://git.sr.ht/~h4n1/base16-bemenu_opts
"--tb '${base01}${config.lib.stylix.popupsOpacity-hex}'"
"--nb '${base01}${config.lib.stylix.popupsOpacity-hex}'"
"--fb '${base01}${config.lib.stylix.popupsOpacity-hex}'"
"--hb '${base03}${config.lib.stylix.popupsOpacity-hex}'"
"--sb '${base03}${config.lib.stylix.popupsOpacity-hex}'"
"--hf '${base0A}'"
"--sf '${base0B}'"
"--tf '${base05}'"
"--ff '${base05}'"
"--nf '${base05}'"
"--scb '${base01}'"
"--scf '${base03}'"
"--ab '${if alternate then base00 else base01}'"
"--af '${if alternate then base04 else base05}'"
"--fn '${sansSerif.name} ${lib.optionalString (fontSize != null) (builtins.toString fontSize)}'"
];
home.sessionVariables.BEMENU_OPTS =
with config.stylix.targets.bemenu;
let
opacity = config.lib.stylix.opacityToHex config.stylix.opacity.popups;
in
builtins.concatStringsSep " " [
# Inspired from https://git.sr.ht/~h4n1/base16-bemenu_opts
"--tb '${base01}${opacity}'"
"--nb '${base01}${opacity}'"
"--fb '${base01}${opacity}'"
"--hb '${base03}${opacity}'"
"--sb '${base03}${opacity}'"
"--hf '${base0A}'"
"--sf '${base0B}'"
"--tf '${base05}'"
"--ff '${base05}'"
"--nf '${base05}'"
"--scb '${base01}'"
"--scf '${base03}'"
"--ab '${if alternate then base00 else base01}'"
"--af '${if alternate then base04 else base05}'"
"--fn '${sansSerif.name} ${lib.optionalString (fontSize != null) (builtins.toString fontSize)}'"
];
};
}
9 changes: 6 additions & 3 deletions modules/dunst/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ with config.stylix.fonts;
};

urgency_low = {
background = base01 + config.lib.stylix.popupsOpacity-hex;
background = base01
+ (config.lib.stylix.opacityToHex config.stylix.opacity.popups);
foreground = base05;
frame_color = base0B;
};

urgency_normal = {
background = base01 + config.lib.stylix.popupsOpacity-hex;
background = base01
+ (config.lib.stylix.opacityToHex config.stylix.opacity.popups);
foreground = base05;
frame_color = base0E;
};

urgency_critical = {
background = base01 + config.lib.stylix.popupsOpacity-hex;
background = base01
+ (config.lib.stylix.opacityToHex config.stylix.opacity.popups);
foreground = base05;
frame_color = base08;
};
Expand Down
4 changes: 3 additions & 1 deletion modules/emacs/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ with config.stylix.fonts;
(set-face-attribute 'default t :font "${monospace.name}" )
;; -----------------------------
;; set opacity
(add-to-list 'default-frame-alist '(alpha-background . ${config.lib.stylix.applicationsOpacity-int}))
(add-to-list 'default-frame-alist '(alpha-background . ${
config.lib.stylix.opacityToInt config.stylix.opacity.applications
}))
;; -----------------------------
'';
};
Expand Down
7 changes: 4 additions & 3 deletions modules/gnome/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ in {
document-font-name = "${serif.name} ${toString (sizes.applications - 1)}";
monospace-font-name = "${monospace.name} ${toString sizes.applications}";

color-scheme = if config.lib.stylix.backgroundPolarity == "dark"
then "prefer-dark"
else "default";
color-scheme =
if (config.lib.stylix.polarityFrom config.stylix.colors) == "dark"
then "prefer-dark"
else "default";
};

"org/gnome/shell/extensions/user-theme".name = "Stylix";
Expand Down
11 changes: 8 additions & 3 deletions modules/mako/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,25 @@ with config.stylix.fonts;
# Referenced https://github.com/stacyharper/base16-mako
config = lib.optionalAttrs (options.services ? mako) (lib.mkIf config.stylix.targets.mako.enable {
services.mako = {
backgroundColor = base00 + config.lib.stylix.popupsOpacity-hex;
backgroundColor = base00
+ (config.lib.stylix.opacityToHex config.stylix.opacity.popups);
borderColor = base0D;
textColor = base05;
progressColor = "over ${base02}";
font = "${sansSerif.name} ${toString sizes.popups}";
# I wish the mako hm module was like the dunst one
extraConfig = ''
[urgency=low]
background-color=${base00}${config.lib.stylix.popupsOpacity-hex}
background-color=${base00}${
config.lib.stylix.opacityToHex config.stylix.opacity.popups
}
border-color=${base0D}
text-color=${base0A}

[urgency=high]
background-color=${base00}${config.lib.stylix.popupsOpacity-hex}
background-color=${base00}${
config.lib.stylix.opacityToHex config.stylix.opacity.popups
}
border-color=${base0D}
text-color=${base08}
'';
Expand Down
42 changes: 22 additions & 20 deletions modules/nixvim/nixvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,28 @@
lib.optionalAttrs (builtins.hasAttr "nixvim" options.programs) {
programs.nixvim = {
colorschemes.base16 = {
customColorScheme = let
colors = config.lib.stylix.colors.withHashtag;
in {
base00 = colors.base00;
base01 = colors.base01;
base02 = colors.base02;
base03 = colors.base03;
base04 = colors.base04;
base05 = colors.base05;
base06 = colors.base06;
base07 = colors.base07;
base08 = colors.base08;
base09 = colors.base09;
base0A = colors.base0A;
base0B = colors.base0B;
base0C = colors.base0C;
base0D = colors.base0D;
base0E = colors.base0E;
base0F = colors.base0F;
};
customColorScheme =
let
colors = config.stylix.colors.withHashtag;
in
{
base00 = colors.base00;
base01 = colors.base01;
base02 = colors.base02;
base03 = colors.base03;
base04 = colors.base04;
base05 = colors.base05;
base06 = colors.base06;
base07 = colors.base07;
base08 = colors.base08;
base09 = colors.base09;
base0A = colors.base0A;
base0B = colors.base0B;
base0C = colors.base0C;
base0D = colors.base0D;
base0E = colors.base0E;
base0F = colors.base0F;
};

enable = true;
};
Expand Down
14 changes: 8 additions & 6 deletions modules/qutebrowser/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,14 @@ in {
};
};
};
webpage = {
darkmode.enabled = lib.mkDefault
(config.lib.stylix.backgroundPolarity == "dark");
preferred_color_scheme = lib.mkDefault
config.lib.stylix.backgroundPolarity;
};
webpage =
let
polarity = config.lib.stylix.polarityFrom config.stylix.colors;
in
{
darkmode.enabled = lib.mkDefault (polarity == "dark");
preferred_color_scheme = lib.mkDefault polarity;
};
};

fonts = let
Expand Down
26 changes: 15 additions & 11 deletions modules/rofi/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@

config.programs.rofi = lib.mkIf config.stylix.targets.rofi.enable {
theme = config.stylix.colors {
template = with config.lib.stylix; ''
* {
background: rgba ( {{base00-rgb-r}}, {{base00-rgb-g}}, {{base00-rgb-b}}, ${popupsOpacity-int} % );
lightbg: rgba ( {{base01-rgb-r}}, {{base01-rgb-g}}, {{base01-rgb-b}}, ${popupsOpacity-int} % );
red: rgba ( {{base08-rgb-r}}, {{base08-rgb-g}}, {{base08-rgb-b}}, ${popupsOpacity-int} % );
blue: rgba ( {{base0D-rgb-r}}, {{base0D-rgb-g}}, {{base0D-rgb-b}}, ${popupsOpacity-int} % );
lightfg: rgba ( {{base06-rgb-r}}, {{base06-rgb-g}}, {{base06-rgb-b}}, ${popupsOpacity-int} % );
foreground: rgba ( {{base05-rgb-r}}, {{base05-rgb-g}}, {{base05-rgb-b}}, ${popupsOpacity-int} % );
}
${builtins.readFile ./template.mustache}
'';
template =
let
opacity = config.lib.stylix.opacityToInt config.stylix.opacity.popups;
in
''
* {
background: rgba ( {{base00-rgb-r}}, {{base00-rgb-g}}, {{base00-rgb-b}}, ${opacity} % );
lightbg: rgba ( {{base01-rgb-r}}, {{base01-rgb-g}}, {{base01-rgb-b}}, ${opacity} % );
red: rgba ( {{base08-rgb-r}}, {{base08-rgb-g}}, {{base08-rgb-b}}, ${opacity} % );
blue: rgba ( {{base0D-rgb-r}}, {{base0D-rgb-g}}, {{base0D-rgb-b}}, ${opacity} % );
lightfg: rgba ( {{base06-rgb-r}}, {{base06-rgb-g}}, {{base06-rgb-b}}, ${opacity} % );
foreground: rgba ( {{base05-rgb-r}}, {{base05-rgb-g}}, {{base05-rgb-b}}, ${opacity} % );
}
${builtins.readFile ./template.mustache}
'';
extension = ".rasi";
};

Expand Down
4 changes: 3 additions & 1 deletion modules/waybar/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ in
}

window#waybar, tooltip {
background: alpha(@base00, ${config.lib.stylix.desktopOpacity-float});
background: alpha(@base00, ${
config.lib.stylix.opacityToFloat config.stylix.opacity.desktop
});
color: @base05;
}

Expand Down