Compare commits
6 Commits
4f1f690f1b
...
9caa1f45f7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9caa1f45f7 | ||
|
|
4037267d07 | ||
|
|
29d6177022 | ||
|
|
f4c54aa047 | ||
|
|
5695563d26 | ||
|
|
4fac1b88ca |
@@ -22,7 +22,8 @@ hl.bind(mainMod .. "+ SHIFT + I" ,hl.dsp.layout("swapwithmaster master"))
|
|||||||
hl.bind(mainMod .. "+ I" ,hl.dsp.layout("rollnext"))
|
hl.bind(mainMod .. "+ I" ,hl.dsp.layout("rollnext"))
|
||||||
hl.bind(mainMod .. "+ O" ,hl.dsp.layout("swapnext loop"))
|
hl.bind(mainMod .. "+ O" ,hl.dsp.layout("swapnext loop"))
|
||||||
hl.bind(mainMod .. "+ SHIFT + O" ,hl.dsp.layout("swapprev"))
|
hl.bind(mainMod .. "+ SHIFT + O" ,hl.dsp.layout("swapprev"))
|
||||||
hl.bind(mainMod .. "+ SEMICOLON" ,hl.dsp.layout("orientationcycle left center right"))
|
hl.bind(mainMod .. "+ SEMICOLON" ,hl.dsp.layout("orientationcycle right center left "))
|
||||||
|
hl.bind(mainMod .. " + SHIFT + SEMICOLON" ,hl.dsp.layout("orientationcycle top bottom"))
|
||||||
-- 1.3 resize with arrows
|
-- 1.3 resize with arrows
|
||||||
hl.bind(mainMod .. " + right " ,hl.dsp.window.resize({ x = 20, y = 0, relative = true}) , {repeating = true})
|
hl.bind(mainMod .. " + right " ,hl.dsp.window.resize({ x = 20, y = 0, relative = true}) , {repeating = true})
|
||||||
hl.bind(mainMod .. " + left " ,hl.dsp.window.resize({ x =-20, y = 0, relative = true}) , {repeating = true})
|
hl.bind(mainMod .. " + left " ,hl.dsp.window.resize({ x =-20, y = 0, relative = true}) , {repeating = true})
|
||||||
@@ -137,17 +138,19 @@ hl.bind(mainMod .. "+ CTRL + G" ,hl.dsp.exec_cmd("kitty agy" ,{ tag = "popu
|
|||||||
---- 6. CUSTOM SCRIPTS AND FUNCTIONS ----
|
---- 6. CUSTOM SCRIPTS AND FUNCTIONS ----
|
||||||
-- 6.1 custom key assignments
|
-- 6.1 custom key assignments
|
||||||
hl.config({ input = { kb_options = "caps:hyper", }})
|
hl.config({ input = { kb_options = "caps:hyper", }})
|
||||||
hl.bind(hyper.. " + Hyper_L" ,function() hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel")) hl.dispatch(hl.dsp.submap("hyper-submap")) end)
|
-- hl.bind(hyper.. " + Hyper_L" ,function() hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel")) hl.dispatch(hl.dsp.submap("hyper-submap")) end)
|
||||||
|
hl.bind(hyper .. " + Hyper_L" ,hl.dsp.exec_cmd("noctalia msg panel-toggle clipboard"))
|
||||||
|
|
||||||
-- TODO fix remote screen and remote keyboard shortcuts
|
-- TODO fix remote screen and remote keyboard shortcuts
|
||||||
hl.bind(mainMod .. " + I" ,custom.remoteKM) -- Send Keyboard and Mouse input to phone via scrcpy
|
hl.bind(mainMod .. " + CTRL + I" ,custom.remoteKM) -- Send Keyboard and Mouse input to phone via scrcpy
|
||||||
hl.bind(mainMod .. " + SHIFT + I" ,custom.remoteScreen) -- Open Phone Screen via scrcpy
|
hl.bind(mainMod .. " + ALT + I" ,custom.remoteScreen) -- Open Phone Screen via scrcpy
|
||||||
hl.bind(mainMod .. "+ grave" ,custom.ToggleOddessyConnection) -- Toggle Oddesy monitor connection in hyprland
|
hl.bind(mainMod .. "+ grave" ,custom.ToggleOddessyConnection) -- Toggle Oddesy monitor connection in hyprland
|
||||||
|
|
||||||
---- 7.
|
---- 7.
|
||||||
hl.bind(mainMod .. " + comma" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
|
hl.bind(mainMod .. " + comma" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
|
||||||
hl.bind(mainMod .. " + period" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
|
hl.bind(mainMod .. " + period" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
|
||||||
hl.bind(mainMod .. " + CTRL + SHIFT + L " ,hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
hl.bind(mainMod .. " + CTRL + SHIFT + L " ,hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
||||||
|
hl.bind(mainMod .. " + ALT + L " ,hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
||||||
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
|
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
|
||||||
hl.bind("code:148" ,hl.dsp.exec_cmd(ipc .. "plugin:noctalia-calulator toggle"))
|
hl.bind("code:148" ,hl.dsp.exec_cmd(ipc .. "plugin:noctalia-calulator toggle"))
|
||||||
hl.bind("PRINT" ,hl.dsp.exec_cmd("hyprshot -m active -m window --output-folder ~/Images/Screenshots"))
|
hl.bind("PRINT" ,hl.dsp.exec_cmd("hyprshot -m active -m window --output-folder ~/Images/Screenshots"))
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ hl.define_submap("quick-settings", function () -- An Interface for quickly acces
|
|||||||
hl.bind(" L " ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
|
hl.bind(" L " ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
|
||||||
hl.bind("B " ,hl.dsp.exec_cmd(ipc .. "battery togglePanel -- toggle battery panel"))
|
hl.bind("B " ,hl.dsp.exec_cmd(ipc .. "battery togglePanel -- toggle battery panel"))
|
||||||
hl.bind("SHIFT + C " ,hl.dsp.exec_cmd(ipc .. "calendar toggle"))
|
hl.bind("SHIFT + C " ,hl.dsp.exec_cmd(ipc .. "calendar toggle"))
|
||||||
hl.bind("F" ,hl.dsp.exec_cmd(ipc .. "calendar toggle"))
|
hl.bind("F" ,custom.switchFanSate)
|
||||||
-- Bind Submaps
|
-- Bind Submaps
|
||||||
hl.bind("L" ,hl.dsp.submap("layouts"))
|
hl.bind("L" ,hl.dsp.submap("layouts"))
|
||||||
hl.bind("N" ,function ()
|
hl.bind("N" ,function ()
|
||||||
|
|||||||
@@ -41,7 +41,17 @@ local function fanState()
|
|||||||
local result = handle:read("*a")
|
local result = handle:read("*a")
|
||||||
handle:close()
|
handle:close()
|
||||||
|
|
||||||
return "lazy"
|
if result:find("laziest") then
|
||||||
|
return "laziest"
|
||||||
|
end
|
||||||
|
if result:find("medium") then
|
||||||
|
return "medium"
|
||||||
|
end
|
||||||
|
if result:find("deaf") then
|
||||||
|
return "deaf"
|
||||||
|
end
|
||||||
|
|
||||||
|
return "unknown"
|
||||||
end
|
end
|
||||||
|
|
||||||
function C.switchFanSate()
|
function C.switchFanSate()
|
||||||
@@ -49,12 +59,15 @@ function C.switchFanSate()
|
|||||||
if fanState() == "unknown" then
|
if fanState() == "unknown" then
|
||||||
hl.exec_cmd('notify-send "fan profile unknown"')
|
hl.exec_cmd('notify-send "fan profile unknown"')
|
||||||
return
|
return
|
||||||
elseif fanState() == "lazy" then
|
elseif fanState() == "laziest" then
|
||||||
hl.exec_cmd("fw-fanctl set performance")
|
hl.exec_cmd("fw-fanctl set medium")
|
||||||
hl.exec_cmd('notify-send "fan profile set to performance"')
|
hl.exec_cmd('notify-send "fan profile set to medium"')
|
||||||
|
elseif fanState() == "medium" then
|
||||||
|
hl.exec_cmd("fw-fanctl set deaf")
|
||||||
|
hl.exec_cmd('notify-send "fan profile set to deaf"')
|
||||||
else
|
else
|
||||||
hl.exec_cmd("fw-fanctl set lazy")
|
hl.exec_cmd("fw-fanctl set laziest")
|
||||||
hl.exec_cmd('notify-send "fan profile set to lazy"')
|
hl.exec_cmd('notify-send "fan profile set to laziest"')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,9 @@ _G.fileManager = "dolphin"
|
|||||||
_G.menu = "qs -c noctalia-shell ipc call launcher toggle"
|
_G.menu = "qs -c noctalia-shell ipc call launcher toggle"
|
||||||
_G.launcher = "vicinae"
|
_G.launcher = "vicinae"
|
||||||
_G.browser = "firefox"
|
_G.browser = "firefox"
|
||||||
_G.menuBar = "qs -c noctalia-shell"
|
-- _G.menuBar = "qs -c noctalia-shell"
|
||||||
_G.shellWrapper = "qs -c noctalia-shell"
|
_G.menuBar = "noctalia"
|
||||||
|
-- _G.shellWrapper = "qs -c noctalia-shell"
|
||||||
_G.blkmanager = "udiskie"
|
_G.blkmanager = "udiskie"
|
||||||
_G.email = "thunderbird"
|
_G.email = "thunderbird"
|
||||||
_G.notes = "obsidian"
|
_G.notes = "obsidian"
|
||||||
@@ -54,5 +55,3 @@ require("basic/devices")
|
|||||||
-- require("plugins")
|
-- require("plugins")
|
||||||
require("monitors")
|
require("monitors")
|
||||||
|
|
||||||
-- For Noctalia Color templates
|
|
||||||
-- require("noctalia").apply_theme()
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
background = rgba(000000ff)
|
background = rgba(191724ff)
|
||||||
base = rgba(000000ff)
|
base = rgba(191724ff)
|
||||||
text = rgba(e8d8ffff)
|
text = rgba(e0def4ff)
|
||||||
alternate_base = rgba(110d1aff)
|
alternate_base = rgba(26233aff)
|
||||||
bright_text = rgba(000000ff)
|
bright_text = rgba(191724ff)
|
||||||
accent = rgba(b58fffff)
|
accent = rgba(ebbcbaff)
|
||||||
accent_secondary = rgba(c79affff)
|
accent_secondary = rgba(9ccfd8ff)
|
||||||
@@ -12,3 +12,9 @@ hl.monitor({
|
|||||||
position = "auto", -- Or specific coordinates like "1920x0"
|
position = "auto", -- Or specific coordinates like "1920x0"
|
||||||
scale = 2 -- Increase if the UI is too small to read
|
scale = 2 -- Increase if the UI is too small to read
|
||||||
})
|
})
|
||||||
|
hl.monitor({
|
||||||
|
output = "DP-4",
|
||||||
|
mode = "3840x1080@59.97Hz", -- Adjust to your phone's native resolution
|
||||||
|
position = "auto", -- Or specific coordinates like "1920x0"
|
||||||
|
scale = 2 -- Increase if the UI is too small to read
|
||||||
|
})
|
||||||
|
|||||||
45
noctalia.lua
45
noctalia.lua
@@ -1,45 +0,0 @@
|
|||||||
-- Generated by Noctalia
|
|
||||||
|
|
||||||
local primary = "rgb(c8c4d7)"
|
|
||||||
local surface = "rgb(141314)"
|
|
||||||
local secondary = "rgb(c9c5cd)"
|
|
||||||
local error = "rgb(ffb4ab)"
|
|
||||||
|
|
||||||
local function apply_theme()
|
|
||||||
hl.config({
|
|
||||||
general = {
|
|
||||||
col = {
|
|
||||||
active_border = primary,
|
|
||||||
inactive_border = surface,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
group = {
|
|
||||||
col = {
|
|
||||||
border_active = secondary,
|
|
||||||
border_inactive = surface,
|
|
||||||
border_locked_active = error,
|
|
||||||
border_locked_inactive = surface,
|
|
||||||
},
|
|
||||||
|
|
||||||
groupbar = {
|
|
||||||
col = {
|
|
||||||
active = secondary,
|
|
||||||
inactive = surface,
|
|
||||||
locked_active = error,
|
|
||||||
locked_inactive = surface,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
colors = {
|
|
||||||
primary = primary,
|
|
||||||
surface = surface,
|
|
||||||
secondary = secondary,
|
|
||||||
error = error,
|
|
||||||
},
|
|
||||||
apply_theme = apply_theme
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user