Browse Source

update polybar config

master
Yorick van Pelt 3 years ago
parent
commit
3853ff7e49
2 changed files with 15 additions and 21 deletions
  1. +14
    -20
      i3/polybar
  2. +1
    -1
      i3/polybar.sh

+ 14
- 20
i3/polybar View File

@ -78,34 +78,28 @@ modules-right = date
; jarvis: retina screen
[bar/jarvis_primary]
inherit = bar/common
monitor = eDP-1
width = 100%
height = 40
;offset-x = 1%
;offset-y = 1%
radius = 6.0
line-size = 6
border-size = 4
modules-left = i3 xwindow
modules-center =
modules-right = spotify filesystem volume backlight-acpi wlan memory battery temperature date
padding-left = 0
padding-right = 2
tray-position = right
module-margin-left = 1
module-margin-right = 2
;font-0 = FontAwesome:size=20;1
;font-1 = FiraMono:size=20;0
font-0 = FontAwesome:size=20;1
font-1 = FiraMono:size=20;0
[bar/jarvis_other]
inherit = bar/common
modules-left = i3 xwindow
modules-center =
modules-right = spotify filesystem volume backlight-acpi wlan battery temperature date
modules-center =
modules-right = eth wlan memory battery temperature date
tray-position = right
tray-padding = 2
tray-scale = 1.0
;font-0 = FontAwesome:size=20;1
;font-1 = FiraMono:size=20;0
; modules


+ 1
- 1
i3/polybar.sh View File

@ -1,5 +1,5 @@
#!/bin/sh
for m in $(xrandr --listactivemonitors | grep ": +" | cut -d " " -f 3 -); do
MONITOR=$(echo $m | tr -d +*) polybar -c ~/dotfiles/i3/polybar $(hostname)_$(echo $m | grep -q "*" && echo primary || echo other) &
MONITOR=$(echo $m | tr -d +*) polybar -c ~/dotfiles/i3/polybar $(hostname -s)_$(echo $m | grep -q "*" && echo primary || echo other) &
done

Loading…
Cancel
Save