From 1c77042243187a819e7e4e3e34b98705b3e71366 Mon Sep 17 00:00:00 2001 From: Omar Valdez Date: Sun, 19 Jan 2025 18:07:07 -0800 Subject: feat(hyprlang): bash injection for hypridle variables --- queries/hyprlang/injections.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/queries/hyprlang/injections.scm b/queries/hyprlang/injections.scm index e7c552eb2..3b91ad0e0 100644 --- a/queries/hyprlang/injections.scm +++ b/queries/hyprlang/injections.scm @@ -19,3 +19,11 @@ (#lua-match? @_bind "^bind") (#lua-match? @_exec "^%s*exec%s*$") (#set! injection.language "bash")) + +((assignment + (name) @_name + (string) @injection.content) + (#any-of? @_name + "lock_cmd" "unlock_cmd" "before_sleep_cmd" "after_sleep_cmd" "on-timeout" "on-resume" + "reload_cmd") + (#set! injection.language "bash")) -- cgit v1.2.3-70-g09d2