I3 config variables

asked 2015-12-12 14:09:47 +0000

nscott32 gravatar image

updated 2015-12-12 21:31:10 +0000

Hi there,

How does the i3 variables works in config files ? On my computer set $emacs_default "emacsclient -c --server-file=default" doesn't work when I try to bindsym it with an exec : binsym $mod+e exec $emacs_default, it doesn't run anything.

Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.

Tell me if it's not clear

edit retag flag offensive close merge delete

Comments

It's probably an escaping issue. Did you try putting your command in the script and just running the script instead?

i3convert gravatar imagei3convert ( 2015-12-12 18:49:34 +0000 )edit

Note that quotes are not necessary in variable assignments. If you use quoted, the content of your variable will in fact contain those quotes.

Airblader gravatar imageAirblader ( 2015-12-12 20:12:02 +0000 )edit

Yes it's finally what I adopted, but that force me to do a lot of search and replace when I want to reconfigure.

nscott32 gravatar imagenscott32 ( 2015-12-12 21:33:25 +0000 )edit

There's no such parameterized mode, but you could take a look at i3bang which is pretty powerful.

Airblader gravatar imageAirblader ( 2015-12-12 21:58:11 +0000 )edit

Wow cool preprocessing is the alternative !

nscott32 gravatar imagenscott32 ( 2015-12-13 20:07:26 +0000 )edit