You are not logged in.
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
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
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