You are not logged in.

#1 2022-11-16 10:26:05

Saphira
Member
Registered: 2022-11-16
Posts: 11

[SOLVED] SwayIDLE not working when i close my thinkpad

Hey,

i am new to Arch. I used for a few years Manjaro. A few weeks ago i bought me an "new" Thinkpad (T460) and I installed Manjaro Sway and it was sucking that I didnt knew really much about the settings and so on.

So i installed a few days ago Arch with/and Sway.

Its very cool but I have some problems. For the most problems google is very helpful but I cant fix the problem with SwayIDLE...

When i run swayidle -w before-sleep 'swaylock -F -l -f -c 000000' in the terminal and I am closing my notebook and waiting still its in suspend mode and open it again its locked.

But when I have in the sway conf the line:

exec swayidle -w before-sleep 'swaylock -F -l -f -c 000000'

it didn't work. I also tried a reboot but its still doesn't work...

The shortcut

bindsym $mod+l exec $lock


is working and set $lock swaylock -F -l -f -c 000000 . I also first tried exec swayidle -w before-sleep '$lock', but because it was not working i tried the full command instead of the var...


Do someone have an idea why its not working?


Thank and sorry for the worse english big_smile

Greetings
Saphira

Last edited by Saphira (2022-11-17 14:02:43)

Offline

#2 2022-11-17 14:00:56

Saphira
Member
Registered: 2022-11-16
Posts: 11

Re: [SOLVED] SwayIDLE not working when i close my thinkpad

Okay I found a solution:

With " instead of ' it is working! smile

Now is also

exec swayidle -w before-sleep "$lock"

Working! smile

Offline

Board footer

Powered by FluxBB