[polybar] Add sxhkd mode display module
This commit is contained in:
parent
cb5f09c414
commit
d4fda84c3b
3 changed files with 21 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ padding-left = 0
|
|||
padding-right = 0
|
||||
module-margin-left = 2
|
||||
|
||||
modules-left = workspaces pomo
|
||||
modules-left = workspaces sxhkdmode pomo
|
||||
modules-center = music date papersdue
|
||||
modules-right = networkspeed archupdates cpu temp backlight volume battery
|
||||
; do not use offsets for the bar, would only work with override-redirect
|
||||
|
|
@ -91,6 +91,17 @@ font-2 = Iosevka:size=18;1
|
|||
|
||||
cursor-click = pointer
|
||||
|
||||
[module/sxhkdmode]
|
||||
type = custom/script
|
||||
exec = sxhkd-chain-labels
|
||||
exec-if = type sxhkd-chain-labels
|
||||
tail = true
|
||||
format = <label>
|
||||
format-padding = 5
|
||||
format-prefix = "狀 "
|
||||
format-background = ${colors.primary}
|
||||
format-foreground = ${colors.background}
|
||||
|
||||
[module/workspaces]
|
||||
; module type
|
||||
type = internal/i3
|
||||
|
|
@ -231,7 +242,6 @@ tail = true
|
|||
click-left = exist rofi-bib-due normal "opening due papers" && rofi-bib-due -p1 -u $(date --date='fri this week' +%Y-%m-%d)
|
||||
; show list with all
|
||||
click-right = exist rofi-bib-due normal "opening due papers" && rofi-bib-due -p3 -u $(date --date='fri this week' +%Y-%m-%d)
|
||||
; format-foreground = ${colors.primary}
|
||||
format-prefix = " "
|
||||
interval = 120
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue