Add polybar configuration
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
a1117b541d
commit
6744982639
7 changed files with 180 additions and 40 deletions
119
.config/polybar/config
Normal file
119
.config/polybar/config
Normal file
|
@ -0,0 +1,119 @@
|
|||
[colors]
|
||||
background = #222D32
|
||||
foreground = #A1B0B8
|
||||
|
||||
[bar/top]
|
||||
monitor = VGA-1
|
||||
width = 100%
|
||||
height = 35
|
||||
offset-x = 0
|
||||
offset-y = 0
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
padding-right = 2
|
||||
module-margin = 2
|
||||
|
||||
font-0 = Roboto:pixelsize=12;2
|
||||
font-1 = FontAwesome:size=11;2
|
||||
font-2 = siji:pixelsize=10;0
|
||||
|
||||
modules-left = i3
|
||||
modules-center = xwindow
|
||||
modules-right = volume wlan date
|
||||
|
||||
#wm-restack = i3
|
||||
|
||||
scroll-up = i3wm-desknext
|
||||
scroll-down = i3wm-deskprev
|
||||
|
||||
[bar/top2]
|
||||
inherit = bar/top
|
||||
monitor = HDMI-1
|
||||
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
# Only show workspaces on the same output as the bar
|
||||
pin-workspaces = true
|
||||
strip-wsnumbers = true
|
||||
index-sort = true
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
wrapping-scroll = false
|
||||
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 1
|
||||
|
||||
|
||||
label-focused = %name%
|
||||
label-focused-foreground = ${colors.background}
|
||||
label-focused-background = ${colors.foreground}
|
||||
label-focused-padding = 4
|
||||
|
||||
label-unfocused = %name%
|
||||
label-unfocused-padding = 4
|
||||
|
||||
label-visible = %name%
|
||||
label-visible-padding = 4
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-foreground = ${colors.foreground}
|
||||
label-urgent-background = ${colors.background}
|
||||
label-urgent-padding = 4
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:40:...%
|
||||
label-padding = 4
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1.0
|
||||
date = %F
|
||||
time = %H:%M:%S
|
||||
label = %date% %time%
|
||||
format = <label>
|
||||
|
||||
[module/padding]
|
||||
type = custom/text
|
||||
content =
|
||||
content-foreground = #00000000
|
||||
content-background = #55000000
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wifi0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground}
|
||||
|
||||
[module/volume]
|
||||
type = internal/volume
|
||||
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
format-muted = <label-muted>
|
||||
label-volume = %percentage%
|
||||
label-muted = Muted
|
||||
label-muted-foreground = #aaa
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-headphones-0 =
|
11
.config/polybar/launch.sh
Executable file
11
.config/polybar/launch.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar top &
|
||||
polybar top2 &
|
1
.config/polybar/polybar
Symbolic link
1
.config/polybar/polybar
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/severin/.config/polybar
|
Loading…
Add table
Add a link
Reference in a new issue