Comments (4)
Interesting, I'm not sure why that would be the case. Tofi doesn't call get_keyboard
unless it's specifically told one is available:
Lines 379 to 383 in 6060daa
I'll try it on Fedora myself at some point and see if I can recreate the issue.
from tofi.
Ah thanks for the info. I've just tried this on my machine (Arch Linux, Sway 1.8.1, Hyprland 0.26.0) and everything seems to work fine - I can switch between Hyprland in one VT and Sway in another, and tofi works in both.
My theory is that tofi is trying to open in the most recent "seat" instead of the one it was called from, so thats why this error appears.
Tofi doesn't do any selection of seats or anything itself, that's handled by libwayland-client
. The only thing that should affect what tofi tries to connect to is the value of the $WAYLAND_DISPLAY
environment variable, as that's what libwayland uses to determine what to connect to.
Could you echo $WAYLAND_DISPLAY
in Sway and Hyprland when it's acting up, and see what you get? It should be something like wayland-1
for one of them, and wayland-2
for the other.
from tofi.
Thanks for the quick reply.
Some further info that I think might be useful:
I have a feeling that this issue might have been caused by me switching from vt2 to vt3, inside of which I opened Hyprland. (not sure if it was 2, just the one opened by sddm for sway)
Now just to test this, I tried running tofi inside of Hyprland when that happened, and it executed properly. But inside of sway i was still getting that error. Now after I closed Hyprland and returned to vt2, it stil had the error.
I don't know much about how X11 and Wayland, but with my understanding, from what I read on the error and what I had tried, I thought that maybe tofi was trying to open on the most recently opened graphical session (which i presume is what "seat" refers to).
I decided to try signing out of sway and back in, so it is the most recent session, and... Explosion sound tofi run properly this time.
My theory is that tofi is trying to open in the most recent "seat" instead of the one it was called from, so thats why this error appears. Maybe you could try it on the distro you use as well. When I get a chance I'll test out the theory as well, by:
- Sign in sway
- Switch to another vt
- Start hyprland and try to run tofi.
- Switch back to sway and run tofi.
- If I get error: switch back to hyprland to check if maybe tofi is running there and just gives an error to the sway vt.
I hope that was helpful.
from tofi.
Hey, after testing that theory on my machine as well, it seems like tofi worked without issue. While I was writing this message though, I tried running it again, and surprisingly I got the error once more! I haven't done any VT switching now though. Could it be my laptop going to sleep and then waking up after I close/open the lid? As soon as I test that I'll let you know.
from tofi.
Related Issues (20)
- [Request] Allow margin-{top,right,bottom,left} no matter what the anchor option is set to HOT 1
- How to uninstall HOT 3
- Feature: Template to configure drun .desktop contents to display HOT 2
- wp_fractional_scale_manager_v1@10: error 0: Fractional scale exists. HOT 1
- Fuzzy logic randomizes results
- Uppercase output
- For some reason you need to launch the application twice to be able to launch any GTK app. HOT 8
- Config File -- include = /path/to/config/file Doesn't interrpret "~" or "$HOME" HOT 1
- Config file too big HOT 2
- HT (horizontal tab 0x09 ASCII) shows as missing glyph in Tofi list
- Provide more compatibility with dmenu
- interferes with waybar if executed from a waybar module HOT 1
- window mode (request)
- option to remove the inputbox from tofi HOT 1
- blurred corners HOT 2
- font-manager doesnt open HOT 1
- Allow text wrap
- German umlauts are transferred to the next character
- Curious issue launching `nautilus` from drun menu HOT 3
- [Feature] Individual border widths per side
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tofi.