About Articles Projects Software love Feed

Declarative rotating dashboards in a dedicated browser

Being in IT operations, I need constant good views into the systems so we can spot and rectify issues quickly.

I really like everything as code. The setup for this solution should be no exception.

Therefore what I want is something along this:

My primary browser, for now is the very nice qutebrowser.

Running Guix, I’ll install a less secure and separate browser from Nix, which allows to run applications easily separate from the rest of the system.

. /home/ds/.nix-profile/etc/profile.d/nix.sh
nix-env -i firefox

Then launch firefox once off and install this tab-rotator plugin. Set it to start rotating on start up.

Next up, create a wrapper bash script in ~/.local/bin/firefox


# Dashboards, rotated, full screen for me on a screen.

# nix-env -i firefox
# Then install this plugin for tabs
# https://addons.mozilla.org/en-US/firefox/addon/tab-rotator/

. /home/ds/.nix-profile/etc/profile.d/nix.sh

# Each entry in the below file has a URL.
xargs -a ~/.config/dashboards-bookmarks.txt \
      /home/ds/.nix-profile/bin/firefox -new-tab "$line" \
      > /dev/null 2>&1 &

# Make full screen.
sleep 2 ; xdotool search --sync --onlyvisible --class "Firefox" windowactivate \
		  key F11 > /dev/null 2>&1

So the above simply launches this firefox browser in full screen with one tab from each line in ~/.config/dashboards-bookmarks.txt and it will rotate through these tabs every x seconds. I put this firefox window on a dedicated window and keep an eye on things through the day.

~/.config/dashboards-bookmarks.txt looks something like this:



Date: 2019-09-13 (Last update: 2019-12-24)

Made with Emacs 26.3 (Org mode 9.1.9)

Creative Commons License