1
0
forked from extern/nix-config

Update polybar config

This commit adds a "secondary" bar type, which takes up the entire
available space horizontally. Alternatively, use the main bar if you
want to go for a floating appearance instead.
This commit is contained in:
Donovan Glover 2018-08-31 14:19:52 -04:00
parent b6c86f561f
commit c582138b9f
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 23 additions and 3 deletions

View File

@ -43,6 +43,25 @@ border-size = 3
line-size = 8
[bar/secondary]
modules-left = bspwm
modules-center = mpd
modules-right = cpu ram volume date time
monitor = VGA-1
foreground = ${color.text}
background = ${color.background}
font-0 = "Fira Mono:size=22"
font-1 = "Noto Sans CJK JP:size=22"
height = 80
padding-left = 2
padding-right = 2
module-margin = 1
border-color = ${color.background}
border-bottom-size = 0
line-size = 4
[module/bspwm]
type = internal/bspwm
pin-workspaces = true

View File

@ -1,3 +1,4 @@
#!/bin/sh
# New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017 Donovan Glover
@ -8,4 +9,4 @@ killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Start polybar
polybar main &
polybar secondary &

View File

@ -120,8 +120,8 @@ super + o
# this does not apply to all desktops, so we have to specify it manually here
# top_padding depends on the height you set in polybar/config
super + O
xdo show -N "Polybar" && bspc config top_padding 128
# xdo show -N "Polybar" && bspc config top_padding 80
xdo show -N "Polybar" && bspc config top_padding 80
# xdo show -N "Polybar" && bspc config top_padding 128
# =====================
# ===== Preselect =====