summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/update_x_names
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-12-13 23:43:10 -0500
committerbdunahu <bdunahu@operationnull.com>2026-01-03 21:46:06 -0700
commit288ccb3984c7cb46b67d0f6bf7fb6d53c5d7a2d3 (patch)
tree47091f5aeede90e1364546e8122cd55e6d7f2971 /.config/eww/scripts/update_x_names
parentdf14036eb22ff9326c2806eb3f8cafc0d3042efa (diff)
guix: full refactor of configuration structure
Diffstat (limited to '.config/eww/scripts/update_x_names')
-rwxr-xr-x.config/eww/scripts/update_x_names33
1 files changed, 0 insertions, 33 deletions
diff --git a/.config/eww/scripts/update_x_names b/.config/eww/scripts/update_x_names
deleted file mode 100755
index 63117ef..0000000
--- a/.config/eww/scripts/update_x_names
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/run/current-system/profile/bin/guile \
--s
-!#
-
-(use-modules (ice-9 popen)
- (ice-9 textual-ports)
- (ice-9 rdelim))
-
-(define cmd "wmctrl -l | awk -v ws=\"$(wmctrl -d | awk '$2 == \"*\" {print $1}')\" '$2 == ws {print}' | cut -d ' ' -f 5-")
-
-(define box-attrs '(:class "classes"
- :orientation "h"
- :valign "center"
- :halign "start"
- :space-evenly "false"))
-
-(define titles
- (let* ((process (open-pipe* OPEN_READ "sh" "-c" cmd))
- (output (get-string-all process)))
- (close-pipe process)
- output))
-
-(define labels
- (map (lambda (t) `(eventbox
- :onclick ,(string-concatenate `("wmctrl -a \"" ,t "\""))
- (label :class "class"
- :text ,t
- :truncate true
- :valign "center")))
- (filter (lambda (s) (not (string=? s "")))
- (string-split titles #\newline))))
-
-(write `(box ,@box-attrs ,@labels))