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