Blog

Network speed, reminders and a focus timer on Linux

Three small jobs come up again and again at a computer. How fast is the connection right now, and how much has today used? Can something remind me to stand up, or to send that email at three? And can a timer tell me when to take a break?

Linux has the pieces for all three, if you know where to look. Here’s how to do each with what’s already on your computer, and then what we built for it: Shadowkit for desktop, the offline app from the phone, on a computer. It’s out on Linux, free, and comes to Windows and macOS later.

Network speed and data use

The Linux kernel counts every byte each network interface sends and receives. You can read the counters yourself. ip link lists the interfaces, with names like wlp3s0 for Wi-Fi and enp0s31f6 for Ethernet, and ip -s link shows each one’s totals. The raw numbers are files:

cat /sys/class/net/wlp3s0/statistics/rx_bytes   # received
cat /sys/class/net/wlp3s0/statistics/tx_bytes   # sent

Read one twice, a second apart, and the difference is the speed in bytes a second. That’s all a network speed monitor does. For a picture instead of numbers, GNOME’s System Monitor has a network graph on its Resources tab.

The catch is the totals. The counters start again from zero when the computer restarts, so they can’t tell you how much today used, let alone last month. For that, something has to keep counting in the background and write the days down. vnStat is a long-standing command-line tool for it: in its own words, it “keeps a log of network traffic for the selected interface(s)” and “uses the network interface statistics provided by the kernel”. Daily totals matter most if your connection has a monthly allowance, such as a phone’s hotspot or a mobile broadband plan.

Reminders on the desktop

Most Linux desktops can show a notification from the command line with notify-send (on Debian and Ubuntu it’s in the libnotify-bin package). Put a wait in front of it and you have a one-off reminder:

sleep 45m && notify-send "Send the invoice"

It only works while that terminal stays open, though, and it doesn’t repeat. For dates and meetings, your calendar app’s alerts are the better place. A reminder that repeats through the day, like “stand up every two hours from 10:00 to 18:00”, is where the do-it-yourself route gets fiddly: a cron job can run notify-send, but it doesn’t run inside your desktop session, so it has to be told which one to show the notification on.

A focus timer

The same trick makes a Pomodoro timer:

sleep 25m && notify-send "Time for a break"

GNOME’s Clocks app has a timer too. Neither knows a session from a break, starts the break for you, or remembers what you got done, which is the part that tells you where a week went.

What Shadowkit for desktop does

Shadowkit for desktop starts with three skills, and a sidebar with Today and one line for each. A small counter runs in the background from the moment you sign in, using a few megabytes: it counts Data, sends Notify’s reminders and keeps Focus’s timer, all with the window closed. Since this guide was written the app has gained three more skills, for the computer alone: System, which keeps your battery’s charge and health and your free disk space day by day, Desktop, for GNOME dark at sunset and quiet hours, and Games, six small ones for the minutes a build takes.

Data shows download and upload as they happen on each connection, and beside Shadowkit’s icon in the top bar where your desktop’s tray shows text. It splits today’s use since midnight into Wi-Fi, Ethernet and mobile data, counting a modem or a phone tethered by USB or Bluetooth as mobile. It shows the Wi-Fi network’s name, band, channel and signal, and keeps every day as bars by days, weeks and months, a table of months, and a CSV file for a spreadsheet; keep 90 days, a year or everything. Set your plan’s monthly allowance and the day it renews, and Data shows what’s left and tells you at 80% and at 100%. It never blocks anything, and it never goes online, not even to test your speed: it reads the counters above. More on Data for desktop.

Notify holds reminders that read as a sentence: once, daily, weekly, or every 30 minutes to 12 hours between two times on the days you choose. Type a time as you’d say it, 14:30 or 2:30 pm, and it shows the next three times so you know it’s right. If the computer was asleep or off at the time, a reminder missed less than an hour ago comes when you’re back, saying when it was due. Pins keep a door code or a Wi-Fi password in view, in Shadowkit’s tray menu, where a click copies it, and in the notification list. From the tray you can pause reminders for an hour, for a call. More on Notify for desktop, and on writing schedules in reminders in plain words.

Focus is a timer for a stretch of work, then a break: 25 · 5, 50 · 10, 90 · 15 or lengths of your own, and say what the session is for if you like. The time left shows beside the tray icon, Space starts and pauses, and “Time for a break” and “Break’s over” arrive with the window closed. Every fourth break of the day is a longer one. If the computer goes to sleep, the session pauses where it was, and time asleep isn’t counted as focus. Today shows your focused time against a daily goal, the history shows the last 14 days, 12 weeks or 12 months, and “What it went to” lists the last 7 days by label. More on Focus for desktop.

The tray parts, the time beside the icon, the pins in the tray menu and the hour’s pause, need a tray: KDE has one, and GNOME needs the AppIndicator extension. Everything else works without it.

The phone’s app, on your computer

These are the same skills as in Shadowkit on the phone, with the same look, widened for a window. Data is on Android only; Notify and Focus are on Android now and come to iPhone when the iPhone version is out. There’s more on Focus in how long to focus, and when to rest. Each device keeps its own: nothing syncs between your phone and your computer, because nothing leaves either.

Free, offline, no account

Shadowkit for desktop is free: no ads, no account and no Pro, with every day of history you keep, as many reminders as you like and every focus session. Everything stays on your computer. It installs on Ubuntu 22.04 or newer and Debian 12 or newer, on GNOME or KDE, and comes later to Windows and macOS. The desktop page has the download and how to install it.

Shadowkit Data for desktop: everything it doesLive network speed, today’s Wi-Fi, Ethernet and mobile data, and every day kept.Shadowkit Notify for desktop: everything it doesReminders that arrive with the window closed, and pins in your tray and notification list.Shadowkit Focus for desktop: everything it doesA timer for a stretch of work, then a break, with every day’s focused time kept.

Get Shadowkit

Scan with your Android phone’s camera, or tap Google Play. iPhone is coming soon.Tap Google Play to get it. iPhone is coming soon.

iOS

App Store

Android

Google Play