13 lines
346 B
Nix
13 lines
346 B
Nix
{ self, pkgs }:
|
|
|
|
{
|
|
keybinds = pkgs.writeShellScriptBin "keybinds" (''
|
|
#!/usr/bin/env bash
|
|
|
|
config_file=~/.config/hypr/hyprland.conf
|
|
keybinds=$(grep -oP '(?<=bind=).*' $config_file)
|
|
keybinds=$(echo "$keybinds" | sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
|
|
rofi -dmenu -theme-str 'window {width: 50%;}' <<< "$keybinds"
|
|
'');
|
|
}
|