aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel
diff options
context:
space:
mode:
Diffstat (limited to 'ratpoison/panel')
-rwxr-xr-xratpoison/panel/signal4
1 files changed, 2 insertions, 2 deletions
diff --git a/ratpoison/panel/signal b/ratpoison/panel/signal
index 75ec253..d494f5d 100755
--- a/ratpoison/panel/signal
+++ b/ratpoison/panel/signal
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
while true;do
-signal=`iwconfig wlp2s0 | grep Signal| perl -pe 's/.*level=//; s/ dBm.*//'`
+signal=`iwconfig $INTERFACE | grep Signal| perl -pe 's/.*level=//; s/ dBm.*//'`
#convert to Quality
if [ $signal -le -100 ];then