From 108d16071de045b085add0fbe67c866b18d19093 Mon Sep 17 00:00:00 2001 From: Mid Favila Date: Mon, 5 Jul 2021 23:35:23 -0300 Subject: [PATCH] Improve winlist.sh's performance and portability --- misc/winlist.sh | 4 ++-- xresources/shod | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/winlist.sh b/misc/winlist.sh index a0fb5d8..df3e9c9 100755 --- a/misc/winlist.sh +++ b/misc/winlist.sh @@ -4,7 +4,7 @@ getxid() { if [ ${x} -gt 0 ] then - sed ${x}!d /tmp/winlist.jnk|sed "s/commandante/ /g"|cut -d ' ' -f 1 + sed ${x}!d /tmp/winlist.jnk|cut -d ' ' -f 1 else exit fi @@ -14,7 +14,7 @@ getname() { if [ ${x} -gt 0 ] then - sed ${x}!d /tmp/winlist.jnk|sed "s/commandante/ /g"|sed 's/ */ /g'|cut -d '\t' -f 3 + sed ${x}!d /tmp/winlist.jnk |sed -ne "s/.*$(hostname) \(..*\)/\1/p" else exit fi diff --git a/xresources/shod b/xresources/shod index a842a81..9baf5e1 100644 --- a/xresources/shod +++ b/xresources/shod @@ -1,5 +1,5 @@ shod.theme: /home/midfavila/.config/xresources/decwin.xpm -shod.focusButtons: -shod.raiseButtons: 1 +shod.focusButtons: 1 +shod.raiseButtons: 3 shod.modifier: Mod4 shod.class.XTerm.autotab: always