On Sun 2019.08.18 at 11:52 +0200, prx wrote:
> * Okan Demirmen <[email protected]> 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
> > >                    [email protected]:/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.
> 

Reply via email to