#!/bin/sh first=true i3subscribe mode | while read -r x; do if $first; then first=false continue fi x=${x#mode:} case $x in default) echo;; *) echo $x;; esac done