You are not logged in.

#1 2024-08-09 22:30:31

zaxarakys
Member
Registered: 2024-08-09
Posts: 5

[SOLVED] xbindkeys keys dont work

my xbindkeys config file looks like this:

"dmenu_run -g 4 -l 6"
   Mod1 + p

"setxkbmap -layout us,gr -option 'grp:alt_shift_toggle'"
   Mod4 + Space

"maim -s | xclip -selection clipboard -t image/png"
   Mod1 + s

"slock"
   Mod4 + l

However, the only bind that works is the first one. When i run "xbindkeys -s" it says the following:

Warning: unknown key in RC file : /home/zaxas/.xbindkeysrc
"dmenu_run -g 4 -l 6"
    Alt + p

When I omit this bind from the config file to see if the rest will work, when running the same command it says this:

Warning: unknown key in RC file : /home/zaxas/.xbindkeysrc
Error in alocation of keys

How can i fix this?

Last edited by zaxarakys (2024-08-09 23:50:40)

Offline

#2 2024-08-09 23:19:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,828

Re: [SOLVED] xbindkeys keys dont work

There's probably a stray CRLF?
Upload the file

cat /home/zaxas/.xbindkeysrc | curl -F 'file=@-' 0x0.st

Sidebar:

"setxkbmap -layout us,gr -option 'grp:alt_shift_toggle'"

wtf is this supposed be become?
You've a shortcut to setxkbmap a layout which is a multi-layout using a different shortcut as toggle???

Offline

#3 2024-08-09 23:29:22

zaxarakys
Member
Registered: 2024-08-09
Posts: 5

Re: [SOLVED] xbindkeys keys dont work

Here is the file http://0x0.st/XWPU.txt

About that setxkbmap command im not sure how it works i just copied and pasted it from a post somewhere lmao i just wanted to be able to switch languages

edit: by removing the setxkbmap command i was able to fix the rest of the commands but i still want to be able to switch languages with mod4 and space because alt shift makes it so that i cant open or close terminals in dwm

Last edited by zaxarakys (2024-08-09 23:32:24)

Offline

#4 2024-08-09 23:37:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,828

Re: [SOLVED] xbindkeys keys dont work

https://wiki.archlinux.org/title/Xorg/K … tion_files

The file only has LFs, that's not it.
Regardless of the above (ultimately don't do this at all) try

Mod4 + space

w/ a lowerkey "space", that's what "xbindkeys -k" reports.

Edit: then don't use grp:alt_shift_toggle, running that command is inefficient, breaking AND will get you the undesired toggle.

grep toggle /usr/share/X11/xkb/rules/base.lst

Pick one.

Edit: base.lst will provide a more readable list

Last edited by seth (2024-08-09 23:40:41)

Offline

#5 2024-08-09 23:50:15

zaxarakys
Member
Registered: 2024-08-09
Posts: 5

Re: [SOLVED] xbindkeys keys dont work

Changing the grp:alt_shift_toggle to grp:win_space_toggle and adding the command to my .xinitrc instead of my .xbindkeysrc did the trick. Thank you so much for the help

Offline

Board footer

Powered by FluxBB