aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/hyprlang/injections.scm8
1 files changed, 8 insertions, 0 deletions
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"))