refactor(custom-functions): clean up unused helper functions
This commit is contained in:
@@ -1,31 +1,11 @@
|
|||||||
-- custom-functions.lua
|
-- custom-functions.lua
|
||||||
local C = {}
|
local C = {}
|
||||||
function C.startTimer()
|
|
||||||
-- TODO implement custom timer logic here
|
|
||||||
end
|
|
||||||
function C.MoveToDarkSpot()
|
|
||||||
local targetMonitor = "DP-9"
|
|
||||||
hl.dispatch(hl.dsp.window.move({monitor = targetMonitor, x = 0, y = 0}))
|
|
||||||
hl.exec_cmd("notify-send 'moved to " .. targetMonitor .. "'")
|
|
||||||
end
|
|
||||||
|
|
||||||
local function phoneSocket()
|
|
||||||
-- Determine phone socket connection
|
|
||||||
-- Determine wired or wireless state
|
|
||||||
-- If wired connect over cable and set phone socket
|
|
||||||
-- If wireless connect over socker
|
|
||||||
-- If not on network notify
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function C.RemoteToPhone()
|
|
||||||
phoneSocket()
|
|
||||||
end
|
|
||||||
|
|
||||||
function C.remoteKM()
|
function C.remoteKM()
|
||||||
hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")
|
hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")
|
||||||
hl.dsp.exec_cmd("scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid")
|
hl.dsp.exec_cmd("scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid")
|
||||||
end
|
end
|
||||||
|
|
||||||
function C.remoteScreen()
|
function C.remoteScreen()
|
||||||
hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")
|
hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")
|
||||||
hl.dsp.exec_cmd("scrcpy --no-audio --keyboard=uhid --mouse=uhid")
|
hl.dsp.exec_cmd("scrcpy --no-audio --keyboard=uhid --mouse=uhid")
|
||||||
@@ -49,42 +29,10 @@ function C.ToggleOddessyConnection() -- Enables or disables oddessy monitor
|
|||||||
else
|
else
|
||||||
hl.exec_cmd('notify-send "Enabled Oddesy"')
|
hl.exec_cmd('notify-send "Enabled Oddesy"')
|
||||||
hl.monitor({ output = "DP-2", disabled = false })
|
hl.monitor({ output = "DP-2", disabled = false })
|
||||||
hl.monitor({
|
|
||||||
-- Use 'desc:' followed by your monitor's exact string from hyprctl
|
|
||||||
output="desc:Samsung Electric Company Odyssey G95C HNTL300212",
|
|
||||||
mode = "5120x1440@240", -- Explicitly lock the ultrawide canvas & high refresh rate
|
|
||||||
scale = 1,
|
|
||||||
vrr = true
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- local function CompilerWindowOpen()
|
|
||||||
-- local clients = hl.get_windows()
|
|
||||||
-- for _,w in ipairs(clients) do
|
|
||||||
-- if w.tags == "compiler" then
|
|
||||||
-- return w.stable_id
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- hl.exec_cmd("kitty", {
|
|
||||||
-- hl.dsp.window.tag = { action = "add", value = "compiler" },
|
|
||||||
-- })
|
|
||||||
-- return false
|
|
||||||
-- end
|
|
||||||
|
|
||||||
function C.RunDevelopementCode()
|
|
||||||
local o = CompilerWindowOpen()
|
|
||||||
if o then
|
|
||||||
hl.exec_cmd('notify-send "open"')
|
|
||||||
else
|
|
||||||
hl.exec_cmd('notify-send "none"')
|
|
||||||
end
|
|
||||||
-- if no tagged kitty window exists, create one
|
|
||||||
-- color the border red
|
|
||||||
-- if a tagged compiler window does exist
|
|
||||||
-- switch to that window and run the last command
|
|
||||||
-- expand later with dynamic analysis of commands
|
|
||||||
end
|
|
||||||
local function fanState()
|
local function fanState()
|
||||||
-- return the current fan profile in use
|
-- return the current fan profile in use
|
||||||
local handle = io.popen("fw-fanctl print")
|
local handle = io.popen("fw-fanctl print")
|
||||||
@@ -110,4 +58,32 @@ function C.switchFanSate()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return C
|
return C
|
||||||
|
|
||||||
|
-- local function CompilerWindowOpen()
|
||||||
|
-- local clients = hl.get_windows()
|
||||||
|
-- for _,w in ipairs(clients) do
|
||||||
|
-- if w.tags == "compiler" then
|
||||||
|
-- return w.stable_id
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
-- hl.exec_cmd("kitty", {
|
||||||
|
-- hl.dsp.window.tag = { action = "add", value = "compiler" },
|
||||||
|
-- })
|
||||||
|
-- return false
|
||||||
|
-- end
|
||||||
|
|
||||||
|
-- function C.RunDevelopementCode()
|
||||||
|
-- local o = CompilerWindowOpen()
|
||||||
|
-- if o then
|
||||||
|
-- hl.exec_cmd('notify-send "open"')
|
||||||
|
-- else
|
||||||
|
-- hl.exec_cmd('notify-send "none"')
|
||||||
|
-- end
|
||||||
|
-- -- if no tagged kitty window exists, create one
|
||||||
|
-- -- color the border red
|
||||||
|
-- -- if a tagged compiler window does exist
|
||||||
|
-- -- switch to that window and run the last command
|
||||||
|
-- -- expand later with dynamic analysis of commands
|
||||||
|
-- end
|
||||||
|
|||||||
Reference in New Issue
Block a user