ReGreet icon indicating copy to clipboard operation
ReGreet copied to clipboard

Sway doesn't behave properly when ran through regreet

Open DylanJTodd opened this issue 6 months ago • 6 comments

Just want to start by saying I am a little new at linux, but I'm pretty sure I'm doing everything right here.

Basically, in my sway config file, i have it execute a script called test which is in my /tmp/ directory (full permissions). I also have the permissions set to rwx for everyone. The only thing this script does, is make a file in my /tmp/ directory called 111. That's it. The purpose is just to see if the script is being run (ran?)

On startup, when Arch launches, this script will never be run. No matter what I do, I cannot get sway to run scripts. I've tried everything. Absolute paths, going to background, making a script launch another script, adding a delay, giving perms, etc. I've given superuser to greeter, I've given root to greeter, and nothing works.

When i launch sway normally (just by typing sway in a terminal), it all works fine though.

Before you ask,

Yes the config files are the same. When I make a change like changing the font size in that config file, the font size will change, but it just wont run exec command. Yes I've set proper permissions. Yes I'm sure the script is not working because I have another script in the sway config file that changes the background, which also doesn't work when loaded through regreet, but does through terminal.

Here's my /etc/greetd/config.toml file:

terminal] vt = 1

[default_session] command = "sway --config /etc/greetd/sway-config" user = "greeter"

And here's my /etc/greetd/sway-config fle

exec "regreet; swaymsg exit" include /home/username/.config/sway/config

the $HOME/.config/sway/config file is the one I'm trying to run the script in, but I've also tried running it in the config.toml file and the sway-config file to no avail. I've followed all the installation instructions on the regreet readme page, so I'm not sure what I could be doing wrong, other than this being a bug.

DylanJTodd avatar Jan 02 '24 21:01 DylanJTodd