aboutsummaryrefslogtreecommitdiff
path: root/lib/muting.sh
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-04-20 19:37:10 -0600
committerCody Hiar <codyfh@gmail.com>2017-04-20 19:37:10 -0600
commit2dd809781527976307b47a598887062047e202c9 (patch)
tree8b29daba2c1ef072f380ef530b7e7d9256e43eb3 /lib/muting.sh
parentbaeb698bb006193559fc5aa1901180a3ccc73b7a (diff)
Making tmux configuration much easier to manage
Diffstat (limited to 'lib/muting.sh')
-rw-r--r--lib/muting.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/muting.sh b/lib/muting.sh
deleted file mode 100644
index 595ba87..0000000
--- a/lib/muting.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-# Muting Logic
-# In all cases $1 is the side to be muted (eg left/right).
-
-powerline_muted() {
- [ -e "$(__powerline_mute_file $1)" ];
-}
-
-toggle_powerline_mute_status() {
- if powerline_muted $1; then
- rm "$(__powerline_mute_file $1)"
- else
- touch "$(__powerline_mute_file $1)"
- fi
-}
-
-__powerline_mute_file() {
- local tmux_session=$(tmux display -p "#S")
-
- echo -n "${TMUX_POWERLINE_DIR_TEMPORARY}/mute_${tmux_session}_$1"
-}