Gen 426: Shell script nix files work properly now

This commit is contained in:
pagedMov
2024-10-12 19:16:17 -04:00
parent ed16562d58
commit 3dce49571a
39 changed files with 210 additions and 676 deletions

View File

@@ -0,0 +1,11 @@
{ self, pkgs }:
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"
'')