-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run rot8 on startup? (sway) #44
Comments
Normally it should be fine if you put something like |
When I run
But when I check for the pid of rot8, the process is not there anymore. Is there a way that I can run rot8 with debugging or logging to see what is happening? It seems to me that it crashes for some reason when I run it at startup. |
No, rot8 has no debug mode. |
#6 looks similar, maybe @deadly-platypus can help |
Man this is a really weird issue haha. Ok so I have figured out the following:
so When I use these lines in my config at startup, it won't work:
Now the interesting part: If I run another sway instance within sway, the display name is changed to So if I set my config to:
and then launch sway inside of sway, IT WORKS... INSIDE THAT INSTANCE... Info about the screenshot:
I feel like I am getting closer. Something is not quiet right at boot time of the initial sway instance I guess. Maybe eDP-1 is not yet available or something like that. I am not experienced enough to pinpoint it yet, but I will definitely investigate this more. Really enjoy rot8's functionality, so I want it to work at boot 😈 |
Did you tried to put a sleep before starting rot8 in your script? Maybe it is a race condition. |
Yes I have tried that. I got this dummy script that I am executing from in my sway config when sway is launched:
So when sway is launched, I receive the first notification, then the second notification but when I check my process list, rot8 is nowhere to be found. Is there a way to debug rot8 and write to a log file? |
any progress? |
Is it possible to figure out how the rot8 process was ended? With logs, it would be possible to figure out if and why it crashed. |
I was having this issue. I know I'm a year late on this, but maybe it can help someone else. I installed rot8 with cargo, so I had to append ~/.cargo/bin to $PATH. If you do this after you call exec sway (I did both in my .bashrc) , then the running instance of sway won't have rot8 in it's $PATH You can test this by writing a simple script that creates a file or leaves some trace, then adding a line in .bashrc that exports the script location to $PATH. Place that export line after The solution for me was to move |
This issue is scheduled to close soon. This issue is stale because it has been open for 56 days with no activity. |
Hi,
rot8 is working for me, when I try it manually from the terminal. Now I want to add it to my startup, so it will be running in the background after I log into sway.
I have a working sway config and I am just adding these lines for rot8:
The
swaymsg
from that codeblock is being executed. (If I run rot8 manually, then the touchscreen will be mapped correctly).However rot8 is not being started. When I check my list of processes, rot8 is not there.
Any ideas? Let me know if you have a suggestion on how I can debug my sway startup.
The text was updated successfully, but these errors were encountered: