1
0
mirror of https://github.com/sameer1612/.dotfiles.git synced 2024-11-19 18:01:53 +02:00
sameer1612/.toggle_tmux_status_bar.sh
2023-10-04 17:07:46 +05:30

13 lines
246 B
Bash
Executable File

#!/bin/bash
# Get the current status of the Tmux status bar
status=$(tmux show-option -g status | awk '{print $NF}')
# Toggle the status
if [ "$status" == "on" ]; then
tmux set-option -g status off
else
tmux set-option -g status on
fi