mirror of
https://git.aramjonghu.dev/AramJonghu/hypr.git
synced 2026-11-05 14:26:28 +01:00
feat: adds noctalia stuff to this branch too + stylua fmt
This commit is contained in:
@@ -4,3 +4,6 @@ require("modules.executes")
|
|||||||
require("modules.monitors")
|
require("modules.monitors")
|
||||||
require("modules.settings")
|
require("modules.settings")
|
||||||
require("modules.windowrules")
|
require("modules.windowrules")
|
||||||
|
|
||||||
|
-- For Noctalia Color templates
|
||||||
|
require("noctalia").apply_theme()
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ hl.bind("SUPER + F2", hl.dsp.global("zshell:toggle-settings"))
|
|||||||
hl.bind("XF86MonBrightnessUp", hl.dsp.global("zshell:brightnessUp"), { locked = true, repeating = true })
|
hl.bind("XF86MonBrightnessUp", hl.dsp.global("zshell:brightnessUp"), { locked = true, repeating = true })
|
||||||
hl.bind("XF86MonBrightnessDown", hl.dsp.global("zshell:brightnessDown"), { locked = true, repeating = true })
|
hl.bind("XF86MonBrightnessDown", hl.dsp.global("zshell:brightnessDown"), { locked = true, repeating = true })
|
||||||
|
|
||||||
|
-- Noctalia binds
|
||||||
|
hl.bind("SUPER + R", hl.dsp.exec_cmd("noctalia msg panel-toggle launcher"))
|
||||||
|
hl.bind("PRINT", hl.dsp.exec_cmd("noctalia msg screenshot-region"))
|
||||||
|
hl.bind("SUPER + F1", hl.dsp.exec_cmd("noctalia msg session lock"))
|
||||||
|
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("noctalia msg brightness-up eDP-1 0.0133"), { locked = true, repeating = true })
|
||||||
|
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("noctalia msg brightness-down eDP-1 0.0133"), { locked = true, repeating = true })
|
||||||
|
|
||||||
hl.bind("SUPER + T", function()
|
hl.bind("SUPER + T", function()
|
||||||
local m = hl.get_monitor("eDP-1")
|
local m = hl.get_monitor("eDP-1")
|
||||||
if m == nil then
|
if m == nil then
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ hl.on("hyprland.start", function()
|
|||||||
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
||||||
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||||
hl.exec_cmd("hyprsunset -i")
|
hl.exec_cmd("hyprsunset -i")
|
||||||
hl.exec_cmd("ksecretd")
|
hl.exec_cmd("ksecretd")
|
||||||
hl.exec_cmd("nextcloud --background")
|
hl.exec_cmd("nextcloud --background")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -74,11 +74,11 @@ hl.config({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
ecosystem = { no_donation_nag = true, no_update_news = true },
|
ecosystem = { no_donation_nag = true, no_update_news = true },
|
||||||
misc = {
|
misc = {
|
||||||
disable_hyprland_logo = true,
|
disable_hyprland_logo = true,
|
||||||
mouse_move_enables_dpms = true,
|
mouse_move_enables_dpms = true,
|
||||||
key_press_enables_dpms = true,
|
key_press_enables_dpms = true,
|
||||||
},
|
},
|
||||||
debug = { full_cm_proto = true },
|
debug = { full_cm_proto = true },
|
||||||
dwindle = { preserve_split = true },
|
dwindle = { preserve_split = true },
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
-- Generated by Noctalia
|
||||||
|
|
||||||
|
local primary = "rgb(cba6f7)"
|
||||||
|
local surface = "rgb(1e1e2e)"
|
||||||
|
local on_surface = "rgb(cdd6f4)"
|
||||||
|
local secondary = "rgb(b4befe)"
|
||||||
|
local on_secondary = "rgb(1e1e2e)"
|
||||||
|
local error = "rgb(f38ba8)"
|
||||||
|
local on_error = "rgb(1e1e2e)"
|
||||||
|
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
text_color = on_secondary,
|
||||||
|
text_color_inactive = on_surface,
|
||||||
|
text_color_locked_active = on_error,
|
||||||
|
text_color_locked_inactive = on_surface,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
colors = {
|
||||||
|
primary = primary,
|
||||||
|
surface = surface,
|
||||||
|
on_surface = on_surface,
|
||||||
|
secondary = secondary,
|
||||||
|
on_secondary = on_secondary,
|
||||||
|
error = error,
|
||||||
|
on_error = on_error,
|
||||||
|
},
|
||||||
|
apply_theme = apply_theme,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user