summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/update_workspaces
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_workspaces
parentdf14036eb22ff9326c2806eb3f8cafc0d3042efa (diff)
guix: full refactor of configuration structure
Diffstat (limited to '.config/eww/scripts/update_workspaces')
-rwxr-xr-x.config/eww/scripts/update_workspaces34
1 files changed, 0 insertions, 34 deletions
diff --git a/.config/eww/scripts/update_workspaces b/.config/eww/scripts/update_workspaces
deleted file mode 100755
index 4fb1b1c..0000000
--- a/.config/eww/scripts/update_workspaces
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-gib_workspace_names() {
- wmctrl -d \
- | awk '{ print $1 " " $2 " " $9 }' \
- | grep -v NSP
-}
-
-gib_workspace_yuck() {
- buffered=""
- gib_workspace_names | while read -r id active name; do
- name="${name#*_}"
- if [ "$active" == '*' ]; then
- active_class="active"
- else
- active_class="inactive"
- fi
-
- if wmctrl -l | grep --regexp '.*\s\+'"$id"'\s\+.*' >/dev/null; then
- button_class="occupied"
- button_name="●"
- else
- button_class="empty"
- button_name="○"
- fi
- buffered+="(button :class \"$button_class $active_class\" :onclick \"wmctrl -s $id\" \"$button_name\")"
- echo -n "$buffered"
- buffered=""
- done
-}
-
-box_attrs=':orientation "h" :class "workspaces" :space-evenly false :halign "center" :valign "center" :vexpand false :spacing 8 '
-
-echo "(box $box_attrs $(gib_workspace_yuck))"