Update polybar config
This commit is contained in:
@@ -73,8 +73,8 @@ label = %time% %date%
|
|||||||
[module/pacman-updates]
|
[module/pacman-updates]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
|
||||||
exec = count-pacman-updates
|
exec = pacman -Qu | wc -l
|
||||||
interval = 300
|
interval = 60
|
||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
@@ -84,7 +84,6 @@ label = %output% updates
|
|||||||
[module/keyboard-layout]
|
[module/keyboard-layout]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
|
|
||||||
|
|
||||||
format = <label-layout>
|
format = <label-layout>
|
||||||
label-layout = %layout%
|
label-layout = %layout%
|
||||||
|
|
||||||
@@ -101,7 +100,6 @@ ramp-volume-2 =
|
|||||||
|
|
||||||
[module/network]
|
[module/network]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
|
|
||||||
interface = enp2s0
|
interface = enp2s0
|
||||||
|
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
@@ -113,15 +111,21 @@ label-disconnected = No Network
|
|||||||
[module/power-menu]
|
[module/power-menu]
|
||||||
type = custom/menu
|
type = custom/menu
|
||||||
|
|
||||||
|
expand-right = false
|
||||||
|
|
||||||
label-open =
|
label-open =
|
||||||
label-close =
|
label-close =
|
||||||
|
|
||||||
label-separator = " "
|
label-separator = " "
|
||||||
|
|
||||||
menu-0-0 = Reboot
|
menu-0-0 = Log Out
|
||||||
menu-0-0-exec = systemctl reboot
|
menu-0-0-exec = i3-msg exit
|
||||||
menu-0-1 = Power Off
|
menu-0-0-foreground = ${colors.primary}
|
||||||
menu-0-1-exec = systemctl poweroff
|
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]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
updates=$(pacman -Qu | wc -l)
|
|
||||||
|
|
||||||
echo $updates
|
|
||||||
Reference in New Issue
Block a user