feat(hyprlang): bash injection for hypridle variables

This commit is contained in:
Omar Valdez
2025-01-19 18:07:07 -08:00
committed by Amaan Qureshi
parent 87b1f25098
commit 1c77042243

View File

@@ -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"))