dotfiles-x113ff9631
waybar: some css changes for workspaces hover
+12 −8
2 files changed
- M .config/waybar/config.jsonc +2 −1
- M .config/waybar/style.css +10 −7
| @@ -62,7 +62,8 @@ | |||
| 62 | 62 | "show-special": false | |
| 63 | 63 | }, | |
| 64 | 64 | "hyprland/window": { | |
| 65 | − | "format": " {}" | |
| 65 | + | "format": " {}", | |
| 66 | + | "max-length": 50 | |
| 66 | 67 | }, | |
| 67 | 68 | "tray": { | |
| 68 | 69 | "icon-size": 13, | |
| @@ -103,10 +103,17 @@ window#waybar.hidden { | |||
| 103 | 103 | border-bottom-right-radius: 8px; | |
| 104 | 104 | } | |
| 105 | 105 | ||
| 106 | + | /* empty persistent workspaces */ | |
| 107 | + | #workspaces button.empty { | |
| 108 | + | background-color: @base; | |
| 109 | + | box-shadow: none; | |
| 110 | + | } | |
| 111 | + | ||
| 106 | 112 | #workspaces button:hover { | |
| 107 | − | transition-duration: .2s; | |
| 113 | + | /* transition-duration: .3s; */ | |
| 108 | 114 | color: @base; | |
| 109 | − | box-shadow: inherit; | |
| 115 | + | background-color: #7da6ff; | |
| 116 | + | box-shadow: inset 0 -1px #ffffff; | |
| 110 | 117 | /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ | |
| 111 | 118 | text-shadow: inherit; | |
| 112 | 119 | } | |
| @@ -116,11 +123,7 @@ window#waybar.hidden { | |||
| 116 | 123 | background-color: #4c566a; | |
| 117 | 124 | } | |
| 118 | 125 | ||
| 119 | − | /* empty persistent workspaces */ | |
| 120 | − | #workspaces button.empty { | |
| 121 | − | background-color: @base; | |
| 122 | − | box-shadow: none; | |
| 123 | − | } | |
| 126 | + | ||
| 124 | 127 | ||
| 125 | 128 | /* active or visible workspaces */ | |
| 126 | 129 | #workspaces button.active, | |