Skip to content

Commit

Permalink
Configure lid switch for desktop role
Browse files Browse the repository at this point in the history
  • Loading branch information
dseomn committed Nov 22, 2023
1 parent 685d527 commit 68e995e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salt/file/power/logind.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
# limitations under the License.

[Login]
{% if 'desktop' not in grains.role %}
{% if 'desktop' in grains.role %}
HandleLidSwitchExternalPower=lock
HandleLidSwitchDocked=ignore
{% else %}
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
Expand Down

0 comments on commit 68e995e

Please sign in to comment.