From 38eb58c715498196745508e183fa63cfaa46191d Mon Sep 17 00:00:00 2001 From: furtest Date: Mon, 20 Apr 2026 13:38:19 +0200 Subject: [PATCH] Add wifi status to tmux status bar --- tmux/connection.sh | 2 ++ tmux/theme.conf | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 tmux/connection.sh diff --git a/tmux/connection.sh b/tmux/connection.sh new file mode 100755 index 0000000..fbb89aa --- /dev/null +++ b/tmux/connection.sh @@ -0,0 +1,2 @@ +#!/usr/bin/bash +nmcli -f name,type -t connection show --active | grep -e ethernet -e wireless | sed 's/:.*//' diff --git a/tmux/theme.conf b/tmux/theme.conf index bffd5f0..55bd307 100644 --- a/tmux/theme.conf +++ b/tmux/theme.conf @@ -9,7 +9,8 @@ active_pane_border="#abb2bf" set -g status-left-length 200 # default: 10 set -g status-right-length 200 # default: 10 set -g status-left "#[fg=${session_fg},bold,bg=${bg}]#[fg=${default_fg},nobold,bg=${bg}]" -set -g status-right '#{battery_status_bg} #{battery_icon} #{battery_percentage} | %H:%M ' +set -g status-right ' #(~/files/scripts/config_files/tmux/connection.sh) |'\ +'#{battery_status_bg} #{battery_icon} #{battery_percentage} | %H:%M ' set -g status-justify left set -g status-style "bg=${bg}" set -g window-status-format "#[fg=${default_fg},bg=default] #I:#W"