random
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[bar/top]
|
||||
monitor = DP2-1
|
||||
monitor = ${env:MONITOR:}
|
||||
width = 100%
|
||||
height = 27
|
||||
|
||||
@@ -19,11 +19,11 @@ font-2 = "Symbola:style=Regular"
|
||||
|
||||
# todo mpd? or spotify?
|
||||
modules-left = powermenu player-mpris
|
||||
modules-center = date
|
||||
modules-right = pulseaudio backlight touchpad-indicator openvpn-indicator wireless-network wired-network battery
|
||||
modules-center = popup-calendar
|
||||
modules-right = pulseaudio backlight touchpad-indicator openvpn-indicator tethering wireless-network wired-network battery-combined-udev
|
||||
|
||||
[bar/bottom]
|
||||
monitor = DP2-1
|
||||
monitor = ${env:MONITOR:}
|
||||
bottom = true
|
||||
width = 100%
|
||||
height = 27
|
||||
@@ -45,7 +45,7 @@ font-2 = "Symbola:style=Regular"
|
||||
|
||||
modules-left =
|
||||
modules-center = i3
|
||||
modules-right = cpu memory
|
||||
modules-right = cpu system-cpu-temppercore memory
|
||||
|
||||
tray-position = left
|
||||
tray-padding = 2
|
||||
@@ -53,7 +53,6 @@ tray-transparent = true
|
||||
tray-background = #0063ff
|
||||
;tray-detached = false
|
||||
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
@@ -201,7 +200,7 @@ ping-interval = 10
|
||||
|
||||
format-connected = <label-connected> <ramp-signal>
|
||||
label-connected = 直 %essid%
|
||||
label-disconnected = 睊 not connected
|
||||
label-disconnected = 睊
|
||||
label-disconnected-foreground = #66
|
||||
format-packetloss = <animation-packetloss> <label-connected>
|
||||
|
||||
@@ -218,12 +217,33 @@ animation-packetloss-1 =
|
||||
animation-packetloss-1-foreground = ${bar/top.foreground}
|
||||
animation-packetloss-framerate = 500
|
||||
|
||||
[module/wired-network]
|
||||
type = internal/network
|
||||
interface = enp0s31f6
|
||||
interval = 3.0
|
||||
label-connected = %local_ip%
|
||||
label-disconnected =
|
||||
label-disconnected-foreground = #66
|
||||
format-packetloss = <animation-packetloss> <label-connected>
|
||||
animation-packetloss-0 =
|
||||
animation-packetloss-0-foreground = #ffa64c
|
||||
animation-packetloss-1 =
|
||||
animation-packetloss-1-foreground = ${bar/top.foreground}
|
||||
animation-packetloss-framerate = 500
|
||||
|
||||
|
||||
[module/tethering]
|
||||
type = internal/network
|
||||
interface = enp0s20f0u4
|
||||
interval = 3.0
|
||||
label-connected = %local_ip%
|
||||
label-disconnected-foreground = #66
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 0.5
|
||||
format = <label> <ramp-coreload>
|
||||
label = CPU
|
||||
|
||||
ramp-coreload-0 = ▁
|
||||
#ramp-coreload-0-font = 2
|
||||
ramp-coreload-0-foreground = #aaff77
|
||||
@@ -249,19 +269,22 @@ ramp-coreload-7 = █
|
||||
#ramp-coreload-7-font = 2
|
||||
ramp-coreload-7-foreground = #ff5555
|
||||
|
||||
[module/wired-network]
|
||||
type = internal/network
|
||||
interface = enp0s31f6
|
||||
interval = 3.0
|
||||
|
||||
label-connected = %{T3}%local_ip%%{T-}
|
||||
label-disconnected-foreground = #66
|
||||
[module/system-cpu-temppercore]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/system-cpu-temppercore.sh
|
||||
interval = 60
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
date = %%{F#99}%d.%m.%Y%%{F-} %%{F#fff}%H:%M%%{F-}
|
||||
date-alt = %%{F#fff}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666}:%%{F#fba922}%S%%{F-}
|
||||
|
||||
[module/popup-calendar]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/popup-calendar.sh
|
||||
interval = 5
|
||||
click-left = ~/.config/polybar/popup-calendar.sh --popup
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
format = <label> <bar-used>
|
||||
|
||||
@@ -6,8 +6,15 @@ killall -q polybar
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar bottom &
|
||||
polybar top &
|
||||
# Launch bars on all monitors
|
||||
if type "xrandr"; then
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
MONITOR=$m polybar --reload bottom &
|
||||
MONITOR=$m polybar --reload top &
|
||||
done
|
||||
else
|
||||
polybar --reload bottom &
|
||||
polybar --reload top &
|
||||
fi
|
||||
|
||||
echo "Bars launched..."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$(nmcli | grep 'Dahoam VPN connection')" ]; then
|
||||
echo "%{A1:nmcli con down Dahoam:}旅%{A}"
|
||||
if [ "$(nmcli | grep 'VPN connection')" ]; then
|
||||
echo "%{A1:nmcli con down $(nmcli | grep "VPN connection" | cut -d " " -f1):}旅%{A}"
|
||||
else
|
||||
echo "%{A1:nmcli con up Dahoam:}%{F#404040}旅%{F-} %{A}"
|
||||
echo "%{A1:~/bin/vpnup:}%{F#404040}旅%{F-} %{A}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user