diff --git a/.config/aliasrc b/.config/aliasrc index a5504d3..008f66a 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -17,6 +17,8 @@ alias git-update-submodules=' alias gpg2-decrypt='function _gpg2-decrypt(){ gpg2 --output ${1%".gpg"} --decrypt $1; }; _gpg2-decrypt' alias gpg2-encrypt='function _gpg2-encrypt(){ gpg2 --output $1.gpg --encrypt $1; }; _gpg2-encrypt' +alias hist-grep='history 1 | grep ' + alias ls='ls -Flh --color=never' alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE' diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 240a2dd..e4edabe 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -2,7 +2,7 @@ sxhkd & -host_name=$(hostname) +host_name=$(cat /proc/sys/kernel/hostname) if [[ $host_name == "portalo" ]]; then bspc monitor HDMI-1 -d web terminal 3 4 5 6 game bspc monitor DVI-D-1 -d side-view voip messenger diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index 7916dd1..bfcce6a 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -6,7 +6,7 @@ killall -q polybar # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done -host_name=$(hostname) +host_name=$(cat /proc/sys/kernel/hostname) if [[ $host_name == "portalo" ]]; then polybar portalo-primary & polybar portalo-secondary & diff --git a/.config/polybar/scripts/arch-updates.sh b/.config/polybar/scripts/arch-updates.sh index f9a912a..4f6d423 100755 --- a/.config/polybar/scripts/arch-updates.sh +++ b/.config/polybar/scripts/arch-updates.sh @@ -1,3 +1,7 @@ #!/bin/sh -echo $(pacman -Qu | wc -l) +pkg_updates_count=$(pacman -Qu | wc -l) +if [ $((pkg_updates_count)) -gt 0 ] +then + echo $pkg_updates_count +fi