re: question about niri, if anyone here has any experience with it
φ @fiore@brain.worm.pink
Content warning: re: question about niri, if anyone here has any experience with it
@kopper @sebastian i have a script that lists open windows and lets u pick one . its hacky but it works
#!/bin/sh
window_list=$(niri msg --json windows)
name=$(echo $window_list | jq -r '.[] | ."title"' | fuzzel --dmenu -p "pick a window > " -w 50)
id=$(echo $window_list | jq -r '.[] | ."title", ."id"' | grep "$name" -x -A 1 | grep "$name" -vx)
echo $id
echo $name
niri msg action focus-window --id $id