;========================================================== ; ; ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ; ; ; To learn more about how to configure Polybar ; go to https://github.com/polybar/polybar ; ; The README contains a lot of information ; ;========================================================== ;; Colors ------------------------------------------- {{{ [colors] ;background = ${xrdb:color0:#222} ;background = #bb282828 ;background = #88282828 ;background = #88282828 ;background = #aa282c34 background = #ff282828 ;background = #222 background-alt = #444 ;foreground = ${xrdb:color7:#222} foreground = #fbf1c7 foreground-alt = #ebdbb2 primary = #ffb52a secondary = #e60053 alert = #bd2c40 ;; }}} ;; Bar config ----------------------------------------- {{{ [bar/main] monitor = ${env:MONITOR:} override-redirect = true wm-restack = xmonad ;width = 100%:-28 ;height = 30 ;offset-x = 14 ;offset-y = 7 width = 100% height = 30 offset-x = 0 offset-y = 0 radius = 0 locale = de_DE.UTF-8 enable-ipc = true padding = 0 ;; center centered modules on screen, not between other modules fixed-center = true separator = "%{F#aaa}|%{F-}" separator-padding = 1 background = ${colors.background} foreground = ${colors.foreground} line-size = 3 line-color = #f00 border-size = 0 border-color = #00000000 padding-left = 0 padding-right = 2 module-margin-left = 1 module-margin-right = 1 ;font-0 = fixed:pixelsize=10;2 ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 ;font-2 = siji:pixelsize=10;1 ;font-7 = NotoEmoji:size=7; ;font-7 = "JetBrainsMono Nerd Font:size=7" ;font-0 = "JetBrainsMono Nerd Font:fontformat=truetype:size=10;2" ;font-1 = "NotoEmoji:scale=10;1" ;font-0 = "JetbrainsMono Bold:size=10;2" font-0 = "JetbrainsMono:weight=medium:size=10;2" font-1 = "Symbola:size=8;1" font-2 = "FontAwesome5Free:style=Solid:size=8;2" font-3 = "Iosevka Nerd Font:size=17;4" ;font-1 = "FontAwesome:fontformat=truetype:size=12;1" modules-left = xmonad bspwm modules-center = timerDisplay spotify mpd gitlab-pipeline player-mpv-tail date modules-right = pulseaudio-control updates-arch pulseaudio filesystem memory cpu time ; network-traffic tray-position = right tray-padding = 2 tray-maxsize = 16 tray-background = ${colors.background} ;tray-background = #0063ff cursor-click = pointer cursor-scroll = ns-resize ;; }}} ;; MODULES ----------------------------------------------- {{{ [module/filesystem] type = internal/fs interval = 25 mount-0 = / format-mounted = ;format-mounted-prefix = "disk: " ;format-mounted-prefix-foreground = ${colors.foreground-alt} format-mounted-prefix = "%{F#8ec07c}  %{F-} " ;format-mounted-prefix = "  " ;format-mounted-underline = #0fca42 ;label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-mounted = %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.foreground-alt} [module/mpd] type = internal/mpd format-online = icon-prev =  icon-stop =  icon-play =  icon-pause =  icon-next =  label-song-maxlen = 25 label-song-ellipsis = true [module/cpu] type = internal/cpu interval = 2 ;format-prefix-foreground = ${colors.foreground-alt} format-prefix = "%{F#fe8019}  %{F-} " label = %percentage:2%% [module/memory] type = internal/memory interval = 2 ;format-prefix-foreground = ${colors.foreground-alt} format-prefix = "%{F#83a598}  %{F-} " label = %percentage_used%% [module/date] type = internal/date interval = 20 date = %A, %d %m %y date-alt = %d-%m-%Y time = %H:%M time-alt = %H:%M:%S ;format-prefix = "%{F#fbff8c}  %{F-}" ;format-prefix-foreground = ${colors.foreground-alt} ;label = "%{F#444} %{F-}%{B#444} %time% | %date% %{B-}%{F#444} %{F-}" label = "%date%" [module/time] type = internal/date interval = 20 date = %a, %d %m %y date-alt = %d-%m-%Y time = %H:%M time-alt = %H:%M:%S ;format-prefix = "%{F#fbff8c}  %{F-}" ;format-prefix-foreground = ${colors.foreground-alt} ;label = "%{F#444} %{F-}%{B#444} %time% | %date% %{B-}%{F#444} %{F-}" label = "%time%" [module/xmonad] type = custom/script exec = "/home/leon/.config/polybar/polybar-scripts/xmonad-status.sh" tail = true ;interval = 1 ;exec = "xmonad-log" [module/timerDisplay] type = custom/script exec = "[ -f ~/scripts/remainingTime.txt ] && head -n 1 scripts/remainingTime.txt" interval = 1 ;[module/gitlab-pipeline] ;type = custom/script ;exec = ~/scripts/fetch-running-pipelines.sh ;interval = 10 [module/info-pingrtt] type = custom/script exec = ~/.config/polybar/polybar-scripts/info-pingrtt.sh interval = 10 [module/player-mpv-tail] type = custom/script exec = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -t 42 -c '#abb2bf' tail = true click-left = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p pause click-middle = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p playlist-pos -1 click-right = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p playlist-pos +1 scroll-up = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p time-pos -10 scroll-down = ~/.config/polybar/polybar-scripts/player-mpv-tail.py -p time-pos +10 [module/network-traffic] ; configure interval, etc in script type = custom/script exec = ~/.config/polybar/polybar-scripts/network-traffic.sh tail = true [module/spotify] type = custom/script interval = 1 format = "