Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Commit

Permalink
wireless interface changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Unia committed Mar 12, 2013
1 parent aa349c3 commit 8a32edb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname=dwm-status
pkgver=20130311
pkgver=20130312
pkgrel=1
pkgdesc='A hardcoded statusbar for DWM'
arch=(any)
Expand Down
6 changes: 2 additions & 4 deletions dwmst.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ int main() {
wifiloops = 0;
skfd = iw_sockets_open();
if (iw_get_basic_config(skfd, WIFI, &(winfo->b)) > -1) {
if (iw_get_stats(skfd, WIFI, &(winfo->stats), /* set present winfo variables */
&winfo->range, winfo->has_range) >= 0) {
if (iw_get_stats(skfd, WIFI, &(winfo->stats), &winfo->range, winfo->has_range) >= 0)
winfo->has_stats = 1;
}
if (iw_get_range_info(skfd, WIFI, &(winfo->range)) >= 0) /* set present winfo variables */
if (iw_get_range_info(skfd, WIFI, &(winfo->range)) >= 0)
winfo->has_range = 1;
if (winfo->b.has_essid) {
if (winfo->b.essid_on)
Expand Down
2 changes: 1 addition & 1 deletion dwmst.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <audacious/audctrl.h>
#endif

#define WIFI "wlan0" /* Wireless interface */
#define WIFI "wlp5s0" /* Wireless interface */
#define BATT_LOW_P 11 /* Below BATT_LOW percentage left on battery, the battery display turns red */
#define BATT_LOW_T 3 /* Same as above, but now minutes instead of percentage */
#define INTERVAL 1 /* Sleeps for INTERVAL seconds between updates */
Expand Down

0 comments on commit 8a32edb

Please sign in to comment.