Improve polybar configs
This commit is contained in:
parent
c9aab14f10
commit
0bbc36d291
7 changed files with 14 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -350,7 +350,7 @@
|
|||
|
||||
[module/title]
|
||||
type = internal/xwindow
|
||||
format = <label>
|
||||
format = <label>
|
||||
format-underline = ${colors.green}
|
||||
|
||||
label = %title%
|
||||
|
|
Loading…
Reference in a new issue