From 5d3a88ea690b02ea8467b6d067fdaf3927b22e79 Mon Sep 17 00:00:00 2001 From: yctct Date: Thu, 26 Nov 2026 15:31:22 +0100 Subject: Add explanations about my own usage of no-wm --- README | 130 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/README b/README index 136f780..52862cd 100644 --- a/README +++ b/README @@ -1,3 +1,62 @@ +## Description + +My customized version of no-wm written by Patrick Haller. + +## Set up + + $ # install dependecies + $ sudo apt install xdotool unclutter autocutsel sxhkd libx11-dev \ + dmenu astyle git rxvt-unicode x11-utils x11-xserver-utils \ + xbindkeys xsel + $ git clone https://git.yctct.com/no-wm + $ cd no-wm + $ make install PREFIX="$HOME" + $ cd + $ mkdir -p etc + $ cp no-wm/config/Xresources ~/etc/ + $ cp no-wm/config/sxhkdrc ~/etc/ + # back up your own .xinitrc + $ cp .xinitrc .xinitrc.bak + $ cp no-wm/config/.xinitrc . + +I use st so you probably need to change the configuration with the terminal of +your choice. + +Please let me know if you have issues with the above. + +## Run + +From a tty run: + + $ startx + +or if you named `.xinitrc` differentely for testing, for example +`.xinitrc-no-wm`, from tty number 1: + + $ startx ~/.xinitrc-no-wm -- :0 vt1 + +## Modifications + +- removed `alt + f` +- changed `alt + backspace` to `alt + l` +- added a shortcut `alt + p` to open keepassxc full screen +- removed xterm from the config file (I use st) +- added geometries for st and keepassxc in ~/etc/sxhkdrc +- added `Xresources`, `sxhkdrc and `.xinitrc` to the repository +- added udiskie to .xinitrc so devices are mounted automatically + +## Links + +- reload sxhkdrc https://elpa.gnu.org/packages/sxhkdrc-mode.html + +## Known issues + +- st does not scale 100% of the screen display; to do so manually run + `xdotool search --call st windowsize 100% 100% 0 0` +- newly started window is not always in focus + +## Original README + no-wm Use X11 without a window manager @@ -62,3 +121,74 @@ window decoration) which should remain separate. x-focus-manager is not needed when all your apps return focus properly. A mis-behaving app can be fixed by calling x-alt-tab after it runs; however that needs to be scripted as focus remains with a window that no longer exists. + +## Troubleshooting + +## Window expands past the screen + +Show the size of the actual screen: + + $ xdpyinfo | grep dimensions + dimensions: 1366x768 pixels (361x203 millimeters) + +Show the id of the window that is going beyond the screen, in my case st + + $ xdotool search --class st | head -1 + 8388613 + +Show the width and height of the window of the program in question, in my case +st, using `$(!!)` interpolate the stdout from the previous command: + + $ xwininfo -id $(!!) | grep -E 'Absolute|Width|Height' + xwininfo -id $(xdotool search --class st | head -1) | grep -E 'Absolute|Width|Height' + Absolute upper-left X: 0 + Absolute upper-left Y: 0 + Width: 9566 + Height: 10756 + +## See what X currently has in its resource database: + + $ xrdb -query | grep -i geometry + R_x11.geometry: 1300x760+0+0 + URxvt*geometry: 1300x760+0+0 + XTerm*geometry: 1300x760+0+0 + abrowser*geometry: 1300x760+0+0 + +## See what the size of the screen is: + + $ xrandr | grep '*' + 1366x768 59.64*+ + +## See what size the window actually is, look at `Width``and `Height`: + + $ xwininfo + + xwininfo: Please select the window about which you + would like information by clicking the + mouse in that window. + + xwininfo: Window id: 0xa00005 "st" + + Absolute upper-left X: 0 + Absolute upper-left Y: 0 + Relative upper-left X: 0 + Relative upper-left Y: 0 + Width: 1366 + Height: 768 + Depth: 24 + Visual: 0x21 + Visual Class: TrueColor + Border width: 0 + Class: InputOutput + Colormap: 0x20 (installed) + Bit Gravity State: NorthWestGravity + Window Gravity State: NorthWestGravity + Backing Store State: NotUseful + Save Under State: no + Map State: IsViewable + Override Redirect State: no + Corners: +0+0 -0+0 -0-0 +0-0 + -geometry 194x54+0+0 + + + -- cgit v1.2.3