]>
Commit | Line | Data |
---|---|---|
ff1a2414 | 1 | #!/bin/sh |
2 | first=true | |
3 | i3subscribe mode | while read -r x; do | |
4 | if $first; then | |
5 | first=false | |
6 | x=default #XXX: i3 does not expose method to get mode, assume | |
7 | fi | |
8 | x=${x#mode:} | |
9 | [ "$1" = "hide-default" -a "$x" = "default" ] && echo || echo "$x" | |
10 | done |