diff options
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 ).*(?=/)") |