dots-of-war/files/.config/polybar/config.ini

264 lines
7.2 KiB
INI
Raw Normal View History

2020-03-24 09:43:47 +00:00
2020-03-19 11:03:08 +00:00
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
2020-03-24 09:43:47 +00:00
; ; To learn more about how to configure Polybar
2020-03-19 11:03:08 +00:00
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
2020-04-27 15:21:09 +00:00
2020-03-24 09:43:47 +00:00
;; Colors ------------------------------------------- {{{
2020-03-19 11:03:08 +00:00
[colors]
;background = ${xrdb:color0:#222}
;background = #bb282828
2020-04-19 11:50:17 +00:00
;background = #88282828
2020-04-19 15:49:39 +00:00
;background = #88282828
;background = #aa282c34
background = #ff282828
2020-03-19 11:03:08 +00:00
;background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
2020-04-21 12:37:47 +00:00
foreground = #fbf1c7
foreground-alt = #ebdbb2
2020-03-19 11:03:08 +00:00
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
2020-03-24 09:43:47 +00:00
;; }}}
;; Bar config ----------------------------------------- {{{
2020-03-19 11:03:08 +00:00
[bar/main]
2020-05-07 14:05:16 +00:00
monitor = ${env:MONITOR:}
2020-04-27 15:21:09 +00:00
override-redirect = true
wm-restack = xmonad
2020-04-19 14:40:11 +00:00
width = 100%:-28
height = 30
offset-x = 14
offset-y = 7
radius = 0
locale = de_DE.UTF-8
2020-03-19 11:03:08 +00:00
enable-ipc = true
padding = 0
2020-03-24 09:43:47 +00:00
;; center centered modules on screen, not between other modules
fixed-center = true
2020-03-19 11:03:08 +00:00
separator = "%{F#aaa}|%{F-}"
separator-padding = 1
2020-04-19 14:40:11 +00:00
2020-03-19 11:03:08 +00:00
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 = 2
2020-04-21 20:04:59 +00:00
font-0 = fixed:pixelsize=10;2
2020-03-24 09:43:47 +00:00
;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"
2020-04-21 20:04:59 +00:00
font-1 = "Symbola:size=8;1"
font-2 = "FontAwesome5Free:style=Solid:size=8;2"
2020-04-21 12:37:47 +00:00
font-3 = "Iosevka Nerd Font:size=17;4"
;font-1 = "FontAwesome:fontformat=truetype:size=12;1"
2020-03-20 19:00:15 +00:00
2020-03-19 11:03:08 +00:00
2020-04-26 15:43:47 +00:00
modules-left = xmonad bspwm
2020-04-19 14:40:11 +00:00
modules-center = timerDisplay spotify mpd gitlab-pipeline player-mpv-tail date
2020-04-21 20:04:59 +00:00
modules-right = pulseaudio-control updates-arch pulseaudio filesystem memory cpu
2020-04-19 14:40:11 +00:00
; network-traffic
2020-03-19 11:03:08 +00:00
tray-position = right
tray-padding = 2
tray-maxsize = 16
tray-background = ${colors.background}
;tray-background = #0063ff
cursor-click = pointer
cursor-scroll = ns-resize
2020-03-24 09:43:47 +00:00
;; }}}
;; MODULES ----------------------------------------------- {{{
2020-03-19 11:03:08 +00:00
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
format-mounted = <label-mounted>
;format-mounted-prefix = "disk: "
;format-mounted-prefix-foreground = ${colors.foreground-alt}
2020-04-21 12:37:47 +00:00
format-mounted-prefix = "%{F#8ec07c}  %{F-} "
2020-04-19 11:50:17 +00:00
;format-mounted-prefix = "  "
;format-mounted-underline = #0fca42
;label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-mounted = %percentage_used%%
2020-03-19 11:03:08 +00:00
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
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}
2020-04-21 12:37:47 +00:00
format-prefix = "%{F#fe8019}  %{F-} "
2020-03-19 11:03:08 +00:00
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
;format-prefix-foreground = ${colors.foreground-alt}
2020-04-21 12:37:47 +00:00
format-prefix = "%{F#83a598}  %{F-} "
2020-03-19 11:03:08 +00:00
label = %percentage_used%%
[module/date]
type = internal/date
interval = 5
2020-04-21 12:37:47 +00:00
date = %a, %d %m %y
2020-03-19 11:03:08 +00:00
date-alt = %d-%m-%Y
time = %H:%M
time-alt = %H:%M:%S
2020-04-19 14:40:11 +00:00
;format-prefix = "%{F#fbff8c}  %{F-}"
2020-03-19 11:03:08 +00:00
;format-prefix-foreground = ${colors.foreground-alt}
2020-04-21 12:37:47 +00:00
label = "%{F#444} %{F-}%{B#444} %time% | %date% %{B-}%{F#444} %{F-}"
2020-03-19 11:03:08 +00:00
[module/xmonad]
type = custom/script
2020-05-09 13:24:23 +00:00
;exec = "xmonad-log"
exec = '/home/leon/.config/polybar/polybar-scripts/xmonad-status.sh'
2020-03-19 11:03:08 +00:00
tail = true
2020-05-09 13:24:23 +00:00
;interval = 1
2020-03-19 11:03:08 +00:00
2020-03-20 15:40:53 +00:00
2020-03-22 18:05:29 +00:00
[module/timerDisplay]
type = custom/script
exec = "[ -f ~/scripts/remainingTime.txt ] && head -n 1 scripts/remainingTime.txt"
interval = 1
2020-03-20 15:40:53 +00:00
2020-03-19 11:03:08 +00:00
;[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
2020-03-20 19:00:15 +00:00
[module/network-traffic]
; configure interval, etc in script
type = custom/script
exec = ~/.config/polybar/polybar-scripts/network-traffic.sh
tail = true
2020-03-24 09:43:47 +00:00
[module/spotify]
type = custom/script
interval = 1
format = "<label> %{A1:dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous:}%{A-} %{A1:dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next:}%{A-}"
exec = python ~/.config/polybar/polybar-scripts/spotify_status.py -f '{artist} - {song} {play_pause}'
click-left = "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
exec-if = "pgrep spotify"
[module/updates-arch]
type = custom/script
exec = ~/.config/polybar/polybar-scripts/updates-arch-combined.sh
interval = 600
[module/pulseaudio-control]
type = custom/script
tail = true
click-right = exec pavucontrol &
exec = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash listen
click-left = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash togmute
click-middle = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash next-sink
scroll-up = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash up
scroll-down = bash ~/.config/polybar/polybar-scripts/pulseaudio-control.bash down
label-foreground = ${colors.foreground}
2020-04-26 15:43:47 +00:00
[module/bspwm]
type = internal/bspwm
label-occupied = " %name% "
label-empty = ""
label-focused = " %name% "
label-focused-background= ${colors.background-alt}
pin-workspaces = true
inline-mode = false
enable-click = true
enable-scroll = false
reverse-scroll = false
fuzzy-match = true
2020-04-19 14:40:11 +00:00
[global/wm]
margin-bottom = -7
2020-04-26 15:43:47 +00:00