diff --git a/.config/polybar/config b/.config/polybar/config index 5e1f29b..ec7dd8b 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -29,7 +29,9 @@ background = ${xrdb:color256:#1d2021} foreground = ${xrdb:color257:#ebdbb2} [bar/default] -monitor = ${env:MONITOR:HDMI-1} +;monitor = ${env:MONITOR:LVDS-1} +;monitor = ${env:MONITOR:HDMI-1} +enable-ipc = true width = 100% height = 24 ;offset-x = 1% @@ -57,9 +59,11 @@ font-1 = Inconsolata Nerd Font:size=8;1 font-2 = Noto Color Emoji:scale=10:style=Regular;2 font-3 = Symbola:pixelsize=9;1 + +; Other modules: xkeyboard filesystem xbacklight backlight-acpi cpu memory temperature powermenu weather modules-left = bspwm xwindow ;modules-center = -modules-right = mpd volume wlan eth battery temperature date +modules-right = mpd volume mutt-wizard wlan eth battery date tray-position = right tray-padding = 0 @@ -71,6 +75,24 @@ wm-restack = bspwm scroll-up = bspwm-desknext scroll-down = bspwm-deskprev +[module/mutt-wizard] + +type = custom/script +exec = mailbox +interval = 5 +format-prefix = " " +format-underline = ${colors.red} + +click-left = st -e neomutt + + +[module/weather] + +type = custom/script +exec = weather +interval = 5000 +;format-underline = + [module/xwindow] type = internal/xwindow label = %title:0:45:...% @@ -97,20 +119,10 @@ type = internal/fs interval = 25 mount-0 = / - -label-mounted-underline = ${colors.white} -label-mounted = /: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.gray} - -[module/home] -type = internal/fs -interval = 25 - -mount-0 = /home +mount-1 = /home label-mounted-underline = ${colors.cyan} -label-mounted = ~: %percentage_used%% +label-mounted = /: %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.gray} @@ -172,12 +184,17 @@ label-urgent-padding = ${module/bspwm.label-urgent-padding} [module/mpd] type = internal/mpd -format-online = +format-online = + +click-left = st -e ncmpcpp +click-right = mpc toggle label-song = %artist% - %title% label-song-maxlen = 70 label-song-ellipsis = true +format-paused-foreground = ${colors.gray} + [module/xbacklight] type = internal/xbacklight @@ -223,7 +240,6 @@ interval = 3.0 format-connected = 直 format-connected-underline = ${colors.darkmagenta} -;format-connected-underline = #9f78e1 label-connected = %essid% ;format-disconnected = @@ -344,7 +360,6 @@ warn-temperature = 60 format =