Change font and theme for polybar. Add notification module

This commit is contained in:
Thomas Dehaeze 2019-04-10 16:58:12 +02:00
parent a4da282758
commit 8558700a86

View File

@ -80,8 +80,8 @@
font-2 = Weather Icons:size=10;1 font-2 = Weather Icons:size=10;1
modules-left = i3 modules-left = i3
modules-center = xwindow modules-center = mpd pulseaudio
modules-right = unread_mail cpu battery temperature date modules-right = dunst unread_mail cpu battery temperature date
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
@ -117,14 +117,14 @@
module-margin-left = 1 module-margin-left = 1
module-margin-right = 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-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = Weather Icons:size=10;1 font-2 = Weather Icons:size=10;1
# font-3 = siji:pixelsize=10;1 # font-3 = siji:pixelsize=10;1
modules-left = mpd pulseaudio modules-left = mpd pulseaudio
# modules-center = xwindow # 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-position = right
# tray-padding = 2 # tray-padding = 2
@ -183,25 +183,14 @@
wrapping-scroll = false wrapping-scroll = false
#+END_SRC #+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 #+BEGIN_SRC conf
format = <label-state> <label-mode> format = <label-state> <label-mode>
index-sort = true index-sort = true
#+END_SRC #+END_SRC
** Colors
#+BEGIN_SRC conf #+BEGIN_SRC conf
label-mode-foreground = ${colors.foreground} label-mode-foreground = ${colors.background}
label-mode-background = ${colors.turquoise} label-mode-background = ${colors.foreground}
label-mode-padding = 1 label-mode-padding = 1
# focused = Active workspace on focused monitor # focused = Active workspace on focused monitor
@ -228,9 +217,6 @@ label-visible-padding = 1
label-urgent = %icon% %index% label-urgent = %icon% %index%
label-urgent-background = ${colors.red} label-urgent-background = ${colors.red}
label-urgent-padding = 1 label-urgent-padding = 1
# Separator in between workspaces
#label-separator = |
#+END_SRC #+END_SRC
* Music using MPD * Music using MPD
@ -437,18 +423,7 @@ ramp-11 = 
ramp-foreground = ${colors.foreground} ramp-foreground = ${colors.foreground}
#+END_SRC #+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 * Unread Mails
#+BEGIN_SRC conf #+BEGIN_SRC conf
[module/unread_mail] [module/unread_mail]
type = custom/script type = custom/script
@ -513,7 +488,6 @@ interval = 1
#+end_src #+end_src
* Emacs * Emacs
#+begin_src conf #+begin_src conf
[module/emacs] [module/emacs]
type = custom/script type = custom/script
@ -612,6 +586,15 @@ exec = echo -e "\uf0f4"
interval = 1 interval = 1
#+END_SRC #+END_SRC
* Dunst
#+BEGIN_SRC conf
[module/dunst]
type = custom/text
content = ""
click-left = notify-send "Notifications Disabled" && sleep 2 && notify-send "DUNST_COMMAND_PAUSE"
click-right = notify-send "DUNST_COMMAND_RESUME" && notify-send "Notifications Resumed"
#+END_SRC
* Weather * Weather
https://github.com/x70b1/polybar-scripts/tree/master/polybar-scripts/openweathermap-fullfeatured https://github.com/x70b1/polybar-scripts/tree/master/polybar-scripts/openweathermap-fullfeatured
@ -895,14 +878,6 @@ click-left = blurlock
click-right = scrot -s -e 'feh $f -x' click-right = scrot -s -e 'feh $f -x'
#+END_SRC #+END_SRC
* ChromeCast Play/Pause
#+BEGIN_SRC conf
[module/chromecast]
type = custom/script
content = "懶"
click-left = catt play
click-right = catt pause
#+END_SRC
* Scripts * Scripts
** Launch ** Launch
:PROPERTIES: :PROPERTIES:
@ -920,7 +895,7 @@ click-left = blurlock
# Launch Polybar, using default config location ~/.config/polybar/config # Launch Polybar, using default config location ~/.config/polybar/config
polybar top & polybar top &
polybar bottom & # polybar bottom &
echo "Polybar launched..." echo "Polybar launched..."
#+end_src #+end_src