Simple `tofi` dmenu config

Dipping toes in the water again. Wofi is very slow and I don't like that
Rofi requires unofficial patches for Wayland.
`
This commit is contained in:
John Mertz 2023-07-20 16:10:39 -04:00
parent ad27c1f783
commit bbaec67a8c
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 4 additions and 0 deletions

4
tofi/tofi-drun.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
HEIGHT=$(swaymsg -t get_outputs | tr '\n' ' ' | sed -e 's/ */ /g' | sed -e 's/\(.*"focused": [a-z]*\),/\1\n/' | less | grep '"focused": true' | sed -e 's/.*"rect": {[^}]*"height": \([0-9]*\).*/\1/')
/usr/bin/tofi-drun --prompt-text "$ " --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml