Stop tuning border radii for a screenshot. Wire your desktop so it tells you the truth about your machine.
Somewhere tonight a man is on his third evening of matching the corner radius of his notification daemon to the padding of his terminal. His laptop has had a failed systemd unit since August and a database listening on every interface since a tutorial he followed in the spring.
He will post the screenshot. It will do numbers. The machine underneath will keep lying to him in a perfectly harmonized palette.
The Screenshot Is the Product, and That's the Problem
Ricing culture optimizes for a still frame. The wallpaper, the gaps, the transparent terminal with neofetch running in it: all of it is built to look good for the half second a stranger spends scrolling past. Clone ten Hyprland dotfile repos and you will find ten gorgeous bars that report the same four facts: time, battery, volume, workspace. Your phone already knows all four.
A desktop is an instrument panel. Every pixel you keep on screen permanently should either stay quiet or tell you something true that you would otherwise miss. Pilots don't ask whether the altimeter matches the seat fabric.
I ship a VHS-grain theme suite for KDE Plasma 6 called nightfeed, so I have no quarrel with pretty. Scanlines, tape noise, cobalt black, one palette generating everything from the boot splash to the terminal colors. It installs in one line and backs up your configs first:
$ bash ~/nightfeed/apply.sh # install + switch, backs up configs to backup/
$ bash ~/nightfeed/apply.sh --revert # restore the last backup
Paint is fine. Paint is the last coat. The order matters, and most rices get it backwards: months on the surface, zero minutes on the wiring.
Three Questions Your Bar Should Answer
Forget the weather widget. A useful bar answers questions you would never think to ask until the answer hurts.
What on this machine is listening to the network right now? Every dev box accumulates listeners. A Jupyter server, a Vite dev server someone started with --host, a Postgres container that published its port to 0.0.0.0 because Docker does that by default. You don't notice until the coffee shop Wi-Fi notices for you.
What broke while I wasn't looking? systemd will happily let a backup timer fail for three months. It logs the failure. Nobody reads the log.
Does my config match what's in git? If your dotfiles repo is dirty, your machine is a snowflake again, and the next fresh install will cost you a weekend.
Each answer is a ten-line shell script that prints one line of JSON. Waybar's custom module reads exactly that: a text field for the bar, a tooltip for the hover, and a class you can style. Here's the listener check:
#!/bin/sh
# ~/.config/waybar/scripts/listen.sh
# TCP listeners that are NOT bound to loopback
# -H no header, -t tcp, -l listening, -n numeric, -p owning process
lines=$(ss -Htlnp | awk '$4 !~ /^(127\.|\[::1\]|\[::ffff:127\.)/')
n=$(printf '%s' "$lines" | grep -c .)
tip=$(printf '%s\n' "$lines" | awk '{print $4, $6}')
class=quiet
[ "$n" -gt 0 ] && class=exposed
jq -nc --arg text "ears $n" --arg tooltip "$tip" --arg class "$class" \
'{text: $text, tooltip: $tooltip, class: $class}'
Run it with a throwaway server open and you get something like this:
$ python3 -m http.server 18080 --bind 0.0.0.0 &
$ sh ~/.config/waybar/scripts/listen.sh
{"text":"ears 1","tooltip":"0.0.0.0:18080 users:((\"python3\",pid=618,fd=3))","class":"exposed"}
One gotcha. Without root, ss -p only shows the owning process for sockets your user owns. System daemons show up as a bare address and port. That's enough to make you look; sudo ss -tlnp finishes the job.
Failed units, system and user, in one count:
#!/bin/sh
# ~/.config/waybar/scripts/units.sh
failed=$( { systemctl --failed --no-legend --plain
systemctl --user --failed --no-legend --plain; } 2>/dev/null |
awk '{print $1}' | grep . )
n=$(printf '%s' "$failed" | grep -c .)
class=ok
[ "$n" -gt 0 ] && class=broken
jq -nc --arg text "fail $n" --arg tooltip "$failed" --arg class "$class" \
'{text: $text, tooltip: $tooltip, class: $class}'
And drift between your machine and your dotfiles repo, counting uncommitted changes and commits you never pushed:
#!/bin/sh
# ~/.config/waybar/scripts/dotfiles.sh
repo="$HOME/dotfiles"
dirty=$(git -C "$repo" status --porcelain 2>/dev/null | grep -c .)
ahead=$(git -C "$repo" rev-list --count '@{u}..HEAD' 2>/dev/null || echo 0)
class=clean
[ "$dirty" -gt 0 ] || [ "$ahead" -gt 0 ] && class=drift
jq -nc --arg text "dots ${dirty}/${ahead}" \
--arg tooltip "$dirty uncommitted, $ahead unpushed in $repo" \
--arg class "$class" '{text: $text, tooltip: $tooltip, class: $class}'
Once you see the pattern (run a command, count the bad lines, emit JSON) you'll want twenty more of these. The disk that's 94% full. The SMART counter that started climbing. The VPN that silently dropped. If you'd rather start from a pile of working scripts than write each one from scratch, The Bash Necromancer ($33) is 150 Bash scripts for monitoring, file operations, automation and system administration, written with reviewable inputs and outputs. Most of the monitoring ones become a bar module by swapping their last line for the jq call above.
Wiring Them Into Waybar
The module config is boring on purpose. Each entry points at a script, declares JSON output, and sets a polling interval:
// ~/.config/waybar/config.jsonc (inside your top-level object)
"modules-right": ["custom/listen", "custom/units", "custom/dotfiles", "clock"],
"custom/listen": {
"exec": "~/.config/waybar/scripts/listen.sh",
"return-type": "json",
"interval": 15,
"on-click": "foot -e sh -c 'sudo ss -tlnp; read _'"
},
"custom/units": {
"exec": "~/.config/waybar/scripts/units.sh",
"return-type": "json",
"interval": 60,
"on-click": "foot -e sh -c 'systemctl --failed; read _'"
},
"custom/dotfiles": {
"exec": "~/.config/waybar/scripts/dotfiles.sh",
"return-type": "json",
"interval": 300,
"signal": 9
}
Swap foot for whatever terminal you run. Then the only CSS that matters: quiet when things are fine, loud when they aren't. Waybar turns custom/listen into the id #custom-listen, and your class value lands on it.
/* ~/.config/waybar/style.css */
#custom-listen.quiet,
#custom-units.ok,
#custom-dotfiles.clean { opacity: 0.35; }
#custom-listen.exposed,
#custom-units.broken { color: #ff5f5f; }
#custom-dotfiles.drift { color: #e0af68; }
A healthy machine fades into the bar. A sick one turns red. That's the whole design system, and it beats any gradient you'll ever tune.
The signal line on the dotfiles module is the nice trick. Waybar refreshes a module early when it receives SIGRTMIN plus that number, so a git hook can update the bar the instant you commit instead of waiting five minutes:
#!/bin/sh
# ~/dotfiles/.git/hooks/post-commit (chmod +x it)
pkill -RTMIN+9 waybar
Commit, and the amber goes grey before your hand leaves the keyboard. Small feedback loops are how habits get built.
One Key That Ends the Session
The other thing a real desktop needs is a panic button: one chord that kills the mic, stops whatever is playing, and locks the screen, for when someone walks up behind you or you walk away from the table:
#!/bin/sh
# ~/.local/bin/lockdown
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1 # mic off at the PipeWire level
playerctl pause 2>/dev/null # stop media if anything is playing
swaylock -f -c 000000 # fork, lock, solid black
Bind it in Sway:
bindsym $mod+Escape exec ~/.local/bin/lockdown
Or in Hyprland:
bind = $mainMod, Escape, exec, ~/.local/bin/lockdown
Muting at the PipeWire source means the call app doesn't get a vote. That's the right default for a key you press in a hurry.
If It Isn't Reproducible, It Isn't Yours
Everything above lives in four small files and two config blocks. Put them in the dotfiles repo the third module is watching, and your next machine gets the instrument panel for free. Leave them scattered in ~/.config and you'll rebuild them from memory, badly, at 2 AM, after a dead SSD.
This is where most rices quietly fail. They were assembled by hand over a year of copy-paste, and nobody, including the owner, can say what's load-bearing. The move that fixes it is boring: one repo, one install path, ideally a declarative system underneath so the machine itself is described in text. If you want the whole road mapped, the Linux Desktop Operator Pack ($39) is eleven guides covering an Arch install path, the move to NixOS and flakes, Sway layouts, EWW widgets and dashboards, KDE and SDDM theming, dotfiles and reproducible builds. It's the right next step if your current setup works but you couldn't rebuild it on a fresh drive by Sunday.
Pick the one module that would have embarrassed you most last month. Wire that one tonight. Leave the corner radius alone until the bar has something to say.
Top comments (0)