Refactoring

This commit is contained in:
2026-09-30 17:03:12 +01:00
parent 657851bc02
commit 9b7e3507d8
9 changed files with 198 additions and 93 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
DEFAULT_LAYOUT = 'master'
LAPTOP_MONITOR_NAME = 'BOE NE160QDM-NZ6'
LEFT_MONITOR_NAME = 'Samsung Electric Company LU28R55 HNMN500475'
RIGHT_MONITOR_NAME = 'Samsung Electric Company LU28R55 HNMN500462'
dispatch_exec = hl.dsp.exec_cmd
exec = hl.exec_cmd
shortcut = hl.dsp.send_shortcut
@@ -73,6 +77,6 @@ end
function is_laptop_screen_focused()
local monitor = hl.get_active_monitor()
return monitor and monitor.description == 'BOE NE160QDM-NZ6'
return monitor and monitor.description == LAPTOP_MONITOR_NAME
end