diff --git a/i3/.xsession b/i3/.xsession index e464dde..82b784e 100644 --- a/i3/.xsession +++ b/i3/.xsession @@ -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 -option caps:escape -option compose:ralt & i3 diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 0515142..565d6d1 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -73,7 +73,7 @@ tray-padding = 2 ;scroll-up = i3wm-wsnext ;scroll-down = i3wm-wsprev - +; cursor-click = pointer cursor-scroll = ns-resize @@ -135,7 +135,9 @@ index-sort = true wrapping-scroll = false ; 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-foreground = #000 @@ -144,12 +146,12 @@ label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% label-focused-background = ${colors.background-alt} -label-focused-underline= ${colors.primary} -label-focused-padding = 2 +label-focused-underline = #AA0000 +label-focused-padding = 1 ; unfocused = Inactive workspace on any monitor label-unfocused = %index% -label-unfocused-padding = 2 +label-unfocused-padding = 1 ; visible = Active workspace on unfocused monitor label-visible = %index% @@ -219,8 +221,8 @@ label = %percentage_used%% [module/wlan] type = internal/network -interface = ${env:WLAN:wlp2s0} -interval = 3.0 +interface = ${env:WLAN:} +interval = 5.0 format-connected = format-connected-underline = #9f78e1 diff --git a/polybar/.config/polybar/launch.sh b/polybar/.config/polybar/launch.sh index 91ec29d..2e606d1 100755 --- a/polybar/.config/polybar/launch.sh +++ b/polybar/.config/polybar/launch.sh @@ -2,6 +2,9 @@ # 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 - MONITOR=$m polybar --reload primary & + WLAN=$wlan ETH=$eth MONITOR=$m polybar --reload primary & done