me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

update waybar config

author
Sean Aye
date (Aug 30, 2025, 10:46 PM -0400) commit dfed3ec0 parent 522c15d4 change-id yzsxonmu
+85 -123
+82 -84
hosts/common/home.nix
··· 138 138 mainBar = { 139 139 height = 8; 140 140 spacing = 0; 141 - 141 + 142 142 modules-left = [ 143 - "sway/workspaces" 144 - "sway/mode" 145 - "sway/scratchpad" 146 143 "custom/media" 147 144 ]; 148 - 145 + 149 146 modules-center = [ 150 - "sway/window" 147 + "clock" 151 148 ]; 152 - 149 + 153 150 modules-right = [ 154 151 "mpd" 155 152 "pulseaudio" ··· 162 159 "sway/language" 163 160 "battery" 164 161 "battery#bat2" 165 - "clock" 166 162 "custom/power" 167 163 ]; 168 - 164 + 169 165 "keyboard-state" = { 170 166 numlock = true; 171 167 capslock = true; 172 168 format = "{name} {icon}"; 173 169 format-icons = { 174 - locked = " "; 175 - unlocked = " "; 170 + locked = " "; 171 + unlocked = " "; 176 172 }; 177 173 }; 178 - 179 - "sway/mode" = { 180 - format = "<span style=\"italic\">{}</span>"; 181 - }; 182 - 183 - "sway/scratchpad" = { 184 - format = "{icon} {count}"; 185 - show-empty = false; 186 - format-icons = [ "" "" ]; 187 - tooltip = true; 188 - tooltip-format = "{app}: {title}"; 189 - }; 190 - 174 + 191 175 mpd = { 192 176 format = "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% "; 193 177 format-disconnected = "Disconnected "; ··· 195 179 unknown-tag = "N/A"; 196 180 interval = 5; 197 181 consume-icons = { 198 - on = " "; 182 + on = " "; 199 183 }; 200 184 random-icons = { 201 - off = "<span color=\"#f53c3c\"></span> "; 202 - on = " "; 185 + off = "<span color=\"#f53c3c\"></span> "; 186 + on = " "; 203 187 }; 204 188 repeat-icons = { 205 - on = " "; 189 + on = " "; 206 190 }; 207 191 single-icons = { 208 - on = "1 "; 192 + on = "1 "; 209 193 }; 210 194 state-icons = { 211 - paused = ""; 212 - playing = ""; 195 + paused = ""; 196 + playing = ""; 213 197 }; 214 198 tooltip-format = "MPD (connected)"; 215 199 tooltip-format-disconnected = "MPD (disconnected)"; 216 200 }; 217 - 201 + 218 202 idle_inhibitor = { 219 203 format = "{icon}"; 220 204 format-icons = { 221 - activated = ""; 222 - deactivated = ""; 205 + activated = " "; 206 + deactivated = " "; 223 207 }; 224 208 }; 225 - 209 + 226 210 tray = { 227 211 spacing = 10; 228 212 }; 229 - 213 + 230 214 clock = { 231 215 tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; 232 216 format-alt = "{:%Y-%m-%d}"; 233 217 }; 234 - 218 + 235 219 cpu = { 236 - format = "{usage}% "; 220 + format = "{usage}%  "; 237 221 tooltip = false; 238 222 }; 239 - 223 + 240 224 memory = { 241 - format = "{}% "; 225 + format = "{}%  "; 242 226 }; 243 - 227 + 244 228 temperature = { 245 229 critical-threshold = 80; 246 230 format = "{temperatureC}°C {icon}"; 247 - format-icons = [ "" "" "" ]; 231 + format-icons = [ 232 + "" 233 + "" 234 + "" 235 + ]; 248 236 }; 249 - 237 + 250 238 backlight = { 251 239 format = "{percent}% {icon}"; 252 240 format-icons = [ 253 - "" 254 - "" 255 - "" 256 - "" 257 - "" 258 - "" 259 - "" 260 - "" 261 - "" 241 + "" 242 + "" 243 + "" 244 + "" 245 + "" 246 + "" 247 + "" 248 + "" 249 + "" 262 250 ]; 263 251 }; 264 - 252 + 265 253 battery = { 266 254 states = { 267 255 warning = 30; ··· 269 257 }; 270 258 format = "{capacity}% {icon}"; 271 259 format-full = "{capacity}% {icon}"; 272 - format-charging = "{capacity}% "; 273 - format-plugged = "{capacity}% "; 260 + format-charging = "{capacity}% "; 261 + format-plugged = "{capacity}% "; 274 262 format-alt = "{time} {icon}"; 275 - format-icons = [ "" "" "" "" "" ]; 263 + format-icons = [ 264 + "" 265 + "" 266 + "" 267 + "" 268 + "" 269 + ]; 276 270 }; 277 - 271 + 278 272 "battery#bat2" = { 279 273 bat = "BAT2"; 280 274 }; 281 - 275 + 282 276 "power-profiles-daemon" = { 283 277 format = "{icon}"; 284 278 tooltip-format = "Power profile: {profile}\nDriver: {driver}"; 285 279 tooltip = true; 286 280 format-icons = { 287 - default = ""; 288 - performance = ""; 289 - balanced = " "; 290 - power-saver = " "; 281 + default = ""; 282 + performance = ""; 283 + balanced = " "; 284 + power-saver = " "; 291 285 }; 292 286 }; 293 - 287 + 294 288 network = { 295 - format-wifi = "{essid} ({signalStrength}%) "; 296 - format-ethernet = "{ipaddr}/{cidr} "; 297 - tooltip-format = "{ifname} via {gwaddr} "; 298 - format-linked = "{ifname} (No IP) "; 289 + format-wifi = "{essid} ({signalStrength}%)  "; 290 + format-ethernet = "{ipaddr}/{cidr} "; 291 + tooltip-format = "{ifname} via {gwaddr} "; 292 + format-linked = "{ifname} (No IP) "; 299 293 format-disconnected = "Disconnected ⚠"; 300 294 format-alt = "{ifname}: {ipaddr}/{cidr}"; 301 295 }; 302 - 296 + 303 297 pulseaudio = { 304 298 format = "{volume}% {icon} {format_source}"; 305 - format-bluetooth = "{volume}% {icon} {format_source}"; 306 - format-bluetooth-muted = " {icon} {format_source}"; 307 - format-muted = " {format_source}"; 308 - format-source = "{volume}% "; 309 - format-source-muted = " "; 299 + format-bluetooth = "{volume}% {icon} {format_source}"; 300 + format-bluetooth-muted = " {icon} {format_source}"; 301 + format-muted = " {format_source}"; 302 + format-source = "{volume}% "; 303 + format-source-muted = " "; 310 304 format-icons = { 311 - headphone = ""; 312 - hands-free = ""; 313 - headset = ""; 314 - phone = ""; 315 - portable = ""; 316 - car = ""; 317 - default = [ "" " " " " ]; 305 + headphone = ""; 306 + hands-free = ""; 307 + headset = ""; 308 + phone = ""; 309 + portable = ""; 310 + car = ""; 311 + default = [ 312 + "" 313 + " " 314 + " " 315 + ]; 318 316 }; 319 317 on-click = "pavucontrol"; 320 318 }; 321 - 319 + 322 320 "custom/media" = { 323 321 format = "{icon} {text}"; 324 322 return-type = "json"; 325 323 max-length = 40; 326 324 format-icons = { 327 - spotify = " "; 325 + spotify = " "; 328 326 default = "🎜 "; 329 327 }; 330 328 escape = true; 331 329 exec = "$HOME/.config/waybar/mediaplayer.py 2> /dev/null"; 332 330 }; 333 - 331 + 334 332 "custom/power" = { 335 333 format = "⏻ "; 336 334 tooltip = false; ··· 345 343 }; 346 344 }; 347 345 }; 348 - # style = builtins.readFile ./waybar/style.css; 346 + style = builtins.readFile ./waybar/style.css; 349 347 }; 350 348 351 349 programs.ssh = {
+2 -38
hosts/common/waybar/config.jsonc
··· 7 7 "spacing": 0, // Gaps between modules (4px) 8 8 // Choose the order of the modules 9 9 "modules-left": [ 10 - "sway/workspaces", 11 - "sway/mode", 12 - "sway/scratchpad", 13 10 "custom/media" 14 11 ], 15 - "modules-center": [ 16 - "sway/window" 17 - ], 18 12 "modules-right": [ 19 13 "mpd", 20 14 // "idle_inhibitor", ··· 26 20 "temperature", 27 21 "backlight", 28 22 // "keyboard-state", 29 - "sway/language", 30 23 "battery", 31 24 "battery#bat2", 32 25 "clock", 33 26 "custom/power" 34 27 ], 35 28 // Modules configuration 36 - // "sway/workspaces": { 37 - // "disable-scroll": true, 38 - // "all-outputs": true, 39 - // "warp-on-scroll": false, 40 - // "format": "{name}: {icon}", 41 - // "format-icons": { 42 - // "1": "", 43 - // "2": "", 44 - // "3": "", 45 - // "4": "", 46 - // "5": "", 47 - // "urgent": "", 48 - // "focused": "", 49 - // "default": "" 50 - // } 51 - // }, 52 29 "keyboard-state": { 53 30 "numlock": true, 54 31 "capslock": true, ··· 57 34 "locked": " ", 58 35 "unlocked": " " 59 36 } 60 - }, 61 - "sway/mode": { 62 - "format": "<span style=\"italic\">{}</span>" 63 - }, 64 - "sway/scratchpad": { 65 - "format": "{icon} {count}", 66 - "show-empty": false, 67 - "format-icons": [ 68 - "", 69 - "" 70 - ], 71 - "tooltip": true, 72 - "tooltip-format": "{app}: {title}" 73 37 }, 74 38 "mpd": { 75 39 "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", ··· 100 64 "idle_inhibitor": { 101 65 "format": "{icon}", 102 66 "format-icons": { 103 - "activated": "", 104 - "deactivated": "" 67 + "activated": " ", 68 + "deactivated": " " 105 69 } 106 70 }, 107 71 "tray": {
+1 -1
hosts/common/waybar/style.css
··· 1 1 * { 2 - font-family: FantasqueSansMono Nerd Font; 2 + font-family: "JetBrainsMono Nerd Font", "Font Awesome 6 Free", monospace; 3 3 font-size: 14px; 4 4 min-height: 0; 5 5 }