-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Can't change color of workspaces icons #3843
Comments
To do this, you mean? waybar-tests.webmtest.css
#workspaces button { #workspaces button:hover { #workspaces button:active { #workspaces button.visible { .modules-center { test.jsonc |
@msmafra What version of waybar are you using? I'm using waybar v0.11.0 and I, like OP, have not been able to get the workspace icon colors to change via css. I resorted to using pango markup in the json config file. |
@tvannoy I'm using waybar 0.11.0 |
@KiraKyatto Your config works fine for me: I modified it for my monitor setup and hardcoded a color since we don't have your css colors. test.css * {
border: none;
border-radius: 0;
font-size: 18px;
background: transparent;
font-family: "BlexMono Nerd Font";
}
#workspaces button {
padding: 0 5px;
color: #31ade1;
}
.modules-center {
background-color: #333333;
border-radius: 15px;
padding: 0 10px;
} test.jsonc {
//Position TOP
"layer": "top",
"margin-top": 14,
"margin-bottom": 0,
//Load modules
"include":["~/.config/waybar/modules.json"],
//Modules LEFT
"modules-left":[
"clock",
"wlr/taskbar",
],
//Modules CENTER
"modules-center":[
"hyprland/workspaces",
],
} modules.json {
"clock":{
"tooltip": true,
},
"hyprland/workspaces":{
"persistent-workspaces": {"*":[1,2,3],},
"format": "{icon}",
"format-icons":{
"active": "", //these two are icons from nerd fonts
"default": ""
},
},
} A slightly more involved minimal config from @msmafra's example: {
//Position TOP
"reload_style_on_change": true,
"layer": "top",
"margin-top": 14,
"margin-bottom": 0,
//Modules CENTER
"modules-center": [
"hyprland/workspaces",
],
"hyprland/workspaces": {
"persistent-workspaces": {
"*": 3,
},
"format": "{icon}",
"format-icons": {
"active": "", //these two are icons from nerd fonts
"default": ""
},
}
} test.css * {
border: none;
border-radius: 0;
font-size: 18px;
background: transparent;
font-family: "BlexMono Nerd Font";
}
#workspaces button {
padding: 0 5px;
color: #11e1ff;
}
#workspaces button:active {
color: #555555;
}
#workspaces button.visible {
color: #ffffff;
}
#workspaces button:hover {
color: #ff0000;
}
.modules-center {
background-color: #222222;
border-radius: 15px;
padding: 0 10px;
} You can run it with |
@KiraKyatto What version of waybar are you using? Can you post a screenshot of what your bar looks like with your config? Manually running waybar with an increased log-level might be worthwhile: |
Several other users were having the same issue of not being able to set hyprland workspace icons using css #2635 #3515 I'm beginning to think that the issue was actually something in the css order, as stated in the wiki, although I couldn't get the workspace icon colors working by following the wiki example. |
As I'm trying to keep my "environment" consistent and not pull my hair off 🥲 . I try to reuse some of the CSS between the tools I use (nwg-drawer, wlgout, waybar etc).
|
@tvannoy here are the screenshots you asked for and I also tried with hardcoded colors (same as yours to be sure) but it doesn't work |
Please share your full waybar config (CSS and JSON). |
Her are my config files : config.jsonc {
//Position TOP
"layer": "top",
"margin-top": 14,
"margin-bottom": 0,
//Load modules
"include":["~/.config/waybar/modules.json"],
//Modules LEFT
"modules-left":[
"clock",
"wlr/taskbar",
],
//Modules CENTER
"modules-center":[
"hyprland/workspaces",
],
//Modules RIGHT
"modules-right":[
"network",
]
} modules.json {
"clock":{
"tooltip": true,
},
"hyprland/workspaces":{
"persistent-workspaces": {"DP-1":[1,2,3], "HDMI-A-1":[1,2,3]},
"format": "{icon}",
"format-icons":{
"active": "",
"default": ""
},
},
"network":{
"format": "{bandwidthDownBits} {bandwidthUpBits} "
},
} style.css @import "/home/alex/.cache/wal/colors-waybar.css";
* {
border: none;
border-radius: 0;
font-size: 18px;
background: transparent;
}
#workspaces button {
padding: 0 5px;
color: @color2;
}
#network {
font-size: 12px;
}
.modules-center, .modules-left, .modules-right {
background-color: @color1;
border-radius: 15px;
padding: 0 10px;
} colors-waybar.css @define-color foreground #dee1d5;
@define-color background #0f1421;
@define-color cursor #dee1d5;
@define-color color0 #0f1421;
@define-color color1 #75A39A;
@define-color color2 #9AAB9C;
@define-color color3 #B9B297;
@define-color color4 #C3B99B;
@define-color color5 #C4BDA2;
@define-color color6 #D1CDAE;
@define-color color7 #dee1d5;
@define-color color8 #9b9d95;
@define-color color9 #75A39A;
@define-color color10 #9AAB9C;
@define-color color11 #B9B297;
@define-color color12 #C3B99B;
@define-color color13 #C4BDA2;
@define-color color14 #D1CDAE;
@define-color color15 #dee1d5; |
waybar-kirakyatto.webmI added "reload_style_on_change" to the config.jsonc just to not have to kill waybar on CSS changes while testing. #workpaces button:hover with the format/effects/colors you want will work with this. config.jsonc
style.css
|
@msmafra Thank you so much , it finally worked, it was a headache for me. Have a nice day and sorry for inconvenience. |
Hello, I recently tried to configure waybar on my arch hyprland but I'm not able to change the base color of the workspace icon. Here are my config files :
config
:style.css
:modules.json
:Thanks to whoever tries to help me.
The text was updated successfully, but these errors were encountered: