Skip to content

Commit

Permalink
fix lockscreen config
Browse files Browse the repository at this point in the history
  • Loading branch information
Stella Kyun committed Sep 4, 2024
1 parent 8439b06 commit 8e7864b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions home/.config/awesome/json/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"mod": "Mod4",
"passwd": "awesomewm",
"reboot": "systemctl reboot",
"sessionlock": true,
"sessionlock": false,
"shotdir": "~/Pictures/Screenshots",
"shutdown": "systemctl poweroff",
"terminal": "st"
}
}
4 changes: 3 additions & 1 deletion home/.config/awesome/rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ if not restarted() then
require("awful").spawn.easy_async_with_shell(command, function() end) -- func needed to avoid callback error
end)
end
awesome.emit_signal("widget::lockscreen")
if user.sessionlock then
awesome.emit_signal("widget::lockscreen")
end
end

-- Theme Init
Expand Down

0 comments on commit 8e7864b

Please sign in to comment.