You are not logged in.
Pages: 1
Topic closed
I try to start sxhkd with startx, so i put "sxhkd &" inside xinitrc.
This is how the end of my .xinitrc looks like:
sxhkd &
exec i3 startx is successful, but no keybinds work.
but when I just run:
sxhkd &in bash after startx or execute it in i3, it works.
Where should I start looking at?
Offline
Execute i3 first before sxhkd
Offline
Execute i3 first before sxhkd
I tried that with changing xinitrc to
exec i3
exec sxhkd also tried :
exec i3
sxhkd &still not working.
Offline
Nothing after the first exec will be executed.
https://wiki.archlinux.org/index.php/I3#Autostart
Offline
Nothing after the first exec will be executed.
https://wiki.archlinux.org/index.php/I3#Autostart
But
sxhkd &
exec i3 in the .xinitrc file still wont work.
Offline
Read the link, start sxhkd from the i3 config file.
Offline
Read the link, start sxhkd from the i3 config file.
Thanks for your time in helping me, but the problem is not auto starting sxhkd.
The problem is not able to strat sxhkd from xinitrc.
I get it, i3 config file will work, and I tried it, it works.
But what if I want to use more than 1 WM, what if I do not use i3?
Offline
But what if I want to use more than 1 WM, what if I do not use i3?
then you use the config/launch file from the other WM to start sxhkd
Offline
The question is: why does sxhkd "not work" when started before i3wm (there's no sane way to run it from the xinitrc, since you'll most likely want the WM to be the session keeping process)
I could imagine some issue w/ a changing keyboard layout, eg. if you've sth. like
…
setxkbmap blahfoobar &
sxhkd &
exec i3or change the layout from the i3 config.
=> post your complete xinitrc and i3wm config
Offline
While I do agree with most answers here, I'm going ahead and place a solution, works on most environments
Be aware --SPOILER ALERT--
Create directory '.config/autostart'
Create a file sxhkd.desktop
[Desktop Entry]
Type=Application
Exec=sxhkd
Hidden=false
Autostart-enabled=true
Name=keybind
Comment=hotkey daemonIf this solution ain't working for you, I suggest you read up on how to configure your environment.
This is tested and works on at least 3 WM's
Offline
try -c flag, sxhkd -c /absolute_path_of_ur_sxhkdrc, as mentioned here https://distro.tube/guest-articles/inst … sxhkd.html
EDIT: below solution worked for me, write this in your autostart script(eg, .xinitrc)
exec sxhkd & before exec i3 (or your window manager)
Last edited by hangezoe (2023-08-20 20:44:14)
Offline
Mod note: Closing this ancient thread.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed