aboutsummaryrefslogtreecommitdiff
path: root/scripts/powerline.sh
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2018-03-05 09:15:18 -0700
committerCody Hiar <codyfh@gmail.com>2018-03-05 09:15:18 -0700
commit5a52b401459cc3e3a5a3c48f3f6e9d22151bb508 (patch)
treefa9bfc310b518fbac1074597ddb9b7848ec83e28 /scripts/powerline.sh
parente4a6b968e5229995e8255a9f46ac58966da1f0eb (diff)
Disable right prompt for now
Diffstat (limited to 'scripts/powerline.sh')
-rwxr-xr-xscripts/powerline.sh17
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/powerline.sh b/scripts/powerline.sh
index a2cd3c5..4496ebc 100755
--- a/scripts/powerline.sh
+++ b/scripts/powerline.sh
@@ -15,11 +15,12 @@ if [[ "$1" == "left" ]]; then
echo -ne "#[fg=colour223, bg=colour241] $LAST_ENTRY #[fg=colour241, bg=colour235]$LS#[default]"
fi
-if [[ "$1" == "right" ]]; then
- IP_ADDRESS=$(ip addr show | grep "inet[^6]" | grep -v "\(127.0.0.1\|docker\)" | tr -s ' ' | cut -d ' ' -f3 | cut -d '/' -f1)
- echo -ne "#[fg=colour235, bg=colour241]$RS#[fg=colour223, bg=colour241] $LAN_SYMBOL $IP_ADDRESS"
- WAN_IP=$(curl --max-time 2 -s http://whatismyip.akamai.com/)
- echo -ne " $WAN_SYMBOL $WAN_IP #[default]"
- DATE=$(date +"%b %d, %H:%M")
- echo -ne "#[fg=colour241, bg=colour142]$RS#[fg=colour235] $DATE #[default]"
-fi
+# Disable right prompt for now, i3 bar has all this info
+# if [[ "$1" == "right" ]]; then
+# IP_ADDRESS=$(ip addr show | grep "inet[^6]" | grep -v "\(127.0.0.1\|docker\)" | tr -s ' ' | cut -d ' ' -f3 | cut -d '/' -f1)
+# echo -ne "#[fg=colour235, bg=colour241]$RS#[fg=colour223, bg=colour241] $LAN_SYMBOL $IP_ADDRESS"
+# WAN_IP=$(curl --max-time 2 -s http://whatismyip.akamai.com/)
+# echo -ne " $WAN_SYMBOL $WAN_IP #[default]"
+# DATE=$(date +"%b %d, %H:%M")
+# echo -ne "#[fg=colour241, bg=colour142]$RS#[fg=colour235] $DATE #[default]"
+# fi