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

[Feature Request]: swaync support #39

Open
kRHYME7 opened this issue Dec 18, 2024 · 8 comments
Open

[Feature Request]: swaync support #39

kRHYME7 opened this issue Dec 18, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@kRHYME7
Copy link
Contributor

kRHYME7 commented Dec 18, 2024

swaync wallbash and selector script?

@kRHYME7 kRHYME7 added the enhancement New feature or request label Dec 18, 2024
@imtheabdi
Copy link
Contributor

swaync wallbash and selector script?

would love a notification center for sure! a material theme style one would look really sweet!! ;p

@brunodunbar
Copy link

I had installed it manually, but I suck at design and theming, it would be lovely to have it properly integrated with the theming system.

@dieBakterie
Copy link
Collaborator

swaync wallbash and selector script?

I think i've those in my repo it's not really good but it's an starting point, it themes with the system(has wallbash support) but it's originally for Hyprdots/old HyDE...

@kRHYME7
Copy link
Contributor Author

kRHYME7 commented Jan 30, 2025

Hi @dieBakterie feel free to contribute. Let's discuss in there what can be added.

@dieBakterie
Copy link
Collaborator

Hi @kRHYME7 we could implement in themeswitscher to change the source line to the according theme css file for swaync and with wallbash we change the line to the wallbash css and write the colours in ther. I think that's how it's done right now

@dieBakterie
Copy link
Collaborator

Therefore we need the selection between dunst and swaync for example since only one of them should be installed.

@kRHYME7
Copy link
Contributor Author

kRHYME7 commented Jan 31, 2025

Therefore we need the selection between dunst and swaync for example since only one of them should be installed.

Nah, doesn't matter. Whichever is running first prevails. Also we have $start.NOTIFICATION so setting this to swaync will work.

@dieBakterie
Copy link
Collaborator

dieBakterie commented Jan 31, 2025

Okay should we've an own css file for each theme and symlink it to the swanc folder or should we've the theme specific swanc files in the swanc folder instead of the themes? We could just launch swaync complicated via script and set the theme this way, example exec-once swaync --config ~/.config/swaync/config.jsonc --theme $themepath this way we coulkd use a jsonc and have comments since just exec-once swaync only works with config.json being in ~/.config/swaync. We could just change the import/source line to match the current theme specific css and for wallbash we just do it like for waybar for example, just need to unify some swaync stuff, change "var names" to match the default ones.

Two variants of doing it rn that i've implemented are one wallbash or two have an theme specific css and update the source/import line in the config file via sed, alternative version only needs this and has a theme specific file for each existing theme as of hyprdots july 2024 i would say, needs to be updated to match the themes and added for new ones ofcourse

# swaync
#! only for alternative version needed
if pkg_installed swaync || pkg_installed swaynotificationcenter; then
     style_css="${confDir}/swaync/style.css"

     # convert themeSet to the format used in style.css
     theme_file=$(echo "$gtkTheme" | tr '[:upper:]' '[:lower:]' | tr '-' '_') # easiest way of getting all hyde theme names

     # replaces the @import-Statement with the desired theme
     sed -i "s|@import \"\.\/themes\/[^\"]*\.css\"|@import \"\.\/themes\/${theme_file}.css\"|g" "${style_css}"
 fi

other version don't needs this, well it's just wallbash but i think we should use both the alternative vesion and then wallbash when wallbash is activated/used so just like now in general.
wallbashswaync.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants