From 8558700a8608c13ec98b37d4430ec0b2077b8b3d Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 10 Apr 2019 16:58:12 +0200 Subject: [PATCH] Change font and theme for polybar. Add notification module --- dotfiles/polybar.org | 287 ++++++++++++++++++++----------------------- 1 file changed, 131 insertions(+), 156 deletions(-) diff --git a/dotfiles/polybar.org b/dotfiles/polybar.org index 2ce1848..aa1413e 100644 --- a/dotfiles/polybar.org +++ b/dotfiles/polybar.org @@ -80,8 +80,8 @@ font-2 = Weather Icons:size=10;1 modules-left = i3 - modules-center = xwindow - modules-right = unread_mail cpu battery temperature date + modules-center = mpd pulseaudio + modules-right = dunst unread_mail cpu battery temperature date tray-position = right tray-padding = 2 @@ -117,14 +117,14 @@ module-margin-left = 1 module-margin-right = 1 - font-0 = SauceCodePro Nerd Font:style=Medium,Regular:pixelsize=10;1 + font-0 = Hack Nerd Font:style=Medium,Regular:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = Weather Icons:size=10;1 # font-3 = siji:pixelsize=10;1 modules-left = mpd pulseaudio # modules-center = xwindow - modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift + modules-right = filesystem nordvpn chromecast screenshot weather emacs caffeine redshift # tray-position = right # tray-padding = 2 @@ -183,110 +183,96 @@ wrapping-scroll = false #+END_SRC -** TODO - Choose some nice icons -#+BEGIN_SRC conf - ws-icon-default =  - ws-icon-0 = 1; - ws-icon-1 = 2; - ws-icon-2 = 3; - ws-icon-3 = 4; - ws-icon-4 = 5; -#+END_SRC - #+BEGIN_SRC conf format = index-sort = true #+END_SRC -** Colors #+BEGIN_SRC conf -label-mode-foreground = ${colors.foreground} -label-mode-background = ${colors.turquoise} -label-mode-padding = 1 + label-mode-foreground = ${colors.background} + label-mode-background = ${colors.foreground} + label-mode-padding = 1 -# focused = Active workspace on focused monitor -label-focused = %icon% %index% -label-focused-foreground = ${colors.foreground} -label-focused-background = ${colors.background} -label-focused-underline = ${colors.turquoise} -label-focused-padding = 1 + # focused = Active workspace on focused monitor + label-focused = %icon% %index% + label-focused-foreground = ${colors.foreground} + label-focused-background = ${colors.background} + label-focused-underline = ${colors.turquoise} + label-focused-padding = 1 -# unfocused = Inactive workspace on any monitor -label-unfocused = %icon% %index% -label-unfocused-foreground = ${colors.foreground} -label-unfocused-background = ${colors.background} -label-unfocused-underline = ${colors.background} -label-unfocused-padding = 1 + # unfocused = Inactive workspace on any monitor + label-unfocused = %icon% %index% + label-unfocused-foreground = ${colors.foreground} + label-unfocused-background = ${colors.background} + label-unfocused-underline = ${colors.background} + label-unfocused-padding = 1 -# visible = Active workspace on unfocused monitor -label-visible = %icon% %index% -label-visible-background = ${colors.background} -label-visible-underline = ${colors.turquoise} -label-visible-padding = 1 + # visible = Active workspace on unfocused monitor + label-visible = %icon% %index% + label-visible-background = ${colors.background} + label-visible-underline = ${colors.turquoise} + label-visible-padding = 1 -# urgent = Workspace with urgency hint set -label-urgent = %icon% %index% -label-urgent-background = ${colors.red} -label-urgent-padding = 1 - -# Separator in between workspaces -#label-separator = | + # urgent = Workspace with urgency hint set + label-urgent = %icon% %index% + label-urgent-background = ${colors.red} + label-urgent-padding = 1 #+END_SRC * Music using MPD #+BEGIN_SRC conf -[module/mpd] -type = internal/mpd -format-online = %{A1:termite -e "ncmpcpp" &:}%{A} + [module/mpd] + type = internal/mpd + format-online = %{A1:termite -e "ncmpcpp" &:}%{A} -format-online-spacing = 0 -format-online-padding = 0 + format-online-spacing = 0 + format-online-padding = 0 -label-offline = mpd is offline -format-offline = -format-offline-foreground = #777 + label-offline = mpd is offline + format-offline = + format-offline-foreground = #777 -label-song = %artist% - %title% -label-song-maxlen = 30 -label-song-ellipsis = true + label-song = %artist% - %title% + label-song-maxlen = 30 + label-song-ellipsis = true -icon-prev = 寧 -icon-stop = 栗 -icon-play = 契 -icon-pause =  -icon-next = 嶺 -icon-random = 咽 -icon-repeat = 凌 + icon-prev = 寧 + icon-stop = 栗 + icon-play = 契 + icon-pause =  + icon-next = 嶺 + icon-random = 咽 + icon-repeat = 凌 -# Used to display the state of random/repeat/repeatone/single -# Only applies if is used -toggle-on-foreground = ${colors.foreground-light} -toggle-off-foreground = ${colors.comments} + # Used to display the state of random/repeat/repeatone/single + # Only applies if is used + toggle-on-foreground = ${colors.foreground-light} + toggle-off-foreground = ${colors.comments} -bar-progress-width = 15 -bar-progress-indicator = | -bar-progress-fill = ─ -bar-progress-empty = ─ + bar-progress-width = 15 + bar-progress-indicator = | + bar-progress-fill = ─ + bar-progress-empty = ─ #+END_SRC * Backlight level #+BEGIN_SRC conf -[module/xbacklight] -type = internal/xbacklight + [module/xbacklight] + type = internal/xbacklight -format = -ramp-0 =  -ramp-1 =  -ramp-2 =  -ramp-3 =  -ramp-4 =  -ramp-5 =  -ramp-6 =  -ramp-7 =  -ramp-8 =  -ramp-9 =  -ramp-10 =  -ramp-11 =  + format = + ramp-0 =  + ramp-1 =  + ramp-2 =  + ramp-3 =  + ramp-4 =  + ramp-5 =  + ramp-6 =  + ramp-7 =  + ramp-8 =  + ramp-9 =  + ramp-10 =  + ramp-11 =  #+END_SRC * CPU Usage @@ -437,28 +423,17 @@ ramp-11 =  ramp-foreground = ${colors.foreground} #+END_SRC -* Settings -#+BEGIN_SRC conf -[settings] -screenchange-reload = true -#compositing-background = xor -#compositing-background = screen -#compositing-foreground = source -#compositing-border = over -#+END_SRC - * Unread Mails - #+BEGIN_SRC conf -[module/unread_mail] -type = custom/script + [module/unread_mail] + type = custom/script -label-font = 2 -format-underline = ${colors.background} -click-left = termite -e "tmuxinator start neomutt" & -format =