diff options
author | Julian T <julian@jtle.dk> | 2019-02-24 13:45:22 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2019-02-24 13:45:22 +0100 |
commit | 9da5284cd811098bf8609e51ba602f08be493766 (patch) | |
tree | 8061c0ff45d782675b5f98f63a43a1603e33f469 /dwm/.dwmSession.sh | |
parent | 489aeecfdd9d8938669e25961f43df287c4e9bcd (diff) |
Added dwm stuff and emacs
Diffstat (limited to 'dwm/.dwmSession.sh')
-rwxr-xr-x | dwm/.dwmSession.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm/.dwmSession.sh b/dwm/.dwmSession.sh index 2c427b8..3274e7a 100755 --- a/dwm/.dwmSession.sh +++ b/dwm/.dwmSession.sh @@ -13,7 +13,7 @@ while true; do BATT=$( acpi -b | sed 's/.*[charging|unknown], \([0-9]*\)%.*/\1/gi' ) TIME=$(/bin/date +"%H:%M") - IP=$(hostname -i) + IP=$(ip -4 a | grep "inet " | sed "s:inet \(.*\)/.*:\1:" | tr -d " " | tr "\n" " ") xsetroot -name "$IP $TIME $BATT%" sleep 10 |