Coder Social home page Coder Social logo

Comments (6)

djpohly avatar djpohly commented on July 21, 2024

Hi Kerberoge,

The Shift modifier tends to modify what you have to put in the keycode field as well. Try using the command xkbcli interactive-wayland to see exactly what is being sent when you press your desired key combination.

from dwl.

Hiqqup avatar Hiqqup commented on July 21, 2024

Ive also wondered about this, running xkbcli interactive-wayland doesnt say anything is modified. Ive also tried doing with other Modifiers, like ctrl or logo or modkey but they all dont seem to work, let me know if should provide any further detail.

from dwl.

sevz17 avatar sevz17 commented on July 21, 2024

Hm, I get this while pressing shift+XF86MonBrightnessDown:

seat0: keycode [ LFSH ] keysyms [ Shift_L          ] unicode [   ] layout [ Spanish (Latin American) (0) ] level [ 0 ] mods [ Mod2 ] leds [ Num Lock ] 
seat0: keycode [ FK02 ] keysyms [ F2               ] unicode [   ] layout [ Spanish (Latin American) (0) ] level [ 1 ] mods [ Shift Mod2 ] leds [ Num Lock ] 

@Hiqqup, can you paste the output you get from it?

from dwl.

Kerberoge avatar Kerberoge commented on July 21, 2024

@sevz17 It seems that you have fn-lock disabled. Could you please try enabling fn-lock and running xkbcli interactive-wayland again?

from dwl.

Kerberoge avatar Kerberoge commented on July 21, 2024

Here's the output of xkbcli interactive-wayland:

seat0: keycode [ LFSH ] keysyms [ Shift_L          ] unicode [   ] layout [ English (US) (0) ] level [ 0 ] mods [ ] leds [ ] 
seat0: keycode [ I233 ] keysyms [ XF86MonBrightne  ] unicode [   ] layout [ English (US) (0) ] level [ 0 ] mods [ ] leds [ ] 
seat0: keycode [ I232 ] keysyms [ XF86MonBrightne  ] unicode [   ] layout [ English (US) (0) ] level [ 0 ] mods [ ] leds [ ]

from dwl.

Hiqqup avatar Hiqqup commented on July 21, 2024

sorry for the inactivity, so i get the same xkbcli interactive-wayland output as you:

[main !]~/projects/wayland/dwl xkbcli interactive-wayland
seat0: keycode [ LFSH ] keysyms [ Shift_L          ] unicode [   ] layout [ English (US) (0) ] level [ 0 ] mods [ ] leds [ ]
seat0: keycode [ I232 ] keysyms [ XF86MonBrightne  ] unicode [   ] layout [ English (US) (0) ] level [ 0 ] mods [ ] leds [ ]

but only when i comment out my configuration for those keys in my config.h:

 static const Key keys[] = {
    { 0, XKB_KEY_XF86MonBrightnessDown, spawn, { .v = darker } },
    { WLR_MODIFIER_SHIFT, XKB_KEY_XF86MonBrightnessDown, spawn, { .v = darkest } }
}

otherwise i get no output from xkbcli interactive-wayland because its intercepted by dwl. Idk maybe there is something i am not getting right about the config but the second keybinde for darkest doesnt apply.

from dwl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.