Rofi: how to get rofi switch window work on dwm?

Created on 19 Apr 2020  路  7Comments  路  Source: davatorium/rofi

Version

Version: 1.5.4

Configuration

the default configuration

Environment

manjaro dwm-6.2

Launch Command

rofi -show window

Steps to reproduce

  • rofi -show window
  • choose a window and enter

What behaviour you see

it doesn't switch window

What behaviour you expect to see

switch window

bug

Most helpful comment

@lyjdwh, you could use this patches, in order to achieve what you want:

All 7 comments

Rofi uses EWMH to switch between windows. Does DWM implement this?

This is what rofi calls:

xcb_ewmh_request_change_active_window

It seems DWM doesn't support EWMH.
Thanks for your help!

@lyjdwh, you could use this patches, in order to achieve what you want:

@alesandar it really works, thanks!

You're welcome. It was not necessary to patch ewmhtags, but you're already looking for EWMH support and it might be useful if you decide to use polybar or anything similar in the future. However, you may find focusonnetactive a little bit obtrusive, because popup windows may also change your current view.

Nice solution, is it possible to see the tag number or something similar just like in i3wm?

I tried to use the ewmhtags but that doesn't seem to show it.

EDIT: Works, my bad. I had to completely restart X in order for the tags to update inside the menu.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

icf20 picture icf20  路  4Comments

digitalphoton picture digitalphoton  路  4Comments

Spindlyskit picture Spindlyskit  路  4Comments

blueyed picture blueyed  路  5Comments

carnager picture carnager  路  5Comments