commit ad780dc0075c8efcac080d252583c50d7830dec0
parent 56fa3d34572e23d35fd6dd4af6b756d706b4622c
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sun, 8 Nov 2026 17:58:30 +0000
window maker: the dock starts the tray, clock and volume itself so they sit in it, top right, and the teal wallpaper goes in window maker's own settings. wmsetbg ran before window maker had made its files and never took. jiggity tries the desktop download four times, sourceforge mirrors dropped out mid install
Diffstat:
7 files changed, 102 insertions(+), 28 deletions(-)
diff --git a/docs/img/windowmaker.png b/docs/img/windowmaker.png
Binary files differ.
diff --git a/overlay/usr/lib/jiggity/install.py b/overlay/usr/lib/jiggity/install.py
@@ -191,20 +191,28 @@ def add_desktop(desktop, step, language):
os.makedirs(T + nm, exist_ok=True)
for f in os.listdir(nm):
shutil.copy2(os.path.join(nm, f), T + nm)
- r, w = os.pipe()
- print("jiggity: chamesle-desktop", desktop)
# noto-fonts-ttf has no chinese, japanese or korean
extra = "noto-fonts-cjk-sans" if language[:2] in ("ja", "ko", "zh") else ""
- p = subprocess.Popen(["chroot", T, "/usr/bin/env", "CHAMESLE_PROGRESS=%d" % w, "CHAMESLE_EXTRA=" + extra,
- "/usr/bin/chamesle-desktop", desktop],
- pass_fds=(w,), stdout=sys.stderr, stderr=sys.stderr)
- os.close(w)
- with os.fdopen(r) as f:
- for line in f:
- done, _, total = line.strip().partition("/")
- if done.isdigit() and total.isdigit() and int(total):
- step(2, min(99, int(done) * 100 // int(total)))
- if p.wait():
+ # sourceforge's mirrors drop out now and then, for long enough that chamesle-get's own tries on a file all
+ # fail. it keeps what it got, so going again only fetches what's missing
+ for attempt in range(4):
+ if attempt:
+ print("jiggity: the desktop didn't install, again in a minute (%d of 3)" % attempt, file=sys.stderr)
+ time.sleep(60)
+ r, w = os.pipe()
+ print("jiggity: chamesle-desktop", desktop)
+ p = subprocess.Popen(["chroot", T, "/usr/bin/env", "CHAMESLE_PROGRESS=%d" % w, "CHAMESLE_EXTRA=" + extra,
+ "/usr/bin/chamesle-desktop", desktop],
+ pass_fds=(w,), stdout=sys.stderr, stderr=sys.stderr)
+ os.close(w)
+ with os.fdopen(r) as f:
+ for line in f:
+ done, _, total = line.strip().partition("/")
+ if done.isdigit() and total.isdigit() and int(total):
+ step(2, min(99, int(done) * 100 // int(total)))
+ if not p.wait():
+ break
+ else:
raise RuntimeError("installing the desktop failed, check the internet connection")
shutil.copy("/usr/share/chamesle/repositories", T + "/etc/apk/repositories")
step(2, 100)
diff --git a/tools/pkg/chamesle-windowmaker/files/usr/bin/chamesle-windowmaker b/tools/pkg/chamesle-windowmaker/files/usr/bin/chamesle-windowmaker
@@ -6,22 +6,20 @@ export GTK_THEME=OneStepBack
export GTK2_RC_FILES=/usr/share/themes/OneStepBack/gtk-2.0/gtkrc
xdg-user-dirs-update 2>/dev/null
-[ -x /usr/libexec/xfce-polkit ] && /usr/libexec/xfce-polkit &
-# the tray first, so the network and bluetooth icons have somewhere to go
-wmsystemtray &
-sleep 1
-nm-applet &
-command -v blueman-applet >/dev/null && blueman-applet &
-wmclock &
-wmix &
-# lock with xlock after 10 minutes, and before the lid closes
-xset s 600
-xss-lock -- xlock -mode blank &
-# the chamesle wallpaper the first time only. after that it's whatever you set in WPrefs
-if [ ! -e "$HOME/GNUstep/.chamesle-wallpaper" ]; then
- mkdir -p "$HOME/GNUstep"
- wmsetbg -u -S -f -b '#246070' /usr/share/backgrounds/chamesle/teal.jpg && touch "$HOME/GNUstep/.chamesle-wallpaper"
+# the first time: our dock (tray, clock, volume) and the wallpaper. window maker starts the dock apps itself,
+# started by hand they float about instead of sitting in the dock. after that it's yours, change it in WPrefs.
+# 0.1 set the wallpaper with wmsetbg before window maker had made its files, which didn't take, so
+# .chamesle-dock is new and those get it once too
+G=$HOME/GNUstep
+if [ ! -e "$G/.chamesle-dock" ]; then
+ mkdir -p "$G/Defaults" "$G/Library/WindowMaker"
+ cp /usr/share/chamesle/windowmaker/WMState "$G/Defaults/WMState"
+ [ -s "$G/Defaults/WindowMaker" ] && grep -q "^ *WorkspaceBack" "$G/Defaults/WindowMaker" ||
+ cp /usr/share/chamesle/windowmaker/WindowMaker "$G/Defaults/WindowMaker"
+ touch "$G/.chamesle-dock"
fi
+A=$G/Library/WindowMaker/autostart
+[ -e "$A" ] || { mkdir -p "${A%/*}"; printf '#!/bin/sh\n/usr/libexec/chamesle-windowmaker-autostart\n' > "$A"; chmod +x "$A"; }
exec wmaker
diff --git a/tools/pkg/chamesle-windowmaker/files/usr/libexec/chamesle-windowmaker-autostart b/tools/pkg/chamesle-windowmaker/files/usr/libexec/chamesle-windowmaker-autostart
@@ -0,0 +1,10 @@
+#!/bin/sh
+# window maker runs this once it's up and the dock has started the tray, so the network and bluetooth
+# icons have somewhere to go
+[ -x /usr/libexec/xfce-polkit ] && /usr/libexec/xfce-polkit &
+sleep 1
+nm-applet &
+command -v blueman-applet >/dev/null && blueman-applet &
+# lock with xlock after 10 minutes, and before the lid closes
+xset s 600
+xss-lock -- xlock -mode blank &
diff --git a/tools/pkg/chamesle-windowmaker/files/usr/share/chamesle/windowmaker/WMState b/tools/pkg/chamesle-windowmaker/files/usr/share/chamesle/windowmaker/WMState
@@ -0,0 +1,54 @@
+{
+ Dock = {
+ Applications = (
+ {
+ Command = "/usr/bin/WPrefs";
+ Name = Logo.WMDock;
+ AutoLaunch = No;
+ Forced = No;
+ Position = "0,0";
+ Lock = Yes;
+ },
+ {
+ Command = wmsystemtray;
+ Name = wmsystemtray0.wmsystemtray;
+ AutoLaunch = Yes;
+ Forced = No;
+ Position = "0,1";
+ Lock = Yes;
+ },
+ {
+ Command = wmclock;
+ Name = wmclock.WMClock;
+ AutoLaunch = Yes;
+ Forced = No;
+ Position = "0,2";
+ Lock = Yes;
+ },
+ {
+ Command = wmix;
+ Name = wmix.wmix;
+ AutoLaunch = Yes;
+ Forced = No;
+ Position = "0,3";
+ Lock = Yes;
+ },
+ {
+ Command = xterm;
+ Name = xterm.XTerm;
+ AutoLaunch = No;
+ Forced = No;
+ Position = "0,4";
+ },
+ {
+ Command = firefox;
+ Name = Navigator.firefox;
+ AutoLaunch = No;
+ Forced = No;
+ Position = "0,5";
+ }
+ );
+ Position = "9999,0";
+ Lowered = No;
+ };
+}
diff --git a/tools/pkg/chamesle-windowmaker/files/usr/share/chamesle/windowmaker/WindowMaker b/tools/pkg/chamesle-windowmaker/files/usr/share/chamesle/windowmaker/WindowMaker
@@ -0,0 +1,4 @@
+{
+ WorkspaceBack = (fpixmap, "/usr/share/backgrounds/chamesle/teal.jpg", "#246070");
+ SmoothWorkspaceBack = YES;
+}
diff --git a/tools/pkg/chamesle-windowmaker/recipe b/tools/pkg/chamesle-windowmaker/recipe
@@ -1,6 +1,6 @@
name=chamesle-windowmaker
version=0.1
-rel=0
+rel=1
desc="Chamesle's Window Maker session: the dock apps, network, sound and OneStepBack for the apps"
url=https://chamesle.org
license=GPL-3.0-or-later