Created
April 19, 2023 00:39
-
-
Save moddedBear/943c6be8337c07cb224267e188a43f4f to your computer and use it in GitHub Desktop.
A small bash script to switch between open windows in Hyprland using the tofi menu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| hyprctl clients -j | jq -r '.[] | [ .title, .class, .pid ] | join(" | ")' | | |
| tofi --prompt-text="window: " | | |
| awk '{print $NF}' | { | |
| read -r id | |
| hyprctl dispatch focuswindow pid:$id; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment