From ArchWiki

complex command

Re [1], 1. why are two DPMS commands run in succession 2. "Special characters should be replaced", but I still hope the &amp are formatting mistakes and not to be taken literally. Else these commands should be included in a script. -- Alad (talk) 15:42, 30 July 2015 (UTC)

Ok, 1. launches slock in a subshell, which is then backgrounded. After that, the dpms delay is set to two seconds. After slock exits, the dpms command in the subshell sets the delay back to a reasonable 60 seconds. Similar to the inactivity timeout of i3lock.
For 2., I've found [2]. That's just horrible. -- Alad (talk) 19:17, 30 July 2015 (UTC)
1. Well, this is not a really good example. It was taken from [3]. I think we should add the link to description. The idea is to lock the screen and switch off backlight. But with simple slock & xset dpms force off it is not enough delay for hotkey to be released and backlight comes back. The more simple is to create an atrificial delay slock & (sleep .5 && xset dpms force off). Vas (talk) 11:10, 1 August 2015 (UTC)
2. Special character replacement works fine. I've found an example [4][dead link 2021-11-10 ⓘ] in openbox mailing list. Vas (talk) 12:33, 1 August 2015 (UTC)
Closing old discussion with dead link. --Erus Iluvatar (talk) 18:19, 19 June 2022 (UTC)