Update #polybar to work with different wlan
This commit is contained in:
@ -1,5 +1,3 @@
|
|||||||
WLAN=/sbin/ifconfig | grep wlp | tail -1 | cut -d ':' -f 1
|
|
||||||
ETH=/sbin/ifconfig | grep veth | tail -1 | cut -d ':' -f 1
|
|
||||||
setxkbmap -model pc105 -layout us,ru -option grp:ctrls_toggle
|
setxkbmap -model pc105 -layout us,ru -option grp:ctrls_toggle
|
||||||
setxkbmap -option caps:escape -option compose:ralt &
|
setxkbmap -option caps:escape -option compose:ralt &
|
||||||
i3
|
i3
|
||||||
|
|||||||
@ -73,7 +73,7 @@ tray-padding = 2
|
|||||||
|
|
||||||
;scroll-up = i3wm-wsnext
|
;scroll-up = i3wm-wsnext
|
||||||
;scroll-down = i3wm-wsprev
|
;scroll-down = i3wm-wsprev
|
||||||
|
;
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
@ -135,7 +135,9 @@ index-sort = true
|
|||||||
wrapping-scroll = false
|
wrapping-scroll = false
|
||||||
|
|
||||||
; Only show workspaces on the same output as the bar
|
; Only show workspaces on the same output as the bar
|
||||||
;pin-workspaces = true
|
pin-workspaces = true
|
||||||
|
|
||||||
|
fuzzy-match = true
|
||||||
|
|
||||||
label-mode-padding = 2
|
label-mode-padding = 2
|
||||||
label-mode-foreground = #000
|
label-mode-foreground = #000
|
||||||
@ -144,12 +146,12 @@ label-mode-background = ${colors.primary}
|
|||||||
; focused = Active workspace on focused monitor
|
; focused = Active workspace on focused monitor
|
||||||
label-focused = %index%
|
label-focused = %index%
|
||||||
label-focused-background = ${colors.background-alt}
|
label-focused-background = ${colors.background-alt}
|
||||||
label-focused-underline= ${colors.primary}
|
label-focused-underline = #AA0000
|
||||||
label-focused-padding = 2
|
label-focused-padding = 1
|
||||||
|
|
||||||
; unfocused = Inactive workspace on any monitor
|
; unfocused = Inactive workspace on any monitor
|
||||||
label-unfocused = %index%
|
label-unfocused = %index%
|
||||||
label-unfocused-padding = 2
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
; visible = Active workspace on unfocused monitor
|
; visible = Active workspace on unfocused monitor
|
||||||
label-visible = %index%
|
label-visible = %index%
|
||||||
@ -219,8 +221,8 @@ label = %percentage_used%%
|
|||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = ${env:WLAN:wlp2s0}
|
interface = ${env:WLAN:}
|
||||||
interval = 3.0
|
interval = 5.0
|
||||||
|
|
||||||
format-connected = <ramp-signal> <label-connected>
|
format-connected = <ramp-signal> <label-connected>
|
||||||
format-connected-underline = #9f78e1
|
format-connected-underline = #9f78e1
|
||||||
|
|||||||
@ -2,6 +2,9 @@
|
|||||||
#
|
#
|
||||||
pkill polybar
|
pkill polybar
|
||||||
|
|
||||||
|
wlan=`/sbin/ifconfig | grep wlp | tail -1 | cut -d ':' -f 1`
|
||||||
|
eth=`/sbin/ifconfig | grep veth | tail -1 | cut -d ':' -f 1`
|
||||||
|
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||||
MONITOR=$m polybar --reload primary &
|
WLAN=$wlan ETH=$eth MONITOR=$m polybar --reload primary &
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user