system

the Chamesle handbook, init, live ISO and install helpers
git clone https://github.com/tortr-rs/system
Log | Files | Refs | README | LICENSE

commit a4967805321cd9f14d2c2855d4f7622abb426ab2
parent 1f8a87c428e67a3ae2c591ffe8323e429dfb936e
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 21 Nov 2026 18:28:09 +0000

slate: the window maker desktop has a name, st for the terminal, title bars on every window

Diffstat:
Adesktop/slate/bin/slate | 23+++++++++++++++++++++++
Rdesktop/windowmaker/dockapps -> desktop/slate/dockapps | 0
Adesktop/slate/install | 13+++++++++++++
Rdesktop/windowmaker/patches/wmbattery-2.56-lto.patch -> desktop/slate/patches/wmbattery-2.56-lto.patch | 0
Rdesktop/windowmaker/patches/wmsystemtray-1.4-ar.patch -> desktop/slate/patches/wmsystemtray-1.4-ar.patch | 0
Adesktop/slate/share/WMRootMenu | 29+++++++++++++++++++++++++++++
Adesktop/slate/share/WMState | 135+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adesktop/slate/share/WMWindowAttributes | 8++++++++
Rdesktop/windowmaker/share/WindowMaker -> desktop/slate/share/WindowMaker | 0
Rdesktop/windowmaker/share/autostart -> desktop/slate/share/autostart | 0
Rdesktop/windowmaker/share/web -> desktop/slate/share/web | 0
Ddesktop/windowmaker/bin/chamesle-windowmaker | 22----------------------
Ddesktop/windowmaker/install | 13-------------
Ddesktop/windowmaker/share/WMRootMenu | 29-----------------------------
Ddesktop/windowmaker/share/WMState | 135-------------------------------------------------------------------------------
Ddesktop/windowmaker/share/WMWindowAttributes | 8--------
Mtools/mkpkgs | 10+++++-----
17 files changed, 213 insertions(+), 212 deletions(-)

