polybar changes
This commit is contained in:
parent
8b33c23c85
commit
72ae67cbda
|
|
@ -1,19 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
|
||||
if ! updates_arch=$(checkupdates 2>/dev/null | wc -l ); then
|
||||
updates_arch=0
|
||||
fi
|
||||
|
||||
if ! updates_aur=$(yay -Qum | wc -l); then
|
||||
# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then
|
||||
# if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then
|
||||
if ! updates_aur=$(yay -Qum 2>/dev/null | wc -l); then
|
||||
updates_aur=0
|
||||
fi
|
||||
|
||||
updates=$(("$updates_arch" + "$updates_aur"))
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo "# $updates"
|
||||
echo "$updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ exec --no-startup-id python ~/.local/bin/bum &
|
|||
#exec --no-startup-id transmission-daemon
|
||||
#Wifi applet:
|
||||
#exec --no-startup-id nm-applet
|
||||
#exec --no-startup-id pnmixer &
|
||||
#Mount other drives:
|
||||
#exec --no-startup-id sudo mount -a
|
||||
#Composite manager:
|
||||
|
|
|
|||
|
|
@ -25,7 +25,12 @@ monitor = ${env:MONITOR:eDP-1}
|
|||
include-file = ~/.config/polybar/top-bar
|
||||
modules-left = i3
|
||||
modules-center = term chrome editor fm music vpn
|
||||
modules-right = pkg alsa battery wlan backlight networkmanager date clock powermenu
|
||||
modules-right = pkg alsa battery backlight wlan networkmanager date clock powermenu
|
||||
|
||||
;tray-position = right
|
||||
;tray-padding = 2
|
||||
;tray-transparent = true
|
||||
;tray-background = #0063ff
|
||||
|
||||
[bar/bottom]
|
||||
monitor = ${env:MONITOR:eDP-1}
|
||||
|
|
@ -34,6 +39,15 @@ modules-left = hostname vpncheck
|
|||
modules-center = cpu memory temperature
|
||||
modules-right = openweather
|
||||
|
||||
[module/nm-launcher]
|
||||
type = custom/script
|
||||
exec = ~/.config/Scripts/nm-applet/applet.sh
|
||||
label = %output%
|
||||
interval = 0.5
|
||||
click-left = nm-connection-editor
|
||||
click-middle = ~/.config/Scripts/nm-applet/applet.sh --ssid
|
||||
click-right = ~/.config/Scripts/nm-applet/applet.sh --vpn
|
||||
|
||||
[module/backlight]
|
||||
type = custom/script
|
||||
interval = 0.2
|
||||
|
|
@ -97,13 +111,10 @@ ramp-foreground = ${colors.foreground}
|
|||
|
||||
[module/pkg]
|
||||
type = custom/script
|
||||
tail = false
|
||||
interval = 6000
|
||||
format = <label>
|
||||
format-underline = ${xrdb:color5}
|
||||
label = "%output:0:30%"
|
||||
exec = ~/.config/Scripts/pkg.sh
|
||||
exec-if = "ping -q -w 2 -c 1 8.8.8.8 > /dev/null"
|
||||
exec = CHECKUPDATES_DB=$(mktemp -d) ~/.config/Scripts/pkg.sh
|
||||
interval = 150
|
||||
label = %output%
|
||||
click-left = urxvtc -e "yay -Syyu"
|
||||
|
||||
;[module/updates]
|
||||
;type = custom/script
|
||||
|
|
@ -391,9 +402,10 @@ format-connected = <label-connected>
|
|||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
format-disconnected = <label-disconnected>
|
||||
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
|
||||
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A} %essid%
|
||||
label-connected-foreground = ${colors.foreground}
|
||||
label-disconnected =
|
||||
label-disconnected = %ifname% disconnected
|
||||
label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
|
|
|||
Loading…
Reference in New Issue