10 lines
322 B
Bash
Executable file
10 lines
322 B
Bash
Executable file
#!/bin/bash
|
|
|
|
input_file="~/.config/hypr/hyprland.conf"
|
|
|
|
# Process the file and send output to rofi
|
|
grep '^bindd' "$input_file" | awk -F, -v q="'" '{
|
|
cmd="";
|
|
for(i=3; i<NF; i++) cmd=cmd $(i) " ";
|
|
print "<b>" $1 " + " $2 "</b> <i>" $NF ",</i><span color=" q "gray" q ">" cmd "</span>"
|
|
}' | rofi -dmenu -p "Select:"
|