diff --git a/desktop/slate/bin/slate b/desktop/slate/bin/slate @@ -0,0 +1,23 @@ +#!/bin/sh +# slate: Window Maker with the dock apps and the NeXT look. startx slate, or pick it in a display manager. +# the first time, and when slate brings a new dock or menu, it puts its look, dock and menu in ~/GNUstep (what was +# there first goes to *.before); in between they are yours to change in WPrefs. SLATE_RESET=1 puts them back. +# ~/GNUstep names no path, so one home runs it from /usr and from /usr/local: "slate autostart" and "slate web" +s=${SLATE_SHARE:-$(dirname "$(dirname "$(readlink -f "$0")")")/share/slate} +v=2 +case $1 in autostart|web) f=$s/$1; shift; exec "$f" "$@";; esac +g=$HOME/GNUstep +export XDG_CURRENT_DESKTOP=WindowMaker XDG_SESSION_DESKTOP=WindowMaker +if [ "$(cat "$g/.slate" 2>/dev/null)" != $v ] || [ -n "$SLATE_RESET" ]; then + mkdir -p "$g/Defaults" "$g/Library/WindowMaker" + for f in WindowMaker WMState WMRootMenu WMWindowAttributes; do + [ -e "$g/Defaults/$f" ] && [ ! -e "$g/Defaults/$f.before" ] && mv "$g/Defaults/$f" "$g/Defaults/$f.before" + cp "$s/$f" "$g/Defaults/$f" + done + a=$g/Library/WindowMaker/autostart + [ -e "$a" ] && [ ! -e "$a.before" ] && mv "$a" "$a.before" + printf '#!/bin/sh\nexec slate autostart\n' > "$a" + chmod 755 "$a" + echo $v > "$g/.slate" +fi +exec wmaker "$@" diff --git a/desktop/windowmaker/dockapps b/desktop/slate/dockapps diff --git a/desktop/slate/install b/desktop/slate/install @@ -0,0 +1,13 @@ +#!/bin/sh +# install [PREFIX]: puts the desktop in PREFIX (/usr/local), with DESTDIR in front if it is set +set -e +cd "$(dirname "$0")" +p=$DESTDIR${1:-/usr/local} +s=$p/share/slate +mkdir -p "$p/bin" "$s" +install -m755 bin/slate "$p/bin/" +for f in WindowMaker WMState WMRootMenu WMWindowAttributes; do install -m644 "share/$f" "$s/"; done +install -m755 share/autostart share/web "$s/" +x=$DESTDIR/usr/share/xsessions +mkdir -p "$x" +printf '[Desktop Entry]\nName=Slate\nComment=Window Maker with the dock apps and the NeXT look\nExec=%s/bin/slate\nType=Application\n' "${1:-/usr/local}" > "$x/slate.desktop" diff --git a/desktop/windowmaker/patches/wmbattery-2.56-lto.patch b/desktop/slate/patches/wmbattery-2.56-lto.patch diff --git a/desktop/windowmaker/patches/wmsystemtray-1.4-ar.patch b/desktop/slate/patches/wmsystemtray-1.4-ar.patch diff --git a/desktop/slate/share/WMRootMenu b/desktop/slate/share/WMRootMenu @@ -0,0 +1,29 @@ +( + "Slate", + ("Terminal", SHORTCUT, "Mod4+Return", EXEC, st), + ("Files", SHORTCUT, "Mod4+E", EXEC, xfe), + ("Web", SHORTCUT, "Mod4+W", EXEC, "slate web"), + ("Applications", OPEN_PLMENU, "|| wmmenugen -parser:xdg /usr/share/applications /usr/local/share/applications"), + ("Run...", SHORTCUT, "Mod4+R", SHEXEC, "%A(Run,Type a command:)"), + ( + "Workspaces", + WORKSPACE_MENU + ), + ( + "Appearance", + ("Themes", OPEN_MENU, "-noext /usr/share/WindowMaker/Themes $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle"), + ("Styles", OPEN_MENU, "-noext /usr/share/WindowMaker/Styles $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle"), + ("Backgrounds", OPEN_MENU, "-noext /usr/share/WindowMaker/Backgrounds $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t"), + ("Preferences", EXEC, WPrefs) + ), + ( + "Session", + ("Hide Others", HIDE_OTHERS), + ("Show All", SHOW_ALL), + ("Arrange Icons", ARRANGE_ICONS), + ("Refresh", REFRESH), + ("Lock", EXEC, "xscreensaver-command -lock || xlock"), + ("Restart", RESTART), + ("Log Out", SHORTCUT, "Mod4+Shift+Q", EXIT) + ) +) diff --git a/desktop/slate/share/WMState b/desktop/slate/share/WMState @@ -0,0 +1,135 @@ +{ + Dock = { + AutoRaiseLower = No; + Applications = ( + { + Command = "WPrefs"; + Name = Logo.WMDock; + AutoLaunch = No; + Forced = No; + BuggyApplication = No; + Position = "0,0"; + Omnipresent = No; + DropCommand = "WPrefs %d"; + Lock = Yes; + }, + { + Command = "st"; + Name = st-256color.st-256color; + AutoLaunch = No; + Forced = No; + BuggyApplication = No; + Position = "0,1"; + Omnipresent = No; + DropCommand = "st %d"; + Lock = Yes; + }, + { + Command = "xfe"; + Name = xfe.Xfe; + AutoLaunch = No; + Forced = No; + BuggyApplication = No; + Position = "0,2"; + Omnipresent = No; + DropCommand = "xfe %d"; + Lock = Yes; + }, + { + Command = "slate web"; + Name = Navigator.firefox; + AutoLaunch = No; + Forced = No; + BuggyApplication = No; + Position = "0,3"; + Omnipresent = No; + DropCommand = "slate web %d"; + Lock = Yes; + }, + { + Command = "wmclock"; + Name = wmclock.WMClock; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,4"; + Omnipresent = No; + DropCommand = "wmclock %d"; + Lock = Yes; + }, + { + Command = "wmcpuload"; + Name = wmcpuload.DockApp; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,5"; + Omnipresent = No; + DropCommand = "wmcpuload %d"; + Lock = Yes; + }, + { + Command = "wmmemload"; + Name = wmmemload.DockApp; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,6"; + Omnipresent = No; + DropCommand = "wmmemload %d"; + Lock = Yes; + }, + { + Command = "wmnet"; + Name = wmnet.WMNET; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,7"; + Omnipresent = No; + DropCommand = "wmnet %d"; + Lock = Yes; + }, + { + Command = "wmix"; + Name = wmix.wmix; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,8"; + Omnipresent = No; + DropCommand = "wmix %d"; + Lock = Yes; + }, + { + Command = "wmbattery"; + Name = wmbattery.wmbattery; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,9"; + Omnipresent = No; + DropCommand = "wmbattery %d"; + Lock = Yes; + }, + { + Command = "wmsystemtray"; + Name = wmsystemtray0.wmsystemtray; + AutoLaunch = Yes; + Forced = No; + BuggyApplication = No; + Position = "0,10"; + Omnipresent = No; + DropCommand = "wmsystemtray %d"; + Lock = Yes; + } + ); + Lowered = Yes; + }; + Workspaces = ( + {Name = One;}, + {Name = Two;}, + {Name = Three;}, + {Name = Four;} + ); +} diff --git a/desktop/slate/share/WMWindowAttributes b/desktop/slate/share/WMWindowAttributes @@ -0,0 +1,8 @@ +{ + "*" = {Icon = defaultAppIcon.tiff; IgnoreDecorationChanges = Yes;}; + Logo.WMDock = {Icon = GNUstep3D.tiff;}; + Logo.WMPanel = {Icon = GNUstep.tiff;}; + st-256color = {Icon = TerminalGNUstep.tiff;}; + Xfe = {NoAppIcon = No;}; + DockApp = {NoTitlebar = Yes; NoResizebar = Yes;}; +} diff --git a/desktop/windowmaker/share/WindowMaker b/desktop/slate/share/WindowMaker diff --git a/desktop/windowmaker/share/autostart b/desktop/slate/share/autostart diff --git a/desktop/windowmaker/share/web b/desktop/slate/share/web diff --git a/desktop/windowmaker/bin/chamesle-windowmaker b/desktop/windowmaker/bin/chamesle-windowmaker @@ -1,22 +0,0 @@ -#!/bin/sh -# the Window Maker desktop: startx chamesle-windowmaker, or pick it in a display manager. -# the first time it puts its look, dock and menu in ~/GNUstep (what was there goes to *.before), after that -# they are yours to change in WPrefs. CHAMESLE_WM_RESET=1 puts them back. ~/GNUstep names no path, so the same home -# works where this is in /usr and where it is in /usr/local: "chamesle-windowmaker autostart" and "web" find their files -s=${CHAMESLE_WM_SHARE:-$(dirname "$(dirname "$(readlink -f "$0")")")/share/chamesle/windowmaker} -case $1 in autostart|web) f=$s/$1; shift; exec "$f" "$@";; esac -g=$HOME/GNUstep -export XDG_CURRENT_DESKTOP=WindowMaker XDG_SESSION_DESKTOP=WindowMaker -if [ ! -e "$g/.chamesle-windowmaker" ] || [ -n "$CHAMESLE_WM_RESET" ]; then - mkdir -p "$g/Defaults" "$g/Library/WindowMaker" - for f in WindowMaker WMState WMRootMenu WMWindowAttributes; do - [ -e "$g/Defaults/$f" ] && [ ! -e "$g/Defaults/$f.before" ] && mv "$g/Defaults/$f" "$g/Defaults/$f.before" - cp "$s/$f" "$g/Defaults/$f" - done - a=$g/Library/WindowMaker/autostart - [ -e "$a" ] && [ ! -e "$a.before" ] && mv "$a" "$a.before" - printf '#!/bin/sh\nexec chamesle-windowmaker autostart\n' > "$a" - chmod 755 "$a" - touch "$g/.chamesle-windowmaker" -fi -exec wmaker "$@" diff --git a/desktop/windowmaker/install b/desktop/windowmaker/install @@ -1,13 +0,0 @@ -#!/bin/sh -# install [PREFIX]: puts the desktop in PREFIX (/usr/local), with DESTDIR in front if it is set -set -e -cd "$(dirname "$0")" -p=$DESTDIR${1:-/usr/local} -s=$p/share/chamesle/windowmaker -mkdir -p "$p/bin" "$s" -install -m755 bin/chamesle-windowmaker "$p/bin/" -for f in WindowMaker WMState WMRootMenu WMWindowAttributes; do install -m644 "share/$f" "$s/"; done -install -m755 share/autostart share/web "$s/" -x=$DESTDIR/usr/share/xsessions -mkdir -p "$x" -printf '[Desktop Entry]\nName=Window Maker (Chamesle)\nComment=Window Maker with the dock apps, the NeXT look\nExec=%s/bin/chamesle-windowmaker\nType=Application\n' "${1:-/usr/local}" > "$x/chamesle-windowmaker.desktop" diff --git a/desktop/windowmaker/share/WMRootMenu b/desktop/windowmaker/share/WMRootMenu @@ -1,29 +0,0 @@ -( - "Chamesle", - ("Terminal", SHORTCUT, "Mod4+Return", EXEC, xterm), - ("Files", SHORTCUT, "Mod4+E", EXEC, xfe), - ("Web", SHORTCUT, "Mod4+W", EXEC, "chamesle-windowmaker web"), - ("Applications", OPEN_PLMENU, "|| wmmenugen -parser:xdg /usr/share/applications /usr/local/share/applications"), - ("Run...", SHORTCUT, "Mod4+R", SHEXEC, "%A(Run,Type a command:)"), - ( - "Workspaces", - WORKSPACE_MENU - ), - ( - "Appearance", - ("Themes", OPEN_MENU, "-noext /usr/share/WindowMaker/Themes $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle"), - ("Styles", OPEN_MENU, "-noext /usr/share/WindowMaker/Styles $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle"), - ("Backgrounds", OPEN_MENU, "-noext /usr/share/WindowMaker/Backgrounds $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t"), - ("Preferences", EXEC, WPrefs) - ), - ( - "Session", - ("Hide Others", HIDE_OTHERS), - ("Show All", SHOW_ALL), - ("Arrange Icons", ARRANGE_ICONS), - ("Refresh", REFRESH), - ("Lock", EXEC, "xscreensaver-command -lock || xlock"), - ("Restart", RESTART), - ("Log Out", SHORTCUT, "Mod4+Shift+Q", EXIT) - ) -) diff --git a/desktop/windowmaker/share/WMState b/desktop/windowmaker/share/WMState @@ -1,135 +0,0 @@ -{ - Dock = { - AutoRaiseLower = No; - Applications = ( - { - Command = "WPrefs"; - Name = Logo.WMDock; - AutoLaunch = No; - Forced = No; - BuggyApplication = No; - Position = "0,0"; - Omnipresent = No; - DropCommand = "WPrefs %d"; - Lock = Yes; - }, - { - Command = "xterm"; - Name = xterm.XTerm; - AutoLaunch = No; - Forced = No; - BuggyApplication = No; - Position = "0,1"; - Omnipresent = No; - DropCommand = "xterm %d"; - Lock = Yes; - }, - { - Command = "xfe"; - Name = xfe.Xfe; - AutoLaunch = No; - Forced = No; - BuggyApplication = No; - Position = "0,2"; - Omnipresent = No; - DropCommand = "xfe %d"; - Lock = Yes; - }, - { - Command = "chamesle-windowmaker web"; - Name = Navigator.firefox; - AutoLaunch = No; - Forced = No; - BuggyApplication = No; - Position = "0,3"; - Omnipresent = No; - DropCommand = "chamesle-windowmaker web %d"; - Lock = Yes; - }, - { - Command = "wmclock"; - Name = wmclock.WMClock; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,4"; - Omnipresent = No; - DropCommand = "wmclock %d"; - Lock = Yes; - }, - { - Command = "wmcpuload"; - Name = wmcpuload.DockApp; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,5"; - Omnipresent = No; - DropCommand = "wmcpuload %d"; - Lock = Yes; - }, - { - Command = "wmmemload"; - Name = wmmemload.DockApp; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,6"; - Omnipresent = No; - DropCommand = "wmmemload %d"; - Lock = Yes; - }, - { - Command = "wmnet"; - Name = wmnet.WMNET; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,7"; - Omnipresent = No; - DropCommand = "wmnet %d"; - Lock = Yes; - }, - { - Command = "wmix"; - Name = wmix.wmix; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,8"; - Omnipresent = No; - DropCommand = "wmix %d"; - Lock = Yes; - }, - { - Command = "wmbattery"; - Name = wmbattery.wmbattery; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,9"; - Omnipresent = No; - DropCommand = "wmbattery %d"; - Lock = Yes; - }, - { - Command = "wmsystemtray"; - Name = wmsystemtray0.wmsystemtray; - AutoLaunch = Yes; - Forced = No; - BuggyApplication = No; - Position = "0,10"; - Omnipresent = No; - DropCommand = "wmsystemtray %d"; - Lock = Yes; - } - ); - Lowered = Yes; - }; - Workspaces = ( - {Name = One;}, - {Name = Two;}, - {Name = Three;}, - {Name = Four;} - ); -} diff --git a/desktop/windowmaker/share/WMWindowAttributes b/desktop/windowmaker/share/WMWindowAttributes @@ -1,8 +0,0 @@ -{ - "*" = {Icon = defaultAppIcon.tiff;}; - Logo.WMDock = {Icon = GNUstep3D.tiff;}; - Logo.WMPanel = {Icon = GNUstep.tiff;}; - XTerm = {Icon = TerminalGNUstep.tiff;}; - Xfe = {NoAppIcon = No;}; - DockApp = {NoTitlebar = Yes; NoResizebar = Yes;}; -} diff --git a/tools/mkpkgs b/tools/mkpkgs @@ -2,7 +2,7 @@ # mkpkgs ARCH OUT: Chamesle's own packages for one arch, signed with KEY, and the index of OUT. # KEY=~/.chamesle-keys/chamesle-20261118.rsa MAG=~/src/mag/mag RIFLE=~/src/rifle/rifle mkpkgs x86_64 repo/x86_64 # RIFLE is left out where rifle does not build (it is x86_64 only for now). REL is the -rN of the base's version. -# DOCKAPPS is what desktop/windowmaker/dockapps built for this arch, chamesle-dockapps is left out without it +# DOCKAPPS is what desktop/slate/dockapps built for this arch, chamesle-dockapps is left out without it set -e here=$(cd "$(dirname "$0")/.." && pwd) [ $# = 2 ] && [ -f "$KEY" ] && [ -x "$MAG" ] || { echo "usage: KEY=... MAG=... [RIFLE=...] mkpkgs ARCH OUT" >&2; exit 2; } @@ -38,10 +38,10 @@ cp "$here/handbook/handbook.md" "$b/usr/share/doc/chamesle/handbook.md" mkapk -n chamesle-base -v "$(date +%Y%m%d)-r${REL:-0}" -d "Winchester, the files in /etc and the tools of Chamesle" \ -D "$deps" -s "$here/pkg/chamesle-base" "$b" -d=$tmp/windowmaker -DESTDIR=$d "$here/desktop/windowmaker/install" /usr -mkapk -n chamesle-windowmaker -v "$(date +%Y%m%d)-r${WMREL:-0}" -d "Window Maker with the dock apps and the NeXT look" \ - -D "windowmaker xterm xfe xsetroot font-urw-base35 font-misc-misc${DOCKAPPS:+ chamesle-dockapps}" "$d" +d=$tmp/slate +DESTDIR=$d "$here/desktop/slate/install" /usr +mkapk -n slate -v "$(date +%Y%m%d)-r${WMREL:-0}" -d "Window Maker with the dock apps and the NeXT look" \ + -D "windowmaker st xfe xsetroot font-urw-base35 font-misc-misc${DOCKAPPS:+ chamesle-dockapps}" "$d" if [ -n "$DOCKAPPS" ]; then mkapk -n chamesle-dockapps -v "$(date +%Y%m%d)-r${WMREL:-0}" -d "wmclock, wmcpuload, wmmemload, wmnet, wmix, wmbattery and wmsystemtray" \ -D "libx11 libxext libxpm alsa-lib upower" "$DOCKAPPS"