qtile: fix mute state filepath and add usage note

This commit is contained in:
steveej 2018-11-15 18:24:28 +01:00
parent d49c719f36
commit 6bd147b541
2 changed files with 2 additions and 1 deletions

View file

@ -72,6 +72,7 @@ update-this-device:
sudo nix-channel --update
just -v rebuild-this-device switch
# Iterate on a qtile config by running it inside Xephyr. (un-/grab the mouse with Ctrl + Shift-L)
hm-iterate-qtile:
#!/usr/bin/env bash
set -xe

View file

@ -13,7 +13,7 @@ let
pulseaudio findutils gnugrep
]}:$PATH
export MUTEFILE=''${TEMPDIR:-/tmp}./.qtilemute
export MUTEFILE=''${TEMPDIR:-/tmp}/.qtilemute
case $1 in
mute)
newstate=$(( $(cat $MUTEFILE || echo 0 ) ^ 1 ))