diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-10-19 11:46:45 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-10-19 15:00:41 +0200 |
commit | 33f99d8c8954cc365bad766ebacfb67a5b0aef95 (patch) | |
tree | 235b0a205c3431778125b4631abda855889c6e5b /i3 | |
parent | e6acb51e68b9580c327bb268045a4982a5ec5661 (diff) |
Minor changes
Diffstat (limited to 'i3')
-rw-r--r-- | i3/.config/i3/config | 24 | ||||
-rwxr-xr-x | i3/.config/i3blocks/bin/wifi | 2 |
2 files changed, 1 insertions, 25 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config index f47d2ee..48e75bd 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -149,33 +149,9 @@ bindsym $mod+r mode "resize" for_window [class="^.*"] border pixel 2 -# Green -set $color0 #112211 -set $color1 #223322 -set $color2 #225522 -set $color3 #337733 -set $color4 #11CC11 - -# Red -set $color0 #221111 -set $color1 #332222 -set $color2 #552222 -set $color3 #773333 -set $color4 #CC1111 - -# class border backgr. text indicator child_border -client.focused $color4 $color2 #ffffff $color3 $color4 -client.background #ffffff - bar { status_command i3blocks modifier none - - colors { - # border bg text - focused_workspace $color3 $color2 #ffffff - background $color1 - } } bindsym $mod+m bar mode toggle diff --git a/i3/.config/i3blocks/bin/wifi b/i3/.config/i3blocks/bin/wifi index 2e47da2..fd9a9c5 100755 --- a/i3/.config/i3blocks/bin/wifi +++ b/i3/.config/i3blocks/bin/wifi @@ -1,6 +1,6 @@ #!/usr/bin/env bash -quality=$(lspci | grep -i Wireless | sed 's/^.*(rev \(.*\))/\1/') +quality=$(iwconfig wlp2s0 | grep -oP 'Link Quality=\K[0-9]*/[0-9]*' | awk -F'/' '{print int(100*$1/$2)}') ssid=$(iwconfig wlp2s0 | grep -oP '(?<=ESSID:").*(?=")') address=$(ip addr show wlp2s0 | grep -oP -m1 "(?<=inet ).*(?=/)") |