diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-05-29 19:30:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-05-29 19:30:11 +0800 |
| commit | 5a8ac7bf5a4c1abb7fa6b08422ee9ff8548a7919 (patch) | |
| tree | e2eeadd4009b218172fbf8a692c5b07c46f3eaa8 | |
| parent | 71c926c2e347c3e87890ecdbeb0c1ff27d6482ba (diff) | |
enabled and re-orginized decor.ini, added gmail
| -rw-r--r-- | .config/polybar/config.ini | 4 | ||||
| -rw-r--r-- | .config/polybar/decor.ini | 27 | ||||
| -rw-r--r-- | .config/polybar/modules.ini | 36 |
3 files changed, 32 insertions, 35 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index bbcb9ce3..ee13bf32 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -9,7 +9,7 @@ margin-top = 0 include-file = ./system.ini include-file = ./colors.ini include-file = ./modules.ini -#include-file = ./decor.ini +include-file = ./decor.ini [bar/main] monitor = ${env:MONITOR:} @@ -56,7 +56,7 @@ font-6 = "Noto Sans CJK:size=12;3" # changewallpaper -modules-left = mod sep archicon sep workspaces changewallpaper +modules-left = mod blank archicon sep workspaces gmail modules-center = polywins # modules-right = volume sep bna sep network sep battery sep date #need improve diff --git a/.config/polybar/decor.ini b/.config/polybar/decor.ini index dc726319..a90fe288 100644 --- a/.config/polybar/decor.ini +++ b/.config/polybar/decor.ini @@ -2,9 +2,27 @@ [module/sep] type = custom/text -content = - +content = ◆ + +content-background = ${color.BACKGROUND} +content-foreground = ${color.ALTBACKGROUND} +content-padding = 2 + +[module/blank] +type = custom/text +content = ◆ + +content-background = ${color.BACKGROUND} +content-foreground = ${color.ALTBACKGROUND} +content-padding = 1 + +[module/space] +type = custom/text +content = " " + content-background = ${color.BACKGROUND} -content-foreground = ${color.BACKGROUND} +content-foreground = ${color.ALTBACKGROUND} +content-padding = 0 [module/dot] type = custom/text @@ -17,6 +35,11 @@ content-font = 4 inherit = module/dot content-foreground = ${color.ALTFOREGROUND} +[module/nothing] +type = custom/script +exec = echo "" +hidden = false + ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ [module/LD] diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini index 18ede6c9..e451de2e 100644 --- a/.config/polybar/modules.ini +++ b/.config/polybar/modules.ini @@ -411,33 +411,6 @@ format-connected-prefix-foreground = #7c0a02 format-connected-underline = #006600 - -;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ - -[module/sep] -type = custom/text -content = ◆ - -content-background = ${color.BACKGROUND} -content-foreground = ${color.ALTBACKGROUND} -content-padding = 2 - -[module/blank] -type = custom/text -content = ◆ - -content-background = ${color.BACKGROUND} -content-foreground = ${color.ALTBACKGROUND} -content-padding = 1 - -[module/space] -type = custom/text -content = " " - -content-background = ${color.BACKGROUND} -content-foreground = ${color.ALTBACKGROUND} -content-padding = 0 - ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ [module/polywins] @@ -834,10 +807,11 @@ format-font = 7 content-foreground = ${colors.primary} click-right = $HOME/.config/polybar/scripts/sysTray.py -[module/nothing] - type = custom/script - exec = echo "" - hidden = true +[module/gmail] +type = custom/script +exec = bar-gmail -sm -f polybar +interval = 10 +click-left = $BROWSER --profile-directory="Profile 1" https://mail.google.com/mail/u/0/\#inbox ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
