summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xawesome_bar.sh2
-rwxr-xr-xxinitrc6
2 files changed, 4 insertions, 4 deletions
diff --git a/awesome_bar.sh b/awesome_bar.sh
index 58c12e4..edcd148 100755
--- a/awesome_bar.sh
+++ b/awesome_bar.sh
@@ -23,7 +23,7 @@ func_mem() {
while true; do
echo $SCREEN widget_tell topbar power text " `func_power` " | awesome-client
- echo $SCREEN widget_tell topbar wlan text " $(print ${${$(LC_ALL=C /sbin/ifconfig wlan0)[7]}:gs/addr://}) " | awesome-client
+ echo $SCREEN widget_tell topbar wlan text " $(ip r | awk '{print $9}' | head -n 1) " | awesome-client
echo $SCREEN widget_tell topbar clock text " `date +"%x %T"` " | awesome-client
echo $SCREEN widget_tell topbar hostname text " `hostname` " | awesome-client
diff --git a/xinitrc b/xinitrc
index 611829c..81c2521 100755
--- a/xinitrc
+++ b/xinitrc
@@ -1,5 +1,5 @@
#!/bin/bash
-WM='dwm'
+WM='awesome'
keychain --clear -q ~/.ssh/id_rsa
source ~/.keychain/`hostname`-sh > /dev/null
@@ -7,8 +7,8 @@ source ~/.keychain/`hostname`-sh > /dev/null
feh --bg-scale ~/pictures/wallpaper/$(ls ~/pictures/wallpaper/ | sed -n $((RANDOM%$(ls ~/pictures/wallpaper/ | wc -l)+1))p)
xset s off
-killall dwm_bar.sh
-etc/dwm_bar.sh &
+killall awesome_bar.sh
+etc/awesome_bar.sh &
exec $WM