Skip to content

Commit

Permalink
Lock for more Linux Desktop Environments (richibrics#118)
Browse files Browse the repository at this point in the history
* add several desktop environments

* cleanup
  • Loading branch information
lockenkop authored Jul 25, 2024
1 parent 8405d16 commit 0c8c8d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions IoTuring/Entity/Deployments/Lock/Lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@
'base': 'pmset displaysleepnow'
},
OsD.LINUX: {
'gnome': 'gnome-screensaver-command -l',
'gnome': 'gnome-screensaver-command -l', # gnome-screensaver is deprecated
'cinnamon': 'cinnamon-screensaver-command -a',
'i3': 'i3lock',
'base': 'loginctl lock-session'
'base': 'loginctl lock-session',
'xfce': 'xflock4',
'mate': 'mate-screensaver-command -l',
'plasmax11': 'qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock', # loginctl lock-session does also work on plasma
'plasma': 'qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock', # same as plasma x11
'hyprland': 'hyprlock',
'sway': 'swaylock', # sway does not have a lock command, but swaylock is a popular lockscreen for sway
}
}

Expand Down

0 comments on commit 0c8c8d6

Please sign in to comment.