mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-26 08:38:55 +01:00
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:
parent
b6c86f561f
commit
c582138b9f
@ -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
|
||||
|
@ -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 &
|
||||
|
@ -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 =====
|
||||
|
Loading…
Reference in New Issue
Block a user