Improve polybar configs

This commit is contained in:
Tobias Reisinger 2022-12-14 00:07:33 +01:00
parent c9aab14f10
commit 0bbc36d291
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 14 additions and 18 deletions

View file

@ -2,9 +2,7 @@
sudo echo "Authenticated as root" || exit
paru -Syu --noconfirm
if [ $? -eq 0 ]; then
if paru -Syu --noconfirm; then
echo "UPDATE SUCCEDEED"
else
echo "UPDATE FAILED"
@ -14,11 +12,10 @@ fi
echo "==================================================================="
# shellcheck disable=SC2046
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
sudo checkservices
if [ $? -eq 0 ]; then
if sudo checkservices; then
echo "CHECKSERVICES SUCCEDEED"
else
echo "CHECKSERVICES FAILED"
@ -27,4 +24,4 @@ fi
echo ""
flatpack update -y
flatpak update -y

View file

@ -34,7 +34,7 @@ _autostart_manage_add () {
Description=$1
[Service]
ExecStart=/usr/bin/sh -c ". \$HOME/.config/environment && $2"
ExecStart=/bin/sh -c ". \$HOME/.profile && $2"
EOF
}

View file

@ -38,7 +38,7 @@ alias keepass-unlock='(pkill keepassxc; pass keepass | head -n 1 | keepassxc --p
alias less='less -FS -x4'
alias ls='ls -lFh --color=auto'
alias lsblk='lsblk -o +PARTLABEL,FSTYPE,UUID'
alias lsblk='lsblk -o +PARTLABEL,LABEL,FSTYPE,UUID'
alias make='make -j5'
alias mkdir='mkdir -pv'

View file

@ -22,13 +22,10 @@
module-margin-left = 1
module-margin-right = 2
font-0 = fixed:pixelsize=10;1
font-0 = Open Sans:size=12
font-1 = Font Awesome 6 Pro Regular:size=12
font-2 = Font Awesome 6 Pro Light:size=12
font-3 = Font Awesome 6 Pro Solid:size=12
font-4 = Font Awesome 6 Brands:size=12
font-5 = Font Awesome 6 Duotone Solid:size=12
font-6 = PowerlineSymbols:size=12
font-6 = JetBrains Mono Nerd Font:size=12
monitor =
@ -51,7 +48,7 @@
inherit = bar/base
modules-left = bspwm title
modules-center = mpd player-mpris-simple
modules-center = player-mpris-simple
modules-right = openweather memory cpu temperature eth check-arch-updates date
eth-interface = enp0s31f6

View file

@ -1,7 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
# Terminate already running bar instances
killall -q polybar
pkill polybar
sleep 0.5
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

View file

@ -350,7 +350,7 @@
[module/title]
type = internal/xwindow
format = <label>
format = <label>
format-underline = ${colors.green}
label = %title%