Gen 426: Shell script nix files work properly now
This commit is contained in:
11
glasshouse-desktop/home/scripts/keybinds.nix
Normal file
11
glasshouse-desktop/home/scripts/keybinds.nix
Normal 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"
|
||||
'')
|
||||
Reference in New Issue
Block a user