lbonn / rofi Goto Github PK
View Code? Open in Web Editor NEWThis project forked from davatorium/rofi
Rofi: A window switcher, run dialog and dmenu replacement - fork with wayland support
License: Other
This project forked from davatorium/rofi
Rofi: A window switcher, run dialog and dmenu replacement - fork with wayland support
License: Other
1.5.4-dev
https://gist.github.com/JustinLovinger/adb5218e4cc60a72b60b974249bb8c76
rofi -show run
rofi -show run
Ctrl-v
Nothing happens.
Copied text is inserted into Rofi.
N/A
N/A
No response
rofi
Launch rofi
Does not crash
Crashes with
$ build/rofi
listener function for opcode 1 of wl_data_offer is NULL
[1] 203080 IOT instruction (core dumped) build/rofi
I've run into an issue where rofi crashes when launched after updating to the recently released KDE 5.26, I've managed to fix the issue temporarily with these changes to the code waicool20@5f207ae
I'm not sure if this is the right change to be making since I'm not familiar with wayland (eg. might not work if I revert back to older KDE or other DEs) hence I've not put up a PR.
I would like to switch windows in rofi
Switching windows is supported in mainline rofi
Users without a dock or another way to switch windows. I am on wayfire which means I can have an overview of all windows using the scale plugin but sometimes I forget I have an app open and try to open it again using rofi and wonder why it doesn't work.
1.7.5
https://gist.github.com/FriederHannenheim/0fabc001a2caa54460bf53132661ed9d
No response
I package this Wayland fork as an AUR package for Arch Linux, and it would be nice if the auto-generated package version will show correctly that the fork is incorporating the latest release and this requires that the fork will have the latest (relevant) tags in the git repo.
git fetch davatorium-rofi
git push --tags origin
The command that I use for generating the package version is git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
and its current output is 1.3.1.r1349.gf0139710
.
With the tags in the repo, it will generate 1.6.0.r23.gf0139710
.
Until now, this fork is just a git branch, synced with upstream at irregular intervals (mostly official releases)
There may be the need for more robust packaings, as requested here: #24.
Please explain here your use case(s) to motivate this work.
Version: 1.7.0-41-g1520a4a5 (next)
Monitor layout:
ID: 0
name: XWAYLAND1
position: 1920,0
size: 2560,1440
size: 600mm,340mm dpi: 108,108
ID: 1
name: XWAYLAND0
position: 0,0
size: 1920,1080
size: 340mm,190mm dpi: 143,144
Detected modi:
* +window
* windowcd
* +run
* +ssh
* drun
* combi
* keys
* filebrowser
Compile time options:
* window enabled
* drun enabled
* gcov disabled
* asan disabled
For more information see: man rofi
Version: 1.7.0-41-g1520a4a5 (next)
Bugreports: https://github.com/davatorium/rofi/
Support: https://reddit.com/r/qtools/
#rofi @ libera.chat
Configuration file: /home/kwiesmueller/.config/rofi/config.rasi
swaymsg -t get_outputs
Output eDP-1 'Unknown 0x4141 0x00000000'
Current mode: 3840x2160 @ 59.999001 Hz
Position: 0,0
Scale factor: 2.000000
Scale filter: nearest
Subpixel hinting: unknown
Transform: normal
Workspace: 1
Max render time: off
Adaptive sync: disabled
Available modes:
3840x2160 @ 59.999001 Hz
Output HDMI-A-1 'Dell Inc. Dell S2716DG Y44M571P0CAQ' (focused)
Current mode: 2560x1440 @ 59.951000 Hz
Position: 1920,0
Scale factor: 1.000000
Scale filter: nearest
Subpixel hinting: unknown
Transform: normal
Workspace: 10
Max render time: off
Adaptive sync: disabled
Available modes:
640x480 @ 59.939999 Hz
640x480 @ 60.000000 Hz
720x480 @ 59.939999 Hz
720x480 @ 60.000000 Hz
720x576 @ 50.000000 Hz
800x600 @ 60.317001 Hz
1024x768 @ 60.004002 Hz
1280x720 @ 50.000000 Hz
1280x720 @ 59.939999 Hz
1280x720 @ 60.000000 Hz
1920x1080 @ 50.000000 Hz
1920x1080 @ 59.939999 Hz
1920x1080 @ 60.000000 Hz
2560x1440 @ 59.951000 Hz
set $menu "~/.local/bin/rofi -i -combi-modi run,drun -modi drun,run -show run -terminal foot -m -5 | xargs swaymsg exec --"
Depending on the value for -m
rofi shows on the wrong screen.
When on -5
(default) it always shows on the HDMI-A-1
.
When on -4
it always shows on the opposite screen of the focused window.
It seems like the monitors detected by Rofi are kind of wrong or at least don't match sway.
I'm fairly certain the 4k screen is running in 4k and the other one in 1440p. Don't know why they identify so differently in rofi.
And why their IDs and Names in Rofi are mixed up.
Rofi to consistently show on the right screen.
Latest release 1.7.2+wayland1 (reproducible on all three releases)
https://gist.github.com/Gleland/517864371010824dbbf58cfe62faed3d
make
On the latest Ubuntu release (21.10, Impish Indri), with all the listed packages installed (they are typically -dev
as described) , download rofi-1.7.2+wayland1.tar.gz
locally and place in desired directory.
Then follow the steps to build from source:
tar xvf rofi-1.7.2+wayland1.tar.gz
cd rofi-1.7.2+wayland1/
mkdir build
autoreconf -i
cd build/
make
make
and make install
should produce a working version of rofi in /usr/local/bin.
See this gist for the full output, the make
command fails due to two undefined references:
/usr/bin/ld: source/rofi-rofi.o: in function `main':
/home/thogarre/workplace/rofi-1.7.2+wayland1/build/../source/rofi.c:897: undefined reference to `display_init'
/usr/bin/ld: source/rofi-view.o: in function `rofi_view_create':
/home/thogarre/workplace/rofi-1.7.2+wayland1/build/../source/view.c:1355: undefined reference to `display_set_input_focus'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:2418: rofi] Error 1
make[1]: Leaving directory '/home/thogarre/workplace/rofi-1.7.2+wayland1/build'
make: *** [Makefile:1983: all] Error 2`
If there's any additional information that would be helpful, please let me know. Thank you for your time!
The docs say "Window mode when running in Wayland mode." doesn't work "though it can be emulated in dmenu mode on some compositors (ie: Sway IPC)"
How does the emulation with dmenu mode work on Sway? What's the syntax to use it. It could be helpful to add that to the docs.
1.7.5
No response
rofi -show drun -monitor -1
On sway, run 'rofi -show drun' having at least 2 monitors. → (I have 6)
Rofi opens in the active monitor.
Rofi will fail to detect the active monitor, and it will display on a different one.
No response
1.7.1.-wayland1
N/A
N/A
N/A
N/A
stitny~/b/h/rofi-wayland (4A)$ tar tvf rofi-1.7.1+wayland1.tar.gz|grep subproject
drwxrwxr-x root/root 0 2021-11-28 15:50 rofi-1.7.1-wayland1/subprojects/
drwxrwxr-x root/root 0 2021-11-28 15:50 rofi-1.7.1-wayland1/subprojects/libgwater/
lrwxrwxrwx root/root 0 2021-11-28 15:50 rofi-1.7.1-wayland1/subprojects/libgwater-wayland -> libgwater/wayland
lrwxrwxrwx root/root 0 2021-11-28 15:50 rofi-1.7.1-wayland1/subprojects/libgwater-xcb -> libgwater/xcb
drwxrwxr-x root/root 0 2021-11-28 15:50 rofi-1.7.1-wayland1/subprojects/libnkutils/
stitny~/b/h/rofi-wayland (4A)$
The tarball from https://github.com/lbonn/rofi/archive/refs/tags/1.7.5+wayland1.tar.gz doesn’t include content of the git submodules, which leads to:
[ 4s] + /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . x86_64-suse-linux
[ 4s] The Meson build system
[ 4s] Version: 0.63.3
[ 4s] Source dir: /home/abuild/rpmbuild/BUILD/rofi-1.7.1-wayland1
[ 4s] Build dir: /home/abuild/rpmbuild/BUILD/rofi-1.7.1-wayland1/x86_64-suse-linux
[ 4s] Build type: native build
[ 4s] Project name: rofi
[ 4s] Project version: 1.7.1+wayland1
[ 4s] C compiler for the host machine: cc (gcc 12.2.1 "cc (SUSE Linux) 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7]")
[ 4s] C linker for the host machine: cc ld.bfd 2.39.0.20220810-1
[ 4s] Host machine cpu family: x86_64
[ 4s] Host machine cpu: x86_64
[ 4s] Compiler for C supports arguments -Wparentheses: YES
[ 4s] Compiler for C supports arguments -Winline: YES
[ 4s] Compiler for C supports arguments -Wunreachable-code: YES
[ 4s] Compiler for C supports arguments -Werror=missing-prototypes: YES
[ 4s] Compiler for C supports arguments -Wno-inline: YES
[ 4s] Found pkg-config: /usr/bin/pkg-config (1.8.0)
[ 4s] Run-time dependency glib-2.0 found: YES 2.74.0
[ 4s] Run-time dependency gmodule-2.0 found: YES 2.74.0
[ 4s] Run-time dependency cairo found: YES 1.17.6
[ 4s] Library m found: YES
[ 4s] Run-time dependency gio-unix-2.0 found: YES 2.74.0
[ 4s] Run-time dependency pango found: YES 1.50.11
[ 4s] Run-time dependency pangocairo found: YES 1.50.11
[ 4s] Run-time dependency xkbcommon found: YES 1.4.1
[ 4s] Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.10
[ 4s]
[ 4s] meson.build:62:0: ERROR: Subproject exists but has no meson.build file
[ 4s]
Package builds just with the code from the tarball.
It doesn’t (see above).
1.7.5 and latest commit on wayland branch
https://gist.github.com/Yaroslav-95/f48adff91924cb2b2cea8d7ed396e49c
rofi dmenu
Launch a script that makes use of the dmenu mode, e.g. https://github.com/firecat53/networkmanager-dmenu
Normal rofi window.
Rofi window that cuts off before the list, therefore, not showing the elements from the list, can still type and enter-guess the options.
Tested under Artix Linux with Sway 1.7, if it's of any use.
I tested this vs X11 rofi on 4k 27" display.
On X11 rofi, icons are the expected size.
On Wayland Rofi, the icons appear perhaps half the size-- very small and hard to make out.
It this a high DPI issue?
1.7.3+wayland1
https://gist.github.com/xsbee/5ddf3db9f37bcbfbddda78a8cbee7def
rofi -no-config -dump-theme > ~/.config/rofi/theme.rasi
rofi -no-config -dump-theme > ~/.config/rofi/theme.rasi
helix
, nano
).Should be in ASCII format.
Includes random Unicode characters in places of numbers.
The command outputs the following in STDOUT:
(process:26911): GLib-CRITICAL **: 13:04:28.913: g_ascii_formatd: assertion 'strpbrk (format + 1, "'l%") == NULL' failed
(process:26911): GLib-CRITICAL **: 13:04:28.913: g_ascii_formatd: assertion 'strpbrk (format + 1, "'l%") == NULL' failed
(process:26911): GLib-CRITICAL **: 13:04:28.913: g_ascii_formatd: assertion 'strpbrk (format + 1, "'l%") == NULL' failed
(process:26911): GLib-CRITICAL **: 13:04:28.913: g_ascii_formatd: assertion 'strpbrk (format + 1, "'l%") == NULL' failed
1.7.3+wayland1-2-g396b13f5 (wayland)
https://gist.github.com/luispabon/f42ed198f973f9d71ab021dec98e88b0
rofi -show drun -width 10 -lines 3
Basically as per launch command.
A rofi window 20px by 3 lines should appear.
The window has the same size as merely running rofi -show drun
The options don't seem to have any effect, like they do on original rofi. They also don't show on rofi -h
or the man page either.
1.7.5
none
none
none
none
i expect rofiwl to compile into a nice debian package
rofiwl fails to compile into a debian package
i copied the PKGBUILD from AUR and modified it to have debian dependencies but i encountered this issue.
dont know how to solve it
if its not the rofi issue then i will report it to makedeb github https://github.com/makedeb/makedeb
Version: 1.6.0-23-gf0139710 (makepkg)
rofi
WAYLAND_DEBUG=1
results in the following:
johannesloher@saiph:~> WAYLAND_DEBUG=1 rofi
[3289826,710] -> [email protected]_registry(new id wl_registry@2)
[3289826,751] -> [email protected](new id wl_callback@3)
[3289826,867] [email protected]_id(3)
[3289826,893] [email protected](1, "wl_shm", 1)
[3289826,919] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[3289826,957] [email protected](2, "wl_drm", 2)
[3289826,985] [email protected](3, "zwp_linux_dmabuf_v1", 3)
[3289827,011] [email protected](4, "wl_compositor", 4)
[3289827,034] -> [email protected](4, "wl_compositor", 3, new id [unknown]@5)
[3289827,071] [email protected](5, "wl_subcompositor", 1)
[3289827,095] [email protected](6, "wl_data_device_manager", 3)
[3289827,121] [email protected](7, "zwlr_gamma_control_manager_v1", 1)
[3289827,147] [email protected](8, "gtk_primary_selection_device_manager", 1)
[3289827,170] [email protected](9, "zxdg_output_manager_v1", 3)
[3289827,194] [email protected](10, "org_kde_kwin_idle", 1)
[3289827,222] [email protected](11, "zwp_idle_inhibit_manager_v1", 1)
[3289827,245] [email protected](12, "zwlr_layer_shell_v1", 2)
[3289827,266] -> [email protected](12, "zwlr_layer_shell_v1", 1, new id [unknown]@6)
[3289827,305] [email protected](13, "xdg_wm_base", 2)
[3289827,321] [email protected](14, "zwp_tablet_manager_v2", 1)
[3289827,332] [email protected](15, "org_kde_kwin_server_decoration_manager", 1)
[3289827,344] [email protected](16, "zxdg_decoration_manager_v1", 1)
[3289827,364] [email protected](17, "zwp_relative_pointer_manager_v1", 1)
[3289827,382] [email protected](18, "zwp_pointer_constraints_v1", 1)
[3289827,402] [email protected](19, "wp_presentation", 1)
[3289827,421] [email protected](20, "zwlr_output_manager_v1", 2)
[3289827,438] [email protected](21, "zwlr_output_power_manager_v1", 1)
[3289827,460] [email protected](22, "zwp_input_method_manager_v2", 1)
[3289827,480] [email protected](23, "zwp_text_input_manager_v3", 1)
[3289827,502] [email protected](24, "zwlr_foreign_toplevel_manager_v1", 3)
[3289827,522] [email protected](25, "zwlr_export_dmabuf_manager_v1", 1)
[3289827,542] [email protected](26, "zwlr_screencopy_manager_v1", 3)
[3289827,564] [email protected](27, "zwlr_data_control_manager_v1", 2)
[3289827,585] [email protected](28, "zwp_primary_selection_device_manager_v1", 1)
[3289827,604] [email protected](29, "wp_viewporter", 1)
[3289827,624] [email protected](30, "zwp_virtual_keyboard_manager_v1", 1)
[3289827,643] [email protected](31, "zwlr_virtual_pointer_manager_v1", 2)
[3289827,667] [email protected](32, "zwlr_input_inhibit_manager_v1", 1)
[3289827,687] [email protected](33, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[3289827,710] [email protected](34, "wl_seat", 7)
[3289827,734] -> [email protected](34, "wl_seat", 5, new id [unknown]@7)
[3289827,763] [email protected](35, "zwp_pointer_gestures_v1", 1)
[3289827,779] [email protected](36, "wl_output", 3)
[3289827,804] -> [email protected](36, "wl_output", 2, new id [unknown]@8)
[3289827,840] [email protected](37, "wl_output", 3)
[3289827,871] -> [email protected](37, "wl_output", 2, new id [unknown]@9)
[3289827,919] [email protected](4931)
[3289827,972] -> [email protected]_pool(new id wl_shm_pool@3, fd 6, 4096)
[3289828,228] -> [email protected](12288)
[3289828,391] -> [email protected](28672)
[3289830,157] -> [email protected](61440)
[3289830,244] -> [email protected](126976)
[3289830,368] -> [email protected](258048)
[3289830,554] -> [email protected](520192)
[3289832,830] -> [email protected](1044480)
[3289838,963] -> [email protected](2093056)
[3289857,500] -> [email protected]_surface(new id wl_surface@10)
[3289857,530] -> [email protected]_surface(new id wl_surface@11)
[3289863,289] -> [email protected]_layer_surface(new id zwlr_layer_surface_v1@12, wl_surface@11, nil, 2, "rofi")
[3289863,337] -> [email protected]_anchor(5)
[3289863,346] -> [email protected]_keyboard_interactivity(1)
[3289863,354] -> [email protected]_size(0, 0)
[3289863,369] -> [email protected]()
[3289863,379] -> [email protected](new id wl_callback@13)
[3289863,545] [email protected](zwlr_layer_surface_v1@12, 1, "width 0 requested without setting left and right anchors")
zwlr_layer_surface_v1@12: error 1: width 0 requested without setting left and right anchors
Additional details:
1.7.5+wayland1-38-gfd0ef6bc (makepkg)
https://gist.github.com/taylor85345/669b8b6f1121fa81a1b479279ebcce03
https://gist.github.com/taylor85345/71d616a5a1c7f5cb0eb6200c1c84d0bf
No response
rofi -show drun
rofi -show drun
, ensuring that the application does NOT launch in X11 mode.Rofi interface should respond to touch input similarly to mouse input.
Touch input is captured by the Rofi layer (i.e. not passed through to a window below), but the input is ignored entirely.
Tested on MS Surface Book running Arch Linux with linux-surface
kernel and drivers.
Sway, River and Hyprland compositors tested, KDE and Gnome untested.
Successful touchscreen interaction is observed in other layersurface applications (eww, waybar, dunst) when running under compositors with touchscreen support, so the protocol does support it.
It would be great to build rofi without dependencies on X11 – how difficult would it be to make X11 conditional?
Version: 1.6.1-wayland
rofi -dmenu -p "How to make a screenshot?" << EOF
Screenshot Fullscreen
Screenshot Focused
Screenshot Selected Window
Screenshot Selected Output
Screenshot Region
Record Focused
Record Selected Window
Record Selected Output
Record Region
Screenshare
EOF
link to full script
I can't choose output/window, when I double click on menu item (for example "Screenshot Selected Window"), looks like it registers my double click as I'm choose window.
Everything works fine when I'm using keyboard.
Watch video if you don't understand.
Not register click after clicking menu option.
Additional details:
Maybe I'm missing something, but it seems to me that font configuration just doesn't work on wayland.
# Running this with Xwayland gives a big DejaVu font:
rofi -theme-str 'window { font: "DejaVu Sans 30"; }' -show run -x11
# Running this doesn't give a big DejaVu font:
rofi -theme-str 'window { font: "DejaVu Sans 30"; }' -show run
Version: 1.7.0-33-ga97ba40b (makepkg)
https://gist.github.com/kepi/8cb7b0b75dbf9a6db7003dcd93902037
It is same for all modes. But i.e.
rofi -show drun
Additional details:
text-color
is ignoredVersion: 1.7.5+wayland1-37-ge861df39 (makepkg)
https://gist.github.com/niksingh710/55c15cef4d66463baded78e6e637297e
https://gist.github.com/niksingh710/0feacf1205ea3b3844243220412712a2
No response
/usr/bin/ls | rofi -dmenu -theme-str 'window{fullscreen:true;}prompt{enabled:false;}'
Just execute the command in terminal.
Should Take the entire Screen.
Does not go over the waybar.
Is there any way by which I can specify which layer to use? any way
Using Hyland as wm.
Rofi appears over lock screens which might be a security risk for some people. For now, the suggested fix for this is to use the TOP layer instead of the OVERLAY layer, which is what bemenu and wofi both do.
See: swaywm/swaylock#107
Suggested patch:
diff --git a/source/wayland/display.c b/source/wayland/display.c
index 6412fdb..b2ad51a 100644
--- a/source/wayland/display.c
+++ b/source/wayland/display.c
@@ -1013,7 +1013,7 @@ wayland_display_setup(GMainLoop *main_loop, NkBindings *bindings)
wayland->bindings_seat = nk_bindings_seat_new ( bindings, XKB_CONTEXT_NO_FLAGS );
- wayland->wlr_surface = zwlr_layer_shell_v1_get_layer_surface(wayland->layer_shell, wayland->surface, NULL, ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY, "rofi");
+ wayland->wlr_surface = zwlr_layer_shell_v1_get_layer_surface(wayland->layer_shell, wayland->surface, NULL, ZWLR_LAYER_SHELL_V1_LAYER_TOP, "rofi");
// ANCHOR_LEFT is needed to get the full screen width
zwlr_layer_surface_v1_set_anchor( wayland->wlr_surface, ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT );
There’s tag 1.6.1-wayland, but 1.7.0-wayland is missing. Can you please create it?
1.7.2+wayland1
https://gist.github.com/applesud/5abee19a4f85e86ed463b529b577ba7b
rofi -no-config -show-icons -show drun
Icons & cursor are shown at the correct resolution.
Icons & cursor are shown at a lower resolution (notice how they are less sharp than the text in the attached image).
Papirus icon theme.
Icons and cursor were sharp when display was manually scaled (ie. rofi config was adjusted to increase size).
Possibly relevant: cursor seems to be slightly too small on unscaled display, and too large on scaled display.
The Meson build system
Version: 0.55.0
Source dir: /home/mark/git/rofi
Build dir: /home/mark/git/rofi/build
Build type: native build
WARNING: Unknown options: "xwayland"
The value of new options can be set with:
meson setup <builddir> --reconfigure -Dnew_option=new_value ...
Project name: rofi
Project version: 1.5.4-dev
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wparentheses: YES
Compiler for C supports arguments -Winline: YES
Compiler for C supports arguments -Wunreachable-code: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Wno-inline -Winline: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency glib-2.0 found: YES 2.64.3
Run-time dependency gmodule-2.0 found: YES 2.64.3
Run-time dependency cairo found: YES 1.16.0
Run-time dependency gio-unix-2.0 found: YES 2.64.3
Run-time dependency pango found: YES 1.44.7
Run-time dependency pangocairo found: YES 1.44.7
Run-time dependency xkbcommon found: YES 0.10.0
Run-time dependency librsvg-2.0 found: YES 2.48.7
Run-time dependency libjpeg found: YES 2.0.3
Library m found: YES
meson.build:56: WARNING: Subproject name has a path separator. This may cause unexpected behaviour.
meson.build:55:0: ERROR: Subproject directory not found and libgwater/xcb.wrap file not found
Additional details:
There is not a libgwater
directory, but there is subprojects/libgwater
folder, but it does not contain an "xcb.wrap" file.
1.7.3+wayland1-1-g9efa6504
(none, no config)
rofi -no-config -show-icons -show drun -theme-str 'window { height: 80%;}'
rofi -no-config -show-icons -show drun -theme-str 'window { height: 80%;}'
Window height 80% of screen height, no glitches.
The 80% window flashes together with the blinking cursor (visually) behind the default height one, and when I type something, every key press results in the rofi window shrinking vertically some more (by the percent amount?), leaving previous "images" of it on screen.
This only happens when both show-icons is true and height is in percents but not 100% (that works).
I am running on Arch derived distro with Sway.
wayland 1.20.0-1
sway 1:1.7-1
I built rofi from sources, updating the rofi-lbonn-wayland
AUR PKGBUILD to 1.7.3+wayland1
which according to git describe --long
is 1.7.3+wayland1-1-g9efa6504
. Behavior was the same with 1.7.1.
I tried with xcb
enabled and disabled -- not that it should make any difference on wayland, but just in case.
Workaround without using percents is easy, I just thought I'd report the weirdness.
Not sure if I can provide a PR, probably not.
1.7.3+wayland1
https://gist.github.com/Tahvok/8d571e4a33ddc736c25b97fa7a3f5d81
rofi -show run
I'm using sway, so I setup my layout configuration as follows:
input * {
xkb_layout "us,us"
xkb_variant ",colemak"
xkb_options "grp:shift_toggle,caps:backspace"
}
All apps work fine, I can change the layout.
However, sway work only using qwerty - no matter if I launch rofi before changing the layout, or trying to change the layout when rofi is running.
rofi supports different keyboard layouts
Rofi always types in qwerty
No response
Version 1.7.3
https://gist.github.com/carnager/e335b7bed63bb8dceb399e2ad92e87ce
rofi -show run -kb-screenshot "Alt+s"
Run rofi like above
Hit Alt+s
rofi should save a picture of its own window and print the path to stdout.
rofi does not even react to the hotkey, even though it's an internal hotkey which should work on wayland?
Also tried vanilla rofi without the lbonn patches. There it works as expected.
❗
First read the guidelines!
This is not optional for any report/question. People must be able to understand the full context of the report when reading it, at any time.
If you feel like you “just have a simple question”, please consider you’re wrong and still fill the full report.
Any report missing these informations will be labeled as “Incomplete Report - Please follow the guidelines” and may not be answered in a timely fashion.
❗
In order to support a seamless experience across applications, it would be great if rofi honored global GTK colors defined in https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-22/gtk/theme/Adwaita/_colors-public.scss
Currently specifying colors via the foreground: @theme_fg_color;
results in parse errors upon rofi launch.
Theme creation will be able to inherit the user's environment
Version: 1.6.1-wayland
N/A
Rofi just released 1.7. Would be lovely to get it here as well.
Version: 1.6.0-49-g74a157c6 (makepkg)
https://paste.debian.net/hidden/6d72e681/
rofi -show drun
Tracking issue in case we get to it.
1.5.4-dev
/nix/store/cvrslyvvcyriyjjmxnvikp1sajx36pmv-rofi-wayland-unwrapped-2020-09-29/bin/rofi usage:
/nix/store/cvrslyvvcyriyjjmxnvikp1sajx36pmv-rofi-wayland-unwrapped-2020-09-29/bin/rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.
-dump-xresources Dump the current configuration in Xresources format and exit.
-e [string] Show a dialog displaying the passed message and exit.
-markup Enable pango markup where possible.
-normal-window Behave as a normal window. (experimental)
-show [mode] Show the mode 'mode' and exit. The mode has to be enabled.
-no-lazy-grab Disable lazy grab that, when fail to grab keyboard, does not block but retry later.
-no-plugins Disable loading of external plugins.
-plugin-path Directory used to search for rofi plugins. *DEPRECATED*
-dump-config Dump the current configuration in rasi format and exit.
-upgrade-config Upgrade the old-style configuration file in the new rasi format and exit.
-dump-theme Dump the current theme in rasi format and exit.
DMENU command line options:
-mesg [string] Print a small user message under the prompt (uses pango markup)
-p [string] Prompt to display left of entry field
-selected-row [integer] Select row
-format [string] Output format string
s
-u [list] List of row indexes to mark urgent
-a [list] List of row indexes to mark active
-l [integer] Number of rows to display
-window-title [string] Set the dmenu window title
-i Set filter to be case insensitive
-only-match Force selection to be given entry, disallow no match
-no-custom Don't accept custom entry, allow no match
-select [string] Select the first row that matches
-password Do not show what the user inputs. Show '*' instead.
-markup-rows Allow and render pango markup as input data.
-sep [char] Element separator.
'\n'
-input [filename] Read input from file instead from standard input.
-sync Force dmenu to first read all input data, then show dialog.
-async-pre-read [number] Read several entries blocking before switching to async mode
25
-w windowid Position over window with X11 windowid.
-keep-right Set ellipsize to end.
Global options:
-modi [string] Enabled modi
run,ssh (Default)
-width [number] Window width
50 (Default)
-lines [number] Number of lines
15 (Default)
-columns [number] Number of columns
1 (Default)
-font [string] Font to use
mono 12 (Default)
-bw [number] Border width
1 (Default)
-location [number] Location on screen
0 (File)
-padding [number] Padding
5 (Default)
-yoffset [number] Y-offset relative to location
0 (File)
-xoffset [number] X-offset relative to location
0 (File)
-[no-]fixed-num-lines Always show number of lines
True (Default)
-[no-]show-icons Whether to load and show icons
False (Default)
-terminal [string] Terminal to use
rofi-sensible-terminal (Default)
-ssh-client [string] Ssh client to use
ssh (Default)
-ssh-command [string] Ssh command to execute
{terminal} -e {ssh-client} {host} [-p {port}] (Default)
-run-command [string] Run command to execute
{cmd} (Default)
-run-list-command [string] Command to get extra run targets
(Default)
-run-shell-command [string] Run command to execute that runs in shell
{terminal} -e {cmd} (Default)
-window-command [string] Command to executed when -kb-accept-alt binding is hit on selected window
wmctrl -i -R {window} (Default)
-window-match-fields [string] Window fields to match in window mode
all (Default)
-icon-theme [string] Theme to use to look for icons
(unset) (Default)
-drun-match-fields [string] Desktop entry fields to match in drun
name,generic,exec,categories,keywords (Default)
-drun-categories [string] Only show Desktop entry from these categories
(unset) (Default)
-[no-]drun-show-actions Desktop entry show actions.
False (Default)
-drun-display-format [string] DRUN format string. (Supports: generic,name,comment,exec,categories)
{name} [<span weight='light' size='small'><i>({generic})</i></span>] (Default)
-drun-url-launcher [string] Command to open an Desktop Entry that is a Link.
xdg-open (Default)
-[no-]disable-history Disable history in run/ssh
False (Default)
-ignored-prefixes [string] Programs ignored for history
(Default)
-[no-]sort Use sorting
False (Default)
-sorting-method [string] Choose the strategy used for sorting: normal (levenshtein) or fzf.
normal (Default)
-[no-]case-sensitive Set case-sensitivity
False (Default)
-[no-]cycle Cycle through the results list
True (Default)
-[no-]sidebar-mode Enable sidebar-mode
False (Default)
-eh [number] Row height (in chars)
1 (Default)
-[no-]auto-select Enable auto select mode
False (Default)
-[no-]parse-hosts Parse hosts file for ssh mode
False (Default)
-[no-]parse-known-hosts Parse known_hosts file for ssh mode
True (Default)
-combi-modi [string] Set the modi to combine in combi mode
window,run (Default)
-matching [string] Set the matching algorithm. (normal, regex, glob, fuzzy)
normal (Default)
-[no-]tokenize Tokenize input string
True (Default)
-m [string] Monitor id to show on
-5 (Default)
-line-margin [number] Margin between rows *DEPRECATED*
2 (Default)
-line-padding [number] Padding within rows *DEPRECATED*
1 (Default)
-filter [string] Pre-set filter
(unset) (Default)
-separator-style [string] Separator style (none, dash, solid) *DEPRECATED*
dash (Default)
-[no-]hide-scrollbar Hide scroll-bar *DEPRECATED*
False (Default)
-[no-]fullscreen Fullscreen
False (Default)
-[no-]fake-transparency Fake transparency *DEPRECATED*
False (Default)
-dpi [number] DPI
-1 (Default)
-threads [number] Threads to use for string matching
0 (Default)
-scrollbar-width [number] Scrollbar width *DEPRECATED*
8 (Default)
-scroll-method [number] Scrolling method. (0: Page, 1: Centered)
0 (Default)
-fake-background [string] Background to use for fake transparency. (background or screenshot) *DEPRECATED*
screenshot (Default)
-window-format [string] Window Format. w (desktop name), t (title), n (name), r (role), c (class)
{w} {c} {t} (Default)
-[no-]click-to-exit Click outside the window to exit
True (Default)
-[no-]show-match Indicate how it match by underlining it.
True (Default)
-theme [string] New style theme file
(unset) (Default)
-color-normal [string] Color scheme for normal row
#0a0a0a, #f8f8f8, #333333, #f8f8f8, #0a0a0a (File)
-color-urgent [string] Color scheme for urgent row
#0a0a0a, #ed8484, #333333, #ed8484, #0a0a0a (File)
-color-active [string] Color scheme for active row
#0a0a0a, #8a8ae8, #333333, #8a8ae8, #0a0a0a (File)
-color-window [string] Color scheme window
#0a0a0a, #333333, #f8f8f8 (File)
-max-history-size [number] Max history size (WARNING: can cause slowdowns when set to high).
25 (Default)
-[no-]combi-hide-mode-prefix Hide the prefix mode prefix on the combi view.
False (Default)
-matching-negate-char [character] Set the character used to negate the matching. ('\0' to disable)
- (Default)
-cache-dir [string] Directory where history and temporary files are stored.
(unset) (Default)
-[no-]window-thumbnail Show window thumbnail (if available) as icon in window switcher.
False (Default)
-[no-]drun-use-desktop-cache DRUN: build and use a cache with desktop file content.
False (Default)
-[no-]drun-reload-desktop-cache DRUN: If enabled, reload the cache with desktop file content.
False (Default)
-pid [string] Pidfile location
/run/user/1000/rofi.pid (Default)
-display-run [string] The display name of this browser
(unset) (Default)
-display-ssh [string] The display name of this browser
(unset) (Default)
-display-drun [string] The display name of this browser
(unset) (Default)
-display-combi [string] The display name of this browser
(unset) (Default)
-display-keys [string] The display name of this browser
(unset) (Default)
-kb-primary-paste [string] Paste primary selection
Control+V,Shift+Insert (Default)
-kb-secondary-paste [string] Paste clipboard
Control+v,Insert (Default)
-kb-clear-line [string] Clear input line
Control+w (Default)
-kb-move-front [string] Beginning of line
Control+a (Default)
-kb-move-end [string] End of line
Control+e (Default)
-kb-move-word-back [string] Move back one word
Alt+b,Control+Left (Default)
-kb-move-word-forward [string] Move forward one word
Alt+f,Control+Right (Default)
-kb-move-char-back [string] Move back one char
Left,Control+b (Default)
-kb-move-char-forward [string] Move forward one char
Right,Control+f (Default)
-kb-remove-word-back [string] Delete previous word
Control+Alt+h,Control+BackSpace (Default)
-kb-remove-word-forward [string] Delete next word
Control+Alt+d (Default)
-kb-remove-char-forward [string] Delete next char
Delete,Control+d (Default)
-kb-remove-char-back [string] Delete previous char
BackSpace,Shift+BackSpace,Control+h (Default)
-kb-remove-to-eol [string] Delete till the end of line
Control+k (Default)
-kb-remove-to-sol [string] Delete till the start of line
Control+u (Default)
-kb-accept-entry [string] Accept entry
Control+j,Control+m,Return,KP_Enter (Default)
-kb-accept-custom [string] Use entered text as command (in ssh/run modi)
Control+Return (Default)
-kb-accept-alt [string] Use alternate accept command.
Shift+Return (Default)
-kb-delete-entry [string] Delete entry from history
Shift+Delete (Default)
-kb-mode-next [string] Switch to the next mode.
Shift+Right,Control+Tab (Default)
-kb-mode-previous [string] Switch to the previous mode.
Shift+Left,Control+ISO_Left_Tab (Default)
-kb-row-left [string] Go to the previous column
Control+Page_Up (Default)
-kb-row-right [string] Go to the next column
Control+Page_Down (Default)
-kb-row-up [string] Select previous entry
Up,Control+p,ISO_Left_Tab (Default)
-kb-row-down [string] Select next entry
Down,Control+n (Default)
-kb-row-tab [string] Go to next row, if one left, accept it, if no left next mode.
Tab (Default)
-kb-page-prev [string] Go to the previous page
Page_Up (Default)
-kb-page-next [string] Go to the next page
Page_Down (Default)
-kb-row-first [string] Go to the first entry
Home,KP_Home (Default)
-kb-row-last [string] Go to the last entry
End,KP_End (Default)
-kb-row-select [string] Set selected item as input text
Control+space (Default)
-kb-screenshot [string] Take a screenshot of the rofi window
Alt+S (Default)
-kb-ellipsize [string] Toggle between ellipsize modes for displayed data
Alt+period (Default)
-kb-toggle-case-sensitivity [string] Toggle case sensitivity
grave,dead_grave (Default)
-kb-toggle-sort [string] Toggle sort
Alt+grave (Default)
-kb-cancel [string] Quit rofi
Escape,Control+g,Control+bracketleft (Default)
-kb-custom-1 [string] Custom keybinding 1
Alt+1 (Default)
-kb-custom-2 [string] Custom keybinding 2
Alt+2 (Default)
-kb-custom-3 [string] Custom keybinding 3
Alt+3 (Default)
-kb-custom-4 [string] Custom keybinding 4
Alt+4 (Default)
-kb-custom-5 [string] Custom Keybinding 5
Alt+5 (Default)
-kb-custom-6 [string] Custom keybinding 6
Alt+6 (Default)
-kb-custom-7 [string] Custom Keybinding 7
Alt+7 (Default)
-kb-custom-8 [string] Custom keybinding 8
Alt+8 (Default)
-kb-custom-9 [string] Custom keybinding 9
Alt+9 (Default)
-kb-custom-10 [string] Custom keybinding 10
Alt+0 (Default)
-kb-custom-11 [string] Custom keybinding 11
Alt+exclam (Default)
-kb-custom-12 [string] Custom keybinding 12
Alt+at (Default)
-kb-custom-13 [string] Custom keybinding 13
Alt+numbersign (Default)
-kb-custom-14 [string] Custom keybinding 14
Alt+dollar (Default)
-kb-custom-15 [string] Custom keybinding 15
Alt+percent (Default)
-kb-custom-16 [string] Custom keybinding 16
Alt+dead_circumflex (Default)
-kb-custom-17 [string] Custom keybinding 17
Alt+ampersand (Default)
-kb-custom-18 [string] Custom keybinding 18
Alt+asterisk (Default)
-kb-custom-19 [string] Custom Keybinding 19
Alt+parenleft (Default)
-kb-select-1 [string] Select row 1
Super+1 (Default)
-kb-select-2 [string] Select row 2
Super+2 (Default)
-kb-select-3 [string] Select row 3
Super+3 (Default)
-kb-select-4 [string] Select row 4
Super+4 (Default)
-kb-select-5 [string] Select row 5
Super+5 (Default)
-kb-select-6 [string] Select row 6
Super+6 (Default)
-kb-select-7 [string] Select row 7
Super+7 (Default)
-kb-select-8 [string] Select row 8
Super+8 (Default)
-kb-select-9 [string] Select row 9
Super+9 (Default)
-kb-select-10 [string] Select row 10
Super+0 (Default)
-ml-row-left [string] Go to the previous column
ScrollLeft (Default)
-ml-row-right [string] Go to the next column
ScrollRight (Default)
-ml-row-up [string] Select previous entry
ScrollUp (Default)
-ml-row-down [string] Select next entry
ScrollDown (Default)
-me-select-entry [string] Select hovered row
MousePrimary (Default)
-me-accept-entry [string] Accept hovered row
MouseDPrimary (Default)
-me-accept-custom [string] Accept hovered row with custom action
Control+MouseDPrimary (Default)
Detected modi:
* +run
* +ssh
* drun
* combi
* keys
Compile time options:
* window enabled
* drun enabled
* gcov disabled
* asan disabled
For more information see: man rofi
Version: 1.5.4-dev
Bugreports: https://github.com/davatorium/rofi/
Support: https://reddit.com/r/qtools/
#rofi @ freenode.net
Configuration file: /home/jlv/.config/rofi/config
rofi -normal-window -show run
See above.
Rofi starts in its usual overlay.
Rofi starts in a normal window.
1.7.3.wayland1.r51.g1e8c22b4-1 (from AUR)
Irrelevant (can't install)
yay -S rofi-lbonn-wayland-git
yay -S rofi-lbonn-wayland-git
Install on the system
3/18 libnkutils:format-string / libnkutils format-string module tests ERROR 0.04s exit status 1
MALLOC_PERTURB_=185 /home/erlonbie/.cache/yay/rofi-lbonn-wayland-git/src/build/subprojects/libnkutils/nk-format-string.test --tap
I installed this package in a very similar machine (almost same programs installed) and had no issue.
❗
First read the guidelines!
This is not optional for any report/question. People must be able to understand the full context of the report when reading it, at any time.
If you feel like you “just have a simple question”, please consider you’re wrong and still fill the full report.
Any report missing these informations will be labeled as “Incomplete Report - Please follow the guidelines” and may not be answered in a timely fashion.
❗
Output of rofi -v
Version: 1.6.0-23-gf0139710 (makepkg)
Output of rofi -help
(in a gist, please paste the full output)
rofi config
The commandline used to launch **rofi**
rofi
WAYLAND_DEBUG=1
results in the following:
johannesloher@saiph:~> WAYLAND_DEBUG=1 rofi
[3289826,710] -> [email protected]_registry(new id wl_registry@2)
[3289826,751] -> [email protected](new id wl_callback@3)
[3289826,867] [email protected]_id(3)
[3289826,893] [email protected](1, "wl_shm", 1)
[3289826,919] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[3289826,957] [email protected](2, "wl_drm", 2)
[3289826,985] [email protected](3, "zwp_linux_dmabuf_v1", 3)
[3289827,011] [email protected](4, "wl_compositor", 4)
[3289827,034] -> [email protected](4, "wl_compositor", 3, new id [unknown]@5)
[3289827,071] [email protected](5, "wl_subcompositor", 1)
[3289827,095] [email protected](6, "wl_data_device_manager", 3)
[3289827,121] [email protected](7, "zwlr_gamma_control_manager_v1", 1)
[3289827,147] [email protected](8, "gtk_primary_selection_device_manager", 1)
[3289827,170] [email protected](9, "zxdg_output_manager_v1", 3)
[3289827,194] [email protected](10, "org_kde_kwin_idle", 1)
[3289827,222] [email protected](11, "zwp_idle_inhibit_manager_v1", 1)
[3289827,245] [email protected](12, "zwlr_layer_shell_v1", 2)
[3289827,266] -> [email protected](12, "zwlr_layer_shell_v1", 1, new id [unknown]@6)
[3289827,305] [email protected](13, "xdg_wm_base", 2)
[3289827,321] [email protected](14, "zwp_tablet_manager_v2", 1)
[3289827,332] [email protected](15, "org_kde_kwin_server_decoration_manager", 1)
[3289827,344] [email protected](16, "zxdg_decoration_manager_v1", 1)
[3289827,364] [email protected](17, "zwp_relative_pointer_manager_v1", 1)
[3289827,382] [email protected](18, "zwp_pointer_constraints_v1", 1)
[3289827,402] [email protected](19, "wp_presentation", 1)
[3289827,421] [email protected](20, "zwlr_output_manager_v1", 2)
[3289827,438] [email protected](21, "zwlr_output_power_manager_v1", 1)
[3289827,460] [email protected](22, "zwp_input_method_manager_v2", 1)
[3289827,480] [email protected](23, "zwp_text_input_manager_v3", 1)
[3289827,502] [email protected](24, "zwlr_foreign_toplevel_manager_v1", 3)
[3289827,522] [email protected](25, "zwlr_export_dmabuf_manager_v1", 1)## Version
Additional details:
Please do not submit reports related to wayland, see
here for more
information.
Output of rofi -v
Version: 1.6.0-65-g87b48ce7 (makepkg)
Output of rofi -help
(in a gist, please paste the full output)
gist
The commandline used to launch **rofi**
rofi -show
Just run rofi
Desktop files under ~/.config/autostart/
are not shown in the drun output.
All files should be present
1.7.3+wayland1
any
rofi -show run
Rofi appears on screen 1
Crash
Thread 1 "rofi" received signal SIGSEGV, Segmentation fault.
wl_proxy_marshal (proxy=0x0, opcode=2) at src/wayland-client.c:792
792 va_start(ap, opcode);
#0 wl_proxy_marshal (proxy=0x0, opcode=2) at src/wayland-client.c:792
#1 0x00005555555bc162 in wl_surface_damage (wl_surface=0x0, x=0, y=0, width=1280, height=907) at /usr/local/include/wayland-client-protocol.h:3733
#2 0x00005555555bd00e in display_surface_commit (surface=0x5555558da1d0) at ../source/wayland/display.c:277
#3 0x00005555555bb9ff in wayland_rofi_view_update (state=0x5555557a8b00, qr=1) at ../source/wayland/view.c:322
#4 0x00005555555bba7d in wayland_rofi_view_maybe_update (state=0x5555557a8b00) at ../source/wayland/view.c:355
#5 0x00005555555bb215 in wayland_rofi_view_repaint (data=0x0) at ../source/wayland/view.c:106
#6 0x00007ffff7eb17ef in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7 0x00007ffff7f04d28 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007ffff7eb0e53 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x0000555555585c77 in main (argc=7, argv=0x7fffffffdcb8) at ../source/rofi.c:1103
No response
Rofi crashes when scrolling with mouse. This crash seems to be reproducible on the latest sway/wlroots git but version 1.5 is likely affected as well.
Core was generated by `rofi -show drun'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055608fd9e5f8 in rofi_view_handle_mouse_motion (state=0x0, x=296, y=200) at ../source/view.c:866
866 ../source/view.c: No such file or directory.
[Current thread is 1 (Thread 0x7f5cc1f202c0 (LWP 9653))]
(gdb) bt full
#0 0x000055608fd9e5f8 in rofi_view_handle_mouse_motion (state=0x0, x=296, y=200) at ../source/view.c:866
No locals.
#1 0x000055608fd8d721 in wayland_pointer_send_events (self=0x556090150490) at ../source/wayland/display.c:531
state = 0x0
button = 4294967295
#2 0x00007f5cc2f8ce6d in ?? () from /usr/lib/libffi.so.7
No symbol table info available.
#3 0x00007f5cc2f8c2aa in ?? () from /usr/lib/libffi.so.7
No symbol table info available.
#4 0x00007f5cc39f6a1f in wl_closure_invoke (closure=closure@entry=0x55609042af10, target=<optimized out>, target@entry=0x556090173aa0, opcode=opcode@entry=5, data=<optimized out>, flags=1) at ../src/connection.c:1018
count = <optimized out>
cif = {abi = FFI_UNIX64, nargs = 2, arg_types = 0x7ffc19db8fc0, rtype = 0x7f5cc2f8e180 <ffi_type_void>, bytes = 0, flags = 0}
ffi_types = {0x7f5cc2f8e060 <ffi_type_pointer>, 0x7f5cc2f8e060 <ffi_type_pointer>, 0x7f5cc2f8e0e0 <ffi_type_uint32>, 0x7f5cc2f8e0e0 <ffi_type_uint32>, 0x7f5cc2f8e0e0 <ffi_type_uint32>, 0x7f5cc2f8e0e0 <ffi_type_uint32>,
0x5560901507c0, 0x7f5cc39f6775 <wl_closure_clear_fds+53>, 0x7f5cc39fee78 <wl_pointer_events+120>, 0xbdbdc82d13438500, 0x8, 0x55609042af10, 0x5560901494f0, 0x8, 0x7ffc19db90d0, 0x7f5cc39fb72f, 0x0,
0x7f5cc39f844d <wl_display_read_events+157>, 0x7ffc19db90a0, 0x7ffc00000000, 0x5560901495d8, 0x556090173aa0}
ffi_args = {0x7ffc19db8f90, 0x7ffc19db8f98, 0x5560901730a8, 0x5560901730b0, 0x5560901730b8, 0x5560901730c0, 0x55609042afe0, 0x0, 0x7ffc19db90e0, 0x1, 0x0, 0x0, 0x75, 0x0, 0x7ffc19db9110, 0xbdbdc82d13438500, 0x19db9175,
0x7ffc19db9130, 0x7f5cc39fb705, 0x5560901730c8, 0x556090173090, 0x5560901730c8}
implementation = <optimized out>
#5 0x00007f5cc39f7ed3 in dispatch_event (display=display@entry=0x5560901494f0, queue=<optimized out>) at ../src/wayland-client.c:1445
closure = 0x55609042af10
proxy = 0x556090173aa0
opcode = 5
proxy_destroyed = <optimized out>
#6 0x00007f5cc39f826c in dispatch_queue (queue=0x5560901495c0, display=0x5560901494f0) at ../src/wayland-client.c:1591
count = 3
count = <optimized out>
#7 wl_display_dispatch_queue_pending (display=0x5560901494f0, queue=0x5560901495c0) at ../src/wayland-client.c:1833
ret = <optimized out>
#8 0x00007f5cc39f82cc in wl_display_dispatch_pending (display=<optimized out>) at ../src/wayland-client.c:1896
No locals.
#9 0x000055608fd8755d in _g_water_wayland_source_dispatch (source=0x5560901490f0, callback=0x55608fd879f0 <wayland_error>, user_data=0x0) at ../subprojects/libgwater-wayland/libgwater-wayland.c:107
self = 0x5560901490f0
revents = <optimized out>
#10 0x00007f5cc5292e4e in g_main_dispatch (context=0x556090147a80) at ../glib/gmain.c:3309
dispatch = 0x55608fd87500 <_g_water_wayland_source_dispatch>
prev_source = 0x0
was_in_call = 0
user_data = 0x0
callback = 0x55608fd879f0 <wayland_error>
cb_funcs = 0x7f5cc534d300 <g_source_callback_funcs>
cb_data = 0x556090148fb0
need_destroy = <optimized out>
source = 0x5560901490f0
current = 0x556090262ec0
i = 0
current = <optimized out>
i = <optimized out>
__func__ = <optimized out>
source = <optimized out>
_g_boolean_var_ = <optimized out>
was_in_call = <optimized out>
user_data = <optimized out>
callback = <optimized out>
cb_funcs = <optimized out>
cb_data = <optimized out>
need_destroy = <optimized out>
dispatch = <optimized out>
prev_source = <optimized out>
_g_boolean_var_ = <optimized out>
#11 g_main_context_dispatch (context=context@entry=0x556090147a80) at ../glib/gmain.c:3974
No locals.
#12 0x00007f5cc5294d90 in g_main_context_iterate (context=0x556090147a80, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4047
--Type <RET> for more, q to quit, c to continue without paging--
max_priority = 2147483647
timeout = 1193
some_ready = 1
nfds = <optimized out>
allocated_nfds = <optimized out>
fds = 0x556090191f80
#13 0x00007f5cc5295d13 in g_main_loop_run (loop=0x556090147ba0) at ../glib/gmain.c:4241
self = <optimized out>
__func__ = "g_main_loop_run"
#14 0x000055608fd85b68 in main (argc=<optimized out>, argv=<optimized out>)
at ../source/rofi.c:1159
path = <optimized out>
proxy = <optimized out>
windowid = 0x0
theme_str = 0x0
interval = 1
pfd = 6
__func__ = "main"
(gdb)
zwlr_layer_surface_v1@12: error 1: width 0 requested without setting left and right anchors
Please fix with wlroots 0.12
Output of rofi -v
Version: 1.6.1-wayland
The commandline used to launch **rofi**
rofi -modi drun -show drun
run sway
run rofi-lbonn variant in sway
Additional details:
Output of rofi -v
1.6.1-wayland
Output of rofi -help
(in a gist, please paste the full output)
https://gist.github.com/ram02z/07c7888924bbe35068d7c3883b308c55
The commandline used to launch **rofi**
rofi -show
rofi -click-to-exit -show
Nothing happens. Excuse my ignorance, but is this expected due to how wayland works?
The rofi window closes.
Additional details:
The issue persists with the default config.
Please do not submit reports related to wayland, see
here for more
information.
1.7.5+wayland1
not needed
Not needed
https://gist.github.com/Aleksanaa/893dfeae15f36693010f1efc3a57b62e
rofi -show drun -theme-str 'listview { fixed-height: false; }' -no-config
The list looks like normal but entries decrease.
The rofi window seems squeezed.
It seems to occur after hyprland update. Not sure if it is caused by hyprland side.
1.7.3 (davatorium/rofi)
1.7.2-29-g50b85ba9 (next) (lbonn/rofi)
https://gist.github.com/qodo-io/36623f90c03ae96204b0d9d1748102e7
rofi --help
swaymsg output DP-1 transform 90
)rofi --help
and identify the Monitor layout:
sectionrofi --help | sed -r -e '/^\s*(ID:|name:|position:|size:|size:)/!d;s/^\s*/ /;s/ ID: ([0-9]*$)/\1:/;s/dpi:/\n dpi:/;s/size: ([0-9]*),([0-9]*)/width: \1\n height: \2/;s/position: ([0-9]*),([0-9]*)/x: \1\n y: \2/'
0:
name: XWAYLAND15
x: 3840
y: 0
width: 1440
height: 2560
size: 530mm,300mm
dpi: 123,123 # <-------- correct
correct dpi would be 123,123
in this example, as:
~ calc
precision: e^-8
2560/(53/2.54)
2560/(53/2.54): 122.68679246
0:
name: XWAYLAND15
x: 3840
y: 0
width: 1440
height: 2560
size: 530mm,300mm
dpi: 69,217 # <-------- incorrect
dpi is 69,217
, as width
and height
are flipped
~ calc
precision: e^-8
1440/(53/2.54): 69.01132076
2560/(30/2.54): 216.74666670
[posted this on the wrong issue tracker before, at https://github.com/davatorium/issues/1590 - sorry for that]
probable root cause: the dpi calculation does not take wayland display rotation into account (sway example from CLI: swaymsg -t get_outputs | jq '.[]|.transform'
)
Version: 1.7.5+wayland1
no config (but anyway: https://gist.github.com/bew/c1729d2a381ee4b0b86fca3c63a1c557)
rofi
Hello,
I'm maintaining rofi and rofi-wayland for the Nix package manager (for use in NixOS or any linux distributions with Nix installed).
I've successfully built rofi-wayland from the latest release: https://github.com/lbonn/rofi/releases/tag/1.7.5%2Bwayland1
I tried to test it by running weston
, opening a terminal and running the built rofi
, but received a number of errors due to the use of the deprecated wl_shell
.
Open without error in weston nor rofi
Excerpt of the output of weston:
[20:34:34.236] Loading module '/usr/lib/weston/desktop-shell.so'
[20:34:34.239] launching '/usr/lib/weston/weston-keyboard'
[20:34:34.240] Note: support for the deprecated wl_shell interface is disabled. If a legacy client still needs it, it can be re-enabled by passing -Ddeprecated-wl-shell=true to Meson when building Weston.
[20:34:34.240] Old Xwayland module loading detected: Please use --xwayland command line option or set xwayland=true in the [core] section in weston.ini
[20:34:34.241] Loading module '/usr/lib/libweston-10/xwayland.so'
[20:34:34.250] Registered plugin API 'weston_xwayland_v1' of size 32
[20:34:34.250] Registered plugin API 'weston_xwayland_surface_v1' of size 16
[20:34:34.251] xserver listening on display :1
[20:34:34.251] launching '/usr/lib/weston/weston-desktop-shell'
[20:34:34.252] Chosen EGL config details: id: 10 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 0-1000 type: win|pix|pbf vis_id: 0x21
And the output of rofi:
(process:195228): Wayland-ERROR **: 20:36:25.089: Rofi on wayland requires support for the layer shell protocol
More official docs about wl_shell
being deprecated:
https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_shell
Note! This protocol is deprecated and not intended for production use. For desktop-style user interfaces, use xdg_shell. Compositors and clients should not implement this interface.
1.7.2+wayland1-1-g07c801cd
https://gist.github.com/justinesmithies/4ce697cfad31c993125f3cdc89541003#file-config-rasi
rofi -modi combi,window -show combi -combi-modi drun
I just cannot get the window switcher to show up. No matter what command options or config I use it always says:
Mode window is not found.
I used to use the X version of Rofi no problems with the window switcher.
I expected to see the application menu and the window switcher
Errors
No response
Version 1.7.5+Wayland1
Can't install rofi - I just unzip the release, cd into the directory, and do meson setup build
.
Meson should compile as usual and I should be able to build, which was how it was on Ubuntu.
I get the following error: doc/meson.build:3:4: ERROR: Program 'meson_build_manpages.sh' not found or not executable
.
No response
Hi,
First off -- thanks for providing this package! It's a much nicer experience than upstream rofi on Wayland.
This issue is not present in any current release of Sway, but using latest rofi on latest sway/wlroots:
$ rofi
zwlr_layer_surface_v1@12: error 1: width 0 requested without setting left and right anchors
The cause is likely swaywm/wlroots@8dec751 (swaywm/wlroots#2422).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.