forked from patrickhaller/no-wm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
65 lines (59 loc) · 2.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
no-wm
Use X11 without a window manager
components
included
x-alt-tab
x-move-resize
x-session
x-focus-manager
distributed with X11
xsel xprop xrdb xset xsetroot xwininfo
key-daemons
xbindkeys http://www.nongnu.org/xbindkeys/xbindkeys.html
speckeysd http://www.jessies.org/~enh/software/x11/
xchainkeys http://code.google.com/p/xchainkeys/
window-manipulators
xdotool http://www.semicomplete.com/projects/xdotool/
window http://www.jessies.org/~enh/software/x11/
niceties
unclutter http://unclutter.sourceforge.net/
dmenu http://tools.suckless.org/dmenu/
autocutsel http://www.nongnu.org/autocutsel/
overview
http://www.sbin.org/doc/Xlib/index_contents.html
procedure
set up your ${HOME}/.xinitrc to be something like
#!/bin/bash
while ! xprop -root | grep -q Free; do sleep 1; done
xrdb -merge ${HOME}/etc/Xresources
xsetroot -solid black
xset b off
exec xterm &
exec speckeysd ${HOME}/etc/speckeysd.conf &
exec x-focus-manager &
exec x-session
and your ${HOME}/etc/speckeysd.conf to be like
# Key names come from <X11/keysymdef.h> (remove the XK_ prefix).
# MUST have a Tab separating the key-combo and command
Alt-Tab x-alt-tab
Alt-Shift-Tab x-alt-tab -1
Alt-BackSpace x-alt-tab -1
Alt-m x-move-resize
Alt-0 x-window-list 0
Alt-1 x-window-list 1
Alt-2 x-window-list 2
Alt-3 x-window-list 3
Alt-r echo run | dmenu -fn 10x20 | exec bash -s
Alt-s surf "$( echo www.duckduckgo.com | dmenu )"
Alt-t urxvt || rxvt || xterm
Alt-f xdotool selectwindow windowsize 100% 100% windowmove 0 0
then ${HOME}/etc/Xresources with the preferred window geometries
R_x11*geometry: 1024x600+0+0
XTerm*geometry: 1024x600+0+0
URxvt*geometry: 1024x600+0+0
surf*geometry: 1024x600+0+0
window managers bind orthogonals (keyboard shortcuts, window manipulation,
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.