swaylock instead of gtklock (#177)

This commit is contained in:
end-4
2024-01-07 11:37:26 +07:00
parent 5397bb2dc9
commit c2b344fde3
5 changed files with 5 additions and 5 deletions
+2 -1
View File
@@ -57,7 +57,8 @@ const SessionButton = (name, icon, command, props = {}) => {
export default () => {
// lock, logout, sleep
const lockButton = SessionButton('Lock', 'lock', () => { App.closeWindow('session'); execAsync('gtklock') });
// const lockButton = SessionButton('Lock', 'lock', () => { App.closeWindow('session'); execAsync('gtklock') });
const lockButton = SessionButton('Lock', 'lock', () => { App.closeWindow('session'); execAsync('swaylock') });
const logoutButton = SessionButton('Logout', 'logout', () => { App.closeWindow('session'); execAsync(['bash', '-c', 'loginctl terminate-user $USER']) });
const sleepButton = SessionButton('Sleep', 'sleep', () => { App.closeWindow('session'); execAsync('systemctl suspend') });
// hibernate, shutdown, reboot
Regular → Executable
+1 -1
View File
@@ -1,6 +1,6 @@
{
"label" : "lock",
"action" : "gtklock",
"action" : "swaylock",
"text" : "lock",
"keybind" : "l"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Regular → Executable
-1
View File
@@ -6,7 +6,6 @@
window {
background: rgba(0, 0, 0, 0.5);
background-image: url('./noise.png');
}
button {