1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

polybar: Update to upstream feat/units config

Fix a few things that changed along the way.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock 2022-02-21 20:44:17 +00:00
parent 55e492cd8f
commit 0ba6dc8e4b
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
3 changed files with 9 additions and 10 deletions

View File

@ -302,7 +302,7 @@ alias xresources="\$EDITOR \$XDG_CONFIG_HOME/X11/xresources ; xrdb merge \$XDG_C
alias sshc="\$EDITOR ~/.ssh/config" alias sshc="\$EDITOR ~/.ssh/config"
alias dotfiles="cd \$XDG_CONFIG_HOME" alias dotfiles="cd \$XDG_CONFIG_HOME"
alias i3c="\$EDITOR \$XDG_CONFIG_HOME/i3/config; systemctl --user reload i3" alias i3c="\$EDITOR \$XDG_CONFIG_HOME/i3/config; systemctl --user reload i3"
alias polybarc="\$EDITOR \$XDG_CONFIG_HOME/polybar/config; systemctl --user reload polybar@i3bar" alias polybarc="\$EDITOR \$XDG_CONFIG_HOME/polybar/config.ini; systemctl --user reload polybar@i3bar"
alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'" alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'"

View File

@ -1,5 +1,5 @@
[colours] [colours]
background = transparent background = #0000
text = #eceff1 text = #eceff1
icon = #147a82 icon = #147a82
warning = #ffcb00 warning = #ffcb00
@ -16,7 +16,6 @@ format-offset = 0
screenchange-reload = true screenchange-reload = true
[bar/i3bar] [bar/i3bar]
monitor = ${env:MONITOR:HDMI-0}
dpi = ${xrdb:Xft.dpi:96} dpi = ${xrdb:Xft.dpi:96}
fixed-center = false fixed-center = false
enable-ipc = true enable-ipc = true
@ -46,14 +45,14 @@ line-colour = #f00
modules-left = i3 modules-left = i3
modules-center = modules-center =
# modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery cputemp gputemp date # modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery cputemp gputemp date
modules-right = volume updates weather wlan gateway eth memory cpu xbacklight battery cputemp gputemp date modules-right = volume updates weather wlan eth memory cpu xbacklight battery cputemp gputemp date
tray-position = right tray-position = right
tray-detached = false tray-detached = false
tray-background = ${colours.background} tray-background = ${colours.background}
#tray-offset-x = -20 #tray-offset-x = -20
#tray-offset-y = 0 #tray-offset-y = 0
tray-maxsize = 12pt tray-maxsize = 16pt
tray-padding = 8pt tray-padding = 8pt
tray-scale = 1.0 tray-scale = 1.0
@ -188,10 +187,10 @@ ramp-signal-foreground = ${colours.icon}
[module/eth] [module/eth]
type = internal/network type = internal/network
interface = eth0 interface = lan
interval = 3.0 interval = 10.0
label-connected = %local_ip% label-connected = %local_ip% & %local_ip6%
format-connected-prefix = " " format-connected-prefix = " "
format-connected-prefix-foreground = ${colours.icon} format-connected-prefix-foreground = ${colours.icon}
format-connected-underline = ${colours.background} format-connected-underline = ${colours.background}

View File

@ -1,11 +1,11 @@
[Unit] [Unit]
Description=Polybar Description=Polybar bar %i
Requires=graphical-session.target Requires=graphical-session.target
After=graphical-session.target pulseaudio.socket i3.service After=graphical-session.target pulseaudio.socket i3.service
[Service] [Service]
ExecStart=/usr/bin/polybar --reload --log=warning %i ExecStart=/usr/bin/polybar --reload --log=warning %i
ExecReload=/usr/bin/polybar-msg cmd restart -p $MAINPID ExecReload=/usr/bin/polybar-msg -p $MAINPID cmd restart
Restart=always Restart=always
Slice=session.slice Slice=session.slice