Blame


1 f15b7ed8 2024-02-11 jrmu version=pmwiki-2.3.20 ordered=1 urlencoded=1
2 f15b7ed8 2024-02-11 jrmu agent=w3m/0.5.3+git20230121
3 f15b7ed8 2024-02-11 jrmu author=jrmu
4 f15b7ed8 2024-02-11 jrmu charset=UTF-8
5 f15b7ed8 2024-02-11 jrmu csum=
6 f15b7ed8 2024-02-11 jrmu ctime=1707467661
7 f15b7ed8 2024-02-11 jrmu host=104.167.242.140
8 f15b7ed8 2024-02-11 jrmu name=Cwm.Configure
9 f15b7ed8 2024-02-11 jrmu rev=11
10 f15b7ed8 2024-02-11 jrmu targets=
11 f15b7ed8 2024-02-11 jrmu text=[[https://man.openbsd.org/cwm|cwm]] is a very powerful window manager that is part of the base system for OpenBSD.%0a%0aOne strength is its ability to entirely emulate the mouse with keybindings. These keybindings are entirely programmable.%0a%0aIn @@~/.cwmrc@@:%0a%0a[@%0abind-key CS-h pointer-move-left%0abind-key CS-j pointer-move-down%0abind-key CS-k pointer-move-up%0abind-key CS-l pointer-move-right%0abind-key CMS-h pointer-move-left-big%0abind-key CMS-j pointer-move-down-big%0abind-key CMS-k pointer-move-up-big%0abind-key CMS-l pointer-move-right-big%0a@]%0a%0aC is control, M is meta (alt), and S is shift. This emulates the mouse movements to follow familiar vi keybindings.%0a%0aThen, place this inside @@~/.xsession@@:%0a%0a[@%0a/usr/X11R6/bin/xterm &%0a/usr/X11R6/bin/cwm%0a@]%0a%0axenodm will now start an xterm and cwm upon successful login.%0a%0aIt may be convenient to place any terminals that need to be opened by default in a file like ~/cwm.sh:%0a%0a[@%0a/usr/X11R6/bin/xterm -e 'sh -c \"sleep 1 && tmux new-session -A -s 0\"' &%0a/usr/X11R6/bin/xterm -e "sh -c \"sleep 1 && ssh -D 54321 -t breadofgod.org \\\"tmux a -t 0; sh -l\\\"\"" &%0a@]%0a%0aTo use keyboard keys to emulate a 3 button mouse in OpenBSD (on X11),%0afirst enable mousekeys:%0a%0a[@%0a$ doas pkg_add xkbset%0a@]%0a%0aOpen xev and press keys you intend to use as mouse keys:%0amight make lots of spam in terminal.%0a%0a[@%0a$ xev -event keyboard%0a@]%0a%0aMy key codes are 75, 76, and 95 (F9, F10, and F11):%0a%0a[@%0axkbset m # enables mousekeys%0axmodmap -e "keycode 75 = Pointer_Button1"%0axmodmap -e "keycode 76 = Pointer_Button2"%0axmodmap -e "keycode 95 = Pointer_Button3"%0a@]%0a
12 f15b7ed8 2024-02-11 jrmu time=1707597296
13 f15b7ed8 2024-02-11 jrmu author:1707597296=jrmu
14 f15b7ed8 2024-02-11 jrmu diff:1707597296:1707585395:=50,51c50,51%0a%3c My key codes are 75, 76, and 95 (F9, F10, and F11):%0a%3c %0a---%0a> My key codes are 67, 68, and 69 (F1, F2, and F3):%0a> %0a54,56c54,56%0a%3c xmodmap -e "keycode 75 = Pointer_Button1"%0a%3c xmodmap -e "keycode 76 = Pointer_Button2"%0a%3c xmodmap -e "keycode 95 = Pointer_Button3"%0a---%0a> xmodmap -e "keycode 67 = Pointer_Button1"%0a> xmodmap -e "keycode 68 = Pointer_Button2"%0a> xmodmap -e "keycode 69 = Pointer_Button3"%0a
15 f15b7ed8 2024-02-11 jrmu host:1707597296=104.167.242.140
16 f15b7ed8 2024-02-11 jrmu author:1707585395=jrmu
17 f15b7ed8 2024-02-11 jrmu diff:1707585395:1707585080:=56c56%0a%3c xmodmap -e "keycode 69 = Pointer_Button3"%0a---%0a> xmodmap -e "keycode 79 = Pointer_Button3"%0a
18 f15b7ed8 2024-02-11 jrmu host:1707585395=104.167.242.140
19 f15b7ed8 2024-02-11 jrmu author:1707585080=jrmu
20 f15b7ed8 2024-02-11 jrmu diff:1707585080:1707546591:=50,51c50,51%0a%3c My key codes are 67, 68, and 69 (F1, F2, and F3):%0a%3c %0a---%0a> My key codes are 75, 76, and 95 (F9, F10, and F11):%0a> %0a54,56c54,56%0a%3c xmodmap -e "keycode 67 = Pointer_Button1"%0a%3c xmodmap -e "keycode 68 = Pointer_Button2"%0a%3c xmodmap -e "keycode 79 = Pointer_Button3"%0a---%0a> xmodmap -e "keycode 75 = Pointer_Button1"%0a> xmodmap -e "keycode 76 = Pointer_Button2"%0a> xmodmap -e "keycode 95 = Pointer_Button3"%0a
21 f15b7ed8 2024-02-11 jrmu host:1707585080=104.167.242.140
22 f15b7ed8 2024-02-11 jrmu author:1707546591=jrmu
23 f15b7ed8 2024-02-11 jrmu diff:1707546591:1707505132:=50,51c50,51%0a%3c My key codes are 75, 76, and 95 (F9, F10, and F11):%0a%3c %0a---%0a> My key codes are 67, 68 and 69. (f1, f2 and f3):%0a> %0a54,56c54,56%0a%3c xmodmap -e "keycode 75 = Pointer_Button1"%0a%3c xmodmap -e "keycode 76 = Pointer_Button2"%0a%3c xmodmap -e "keycode 95 = Pointer_Button3"%0a---%0a> xmodmap -e "keycode 67 = Pointer_Button1"%0a> xmodmap -e "keycode 68 = Pointer_Button2"%0a> xmodmap -e "keycode 69 = Pointer_Button3"%0a
24 f15b7ed8 2024-02-11 jrmu host:1707546591=104.167.242.140
25 f15b7ed8 2024-02-11 jrmu author:1707505132=jrmu
26 f15b7ed8 2024-02-11 jrmu diff:1707505132:1707498836:=29,57c29%0a%3c It may be convenient to place any terminals that need to be opened by default in a file like ~/cwm.sh:%0a%3c %0a%3c [@%0a%3c /usr/X11R6/bin/xterm -e 'sh -c \"sleep 1 && tmux new-session -A -s 0\"' &%0a%3c /usr/X11R6/bin/xterm -e "sh -c \"sleep 1 && ssh -D 54321 -t breadofgod.org \\\"tmux a -t 0; sh -l\\\"\"" &%0a%3c @]%0a%3c %0a%3c To use keyboard keys to emulate a 3 button mouse in OpenBSD (on X11),%0a%3c first enable mousekeys:%0a%3c %0a%3c [@%0a%3c $ doas pkg_add xkbset%0a%3c @]%0a%3c %0a%3c Open xev and press keys you intend to use as mouse keys:%0a%3c might make lots of spam in terminal.%0a%3c %0a%3c [@%0a%3c $ xev -event keyboard%0a%3c @]%0a%3c %0a%3c My key codes are 67, 68 and 69. (f1, f2 and f3):%0a%3c %0a%3c [@%0a%3c xkbset m # enables mousekeys%0a%3c xmodmap -e "keycode 67 = Pointer_Button1"%0a%3c xmodmap -e "keycode 68 = Pointer_Button2"%0a%3c xmodmap -e "keycode 69 = Pointer_Button3"%0a%3c @]%0a---%0a> It may be convenient to place any terminals that need to be opened by default, for example:%0a
27 f15b7ed8 2024-02-11 jrmu host:1707505132=172.56.232.190
28 f15b7ed8 2024-02-11 jrmu author:1707498836=jrmu
29 f15b7ed8 2024-02-11 jrmu diff:1707498836:1707498570:=23,24c23,25%0a%3c /usr/X11R6/bin/xterm &%0a%3c /usr/X11R6/bin/cwm%0a---%0a> exec_prefix="/usr/X11R6"%0a> ${exec_prefix}/bin/xterm &%0a> ${exec_prefix}/bin/cwm%0a28,29d28%0a%3c %0a%3c It may be convenient to place any terminals that need to be opened by default, for example:%0a
30 f15b7ed8 2024-02-11 jrmu host:1707498836=172.56.232.190
31 f15b7ed8 2024-02-11 jrmu author:1707498570=jrmu
32 f15b7ed8 2024-02-11 jrmu diff:1707498570:1707498515:=20,28d19%0a%3c Then, place this inside @@~/.xsession@@:%0a%3c %0a%3c [@%0a%3c exec_prefix="/usr/X11R6"%0a%3c ${exec_prefix}/bin/xterm &%0a%3c ${exec_prefix}/bin/cwm%0a%3c @]%0a%3c %0a%3c xenodm will now start an xterm and cwm upon successful login.%0a
33 f15b7ed8 2024-02-11 jrmu host:1707498570=172.56.232.190
34 f15b7ed8 2024-02-11 jrmu author:1707498515=jrmu
35 f15b7ed8 2024-02-11 jrmu diff:1707498515:1707468039:=
36 f15b7ed8 2024-02-11 jrmu host:1707498515=172.56.232.190
37 f15b7ed8 2024-02-11 jrmu author:1707468039=jrmu
38 f15b7ed8 2024-02-11 jrmu diff:1707468039:1707467955:=8,11d7%0a%3c bind-key CS-h pointer-move-left%0a%3c bind-key CS-j pointer-move-down%0a%3c bind-key CS-k pointer-move-up%0a%3c bind-key CS-l pointer-move-right%0a
39 f15b7ed8 2024-02-11 jrmu host:1707468039=104.167.242.140
40 f15b7ed8 2024-02-11 jrmu author:1707467955=jrmu
41 f15b7ed8 2024-02-11 jrmu diff:1707467955:1707467661:=1,2c1,2%0a%3c [[https://man.openbsd.org/cwm|cwm]] is a very powerful window manager that is part of the base system for OpenBSD.%0a%3c %0a---%0a> cwm is a very powerful window manager that is part of the base system for OpenBSD.%0a> %0a13,14d12%0a%3c %0a%3c C is control, M is meta (alt), and S is shift. This emulates the mouse movements to follow familiar vi keybindings.%0a
42 f15b7ed8 2024-02-11 jrmu host:1707467955=104.167.242.140
43 f15b7ed8 2024-02-11 jrmu author:1707467661=jrmu
44 f15b7ed8 2024-02-11 jrmu diff:1707467661:1707467661:=1,13d0%0a%3c cwm is a very powerful window manager that is part of the base system for OpenBSD.%0a%3c %0a%3c One strength is its ability to entirely emulate the mouse with keybindings. These keybindings are entirely programmable.%0a%3c %0a%3c In @@~/.cwmrc@@:%0a%3c %0a%3c [@%0a%3c bind-key CMS-h pointer-move-left-big%0a%3c bind-key CMS-j pointer-move-down-big%0a%3c bind-key CMS-k pointer-move-up-big%0a%3c bind-key CMS-l pointer-move-right-big%0a%3c @]%0a%3c %0a
45 f15b7ed8 2024-02-11 jrmu host:1707467661=104.167.242.140