I'm trying to run a script on Awesome WM start after the login screen (not on the awesome --replace
or awesome.restart()
).
Does anyone knows the way? No matter is it some kind of /etc/rc.*
script or the ~/.config/awesome/rc.lua
solution.
Thanks!
As a workaround, adding those signals handlers into
~/.config/awesome/rc.lua
:Explaining: - on the exit signal, that performs only on awesome restart we're creating a flag file, that tells to the startup signal that this startup is going immediately after the awesome restart - on the startup signal fired we're removing this flag and if it doesn't remove successfully (doesn't exist) - we're running our startup-only script.
PS: Checked - the exit signal doesn't fire on
sudo reboot
, so it won't be inappropriately fired on full system restart.