Add hyprstack config

This commit is contained in:
2024-07-06 12:59:14 +03:00
parent ead8c1df03
commit b820d657ee
32 changed files with 1417 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env python
from hyprsocket import run_on_line
def get_kb_layout(line):
if "activelayout" in line:
res = line.split(">>")[1]
language = res.split(",")[1]
lang_short = language[0:2]
print("bg" if lang_short == "Bu" else "en", flush=True)
run_on_line(get_kb_layout)