The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
1

can if-then conditional statements be used in .i3/config

asked 2015-01-16 17:49:48 +0000

diffalot gravatar image

i'd like to use the same i3 config across multiple machines, so i'd like to be able to run exec conditionally to only start up (e.g. redshift) on some machines (where the hostname matches a string).

are if-then blocks allowed in i3's configuration?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-16 17:54:24 +0000

Michael gravatar image

No. See also https://faq.i3wm.org/question/1367/an..., which provides an answer that should be useful for you :).

edit flag offensive delete link more

Comments

Thanks, Michael. that's a great solution, the other one i'm considering is executing a shell script that does the conditional checking, it may not be as elegant, but it'll work :)

diffalot gravatar imagediffalot ( 2015-01-19 21:33:55 +0000 )edit

Question Tools

Stats

Asked: 2015-01-16 17:49:48 +0000

Seen: 513 times

Last updated: Jan 16