Comments (4)
Returning the PID might be a viable option (maybe along with a new "pattern", like {pid}
)?
I came across this for Hyprland, which supports acting on windows by PID; not sure if Sway and others do the same.
from rofi.
-window-command
was omitted from the initial implementation as {window}
is an X11 window ID and there's no matching concept for Wayland. Running a command without any way to identify the selected window isn't very useful.
Two main blockers for the functionality:
ext-foreign-toplevel-list
protocol is already merged and introduces the concept ofext_foreign_toplevel_handle_v1.identifier
, an unique and stable identifier for a toplevel, but there are no compositor implementations yet. Maybe wlroots 0.18 somewhere next year will add it.ext-foreign-toplevel-state
andext-foreign-toplevel-management
protocols to allow actually getting the window info and manipulating it (focus, close, etc) are stuck in the usual wayland-protocols review process.
from rofi.
@alebastr Thanks for the fast reply. Is there any way to execute a custom script for a window at the moment? Maybe the unique node id (swaymsg --raw -t get_tree
) could be a replacement for the window ID?
from rofi.
Unfortunately, that info is not available to the module. The implementation does not use Sway specific IPC.
Window title and app_id is all we have, although I'm hesitant to allow using these for scripting and introduce even more divergence with XCB window
behavior. If it gets into the code as a temporary solution, it's going to stay here forever :(
from rofi.
Related Issues (20)
- [BUG \ NEED HELP] Mouse scrolling skips an entry HOT 3
- [BUG] Rofi does not work in KDE Plasma 6 (Wayland) HOT 8
- Rofi unresponsive to touch input[BUG] HOT 3
- [BUG] rofi-calc no longer working/detected HOT 3
- rofi crashes randomly on fractional scaling. HOT 1
- [REQUEST] flatpak rofi builds HOT 2
- [REQUEST] keybinds cyrillic symbols HOT 2
- [BUG] Arch package not found HOT 3
- [BUG] Starting programs with arguments from run history fails due to incorrect quoting HOT 3
- [REQUEST] input method support for wayland
- [REQUEST] Add a fix for icons path for main line Rofi. HOT 5
- [REQUEST] style Listview Elements Individually
- [BUG] Laptop touchpad is not working for scrolling through rofi elements HOT 2
- [BUG] drun entries invisible HOT 1
- [BUG] Rofi crashes after launch with "listener function for opcode 1 of wl_data_device is NULL" HOT 4
- [REQUEST] Add support for the standard ext-foreign-toplevel-list
- [BUG] Cannot select item from history if it contains a space
- [BUG] Unable to set a keybinding on Control+l HOT 3
- [BUG] Emoji render slow
- [BUG] Sometimes the text disappears when output with images
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 rofi.