cwm don't load keybinds correctly

classic Classic list List threaded Threaded
4 messages Options
prx
Reply | Threaded
Open this post in threaded view
|

cwm don't load keybinds correctly

prx
>Synopsis: cwm fail to load keybinds correctly
>Category: X11
>Environment:
        System      : OpenBSD 6.6
        Details     : OpenBSD 6.6-beta (GENERIC.MP) #2: Sat Aug 17 12:28:07 CEST 2019
                         [hidden email]:/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        xenodm autologin enabled,
        when opening a new cwm session, some keybinds don't work.

        In ~/.cwmrc :
                bind-key M-parenright "mixerctl outputs.master=-10"

        Pressing M-parenright don't do anything.
        Opening xterm an pressing M-parenright output : ??
        Default keybinds work.

        Reloading cwm with CMS-r fixes the problem, meaning nothing appears
        in xterm when pressing this keybind and the mixerctl command is
        called.

        The keyboard is azerty.
>How-To-Repeat:
        Enable autologin in xenodm, set the above keybind (or another custom
        one producing output (usually utf-8 symbol) and start cwm.
>Fix:
        Add a delay before starting cwm.
        in ~/.xsession :
                sleep 3 && cwm
       


dmesg:
OpenBSD 6.6-beta (GENERIC.MP) #2: Sat Aug 17 12:28:07 CEST 2019
    [hidden email]:/sys/arch/amd64/compile/GENERIC.MP
real mem = 4217090048 (4021MB)
avail mem = 4076617728 (3887MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xebf10 (55 entries)
bios0: vendor American Megatrends Inc. version "V30.6" date 12/15/2014
bios0: MSI MS-7721
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET UEFI IVRS SSDT SSDT CRAT SSDT SSDT SSDT
acpi0: wakeup devices SBAZ(S4) P0PC(S4) OHC1(S4) EHC1(S4) OHC2(S4) EHC2(S4) OHC3(S4) EHC3(S4) OHC4(S4) XHC0(S4) XHC1(S4) PE20(S4) PE21(S4) PE23(S4) PB2_(S4) PB3_(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A8-6600K APU with Radeon(tm) HD Graphics, 4022.31 MHz, 15-13-01
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=0 observed drift=0
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 103MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 17 (application processor)
TSC skew=128
cpu1: AMD A8-6600K APU with Radeon(tm) HD Graphics, 4020.06 MHz, 15-13-01
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=128 observed drift=0
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 18 (application processor)
TSC skew=-132
cpu2: AMD A8-6600K APU with Radeon(tm) HD Graphics, 4020.07 MHz, 15-13-01
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-132 observed drift=0
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 19 (application processor)
TSC skew=-145
cpu3: AMD A8-6600K APU with Radeon(tm) HD Graphics, 4020.06 MHz, 15-13-01
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,TCE,NODEID,TBM,TOPEXT,CPCTR,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
tsc_timecounter_init: TSC skew=-145 observed drift=0
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0PC)
acpiprt2 at acpi0: bus -1 (PE20)
acpiprt3 at acpi0: bus -1 (PE21)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus 1 (PB2_)
acpiprt6 at acpi0: bus -1 (PB3_)
acpiprt7 at acpi0: bus 2 (PB4_)
acpiprt8 at acpi0: bus -1 (PB5_)
acpiprt9 at acpi0: bus -1 (PB6_)
acpiprt10 at acpi0: bus -1 (PB7_)
acpiprt11 at acpi0: bus -1 (PE22)
acpicpu0 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
"pnp0c14" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
acpivideo2 at acpi0: VGA_
cpu0: 4022 MHz: speeds: 3900 3600 3000 2500 1900 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 15/1xh Host" rev 0x00
"AMD AMD64 15/1xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 2 function 0 "AMD AMD64 15/1xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 6850" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaa88 rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 4 function 0 "AMD AMD64 15/1xh PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), msi, address 44:8a:5b:d4:0f:a3
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x09: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
xhci1 at pci0 dev 16 function 1 "AMD Bolton xHCI" rev 0x09: msi, xHCI 1.0
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 850, EMT0> SCSI3 0/direct fixed naa.5002538d41e6d54d
sd0: 238475MB, 512 bytes/sector, 488397168 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, WDC WD5000AAKS-6, 06.0> SCSI3 0/direct fixed naa.50014ee15834bd34
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x11: apic 0 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 0 int 17
usb2 at ehci0: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB" rev 0x11: apic 0 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 0 int 17
usb3 at ehci1: USB revision 2.0
uhub3 at usb3 configuration 1 interface 0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x16: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x53: 2GB DDR3 SDRAM PC3-10600
azalia1 at pci0 dev 20 function 2 "AMD Hudson-2 HD Audio" rev 0x01: apic 0 int 16
azalia1: codecs: Realtek/0x0887
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
ppb2 at pci0 dev 20 function 4 "AMD Hudson-2 PCI" rev 0x40
pci3 at ppb2 bus 3
ohci2 at pci0 dev 20 function 5 "AMD Hudson-2 USB" rev 0x11: apic 0 int 18, version 1.0, legacy support
pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/1xh Link Cfg" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/1xh Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/1xh DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 15/1xh Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/1xh CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/1xh NB Power" rev 0x00
usb4 at ohci0: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci1: USB revision 1.0
uhub5 at usb5 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 15 bytes
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
usb6 at ohci2: USB revision 1.0
uhub6 at usb6 configuration 1 interface 0 "AMD OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uhub7 at uhub5 port 1 configuration 1 interface 0 "ALCOR USB Hub 2.0" rev 2.00/7.02 addr 2
uhidev0 at uhub7 port 3 configuration 1 interface 0 " USB Keyboard" rev 1.10/4.06 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub7 port 3 configuration 1 interface 1 " USB Keyboard" rev 1.10/4.06 addr 3
uhidev1: iclass 3/0, 2 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
uhidev2 at uhub7 port 4 configuration 1 interface 0 "Logitech USB Receiver" rev 2.00/29.01 addr 4
uhidev2: iclass 3/1
ukbd1 at uhidev2: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
uhidev3 at uhub7 port 4 configuration 1 interface 1 "Logitech USB Receiver" rev 2.00/29.01 addr 4
uhidev3: iclass 3/1, 17 report ids
ums0 at uhidev3 reportid 2: 16 buttons, Z and W dir
wsmouse0 at ums0 mux 0
uhid2 at uhidev3 reportid 3: input=4, output=0, feature=0
uhid3 at uhidev3 reportid 4: input=1, output=0, feature=0
uhid4 at uhidev3 reportid 16: input=6, output=6, feature=0
uhid5 at uhidev3 reportid 17: input=19, output=19, feature=0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd2 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd2: 238472MB, 512 bytes/sector, 488391473 sectors
root on sd2a (ae15c17b9037e886.a) swap on sd2b dump on sd2b
initializing kernel modesetting (BARTS 0x1002:0x6739 0x174B:0x174B 0x00).
radeondrm0: 1440x900, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

usbdevs:
Controller /dev/usb0:
addr 01: 1022:0000 AMD, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub0
Controller /dev/usb1:
addr 01: 1022:0000 AMD, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub1
Controller /dev/usb2:
addr 01: 1022:0000 AMD, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub2
Controller /dev/usb3:
addr 01: 1022:0000 AMD, EHCI root hub
         high speed, self powered, config 1, rev 1.00
         driver: uhub3
Controller /dev/usb4:
addr 01: 1022:0000 AMD, OHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub4
Controller /dev/usb5:
addr 01: 1022:0000 AMD, OHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub5
addr 02: 05e3:0606 ALCOR, USB Hub 2.0
         full speed, self powered, config 1, rev 7.02
         driver: uhub7
addr 03: 04d9:1702 , USB Keyboard
         low speed, power 100 mA, config 1, rev 4.06
         driver: uhidev0
         driver: uhidev1
addr 04: 046d:c534 Logitech, USB Receiver
         full speed, power 98 mA, config 1, rev 29.01
         driver: uhidev2
         driver: uhidev3
Controller /dev/usb6:
addr 01: 1022:0000 AMD, OHCI root hub
         full speed, self powered, config 1, rev 1.00
         driver: uhub6

Reply | Threaded
Open this post in threaded view
|

Re: cwm don't load keybinds correctly

Okan Demirmen
On Sat 2019.08.17 at 17:44 +0200, prx wrote:

> >Synopsis: cwm fail to load keybinds correctly
> >Category: X11
> >Environment:
> System      : OpenBSD 6.6
> Details     : OpenBSD 6.6-beta (GENERIC.MP) #2: Sat Aug 17 12:28:07 CEST 2019
> [hidden email]:/sys/arch/amd64/compile/GENERIC.MP
>
> Architecture: OpenBSD.amd64
> Machine     : amd64
> >Description:
> xenodm autologin enabled,
> when opening a new cwm session, some keybinds don't work.
>
> In ~/.cwmrc :
> bind-key M-parenright "mixerctl outputs.master=-10"
>
> Pressing M-parenright don't do anything.
> Opening xterm an pressing M-parenright output : ??
> Default keybinds work.
>
> Reloading cwm with CMS-r fixes the problem, meaning nothing appears
> in xterm when pressing this keybind and the mixerctl command is
> called.
>
> The keyboard is azerty.
> >How-To-Repeat:
> Enable autologin in xenodm, set the above keybind (or another custom
> one producing output (usually utf-8 symbol) and start cwm.
> >Fix:
> Add a delay before starting cwm.
> in ~/.xsession :
> sleep 3 && cwm

Thanks for the report, but there's a lot in here that I'm unable to
fully understand, nor replicate.

Using the binding as above, the result of the command does succeed, even
with this 'autoLogin' feature. I'm not sure what having an xterm open or
not has anything to do with any of this. Also the note about utf-8
symbol output - again, I'm unsure how that is relevant. The bind simply
executes the command.

Can you please expand, and are your behaviors only relevant with
'autoLogin'?

Thanks.

prx
Reply | Threaded
Open this post in threaded view
|

Re: cwm don't load keybinds correctly

prx
* Okan Demirmen <[hidden email]> le [17-08-2019 17:44:54 -0400]:

> On Sat 2019.08.17 at 17:44 +0200, prx wrote:
> > >Synopsis: cwm fail to load keybinds correctly
> > >Category: X11
> > >Environment:
> > System      : OpenBSD 6.6
> > Details     : OpenBSD 6.6-beta (GENERIC.MP) #2: Sat Aug 17 12:28:07 CEST 2019
> > [hidden email]:/sys/arch/amd64/compile/GENERIC.MP
> >
> > Architecture: OpenBSD.amd64
> > Machine     : amd64
> > >Description:
> > xenodm autologin enabled,
> > when opening a new cwm session, some keybinds don't work.
> >
> > In ~/.cwmrc :
> > bind-key M-parenright "mixerctl outputs.master=-10"
> >
> > Pressing M-parenright don't do anything.
> > Opening xterm an pressing M-parenright output : ??
> > Default keybinds work.
> >
> > Reloading cwm with CMS-r fixes the problem, meaning nothing appears
> > in xterm when pressing this keybind and the mixerctl command is
> > called.
> >
> > The keyboard is azerty.
> > >How-To-Repeat:
> > Enable autologin in xenodm, set the above keybind (or another custom
> > one producing output (usually utf-8 symbol) and start cwm.
> > >Fix:
> > Add a delay before starting cwm.
> > in ~/.xsession :
> > sleep 3 && cwm
>
> Thanks for the report, but there's a lot in here that I'm unable to
> fully understand, nor replicate.
>
It's not easy to describe, but I'll try to be more explicit, sorry.

First, yes, the described behaviour only happen with xenodm autologin.
It seems something is **colliding with cwm init**, because when I start cwm
after a few seconds, I don't see the issue.

> > in ~/.xsession :
> > sleep 3 && cwm # no issue

> Using the binding as above, the result of the command does succeed, even
> with this 'autoLogin' feature.

> not has anything to do with any of this. Also the note about utf-8
> symbol output - again, I'm unsure how that is relevant. The bind simply
> executes the command.

It doesn't for me. It prints "©" . I guess thats normal for my azerty
keyboard. That's what happens with another window manager without the
above keybind configured.
But, if I reload cwm, the command succeed and "©" is not printed, as I
expect.

The bug is here also for these keybinds :
M-ampersand : it prints ¦
M-quotedbl : it prints ¢
M-apostrophe : it prints §
...

I hope it's a little more understandable.
Please tell me if I can give more information.

I copy below my ~/.cwmrc it it's relevant, even if ``cwm -n`` doesn't
complain :


        color activeborder "#8FBCBB"
        color inactiveborder "#000"
        color font "#D8DEE9"
        color selfont "#2E3440"
        color menubg "#2E3440"
        color menufg "#81A1C1"
        color urgencyborder "#BF616A"
        color groupborder "#A3BE8C"
        color ungroupborder "#BF616A"

        borderwidth 2
        gap 1 1 1 1
        fontname "DejaVu Sans Mono:pixelsize=14"

        # Options
        moveamount 30
        snapdist 20
        sticky yes
        command term xterm
        command lock "xlock -mode space"

        # Windows rules
        ignore "dmenu"
        ignore "Dunst"
        ignore "xclock"
        ignore "termbar"

        # Groups, find them by clicking on a window after running "xprop"
        # autogroup n "name,class"
        autogroup 4 "Mail"
        autogroup 5 "chromium-browser", "Chromium-browser"
        autogroup 6 "chat"
        autogroup 8 "dev"
        autogroup 0 "termbar,termbar"

        # mouse bindings
        ## scroll on background change volume
        bind-mouse 0-4 "mixerctl outputs.master=+10"
        bind-mouse 0-5 "mixerctl outputs.master=-10"

        # keys and shortcuts
        ## Move : M-h/j/k/l
        ## Resize : M-S-h/j/k/l
        ## Move on screen edge
        bind-key MS-j window-snap-down
        bind-key MS-k window-snap-up
        bind-key MS-h window-snap-left
        bind-key MS-l window-snap-right

        ## tiling
        bind-key M-t window-vtile
        bind-key MS-t window-htile

        ## dmenu_run
        bind-key M-p "dmenu_run_i"
        ## Find window
        ## label with M-C-n to find window with this menu
        bind-key M-f menu-window

        ## GROUPS
        ## Send to group
        bind-key M-g "dgroupwin focused"
        bind-key M-space group-cycle
        ## C-M-n to select group
        ## C-M-g to toggle group membership

        bind-key M-ampersand        group-only-1
        bind-key M-eacute           group-only-2
        bind-key M-quotedbl         group-only-3
        bind-key M-apostrophe       group-only-4
        bind-key M-parenleft        group-only-5
        bind-key M-minus            group-only-6
        bind-key M-egrave           group-only-7
        bind-key M-underscore       group-only-8
        bind-key M-ccedilla         group-only-9

        bind-key MS-ampersand        window-movetogroup-1
        bind-key MS-eacute           window-movetogroup-2
        bind-key MS-quotedbl         window-movetogroup-3
        bind-key MS-apostrophe       window-movetogroup-4
        bind-key MS-parenleft        window-movetogroup-5
        bind-key MS-minus            window-movetogroup-6
        bind-key MS-egrave           window-movetogroup-7
        bind-key MS-underscore       window-movetogroup-8
        bind-key MS-ccedilla         window-movetogroup-9

        # shortcuts
        bind-key M-s "dsch"
        bind-key M-x "dfm"
        bind-key M-v "mpc toggle"
        bind-key M-n "mpc next"
        bind-key M-b "mpc prev"
        bind-key M-w "web"
        bind-key M-z "dmpc"
        bind-key M-c "clock"
        bind-key M-equal "mixerctl outputs.master=+10"
        bind-key M-parenright "mixerctl outputs.master=-10"

        # MENU
        command " FENÊTRES" ""
        command "   =  grp " "dgroupwin"
        command "   -  min " "xdotool selectwindow windowminimize"
        command "   +  max " "xdotool selectwindow windowsize 100% 100% windowmove 0 0"
        command "   x  kill " "xdotool selectwindow windowkill"
        command " RACCOURCIS" ""
        command "   ▸ web " web
        command "   ▸ fm " pcmanfm
        command "   ▸ office " libreoffice
        command "   ▸ term " xterm
        command "   ▸ clk " "xclock -digital -strftime '%H:%M  -- %d/%m/%Y' -geometry +0+0"
        command " SESSION" ""
        command "   . lock " 'xlock -mode space'
        command "   . zzz " zzz
        command "   . reboot " "doas /sbin/reboot"
        command "   . off " "doas /sbin/shutdown -hp now"



Regards.

Reply | Threaded
Open this post in threaded view
|

Re: cwm don't load keybinds correctly

Okan Demirmen
On Sun 2019.08.18 at 11:52 +0200, prx wrote:

> * Okan Demirmen <[hidden email]> le [17-08-2019 17:44:54 -0400]:
> > On Sat 2019.08.17 at 17:44 +0200, prx wrote:
> > > >Synopsis: cwm fail to load keybinds correctly
> > > >Category: X11
> > > >Environment:
> > > System      : OpenBSD 6.6
> > > Details     : OpenBSD 6.6-beta (GENERIC.MP) #2: Sat Aug 17 12:28:07 CEST 2019
> > > [hidden email]:/sys/arch/amd64/compile/GENERIC.MP
> > >
> > > Architecture: OpenBSD.amd64
> > > Machine     : amd64
> > > >Description:
> > > xenodm autologin enabled,
> > > when opening a new cwm session, some keybinds don't work.
> > >
> > > In ~/.cwmrc :
> > > bind-key M-parenright "mixerctl outputs.master=-10"
> > >
> > > Pressing M-parenright don't do anything.
> > > Opening xterm an pressing M-parenright output : ??
> > > Default keybinds work.
> > >
> > > Reloading cwm with CMS-r fixes the problem, meaning nothing appears
> > > in xterm when pressing this keybind and the mixerctl command is
> > > called.
> > >
> > > The keyboard is azerty.
> > > >How-To-Repeat:
> > > Enable autologin in xenodm, set the above keybind (or another custom
> > > one producing output (usually utf-8 symbol) and start cwm.
> > > >Fix:
> > > Add a delay before starting cwm.
> > > in ~/.xsession :
> > > sleep 3 && cwm
> >
> > Thanks for the report, but there's a lot in here that I'm unable to
> > fully understand, nor replicate.
> >
> It's not easy to describe, but I'll try to be more explicit, sorry.

Thanks.

> First, yes, the described behaviour only happen with xenodm autologin.
> It seems something is **colliding with cwm init**, because when I start cwm
> after a few seconds, I don't see the issue.

Is there anything in your ~/.xsession-errors? there are only a handful
that would be there from (non-debugging) cwm, but if it's empty, I can
send a patch to print a pile of debug info to find which others calls are
potential avenues.

> > > in ~/.xsession :
> > > sleep 3 && cwm # no issue
>
> > Using the binding as above, the result of the command does succeed, even
> > with this 'autoLogin' feature.
>
> > not has anything to do with any of this. Also the note about utf-8
> > symbol output - again, I'm unsure how that is relevant. The bind simply
> > executes the command.
>
> It doesn't for me. It prints "??" . I guess thats normal for my azerty
> keyboard. That's what happens with another window manager without the
> above keybind configured.
> But, if I reload cwm, the command succeed and "??" is not printed, as I
> expect.
>
> The bug is here also for these keybinds :
> M-ampersand : it prints ??
> M-quotedbl : it prints ??
> M-apostrophe : it prints ??
> ...

OK - I think I understand a bit more - it seems like the keyboard grabs
are not occuring - that's why I believe you see these over an open xterm
(or any window with input).

> I hope it's a little more understandable.
> Please tell me if I can give more information.

I know you said this only occurs with autoLogin via xenodm, but can we
verify that 'azerty' isn't a culprit too (have you tried 'qwerty')?

Thanks!

> I copy below my ~/.cwmrc it it's relevant, even if ``cwm -n`` doesn't
> complain :
>
>
> color activeborder "#8FBCBB"
> color inactiveborder "#000"
> color font "#D8DEE9"
> color selfont "#2E3440"
> color menubg "#2E3440"
> color menufg "#81A1C1"
> color urgencyborder "#BF616A"
> color groupborder "#A3BE8C"
> color ungroupborder "#BF616A"
>
> borderwidth 2
> gap 1 1 1 1
> fontname "DejaVu Sans Mono:pixelsize=14"
>
> # Options
> moveamount 30
> snapdist 20
> sticky yes
> command term xterm
> command lock "xlock -mode space"
>
> # Windows rules
> ignore "dmenu"
> ignore "Dunst"
> ignore "xclock"
> ignore "termbar"
>
> # Groups, find them by clicking on a window after running "xprop"
> # autogroup n "name,class"
> autogroup 4 "Mail"
> autogroup 5 "chromium-browser", "Chromium-browser"
> autogroup 6 "chat"
> autogroup 8 "dev"
> autogroup 0 "termbar,termbar"
>
> # mouse bindings
> ## scroll on background change volume
> bind-mouse 0-4 "mixerctl outputs.master=+10"
> bind-mouse 0-5 "mixerctl outputs.master=-10"
>
> # keys and shortcuts
> ## Move : M-h/j/k/l
> ## Resize : M-S-h/j/k/l
> ## Move on screen edge
> bind-key MS-j window-snap-down
> bind-key MS-k window-snap-up
> bind-key MS-h window-snap-left
> bind-key MS-l window-snap-right
>
> ## tiling
> bind-key M-t window-vtile
> bind-key MS-t window-htile
>
> ## dmenu_run
> bind-key M-p "dmenu_run_i"
> ## Find window
> ## label with M-C-n to find window with this menu
> bind-key M-f menu-window
>
> ## GROUPS
> ## Send to group
> bind-key M-g "dgroupwin focused"
> bind-key M-space group-cycle
> ## C-M-n to select group
> ## C-M-g to toggle group membership
>
> bind-key M-ampersand        group-only-1
> bind-key M-eacute           group-only-2
> bind-key M-quotedbl         group-only-3
> bind-key M-apostrophe       group-only-4
> bind-key M-parenleft        group-only-5
> bind-key M-minus            group-only-6
> bind-key M-egrave           group-only-7
> bind-key M-underscore       group-only-8
> bind-key M-ccedilla         group-only-9
>
> bind-key MS-ampersand        window-movetogroup-1
> bind-key MS-eacute           window-movetogroup-2
> bind-key MS-quotedbl         window-movetogroup-3
> bind-key MS-apostrophe       window-movetogroup-4
> bind-key MS-parenleft        window-movetogroup-5
> bind-key MS-minus            window-movetogroup-6
> bind-key MS-egrave           window-movetogroup-7
> bind-key MS-underscore       window-movetogroup-8
> bind-key MS-ccedilla         window-movetogroup-9
>
> # shortcuts
> bind-key M-s "dsch"
> bind-key M-x "dfm"
> bind-key M-v "mpc toggle"
> bind-key M-n "mpc next"
> bind-key M-b "mpc prev"
> bind-key M-w "web"
> bind-key M-z "dmpc"
> bind-key M-c "clock"
> bind-key M-equal "mixerctl outputs.master=+10"
> bind-key M-parenright "mixerctl outputs.master=-10"
>
> # MENU
> command " FEN??TRES" ""
> command "   =  grp " "dgroupwin"
> command "   -  min " "xdotool selectwindow windowminimize"
> command "   +  max " "xdotool selectwindow windowsize 100% 100% windowmove 0 0"
> command "   x  kill " "xdotool selectwindow windowkill"
> command " RACCOURCIS" ""
> command "   ??? web " web
> command "   ??? fm " pcmanfm
> command "   ??? office " libreoffice
> command "   ??? term " xterm
> command "   ??? clk " "xclock -digital -strftime '%H:%M  -- %d/%m/%Y' -geometry +0+0"
> command " SESSION" ""
> command "   . lock " 'xlock -mode space'
> command "   . zzz " zzz
> command "   . reboot " "doas /sbin/reboot"
> command "   . off " "doas /sbin/shutdown -hp now"
>
>
>
> Regards.
>