diff --git a/aliases b/aliases index 88f3ef1..3d4790b 100644 --- a/aliases +++ b/aliases @@ -302,7 +302,7 @@ alias xresources="\$EDITOR \$XDG_CONFIG_HOME/X11/xresources ; xrdb merge \$XDG_C alias sshc="\$EDITOR ~/.ssh/config" alias dotfiles="cd \$XDG_CONFIG_HOME" 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]'" diff --git a/polybar/config b/polybar/config.ini similarity index 96% rename from polybar/config rename to polybar/config.ini index 2eba3b5..b68dbb1 100644 --- a/polybar/config +++ b/polybar/config.ini @@ -1,5 +1,5 @@ [colours] -background = transparent +background = #0000 text = #eceff1 icon = #147a82 warning = #ffcb00 @@ -16,7 +16,6 @@ format-offset = 0 screenchange-reload = true [bar/i3bar] -monitor = ${env:MONITOR:HDMI-0} dpi = ${xrdb:Xft.dpi:96} fixed-center = false enable-ipc = true @@ -46,14 +45,14 @@ line-colour = #f00 modules-left = i3 modules-center = # 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-detached = false tray-background = ${colours.background} #tray-offset-x = -20 #tray-offset-y = 0 -tray-maxsize = 12pt +tray-maxsize = 16pt tray-padding = 8pt tray-scale = 1.0 @@ -188,10 +187,10 @@ ramp-signal-foreground = ${colours.icon} [module/eth] type = internal/network -interface = eth0 -interval = 3.0 +interface = lan +interval = 10.0 -label-connected = %local_ip% +label-connected = %local_ip% & %local_ip6% format-connected-prefix = " " format-connected-prefix-foreground = ${colours.icon} format-connected-underline = ${colours.background} diff --git a/systemd/user/polybar@.service b/systemd/user/polybar@.service index 642003f..a33c67c 100644 --- a/systemd/user/polybar@.service +++ b/systemd/user/polybar@.service @@ -1,11 +1,11 @@ [Unit] -Description=Polybar +Description=Polybar bar %i Requires=graphical-session.target After=graphical-session.target pulseaudio.socket i3.service [Service] 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 Slice=session.slice