I'm trying to configure i3 so that an application is opened only on working days.
I understand that exec
can be used to launch apps on startup as in
exec --no-startup-id telegram-desktop
However after reading and trying differents things I'm not getting how to use exec
correctly.
For the moment I have this (which does not work):
exec --no-startup-id 'test $(date +%u) -lt 6 && slack'
The command itself works, since the following binding works:
bindsym $mod+i exec "test $(date +%u) -lt 6 && slack"