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
|
sudo echo "Authenticated as root" || exit
|
||||||
|
|
||||||
paru -Syu --noconfirm
|
if paru -Syu --noconfirm; then
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "UPDATE SUCCEDEED"
|
echo "UPDATE SUCCEDEED"
|
||||||
else
|
else
|
||||||
echo "UPDATE FAILED"
|
echo "UPDATE FAILED"
|
||||||
|
@ -14,11 +12,10 @@ fi
|
||||||
|
|
||||||
echo "==================================================================="
|
echo "==================================================================="
|
||||||
|
|
||||||
|
# shellcheck disable=SC2046
|
||||||
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
|
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
|
||||||
|
|
||||||
sudo checkservices
|
if sudo checkservices; then
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "CHECKSERVICES SUCCEDEED"
|
echo "CHECKSERVICES SUCCEDEED"
|
||||||
else
|
else
|
||||||
echo "CHECKSERVICES FAILED"
|
echo "CHECKSERVICES FAILED"
|
||||||
|
@ -27,4 +24,4 @@ fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
flatpack update -y
|
flatpak update -y
|
||||||
|
|
|
@ -34,7 +34,7 @@ _autostart_manage_add () {
|
||||||
Description=$1
|
Description=$1
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/sh -c ". \$HOME/.config/environment && $2"
|
ExecStart=/bin/sh -c ". \$HOME/.profile && $2"
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ alias keepass-unlock='(pkill keepassxc; pass keepass | head -n 1 | keepassxc --p
|
||||||
|
|
||||||
alias less='less -FS -x4'
|
alias less='less -FS -x4'
|
||||||
alias ls='ls -lFh --color=auto'
|
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 make='make -j5'
|
||||||
alias mkdir='mkdir -pv'
|
alias mkdir='mkdir -pv'
|
||||||
|
|
|
@ -22,13 +22,10 @@
|
||||||
module-margin-left = 1
|
module-margin-left = 1
|
||||||
module-margin-right = 2
|
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-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-4 = Font Awesome 6 Brands:size=12
|
||||||
font-5 = Font Awesome 6 Duotone Solid:size=12
|
font-6 = JetBrains Mono Nerd Font:size=12
|
||||||
font-6 = PowerlineSymbols:size=12
|
|
||||||
|
|
||||||
monitor =
|
monitor =
|
||||||
|
|
||||||
|
@ -51,7 +48,7 @@
|
||||||
inherit = bar/base
|
inherit = bar/base
|
||||||
|
|
||||||
modules-left = bspwm title
|
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
|
modules-right = openweather memory cpu temperature eth check-arch-updates date
|
||||||
|
|
||||||
eth-interface = enp0s31f6
|
eth-interface = enp0s31f6
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Terminate already running bar instances
|
# Terminate already running bar instances
|
||||||
killall -q polybar
|
pkill polybar
|
||||||
|
|
||||||
|
sleep 0.5
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
# Wait until the processes have been shut down
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
|
@ -350,7 +350,7 @@
|
||||||
|
|
||||||
[module/title]
|
[module/title]
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
format = <label>
|
format = <label>
|
||||||
format-underline = ${colors.green}
|
format-underline = ${colors.green}
|
||||||
|
|
||||||
label = %title%
|
label = %title%
|
||||||
|
|
Loading…
Reference in a new issue