waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
676 stars 47 forks source link

add RC_DIR variable to Makefile (to facilitate packaging for NixOS) #152

Open oberblastmeister opened 2 years ago

oberblastmeister commented 2 years ago

I am trying to create a package in NixOS. Adding RC_DIR allows the nix package to override the directory.

Shinyzenith commented 2 years ago

Hi! I should mention that even if this is merged, swhkd will always first look at /etc/swhkd/swhkdrc. So the --config flag has to be used.

oberblastmeister commented 2 years ago

I was testing out swhkd and found that it cannot find XDG_CONFIG_HOME, possibly because of pkexec? Is this supposed to be an issue?

Shinyzenith commented 2 years ago

I was testing out swhkd and found that it cannot find XDG_CONFIG_HOME, possibly because of pkexec? Is this supposed to be an issue?

Yes this is a problem due to our pkexec model of privilege escalation. I haven't figured out a way to combat this yet :(

Shinyzenith commented 1 year ago

I was testing out swhkd and found that it cannot find XDG_CONFIG_HOME, possibly because of pkexec? Is this supposed to be an issue?

This will hopefully change with the following issue: https://github.com/waycrate/swhkd/issues/183