commit 84f089c0c764215554e59a85c3cc7bcb6226a444 parent 691f9bb5c404d262a781f233bdd04e003bd80969 Author: pyratebeard <root@pyratebeard.net> Date: Fri, 15 Dec 2023 16:16:39 +0000 update to xdg paths Diffstat:
M | bin/.local/bin/syscat | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/.local/bin/syscat b/bin/.local/bin/syscat @@ -43,10 +43,11 @@ ram=`free | awk '/Mem:/ {print int($3/$2 * 100.0)}'`% if [ -n "$DISPLAY" ]; then wmname=`xprop -root _NET_WM_NAME|cut -d\" -f2` #termfn=`sed -n 's/^.*\*font:\s* -\*-\([^-]*\)-.*/\1/p' ~/.Xdefaults|sed 1q` - termfn=$(grep -Ei "^urxvt\*font" ~/.Xdefaults | awk -F: '{print $3}') - fnsize=$(grep -Ei "^urxvt\*font" ~/.Xdefaults | grep -Eo '[0-9]{1,2}' | head -n1) + termfn=$(grep -Ei "^urxvt\*font" ~/.config/urxvt/.Xdefaults | awk -F: '{print $3}') + fnsize=$(grep -Ei "^urxvt\*font" ~/.config/urxvt/.Xdefaults | grep -Eo '[0-9]{1,2}' | head -n1) #systfn=`sed -n 's/^.*font.*"\(.*\)".*$/\1/p' ~/.gtkrc-2.0` - termco=$(awk -F/ '/colors/{print $NF}' ~/.Xdefaults | tr -d '"') + #termco=$(awk -F/ '/colors/{print $NF}' ~/.config/urxvt/.Xdefaults | tr -d '"') + termco=$(awk '/^#include/ {print $NF}' ~/.config/urxvt/.Xdefaults | tr -d '"') #termco=$(sed -n '/color/s/^.*\///p' ~/.Xdefaults | tr -d '"') else wmname="none"