Breakdown of Wenn ich im Großraumbüro arbeite, setze ich Kopfhörer auf.
Questions & Answers about Wenn ich im Großraumbüro arbeite, setze ich Kopfhörer auf.
Because the first part is a subordinate clause introduced by wenn. In German, subordinate clauses are separated from the main clause by a comma:
Wenn ich im Großraumbüro arbeite, (subordinate clause)
setze ich Kopfhörer auf. (main clause)
German main clauses follow the V2 rule: the conjugated verb must be in position 2.
Since the subordinate clause Wenn ich im Großraumbüro arbeite takes position 1 of the whole sentence, the main clause must start with the verb to keep it second:
Position 1: Wenn ich im Großraumbüro arbeite,
Position 2 (main clause verb): setze
Then the subject follows: ich
It can mean either, depending on context. In sentences like this, it often means whenever/when(ever) (a repeated situation):
Wenn ich … arbeite, … = Whenever I work …, I …
If you meant a one-time past event, German would often use als instead of wenn.
im = in dem and uses the dative case, which is used for location (being somewhere): in the open-plan office.
in das (accusative) would imply movement/direction: into the open-plan office.
im is a contraction: in dem → im.
German often contracts common preposition + article combinations (especially in speech and writing), e.g. am = an dem, zum = zu dem.
German frequently forms compound nouns. Großraumbüro is a compound meaning an open-plan office.
Roughly: Großraum (large room/open-plan space) + Büro (office) → Großraumbüro.
Because aufsetzen is a separable verb: auf- + setzen.
In a main clause, the prefix splits off and goes to the end:
Ich setze Kopfhörer auf.
In a subordinate clause or with an infinitive, it stays together:
…, weil ich Kopfhörer aufsetze. / Ich will Kopfhörer aufsetzen.
German can omit the article when talking about something in a general, non-specific way—similar to English I put on headphones.
You could also say die Kopfhörer if you mean specific ones (e.g., the ones you always use):
…, setze ich die Kopfhörer auf.