>Synopsis: `cwm`: custom `bind-key` for `command term` don't work >Category: user >Environment: System : OpenBSD 7.1 Details : OpenBSD 7.1 (GENERIC) #1: Tue May 3 08:27:33 MDT 2022 r...@syspatch-71-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386 Machine : i386 >Description: The default `CM-Return` does work, with both default `xterm` and a custom one, tried: command term lxterminal command term leafpad # editor, not a terminal, launches as expected Custom `bind-key` though doesn't launch: bind-key 4-t term # nope bind-key M4-t lxterminal # yep unbind CM-Return does unbind the default hotkey but doesn't help a custom one There are 2 special `command`s: `term` and `lock`. There are no problems with `lock` - custom `bind-key` work fine. >How-To-Repeat: 1. Backup your `~/.cwmrc` 2. `rm -v ~/.cwmrc` 3. Load `cwm`, with no `~/.cwmrc` it loads default configuration 4. Press `CM-Return` (Ctrl + Alt + Enter) to launch `xterm`; press `CM-Delete` (Ctrl + Alt + Delete) to lock screen with `xlock` to check that the default keybindings work. 5. Create `~/.cwmrc` and make it look like this: __________________________ bind-key 4-t term # keybinding to launch via `command term` bind-key 4-l lock # keybinding to launch via `command lock` bind-key M4-t xterm # keybinding to launch directly bind-key M4-l xlock # keybinding to launch directly `````````````````````````` Run `cwm -n` to validate `~/.cwmrc`. 6. Restart `cwm` - press `CMS-r` (Ctrl + Alt + Shift + r) 7. As in #4, to check that the default keybindings work: Press `CM-Return` (Ctrl + Alt + Enter) to launch `xterm`; press `CM-Delete` (Ctrl + Alt + Delete) to lock screen with `xlock` Press `4-t` (Windows + t) to try to launch xterm - NOPE. Press `M4-t` (Alt + Windows + t) to launch xterm - yep. Press `4-l` (Windows + l) to lock screen with `xlock` - yep. Press `M4-l` (Alt + Windows + l) to lock screen with `xlock` - yep. That's it. 8. Make `~/.cwmrc` look like this: __________________________ command term lxterminal # or any other terminal you have command lock i3lock # or any other screen locker you have bind-key 4-t term # keybinding to launch via `command term` bind-key 4-l lock # keybinding to launch via `command lock` bind-key M4-t lxterminal # keybinding to launch directly bind-key M4-l i3lock # keybinding to launch directly `````````````````````````` Run `cwm -n` to validate `~/.cwmrc`. 9. Restart `cwm` - `CMS-r` (Ctrl + Alt + Shift + r) 10. As in #4 & #7, to check that the default keybindings work: Press `CM-Return` (Ctrl + Alt + Enter) to launch `lxterminal`; press `CM-Delete` (Ctrl + Alt + Delete) to lock screen with `i3lock` Press `4-t` (Windows + t) to try to launch lxterminal - NOPE. Press `M4-t` (Alt + Windows + t) to launch lxterminal - yep. Press `4-l` (Windows + l) to lock screen with `i3lock` - yep. Press `M4-l` (Alt + Windows + l) to lock screen with `i3lock` - yep. That's it again. 11. Restore your backupped `~/.cwmrc` 12. Restart `cwm` or replace it with your wm dmesg: OpenBSD 7.1 (GENERIC) #1: Tue May 3 08:27:33 MDT 2022 r...@syspatch-71-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC real mem = 1055670272 (1006MB) avail mem = 1019658240 (972MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: date 09/02/03, BIOS32 rev. 0 @ 0xfc03d, SMBIOS rev. 2.3 @ 0xec000 (35 entries) bios0: vendor TOSHIBA version "Version 1.30" date 09/02/2003 bios0: TOSHIBA Satellite A10 acpi0 at bios0: ACPI 2.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP DBGP BOOT acpi0: wakeup devices MPC0(S3) MPC1(S3) LAN_(S4) VIY0(S3) USB1(S3) USB4(S3) AMDM(S3) LID_(S4) PWRB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PCIB) "PNP0A03" at acpi0 not configured acpicmos0 at acpi0 acpibtn0 at acpi0: LID_ acpibat0 at acpi0: BAT1 not present acpibtn1 at acpi0: PWRB acpiac0 at acpi0: AC unit online acpitoshiba0 at acpi0 "TOS6202" at acpi0 not configured "PNP0C0B" at acpi0 not configured acpipwrres0 at acpi0: PFAN, resource for FAN_ acpitz0 at acpi0: critical temperature is 109 degC acpivideo0 at acpi0: VGA_ acpivout0 at acpivideo0: LCD_ bios0: ROM list: 0xc0000/0x10000 0xe0000/0x10000! cpu0 at mainbus0: (uniprocessor) cpu0: Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz ("GenuineIntel" 686-class) 2.20 GHz, 0f-02-09 cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF,MELTDOWN mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges pci0 at mainbus0 bus 0: configuration mode 1 (bios) 0:30:0: bridge io address conflict 0xc000/0x1000 pchb0 at pci0 dev 0 function 0 "Intel 82855GM Host" rev 0x01 "Intel 82855GM Memory" rev 0x01 at pci0 dev 0 function 1 not configured "Intel 82855GM Config" rev 0x01 at pci0 dev 0 function 3 not configured inteldrm0 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x01 drm0 at inteldrm0 intagp0 at inteldrm0 agp0 at intagp0: aperture at 0xd8000000, size 0x8000000 inteldrm0: irq 10, I85X, gen 2 "Intel 82855GM Video" rev 0x01 at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 10 ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 11 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83 pci1 at ppb0 bus 1 fxp0 at pci1 dev 8 function 0 "Intel PRO/100 VE" rev 0x83, i82562: irq 11, address 00:08:0d:9f:03:66 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 cbb0 at pci1 dev 11 function 0 "Toshiba ToPIC100 CardBus" rev 0x33: irq 11 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x0 pcmcia0 at cardslot0 ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03 pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <SAMSUNG HM160HC> wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-R2412, 1330> removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 11, ICH4 ac97: codec id 0x41445374 (Analog Devices AD1981B) ac97: codec features headphone, 20 bit DAC, No 3D Stereo audio0 at auich0 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pms0: ALPS Glidepoint, version 0x7321 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets softraid0: sd0 was not shutdown properly sd0 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> sd0: 152625MB, 512 bytes/sector, 312576113 sectors root on sd0a (cc2c54fa592e12b0.a) swap on sd0b dump on sd0b WARNING: / was not properly unmounted drm:pid66599:intel_cpu_fifo_underrun_irq_handler *ERROR* [drm] *ERROR* CPU pipe A FIFO underrun drm:pid66599:i9xx_set_fifo_underrun_reporting *ERROR* [drm] *ERROR* pipe B underrun drm:pid66599:intel_cpu_fifo_underrun_irq_handler *ERROR* [drm] *ERROR* CPU pipe B FIFO underrun inteldrm0: 1024x768, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation) usbdevs: Controller /dev/usb0: addr 01: 8086:0000 Intel, EHCI root hub high speed, self powered, config 1, rev 1.00 driver: uhub1 addr 02: 1bbb:012a Android, Android high speed, power 500 mA, config 1, rev 2.33, iSerial MSM8625QRD5 driver: urndis0 Controller /dev/usb1: addr 01: 8086:0000 Intel, UHCI root hub full speed, self powered, config 1, rev 1.00 driver: uhub0