Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcut with quoted command gives invalid nix config #48

Closed
skogsbrus opened this issue Oct 6, 2021 · 3 comments
Closed

Keyboard shortcut with quoted command gives invalid nix config #48

skogsbrus opened this issue Oct 6, 2021 · 3 comments

Comments

@skogsbrus
Copy link

Hey, first of thanks for this plugin. Really makes managing my gnome state easier :)

I encountered a bug just now where I've added a keyboard shortcut:

<Super>space --> gnome-terminal -e "vim --cmd startinsert"

This fails to apply in the nix configuration:

building the system configuration...
error: undefined variable 'vim'

       at /nix/store/n3w211g7700r9d2h58qqj2fjs5hri2xq-source/home/dconf.nix:280:38:

          279|       binding = "<Super>space";
          280|       command = "'gnome-terminal -e "vim --cmd startinsert"'";
             |                                      ^
          281|       name = "Launch scratchpad";
(use '--show-trace' to show detailed location information)

Seems like quotes aren't escaped?

@skogsbrus
Copy link
Author

image

@gvolpe
Copy link
Collaborator

gvolpe commented Oct 12, 2021

Hi @skogsbrus ,

Can you please paste the donf dump of the problematic key? You can run dconf dump /path/to/key to get it.

@skogsbrus
Copy link
Author

Definitely,

$ dconf dump /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/
[/]
binding='<Super>space'
command='gnome-terminal -e "vim --cmd startinsert"'
name='Launch scratchpad'

Thanks for taking a look at this!

@gvolpe gvolpe closed this as completed in 3d67a84 Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants