]> git.sev.monster Git - dotfiles.git/blame - bin/i3-mode
in development
[dotfiles.git] / bin / i3-mode
CommitLineData
ff1a2414 1#!/bin/sh
2first=true
3i3subscribe 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"
10done
This page took 0.047551 seconds and 4 git commands to generate.