You are not logged in.

#1 2024-05-07 18:13:49

jenetism
Member
Registered: 2024-02-28
Posts: 13

Unable to connect to get_tree

Hi, as per Arch Wiki this problem exists when u have GNU Screen or Tmux, which I don't have!

The error throws when you type

 swaymsg -s get_tree  

I've tried to export the 

 $ export SWAYSOCK=/run/user/$(id -u)/sway-ipc.$(id -u).$(pgrep -x sway).sock  

anyway, but Fish was throwing crazy error, and 

 swaymsg -s get_tree  

still doesn't work.

I've searched on the internet but the guy who has the exact problem with me has Tmux and he fixed it by using the export.

What do?

Offline

#2 2024-05-07 18:31:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,082

Re: Unable to connect to get_tree

the command you want is "swaymsg -t get_tree"

https://gist.github.com/dshoreman/27809 … ct-windows
https://man.archlinux.org/man/swaymsg.1.en#OPTIONS

Last edited by V1del (2024-05-07 18:32:31)

Offline

#3 2024-05-07 18:39:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Unable to connect to get_tree

jenetism wrote:

I've tried to export the [posix sh code] anyway, but Fish was throwing crazy error

If you want help solving problems, you need to show the error, not just describe it as "crazy".  However, in this case, any resulting errors come from the fact that you are running posix shell code in fish, which is not a posix shell.  If you run fish as your primary / default shell you should familiarize yourself with how it works and how to translate typical commands into a form appropriate for fish.  If you are not able to do this, you should really stick with BASH or some other compatible shell.

Last edited by Trilby (2024-05-07 18:40:28)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB