diff --git a/.config/Scripts/pkg.sh b/.config/Scripts/pkg.sh index 6d4f50e..85309fc 100755 --- a/.config/Scripts/pkg.sh +++ b/.config/Scripts/pkg.sh @@ -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 diff --git a/.config/i3/config b/.config/i3/config index 95f1a7f..6433c08 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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: diff --git a/.config/polybar/config b/.config/polybar/config index 5d46996..f6c3cd2 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -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 =