From 47734f5957a1a708c503a514713284c8539922ab Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 28 Mar 2020 18:52:23 -0500 Subject: forgot to mkdir for calendar stuff --- share/hackvr/examples/calendar/calvr | 1 + 1 file changed, 1 insertion(+) diff --git a/share/hackvr/examples/calendar/calvr b/share/hackvr/examples/calendar/calvr index e1df146..34c0f19 100755 --- a/share/hackvr/examples/calendar/calvr +++ b/share/hackvr/examples/calendar/calvr @@ -27,6 +27,7 @@ xoff=105 backup=238 WORKING_DIR=~/.local/var/cal +mkdir -p $WORKING_DIR cd "${WORKING_DIR}" #git pull -- cgit v1.2.3 From 90dc734eea09ce2458405f8637b940ba767c6747 Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 2 Apr 2020 00:59:20 -0500 Subject: I was dereferencing a value without checking it first. just stopped using the value. just to get it working again. --- src/math.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/math.c b/src/math.c index 318465d..2c3b0c0 100644 --- a/src/math.c +++ b/src/math.c @@ -12,14 +12,15 @@ c3_group_rot_t *get_group_relative(char *id) {//crashes in here somehwere... c3_group_rot_t *gr; struct entry *tmp; if((tmp=ht_getnode(&global.ht_group,id))) { - gr=tmp->target; + gr=tmp->target;//target is a void * return gr; }//if this didn't work, do fallback... for(i=0;global.group_rot[i];i++) { if(!strcmp(global.group_rot[i]->id,id)) {//should I use glob here and return an array? if(gr != global.group_rot[i]) { - fprintf(stderr,"# %s ? %s ? %s\n",tmp->original,gr->id,global.group_rot[i]->id); - fprintf(stderr,"# %16x != %16x. wtf?\n",gr,global.group_rot[i]); + //fprintf(stderr,"# %s ? %s ? %s\n",tmp->original,gr->id,global.group_rot[i]->id); + //fprintf(stderr,"# %16x != %16x. wtf?\n",gr,global.group_rot[i]); + fprintf(stderr,"ht method != loop method\n"); } return global.group_rot[i]; } -- cgit v1.2.3 From 2870621fda77e7daffee13984618d213b83738a3 Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 2 Apr 2020 01:25:54 -0500 Subject: made xargs fork off for each attempted start of a URI so you can open more than one at a time and they don't get stuck behind each other --- bin/hackvr_uri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hackvr_uri b/bin/hackvr_uri index a5bc8c5..d4e3b3a 100755 --- a/bin/hackvr_uri +++ b/bin/hackvr_uri @@ -4,4 +4,4 @@ hackvr \ | tee \ >(sed -un "s/$USER *action *<\([^ ]*\)>/\1/p" \ | stdbuf -o0 tr '\n' '\0' \ - | xargs -n1 -0 copy_start_nevermind.sh 2>&1 >/dev/null) + | xargs -n1 -P 0 -0 copy_start_nevermind.sh 2>&1 >/dev/null) -- cgit v1.2.3