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

blackhole: Fix wallpaper.color.primary to use defined black #20

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

haaspors
Copy link
Contributor

This fixes a problem when using blackhole look and regolith sway, where the /usr/bin/regolith-set-swaybg script will execute

wallpaper=$(trawlcat regolith.wallpaper.file "")
color=$(trawlcat regolith.wallpaper.color.primary)
swaymsg output "*" background $(xmllint $wallpaper --xpath "string(*//size/text())") $mode $color

which again ends up in

Error: Invalid output subcommand: black.

from sway-output man page

...
color should be specified as #RRGGBB. Alpha is not supported.
...

Copy link
Member

@kgilmer kgilmer left a comment

Choose a reason for hiding this comment

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

LGTM! (@ploum FYI)

@kgilmer kgilmer merged commit 2048062 into regolith-linux:main Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants