Update polybar config

This commit is contained in:
2021-09-18 15:05:06 +03:00
parent 7076ddfd63
commit d023924c20
2 changed files with 13 additions and 14 deletions

View File

@@ -73,8 +73,8 @@ label = %time% %date%
[module/pacman-updates]
type = custom/script
exec = count-pacman-updates
interval = 300
exec = pacman -Qu | wc -l
interval = 60
format = <label>
format-prefix = " "
@@ -84,12 +84,11 @@ label = %output% updates
[module/keyboard-layout]
type = internal/xkeyboard
format = <label-layout>
label-layout = %layout%
[module/volume-control]
type=internal/pulseaudio
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
@@ -101,7 +100,6 @@ ramp-volume-2 = 
[module/network]
type = internal/network
interface = enp2s0
format-connected = <label-connected>
@@ -113,15 +111,21 @@ label-disconnected = No Network
[module/power-menu]
type = custom/menu
expand-right = false
label-open =
label-close =
label-separator = " "
menu-0-0 = Reboot
menu-0-0-exec = systemctl reboot
menu-0-1 = Power Off
menu-0-1-exec = systemctl poweroff
menu-0-0 = Log Out
menu-0-0-exec = i3-msg exit
menu-0-0-foreground = ${colors.primary}
menu-0-1 = Reboot
menu-0-1-exec = systemctl reboot
menu-0-2 = Power Off
menu-0-2-exec = systemctl poweroff
menu-0-2-foreground = ${colors.primary}
[settings]
screenchange-reload = true

View File

@@ -1,5 +0,0 @@
#! /bin/bash
updates=$(pacman -Qu | wc -l)
echo $updates