Add power menu to polybar
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
7bf11a5cdb
commit
6270596a5d
5 changed files with 50 additions and 10 deletions
|
@ -14,7 +14,7 @@ background = #222D32
|
|||
foreground = #A1B0B8
|
||||
|
||||
[bar/top]
|
||||
monitor = HDMI1
|
||||
monitor = HDMI-1
|
||||
width = 100%
|
||||
height = 35
|
||||
offset-x = 0
|
||||
|
@ -33,7 +33,7 @@ font-3 = siji:pixelsize=12;3
|
|||
|
||||
modules-left = i3
|
||||
modules-center = xwindow
|
||||
modules-right = battery volume backlight wlan date
|
||||
modules-right = battery volume backlight wlan date power
|
||||
separator = |
|
||||
|
||||
#wm-restack = i3
|
||||
|
@ -45,7 +45,7 @@ tray-position = right
|
|||
|
||||
[bar/top2]
|
||||
inherit = bar/top
|
||||
monitor = eDP1
|
||||
monitor = eDP-1
|
||||
|
||||
|
||||
[module/i3]
|
||||
|
@ -139,7 +139,7 @@ format-connected = %{A1:wicd-client -n:}<ramp-signal> <label-connected>%{A}
|
|||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
format-disconnected = Disconnected
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
|
@ -175,3 +175,11 @@ label = %output%%
|
|||
scroll-up = light -A 5
|
||||
scroll-down = light -U 5
|
||||
interval = 0.1
|
||||
|
||||
[module/power]
|
||||
type = custom/script
|
||||
exec = echo -e "\uf011"
|
||||
format = <label>
|
||||
label = %output%
|
||||
interval = 5
|
||||
click-left = $HOME/bin/power.sh
|
Loading…
Add table
Add a link
Reference in a new issue