The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

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

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

Michael gravatar image

No. See also, which provides an answer that should be useful for you :).

edit flag offensive delete link more


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


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

Seen: 513 times

Last updated: Jan 16