Browse Source

clean up

pull/10/head
JaKooLit 2 years ago
parent
commit
8d33b92be0
  1. 16
      config/hypr/scripts/keybindings.sh

16
config/hypr/scripts/keybindings.sh

@ -1,16 +0,0 @@
#!/bin/bash
# Define keybindings.conf location
# -----------------------------------------------------
config_file="~/.config/hypr/configs/Keybinds.conf"
# -----------------------------------------------------
# Parse keybindings
# -----------------------------------------------------
keybinds=$(grep -oP '(?<=bind = ).*' $config_file)
keybinds=$(echo "$keybinds" | sed 's/$mainMod/SUPER/g'| sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
# -----------------------------------------------------
# Show keybindings in rofi
# -----------------------------------------------------
rofi -dmenu -p "Keybinds" -config ~/.config/rofi/config-short <<< "$keybinds"
Loading…
Cancel
Save