diff options
author | Danny Holman <dholman@gymli.xyz> | 2021-05-21 14:08:34 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.xyz> | 2021-05-21 14:08:34 -0500 |
commit | e9717375ea0f22ac273218eaead2857fbb5be960 (patch) | |
tree | d1ae5282e651256cceb2ad9c0980374f3f93433b /.config/polybar | |
parent | f950f7345dcd091d276f39e92b38b88c37e4f6da (diff) |
Switch from polybar to i3blocks
Switch my top bar from polybar to i3blocks. Polybar requires a separate
startup script while i3blocks runs as a child process of i3 itself.
Signed-off-by: Danny Holman <dholman@gymli.xyz>
Diffstat (limited to '.config/polybar')
-rw-r--r-- | .config/polybar/config | 302 |
1 files changed, 0 insertions, 302 deletions
diff --git a/.config/polybar/config b/.config/polybar/config deleted file mode 100644 index b20016c..0000000 --- a/.config/polybar/config +++ /dev/null @@ -1,302 +0,0 @@ -; Danny's Polybar config - -[colors] -trans = #00000000 -white = #FFFFFF -black = #000000 - -bg = #341d63 -bg-alt = #05668d -fg = #FFFFFF -fg-alt = #A9ABB0 -urgent = #FF0000 - -; Global - -[global/wm] -margin-top = 5 -margin-bottom = 5 - -[bar/main0] -monitor = ${env:MONITOR:HDMI-A-2} -;monitor = ${env:MONITOR:eDP1} -width = 100% -height = 23 -bottom = false -offset-x = 0% -offset-y = 0% -fixed-center = true -line-size = 2 -background = ${colors.bg} -foreground = ${colors.fg} - -overline-size = 0 -overline-color = ${colors.bg} -underline-size = 2 -underline-color = ${colors.bg} - -module-margin-left = 0 -module-margin-right = 0 - -; Fonts -font-0 = "PowerlineSymbols:pixelsize=15;3" -font-1 = "Fantasque Sans Mono:pixelsize=12;2" - -; System tray -tray-position = left -tray-padding = 2 -tray-transparent = false -tray-background = ${colors.bg-alt} - -; Module layouts -modules-left = RightArrow3 i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1 -modules-center = RightStripe date LeftStripe -modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 alsa arrow3 cpu arrow2 memory arrow3 updates - -[bar/main1] -inherit = bar/main0 -monitor = ${env:MONITOR:HDMI1} -tray-position = none -modules-left = i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1 - -[bar/main2] -inherit = bar/main0 -monitor = ${env:MONITOR:DisplayPort-2} -tray-position = none -modules-left = i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1 - -; Modules - -[module/filesystem] -type = internal/fs -interval = 5 -fixed-values = true - -mount-0 = / -mount-1 = /mnt/fileserver - -format-mounted = <label-mounted> -format-mounted-foreground = ${colors.fg} -format-mounted-background = ${colors.bg-alt} -format-unmounted = <label-unmounted> -format-unmounted-foreground = ${colors.fg} -format-unmounted-background = ${colors.bg-alt} - -label-mounted = "%mountpoint%: %percentage_used%%" -; %free%% %percentage_used%% %used% -label-mounted-foreground = ${colors.fg} -label-mounted-background = ${colors.bg-alt} -label-unmounted = %mountpoint% -label-unmounted-foreground = ${colors.bg} -label-unmounted-background = ${colors.fg} - -[module/alsa] -type = internal/alsa - -master-soundcard = default -master-mixer = Master - -format-volume = <label-volume> -format-muted = <label-muted> -label-volume = VOL %percentage%% -label-muted = MUTED - -format-volume-foreground = ${colors.fg} -format-volume-background = ${colors.bg} -format-muted-foreground = ${colors.fg} -format-muted-background = ${colors.bg} - -[module/i3] -type = internal/i3 -format = <label-state><label-mode> -index-sort = true -wrapping-scroll = false -pin-workspaces = true -enable-scroll = true - -label-focused = %index% -label-focused-foreground = ${colors.fg} -label-focused-background = ${colors.bg} -label-focused-underline = ${colors.fg} -label-focused-padding = 2 -label-focused-font = 1 -label-unfocused = %index% -label-unfocused-padding = 2 -label-unfocused-foreground = ${colors.fg} -label-unfocused-background = ${colors.bg} -label-occupied = %index% -label-occupied-foreground = ${colors.fg} -label-occupied-background = ${colors.bg} -label-occupied-padding = 2 -label-urgent = %index% -label-urgent-foreground = ${colors.urgent} -label-urgent-background = ${colors.bg} -label-urgent-padding = 2 -label-empty = %index% -label-empty-foreground = ${colors.bg} -label-empty-background = ${colors.fg} -label-empty-padding = 2 -label-visible = %index% -label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} -label-visible-padding = ${self.label-focused-padding} -label-mode-foreground = ${colors.fg} -label-mode-background = ${colors.bg} - -[module/xwindow] -type = internal/xwindow - -format-foreground = ${colors.fg} -format-background = ${colors.bg-alt} -format-padding = 2 -label = %title% -label-maxlen = 25 - -[module/xbacklight] -type = internal/xbacklight - -format = <label> -label = Backlight %percentage%% - -format-foreground = ${colors.fg} -format-background = ${colors.bg} -format-padding = 1 - -[module/backlight-acpi] -inherit = module/xbacklight -type = internal/backlight -card = intel_backlight - -[module/cpu] -type = internal/cpu -interval = 2 -format-prefix = -format-foreground = ${colors.fg} -format-background = ${colors.bg-alt} -label = CPU %percentage%% - -[module/memory] -type = internal/memory -interval = 2 -format-prefix = -format-foreground = ${colors.fg} -format-background = ${colors.bg} -format-margin-top = -5 - -label = MEM %percentage_used%% - -[module/date] -type = internal/date -interval = 1 - -date = "%m/%d/%Y" -time = "%H:%M" - -format-foreground = ${colors.fg} -format-background = ${colors.bg-alt} -format-padding = 2 - -label = %date% %time% - -[module/battery] -type = internal/battery -; To list battery & adapter: $ ls -1 /sys/class/power_supply/ -battery = BAT0 -adapter = AC - -format-charging = <label-charging> -format-charging-foreground = ${colors.bg} -format-charging-background = ${colors.fg} -format-discharging = <label-discharging> -format-discharging-foreground = ${colors.bg} -format-discharging-background = ${colors.fg} -format-full = <label-full> -format-full-foreground = ${colors.bg} -format-full-background = ${colors.fg} - -label-charging = "BAT %percentage%%" -label-discharging = "BAT %percentage%%" -label-discharging-foreground = ${colors.bg} -label-full = "Battery Full" - -; Powerline - -[module/pipe] -type = custom/text -content = "|" -content-foreground = ${colors.fg} -content-background = ${colors.bg} -content-padding = 1 - -[module/LeftStripe] -type = custom/text -content = "" -content-foreground = ${colors.bg} -content-background = ${colors.bg-alt} - -[module/arrow1] -type = custom/text -content = "" -content-foreground = ${colors.bg-alt} -content-background = ${colors.bg} - -[module/arrow2] -type = custom/text -content = " " -content-foreground = ${colors.bg} -content-background = ${colors.bg-alt} - -[module/arrow3] -type = custom/text -content = " " -content-foreground = ${colors.bg-alt} -content-background = ${colors.bg} - -[module/RightStripe] -type = custom/text -content = "" -content-foreground = ${colors.bg} -content-background = ${colors.bg-alt} - -[module/RightArrow1] -type = custom/text -content = "" -content-foreground = ${colors.bg-alt} -content-background = ${colors.bg} - -[module/RightArrow2] -type = custom/text -content = "" -content-foreground = ${colors.bg} -content-background = ${colors.bg-alt} - -[module/RightArrow3] -type = custom/text -content = "" -content-foreground = ${colors.bg-alt} -content-background = ${colors.bg} - -[module/MiddleArrowLeft] -type = custom/text -content = "◥" -content-foreground = ${colors.fg} -content-background = ${colors.bg} - -[module/MiddleArrowRight] -type = custom/text -content = "◢" -content-foreground = ${colors.bg} -content-background = ${colors.fg} - -[module/updates] -type = custom/script -exec = pacman -Qu | wc -l -format = <label> -format-foreground = ${colors.fg} -format-background = ${colors.bg-alt} -format-padding = 1 -label = Updates: %output% -interval = 90 - -[settings] -screenchange-reload = true |