cleaned up, added some noctalia support, modified workspace keybinds

This commit is contained in:
venus
2026-07-28 08:19:50 -05:00
parent 2414373294
commit d6207c7e5a
8 changed files with 138 additions and 32 deletions

View File

@@ -22,6 +22,15 @@ function C.RemoteToPhone()
phoneSocket()
end
function C.remoteKM()
hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")
hl.dsp.exec_cmd("scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid")
end
function C.remoteScreen()
hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh ")
hl.dsp.exec_cmd("scrcpy --no-audio --keyboard=uhid --mouse=uhid")
end
local function OddesyConnectionStatus() -- returns connections status of oddesy monitor
local monitors = hl.get_monitors()
for _,m in ipairs(monitors) do
@@ -76,5 +85,29 @@ function C.RunDevelopementCode()
-- switch to that window and run the last command
-- expand later with dynamic analysis of commands
end
local function fanState()
-- return the current fan profile in use
local handle = io.popen("fw-fanctl print")
if not handle then return "unknown" end
local result = handle:read("*a")
handle:close()
return "lazy"
end
function C.switchFanSate()
-- switch between lazy and performance fan profiles
if fanState() == "unknown" then
hl.exec_cmd('notify-send "fan profile unknown"')
return
elseif fanState() == "lazy" then
hl.exec_cmd("fw-fanctl set performance")
hl.exec_cmd('notify-send "fan profile set to performance"')
else
hl.exec_cmd("fw-fanctl set lazy")
hl.exec_cmd('notify-send "fan profile set to lazy"')
end
end
return C