aboutsummaryrefslogtreecommitdiff
path: root/.config/tmux/left-status.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 00:50:14 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 00:50:14 +0200
commitbba0c17c6c0bc310e44ae45b9573d2dc99b8157f (patch)
treeefb8b4a3c9091d91f53905d69919935b33b5b1cd /.config/tmux/left-status.sh
parent4a29c3cc90b48048961331de31c2229cfd71055f (diff)
downloaddotfiles-bba0c17c6c0bc310e44ae45b9573d2dc99b8157f.tar.gz
dotfiles-bba0c17c6c0bc310e44ae45b9573d2dc99b8157f.zip
Changed tmux
Diffstat (limited to '.config/tmux/left-status.sh')
-rwxr-xr-x.config/tmux/left-status.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/.config/tmux/left-status.sh b/.config/tmux/left-status.sh
deleted file mode 100755
index e4a8c49..0000000
--- a/.config/tmux/left-status.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-function ip-address() {
- # Loop through the interfaces and check for the interface that is up.
- for file in /sys/class/net/*; do
- iface=$(basename $file);
- read status < $file/operstate;
- [ "$status" == "up" ] && ip addr show $iface | awk '/inet /{printf $2""}'
- done
-}
-
-function vpn-connection() {
- # Check for tun0 interface.
- [ -d /sys/class/net/tun0 ] && printf "%s " 'VPN*'
-}
-
-function main() {
- # Comment out any function you do not need.
- ip-address
- vpn-connection
-}
-
-# Calling the main function which will call the other functions.
-main
-