linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit c6fb1281632cff03e9fb5e69a22c05b138a488d4 parent 1ccd9f2737603df3542261adb0a60f101b135901 Author: Jul <jul@9o.is> Date: Sun, 20 Jul 2025 18:50:34 -0400 add abduco session name to dvtm status bar Diffstat:
| M | pkg/dvtm/patches/0001-customize-personal-UI.patch | | | 29 | ++++++++++++++++++----------- |
| M | pkg/dvtm/patches/0002-allow-focusing-left-right-fullscreen.patch | | | 6 | +++--- |
2 files changed, 21 insertions(+), 14 deletions(-)
diff --git a/pkg/dvtm/patches/0001-customize-personal-UI.patch b/pkg/dvtm/patches/0001-customize-personal-UI.patch @@ -1,17 +1,17 @@ -From 9d84076cde117db8adec30c8e33e01cf52cf69b4 Mon Sep 17 00:00:00 2001 +From cda1adb0b039f605ba2662f87091edfd0b988e9b Mon Sep 17 00:00:00 2001 From: Jul <jul@qh.is> Date: Sat, 19 Jul 2025 14:05:33 -0400 Subject: [PATCH 1/2] customize personal UI --- - dvtm.c | 224 ++++++++++++++++++++++++++++++++++----------------------- - 1 file changed, 134 insertions(+), 90 deletions(-) + dvtm.c | 231 +++++++++++++++++++++++++++++++++++---------------------- + 1 file changed, 141 insertions(+), 90 deletions(-) diff --git a/dvtm.c b/dvtm.c -index 8382c83..3690acf 100644 +index 8382c83..3a5be5c 100644 --- a/dvtm.c +++ b/dvtm.c -@@ -322,87 +322,146 @@ showbar(void) { +@@ -322,87 +322,153 @@ showbar(void) { bar.pos = bar.lastpos; } @@ -156,13 +156,20 @@ index 8382c83..3690acf 100644 + attrset(NORMAL_ATTR); + } + ++ const char *abduco_env = getenv("ABDUCO_SESSION"); ++ if (abduco_env != NULL) { ++ unsigned int len_env = strlen(abduco_env) + 1; ++ move(bar.y, screen.w - len_rhs - len_env); ++ len_rhs += len_env; ++ printw("/%s", abduco_env); ++ } ++ + char hostname[256]; -+ unsigned int len_hostname = 0; + if (gethostname(hostname, sizeof(hostname)) == 0) { -+ len_hostname = strlen(hostname) + 2; ++ unsigned int len_hostname = strlen(hostname) + 1; + move(bar.y, screen.w - len_rhs - len_hostname); + len_rhs += len_hostname + 1; -+ printw("[%s]", hostname); ++ printw("/%s", hostname); + } + + unsigned int len_tags = 0; @@ -231,7 +238,7 @@ index 8382c83..3690acf 100644 if (!show_border()) return; -@@ -414,20 +473,6 @@ draw_border(Client *c) { +@@ -414,20 +480,6 @@ draw_border(Client *c) { wattrset(c->window, attrs); getyx(c->window, y, x); mvwhline(c->window, 0, 0, ACS_HLINE, c->w); @@ -252,7 +259,7 @@ index 8382c83..3690acf 100644 wmove(c->window, y, x); } -@@ -482,7 +527,7 @@ arrange(void) { +@@ -482,7 +534,7 @@ arrange(void) { } erase(); attrset(NORMAL_ATTR); @@ -261,7 +268,7 @@ index 8382c83..3690acf 100644 if ((!clients || !clients->next) && n == 1) hidebar(); else -@@ -634,8 +679,7 @@ term_title_handler(Vt *term, const char *title) { +@@ -634,8 +686,7 @@ term_title_handler(Vt *term, const char *title) { strncpy(c->title, title, sizeof(c->title) - 1); c->title[title ? sizeof(c->title) - 1 : 0] = '\0'; settitle(c); diff --git a/pkg/dvtm/patches/0002-allow-focusing-left-right-fullscreen.patch b/pkg/dvtm/patches/0002-allow-focusing-left-right-fullscreen.patch @@ -1,4 +1,4 @@ -From cb686d9654aa0347291e4353b2b402b32ca7dac2 Mon Sep 17 00:00:00 2001 +From 37a5789e85f39bd7220a75a3e603627f641d163d Mon Sep 17 00:00:00 2001 From: Jul <jul@qh.is> Date: Sat, 19 Jul 2025 20:49:03 -0400 Subject: [PATCH 2/2] allow focusing left/right fullscreen @@ -8,10 +8,10 @@ Subject: [PATCH 2/2] allow focusing left/right fullscreen 1 file changed, 2 deletions(-) diff --git a/dvtm.c b/dvtm.c -index 3690acf..9011f84 100644 +index 3a5be5c..dc59514 100644 --- a/dvtm.c +++ b/dvtm.c -@@ -738,8 +738,6 @@ static Client* +@@ -745,8 +745,6 @@ static Client* get_client_by_coord(unsigned int x, unsigned int y) { if (y < way || y >= way+wah) return NULL;