about summary refs log tree commit diff stats
path: root/bin/catgirl-open.sh
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2021-09-16 17:37:41 -0700
committerensa <psii@riseup.net>2021-09-16 17:37:41 -0700
commitebae3707b36e9a83014ef08271d75bd9826bb999 (patch)
tree9a9a0b3d9a7c6a4475a5394f2bd25848ebadb552 /bin/catgirl-open.sh
parent3f4e930385675a4613db5f12b19557b126c29559 (diff)
downloadcfg-ebae3707b36e9a83014ef08271d75bd9826bb999.tar.gz
organization and replacements, fixes
bin/
	bother, mbsync-cron, rsschk: notify-send switched to notif
	catgirl-open.sh: simplified
	comm-sel: removed cordless
	kbsetup: sets up keyboard stuff
	lh: cleanup
		added mov and wav support
		audio files now create a terminal mpv
	notif: sends notification to xnotify
config/
	X11/
		xprofile: replaced keyboard lines with kbsetup
			replaced dunst with xnotify/tiramisu
			added a line for cleaning up catgirl-open.sh
		xresources: xnotify resources
	betteresc: xmodmap file for easy-to-access hyper key
	color/colors.sh: cleaned up
	dunst/dunstrc: removed
	lf/lfrc: fixed prompt
		replaced notify-send with notif
	shrc: moved MEDNAFEN_HOME to $HOME_EXT
	vis/visrc.lua: add ctags, fix hyper|esc issue
Diffstat (limited to 'bin/catgirl-open.sh')
-rwxr-xr-xbin/catgirl-open.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/catgirl-open.sh b/bin/catgirl-open.sh
index 3783422..fd1a939 100755
--- a/bin/catgirl-open.sh
+++ b/bin/catgirl-open.sh
@@ -5,14 +5,14 @@
 xidfile="$XDG_CACHE_HOME/catgirl/tabbed-catgirl.xid"
 
 choosenet() {
-	for network in $(ls $HOME_ETC/catgirl/*.conf|sed 's/.*\///');
+	for network in $HOME_ETC/catgirl/*.conf
 	do
-	printf '%s\n' $network;
+	printf '%s\n' $(basename ${network%.*});
 	done | dmenu -p "choose network:"
 }
 
 runtabbed() {
-	network=$(choosenet)
+	network=$(choosenet).conf
 	tabbed -cdn comm -r 2 $TERMINAL -into '' -e catgirl $network >"$xidfile" &
 }
 
@@ -23,7 +23,7 @@ else
 	xid=$(cat "$xidfile")
 	if xprop -id "$xid" >/dev/null 2>&1
 	then
-		$TERMINAL -into "$xid" -e catgirl $(choosenet) >/dev/null 2>&1 &
+		$TERMINAL -into "$xid" -e catgirl $(choosenet).conf >/dev/null 2>&1 &
 	else
 		runtabbed
 	fi