Refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user