Compare commits

..

9 Commits

Author SHA1 Message Date
9fb0f6c781 fixed minor nonsense 2026-05-13 22:37:37 +01:00
221369e398 re-added hyprlock and fixed a logic error 2026-05-13 21:16:57 +01:00
8d22813645 realised i didnt add layerrules or a logout screen
minor
2026-05-13 20:57:51 +01:00
16b266ca1c Move lua to main 2026-05-13 19:50:57 +01:00
0909e98a03 full functionality restored (omg) 2026-05-13 19:49:14 +01:00
f678372ee4 minimum functionality restored kinda 2026-05-13 12:39:49 +01:00
92e9dd1b8e did a load of stuff for no reason 2026-05-12 21:26:58 +01:00
b5a73c5cac added ignore 2026-05-12 20:07:40 +01:00
1d8181afec nonsense 2026-05-12 11:48:10 +01:00
17 changed files with 676 additions and 307 deletions

View File

@@ -1,14 +1,18 @@
-- ~/.config/hypr/autoload.lua -- ~/.config/hypr/autoload.lua
-- Path to search
local modules = os.getenv("HOME") .. "/.config/hypr/modules" local modules = os.getenv("HOME") .. "/.config/hypr/modules"
-- Get all files in modules dir
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort') local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')
if not p then if not p then
return return
end end
-- Recursively search and return modules
for path in p:lines() do for path in p:lines() do
local ok, err = pcall(dofile, path) local ok, err = pcall(dofile, path)
-- If you fucked up the syntax like an idiot
if not ok then if not ok then
hl.notification.create({ hl.notification.create({
text = "autoload: " .. path .. "\n" .. tostring(err), text = "autoload: " .. path .. "\n" .. tostring(err),

View File

@@ -1,6 +1,8 @@
-- Get hostname from envvars or something
local handle = io.popen("hostname") local handle = io.popen("hostname")
Hostname = "unknown" -- Default fallback Hostname = "unknown" -- Default fallback
-- If there is a hostname at all
if handle then if handle then
local result = handle:read("*l") -- Read the first line local result = handle:read("*l") -- Read the first line
handle:close() handle:close()
@@ -9,279 +11,5 @@ if handle then
end end
end end
if Hostname == "HACKSTATION" then -- Import everything else
hl.bind("SUPER + c", hl.dsp.exec_cmd("dunstify " .. tostring(Hostname)))
end
require("autoload") require("autoload")
-- This is an example Hyprland Lua config file.
-- Refer to the wiki for more information.
-- https://wiki.hypr.land/Configuring/Start/
-- Please note not all available settings / options are set here.
-- For a full list, see the wiki
-- You can (and should!!) split this configuration into multiple files
-- Create your files separately and then require them like this:
-- require("myColors")
------------------
---- MONITORS ----
------------------
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
hl.monitor({
output = "",
mode = "preferred",
position = "auto",
scale = "auto",
})
---------------------
---- MY PROGRAMS ----
---------------------
-- Set programs that you use
local terminal = "kitty"
local fileManager = "dolphin"
local menu = "hyprlauncher"
-------------------
---- AUTOSTART ----
-------------------
-- See https://wiki.hypr.land/Configuring/Basics/Autostart/
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
-- Or execute your favorite apps at launch like this:
--
-- hl.on("hyprland.start", function ()
-- hl.exec_cmd(terminal)
-- hl.exec_cmd("nm-applet")
-- hl.exec_cmd("waybar & hyprpaper & firefox")
-- end)
-------------------------------
---- ENVIRONMENT VARIABLES ----
-------------------------------
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
hl.env("XCURSOR_SIZE", "24")
hl.env("HYPRCURSOR_SIZE", "24")
-----------------------
----- PERMISSIONS -----
-----------------------
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Permissions/
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
-- for security reasons
-- hl.config({
-- ecosystem = {
-- enforce_permissions = true,
-- },
-- })
-- hl.permission("/usr/(bin|local/bin)/grim", "screencopy", "allow")
-- hl.permission("/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland", "screencopy", "allow")
-- hl.permission("/usr/(bin|local/bin)/hyprpm", "plugin", "allow")
-----------------------
---- LOOK AND FEEL ----
-----------------------
-- Refer to https://wiki.hypr.land/Configuring/Basics/Variables/
-- Default curves and animations, see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/
hl.curve("easeOutQuint", { type = "bezier", points = { { 0.23, 1 }, { 0.32, 1 } } })
hl.curve("easeInOutCubic", { type = "bezier", points = { { 0.65, 0.05 }, { 0.36, 1 } } })
hl.curve("linear", { type = "bezier", points = { { 0, 0 }, { 1, 1 } } })
hl.curve("almostLinear", { type = "bezier", points = { { 0.5, 0.5 }, { 0.75, 1 } } })
hl.curve("quick", { type = "bezier", points = { { 0.15, 0 }, { 0.1, 1 } } })
-- Default springs
hl.curve("easy", { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 })
hl.animation({ leaf = "global", enabled = true, speed = 10, bezier = "default" })
hl.animation({ leaf = "border", enabled = true, speed = 5.39, bezier = "easeOutQuint" })
hl.animation({ leaf = "windows", enabled = true, speed = 4.79, spring = "easy" })
hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, spring = "easy", style = "popin 87%" })
hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.49, bezier = "linear", style = "popin 87%" })
hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.73, bezier = "almostLinear" })
hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.46, bezier = "almostLinear" })
hl.animation({ leaf = "fade", enabled = true, speed = 3.03, bezier = "quick" })
hl.animation({ leaf = "layers", enabled = true, speed = 3.81, bezier = "easeOutQuint" })
hl.animation({ leaf = "layersIn", enabled = true, speed = 4, bezier = "easeOutQuint", style = "fade" })
hl.animation({ leaf = "layersOut", enabled = true, speed = 1.5, bezier = "linear", style = "fade" })
hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 1.79, bezier = "almostLinear" })
hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 1.39, bezier = "almostLinear" })
hl.animation({ leaf = "workspaces", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
hl.animation({ leaf = "workspacesIn", enabled = true, speed = 1.21, bezier = "almostLinear", style = "fade" })
hl.animation({ leaf = "workspacesOut", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
hl.animation({ leaf = "zoomFactor", enabled = true, speed = 7, bezier = "quick" })
-- Ref https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
-- "Smart gaps" / "No gaps when only"
-- uncomment all if you wish to use that.
-- hl.workspace_rule({ workspace = "w[tv1]", gaps_out = 0, gaps_in = 0 })
-- hl.workspace_rule({ workspace = "f[1]", gaps_out = 0, gaps_in = 0 })
-- hl.window_rule({
-- name = "no-gaps-wtv1",
-- match = { float = false, workspace = "w[tv1]" },
-- border_size = 0,
-- rounding = 0,
-- })
-- hl.window_rule({
-- name = "no-gaps-f1",
-- match = { float = false, workspace = "f[1]" },
-- border_size = 0,
-- rounding = 0,
-- })
-- See https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/ for more
hl.config({
dwindle = {
preserve_split = true, -- You probably want this
},
})
-- See https://wiki.hypr.land/Configuring/Layouts/Master-Layout/ for more
hl.config({
master = {
new_status = "master",
},
})
-- See https://wiki.hypr.land/Configuring/Layouts/Scrolling-Layout/ for more
hl.config({
scrolling = {
fullscreen_on_one_column = true,
},
})
----------------
---- MISC ----
----------------
hl.config({
misc = {
force_default_wallpaper = -1, -- Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false, -- If true disables the random hyprland logo / anime girl background. :(
},
})
---------------------
---- KEYBINDINGS ----
---------------------
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
-- Move focus with mainMod + arrow keys
hl.bind(mainMod .. " + h", hl.dsp.focus({ direction = "left" }))
hl.bind(mainMod .. " + l", hl.dsp.focus({ direction = "right" }))
hl.bind(mainMod .. " + k", hl.dsp.focus({ direction = "up" }))
hl.bind(mainMod .. " + j", hl.dsp.focus({ direction = "down" }))
-- Switch workspaces with mainMod + [0-9]
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
for i = 1, 10 do
local key = i % 10 -- 10 maps to key 0
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
end
-- Example special workspace (scratchpad)
hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic"))
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }))
-- Scroll through existing workspaces with mainMod + scroll
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
-- Move/resize windows with mainMod + LMB/RMB and dragging
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
-- Laptop multimedia keys for volume and LCD brightness
hl.bind(
"XF86AudioRaiseVolume",
hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"),
{ locked = true, repeating = true }
)
hl.bind(
"XF86AudioLowerVolume",
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"),
{ locked = true, repeating = true }
)
hl.bind(
"XF86AudioMute",
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
{ locked = true, repeating = true }
)
hl.bind(
"XF86AudioMicMute",
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"),
{ locked = true, repeating = true }
)
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
-- Requires playerctl
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
--------------------------------
---- WINDOWS AND WORKSPACES ----
--------------------------------
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
-- Example window rules that are useful
local suppressMaximizeRule = hl.window_rule({
-- Ignore maximize requests from all apps. You'll probably like this.
name = "suppress-maximize-events",
match = { class = ".*" },
suppress_event = "maximize",
})
-- suppressMaximizeRule:set_enabled(false)
hl.window_rule({
-- Fix some dragging issues with XWayland
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
no_focus = true,
})
-- Layer rules also return a handle.
-- local overlayLayerRule = hl.layer_rule({
-- name = "no-anim-overlay",
-- match = { namespace = "^my-overlay$" },
-- no_anim = true,
-- })
-- overlayLayerRule:set_enabled(false)
-- Hyprland-run windowrule
hl.window_rule({
name = "move-hyprland-run",
match = { class = "hyprland-run" },
move = "20 monitor_h-120",
float = true,
})

110
hyprlock.conf Normal file
View File

@@ -0,0 +1,110 @@
source = $HOME/.config/hypr/hyprlock/mocha.conf
$accent = $mauve
$accentAlpha = $mauveAlpha
$font = JetBrainsMono Nerd Font
# GENERAL
general {
hide_cursor = true
}
# BACKGROUND
background {
monitor =
path = screenshot
blur_passes = 3
color = rgba(0, 0, 0, 0)
}
# LAYOUT
label {
monitor =
text = Layout: $LAYOUT
color = $text
font_size = 25
font_family = $font
position = 30, -30
halign = left
valign = top
}
# TIME
label {
monitor =
text = $TIME
color = $text
font_size = 90
font_family = $font
position = -30, 0
halign = right
valign = top
}
# DATE
label {
monitor =
text = cmd[update:43200000] date +"%A, %d %B %Y"
color = $text
font_size = 25
font_family = $font
position = -30, -150
halign = right
valign = top
}
# FINGERPRINT
{
monitor = "";
text = "$FPRINTPROMPT";
color = "$text";
font_size = 14;
font_family = $font;
position = "0, -107";
halign = "center";
valign = "center";
}
image {
path = $HOME/.config/hypr/hyprlock/cat.png
size = 240
border_color = transparent
rounding = 0
position = 0, 7px
}
# USER AVATAR
image {
monitor =
path = $HOME/.face
size = 100
border_color = $accent
position = 0, 75
halign = center
valign = center
}
# INPUT FIELD
input-field {
monitor =
size = 300, 60
outline_thickness = 4
dots_size = 0.2
dots_spacing = 0.2
dots_center = true
outer_color = $accent
inner_color = $surface0
font_color = $text
fade_on_empty = false
placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
hide_input = false
check_color = $accent
fail_color = $red
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
capslock_color = $yellow
position = 0, -47
halign = center
valign = center
}

BIN
hyprlock/cat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

79
hyprlock/mocha.conf Normal file
View File

@@ -0,0 +1,79 @@
$rosewater = rgb(f5e0dc)
$rosewaterAlpha = f5e0dc
$flamingo = rgb(f2cdcd)
$flamingoAlpha = f2cdcd
$pink = rgb(f5c2e7)
$pinkAlpha = f5c2e7
$mauve = rgb(cba6f7)
$mauveAlpha = cba6f7
$red = rgb(f38ba8)
$redAlpha = f38ba8
$maroon = rgb(eba0ac)
$maroonAlpha = eba0ac
$peach = rgb(fab387)
$peachAlpha = fab387
$yellow = rgb(f9e2af)
$yellowAlpha = f9e2af
$green = rgb(a6e3a1)
$greenAlpha = a6e3a1
$teal = rgb(94e2d5)
$tealAlpha = 94e2d5
$sky = rgb(89dceb)
$skyAlpha = 89dceb
$sapphire = rgb(74c7ec)
$sapphireAlpha = 74c7ec
$blue = rgb(89b4fa)
$blueAlpha = 89b4fa
$lavender = rgb(b4befe)
$lavenderAlpha = b4befe
$text = rgb(cdd6f4)
$textAlpha = cdd6f4
$subtext1 = rgb(bac2de)
$subtext1Alpha = bac2de
$subtext0 = rgb(a6adc8)
$subtext0Alpha = a6adc8
$overlay2 = rgb(9399b2)
$overlay2Alpha = 9399b2
$overlay1 = rgb(7f849c)
$overlay1Alpha = 7f849c
$overlay0 = rgb(6c7086)
$overlay0Alpha = 6c7086
$surface2 = rgb(585b70)
$surface2Alpha = 585b70
$surface1 = rgb(45475a)
$surface1Alpha = 45475a
$surface0 = rgb(313244)
$surface0Alpha = 313244
$base = rgb(1e1e2e)
$baseAlpha = 1e1e2eee
$mantle = rgb(181825)
$mantleAlpha = 181825
$crust = rgb(11111b)
$crustAlpha = 11111b

10
modules/.luarc.json Normal file
View File

@@ -0,0 +1,10 @@
{
"workspace": {
"library": [
"/nix/store/k1jc5h9ls6j600hcpjciqn0s29whas63-hyprland-0.55.0+date=2026-05-11_5e441ca/share/hypr/stubs/hl.meta.lua"
]
},
"diagnostics": {
"globals": ["hl"]
}
}

View File

@@ -1,25 +1,43 @@
-- Set modifier keys
local mainMod = "SUPER + " local mainMod = "SUPER + "
local subMod = mainMod local subMod = mainMod
local keyboardString = "qwertyuiop" local keyboardString = "qwertyuiop"
local keybindIndex = 1
-- Set different modifiers on laptop
if Hostname == "mobile02" then if Hostname == "mobile02" then
mainMod = "ALT + " mainMod = "ALT + "
subMod = "SUPER + " subMod = "SUPER + "
keyboardString = "1234567890" keyboardString = "1234567890"
keybindIndex = 2
end end
-- Delete windows -- Delete windows
hl.bind(mainMod .. " + backspace", hl.dsp.window.close()) hl.bind(mainMod .. "backspace", hl.dsp.window.close())
-- If otter is open, focus it, if not make a new window
hl.bind(mainMod .. "d", function()
if hl.get_windows({ class = "otter" })[1] ~= nil then
hl.dispatch(hl.dsp.focus({ window = "class:otter" }))
else
hl.exec_cmd("kitty --class otter --title otter-launcher -e sh -c 'sleep 0.05 && otter-launcher'")
end
end)
-- Open windows -- Open windows
local globalAppBinds = { local globalAppBinds = {
{ key = "RETURN", dispatch = "kitty" }, { key = { "RETURN" }, dispatch = "kitty" },
{ key = "f", dispatch = "firefox" }, { key = { "f", "o" }, dispatch = "firefox" },
{ key = "s", dispatch = "nemo" }, { key = { "s" }, dispatch = "nemo" },
{ key = { "a", "e" }, dispatch = "wlogout -b 5" },
} }
for _, bind in ipairs(globalAppBinds) do for _, bind in ipairs(globalAppBinds) do
hl.bind(mainMod .. bind.key, hl.dsp.exec_cmd(bind.dispatch)) if bind.key[keybindIndex] then
hl.bind(mainMod .. bind.key[keybindIndex], hl.dsp.exec_cmd(bind.dispatch))
else
hl.bind(mainMod .. bind.key[1], hl.dsp.exec_cmd(bind.dispatch))
end
end end
-- Workspace functions -- Workspace functions
@@ -34,4 +52,67 @@ for index, bind in ipairs(keyboardSplit) do
hl.bind(mainMod .. "SHIFT + " .. bind, hl.dsp.window.move({ workspace = index, follow = false })) hl.bind(mainMod .. "SHIFT + " .. bind, hl.dsp.window.move({ workspace = index, follow = false }))
end end
-- Music workspace
hl.bind(mainMod .. "m", hl.dsp.workspace.toggle_special("music"))
-- Move windows with hjkl -- Move windows with hjkl
hl.bind(mainMod .. "SHIFT + h", hl.dsp.layout("swapcol l"))
hl.bind(mainMod .. "SHIFT + l", hl.dsp.layout("swapcol r"))
hl.bind(mainMod .. "k", hl.dsp.focus({ direction = "up" }))
hl.bind(mainMod .. "j", hl.dsp.focus({ direction = "down" }))
-- Function to get window position relative to monitor
local function normalise_current_window_pos()
local active = hl.get_active_window()
if active then
local xpos = active.at.x
-- If on right monitor
if xpos > 1920 then
xpos = xpos - 1920
return xpos
-- If on left monitor
elseif xpos < 1 then
xpos = xpos + 1920
return xpos
else
return xpos
end
end
end
hl.bind(mainMod .. "h", function()
local pos = normalise_current_window_pos()
if pos then
-- 9 derived from 5 gap plus 3 border (8), so first pixel of window is 9
if pos == 9 then
-- If first window, then move to monitor to the left
hl.dispatch(hl.dsp.focus({ monitor = "-1" }))
end
end
hl.dispatch(hl.dsp.layout("move -col"))
end)
hl.bind(mainMod .. "l", function()
-- Move before so you can detect if it is the last window
hl.dispatch(hl.dsp.layout("move +col"))
if not normalise_current_window_pos() then
-- Go back a window
hl.dispatch(hl.dsp.layout("move -col"))
-- Move to monitor to the right
hl.dispatch(hl.dsp.focus({ monitor = "+1" }))
end
end)
-- Fullscreen with b
hl.bind(mainMod .. "b", hl.dsp.window.fullscreen({ action = "toggle" }))
-- Special workspace
hl.bind(mainMod .. "minus", hl.dsp.workspace.toggle_special("scratch"))
hl.bind(mainMod .. "SHIFT + minus", hl.dsp.window.move({ workspace = "special:scratch", follow = false }))
-- Float resize and move window with mouse
hl.bind(subMod .. "mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(subMod .. "mouse:272", hl.dsp.window.float(), { mouse = true, click = true })
hl.bind(subMod .. "mouse:272", hl.dsp.layout("promote"), { mouse = true, release = true })
hl.bind(subMod .. "SHIFT + mouse:272", hl.dsp.window.resize(), { mouse = true })

34
modules/events.lua Normal file
View File

@@ -0,0 +1,34 @@
local appList = {
"waybar",
"dunst",
"wpaperd -d",
"wayvnc 0.0.0.0 --output=DP-1",
"syncthing -home=/home/user01/.config/syncthing -no-browser",
"gotify-desktop",
"sleep 10 && curl -X POST -H 'Content-Type: application/json' -d '{'ref':'$(git -C ~/.dotfiles rev-parse HEAD)', 'status':'$(git -C ~/.dotfiles diff --quiet && echo 'clean' || echo 'dirty')'}' https://n8n.voidarc.co.uk/webhook/config-checker",
}
local localAppList
if Hostname == "HACKSTATION" then
-- If on desktop do all the decoration nonsense
localAppList = {
"kitten panel --edge=background -o background_opacity=0 --output-name HDMI-A-1 sh -c 'cmatrix -b -C magenta -a -u 10'",
"kitten panel --edge=background -o background_opacity=0 --output-name DP-2 sh -c 'cava'",
}
elseif Hostname == "mobile02" then
-- If on laptop, launch way-edges
localAppList = {
"way-edges",
}
end
for _, command in ipairs(localAppList) do
table.insert(appList, command)
end
-- For everything in the applist run it on startup
hl.on("hyprland.start", function()
for _, command in ipairs(appList) do
hl.exec_cmd(command)
end
end)

129
modules/rules.lua Normal file
View File

@@ -0,0 +1,129 @@
-- Size for otter launcher
local otterSize = { 410, 220 }
if Hostname == "mobile02" then
otterSize = { 420, 220 }
end
hl.window_rule({
name = "otter-launcher",
match = {
class = "otter",
},
float = true,
animation = "popin 80%",
size = otterSize,
opaque = true,
})
-- Dont dim youtube windows
hl.window_rule({
name = "nodim-youtube",
match = {
class = "^(firefox|Firefox)$",
title = "^(.*YouTube.*)$",
},
no_dim = true,
opaque = true,
})
-- Define windows that float
local standardFloatingWindows = {
{ class = "^(xdg-desktop-portal-gtk)$" },
{ class = "^(firefox)$", title = "^(.*Save.*)" },
}
-- For every window that floats make a rule
for _, window in ipairs(standardFloatingWindows) do
hl.window_rule({
name = "float file selector",
match = {
-- both are optional ig
class = window.class or "",
title = window.title or "",
},
float = true,
animation = "popin 70%",
size = { 800, 500 },
})
end
-- Don't dim fullscreen windows
hl.window_rule({
name = "nodim fullscreen",
match = {
fullscreen = true,
},
no_dim = true,
opaque = true,
})
hl.window_rule({
name = "jelly slide",
match = {
class = "^(jf-tui)$",
},
animation = "slide top",
})
-- Define gaps for music workspace
hl.workspace_rule({
workspace = "special:music",
gaps_out = {
left = 400,
right = 400,
bottom = 400,
},
animation = "slidefadevert",
})
-- Something from the example idk
hl.window_rule({
name = "move-hyprland-run",
match = { class = "hyprland-run" },
move = "20 monitor_h-120",
float = true,
})
-- Fix some dragging issues with XWayland
hl.window_rule({
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
no_focus = true,
})
-- Wlogout blur and stuff
hl.layer_rule({
name = "wlogout blur",
match = {
namespace = "logout_dialog",
},
blur = true,
})
-- Notifications
hl.layer_rule({
name = "notification blur",
match = {
namespace = "notifications",
},
blur = true,
ignore_alpha = 0,
})
-- Waybar blur
hl.layer_rule({
name = "waybar blur",
match = {
namespace = "waybar",
},
blur = true,
ignore_alpha = 0,
})

View File

View File

@@ -0,0 +1,10 @@
{
"workspace": {
"library": [
"/nix/store/k1jc5h9ls6j600hcpjciqn0s29whas63-hyprland-0.55.0+date=2026-05-11_5e441ca/share/hypr/stubs/hl.meta.lua"
]
},
"diagnostics": {
"globals": ["hl"]
}
}

View File

@@ -1 +1,74 @@
local beziers = {
-- Overshoot
{ name = "heavyOvershoot", points = { 0.53, 0.51, 0.4, 1.22 } },
{ name = "lightOvershoot", points = { 0.33, 0.61, 0.63, 1.19 } },
-- Linear
{ name = "smoothSnap", points = { 0.32, 0.51, 0.44, 1 } },
{ name = "smoothIn", points = { 0.25, 1, 0.5, 1 } },
{ name = "smoothOutOvershoot", points = { 0.46, -0.25, 0.81, 0.51 } },
-- Springs
{ name = "hardSpring", kind = "spring" },
{ name = "mediumSpring", kind = "spring", stiffness = 50, dampening = 10 },
{ name = "looseSpring", kind = "spring", dampening = 5, stiffness = 50 },
}
-- For every curve in the table (ik it says bezier stfu)
for _, bezier in ipairs(beziers) do
-- If there are points then its not a spring
if bezier.points then
hl.curve(bezier.name, {
type = "bezier",
points = { { bezier.points[1], bezier.points[2] }, { bezier.points[3], bezier.points[4] } },
})
-- If its a spring
elseif bezier.kind == "spring" then
hl.curve(bezier.name, {
type = "spring",
-- If all the parameters are empty make a spring with the values from the wiki
mass = bezier.mass or 1,
stiffness = bezier.stiffness or 70,
dampening = bezier.dampening or 10,
})
else
-- You fucked something up
hl.notification.create({ text = "invalid curve generated", icon = "warning", timeout = 8000 })
end
end
local animations = {
-- Window animations
{ leaf = "windows", speed = 2, spring = "mediumSpring", style = "slide right" },
{ leaf = "windowsOut", speed = 2, bezier = "heavyOvershoot", style = "popin 30%" },
-- Fade
{ leaf = "fade", speed = 2, bezier = "smoothIn" },
-- Workspaces and Special
{ leaf = "workspaces", speed = 2, bezier = "heavyOvershoot", style = "slidefade 20%" },
{ leaf = "specialWorkspace", speed = 5, spring = "mediumSpring", style = "slidefadevert -80%" },
}
-- For every entry in the animation table
for _, anim in ipairs(animations) do
-- If there is a bezier param
if anim.bezier then
hl.animation({
leaf = anim.leaf,
enabled = true,
speed = anim.speed,
bezier = anim.bezier or "",
style = anim.style or "",
})
elseif anim.spring then
-- Make a spring instead bcs apparently they're different idk
hl.animation({
leaf = anim.leaf,
enabled = true,
speed = anim.speed,
spring = anim.spring or "",
style = anim.style or "",
})
end
end

View File

@@ -1,24 +1,33 @@
hl.config({ hl.config({
input = { input = {
kb_layout = "gb", kb_layout = "gb", -- Goddamn kier starmer
follow_mouse = 1, follow_mouse = 1, -- Moving to a window will focus it
touchpad = { touchpad = {
natural_scroll = true, natural_scroll = true, -- Better scrolling
disable_while_typing = true, disable_while_typing = true, -- Sanity
}, },
sensitivity = -0.3, sensitivity = -0.3, -- DPI is too high ffs
force_no_accel = false, force_no_accel = false, -- I love mouse acceleration
tablet = { tablet = {
left_handed = true, left_handed = true, -- Top 10 disabilities
output = "current", output = "current", -- Make the tablet usable
}, },
}, },
cursor = { cursor = {
inactive_timeout = 2, inactive_timeout = 2, -- Hide white thing on the screen
warp_on_change_workspace = 1, hide_on_key_press = true, -- Hide white thing when typing
hide_on_key_press = true, warp_on_change_workspace = 1, -- Make it go to workspaces
warp_on_toggle_special = 1, warp_on_toggle_special = 1, -- Go to special workspaces too
persistent_warps = true, -- Go back to where it was when I warp
}, },
}) })
if Hostname == "mobile02" then
hl.config({
input = { -- If on laptop make caps the escape key but make it be capslock when shift caps is pressed
kb_options = "caps:escape_shifted_capslock",
},
})
end

View File

@@ -1,5 +1,8 @@
-- Import catppuccin colors
local ctp = require("modules.mocha") local ctp = require("modules.mocha")
hl.config({ hl.config({
-- gaps and colors
general = { general = {
gaps_in = 3, gaps_in = 3,
resize_on_border = true, resize_on_border = true,
@@ -17,6 +20,17 @@ hl.config({
}, },
}, },
}, },
-- Scrolling layout settings
scrolling = {
column_width = 0.8,
follow_min_visible = 0.1,
focus_fit_method = 1,
wrap_focus = false,
wrap_swapcol = false,
},
-- Window appearence
decoration = { decoration = {
rounding = 10, rounding = 10,
rounding_power = 2, rounding_power = 2,
@@ -34,4 +48,13 @@ hl.config({
vibrancy = 0.5, vibrancy = 0.5,
}, },
}, },
-- Remove irritants
ecosystem = {
no_update_news = true,
no_donation_nag = true,
},
}) })
hl.env("XCURSOR_SIZE", "20")
hl.env("HYPRCURSOR_SIZE", "20")

View File

@@ -1,15 +0,0 @@
local appList = {
"waybar",
"dunst",
"wpaperd -d",
"wayvnc 0.0.0.0 --output=DP-1",
"syncthing -home=/home/user01/.config/syncthing -no-browser",
"gotify-desktop",
"sleep 10 && curl -X POST -H 'Content-Type: application/json' -d '{'ref':'$(git -C ~/.dotfiles rev-parse HEAD)', 'status':'$(git -C ~/.dotfiles diff --quiet && echo 'clean' || echo 'dirty')'}' https://n8n.voidarc.co.uk/webhook/config-checker",
}
hl.on("hyprland.start", function()
for _, command in ipairs(appList) do
hl.exec_cmd(command)
end
end)

1
rewrite Submodule

Submodule rewrite added at c93ddf3818

93
style.conf Normal file
View File

@@ -0,0 +1,93 @@
# Environment
env = PATH,$PATH:$scrPath
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_QPA_PLATFORMTHEME,qt6ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = MOZ_ENABLE_WAYLAND,1
env = GDK_SCALE,1
# Misc
misc {
vrr = 0
animate_manual_resizes = true
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
}
xwayland {
force_zero_scaling = false
}
# Layout
dwindle {
# pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
permanent_direction_override = true
}
scrolling {
column_width = 0.8
follow_min_visible = 0.1
focus_fit_method = 1
}
# GTK shennanigans
exec = gsettings set org.gnome.desktop.interface icon-theme 'BeautyDream'
exec = gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Mocha'
exec = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
# Make things look nice
general {
gaps_in = 3
gaps_out = 5, 6, 6, 6
border_size = 3
col.active_border = rgba(ca9ee6cc) rgba(f38ba8cc) 45deg
col.inactive_border = rgba(45475aaa) rgba(b4befeaa) 45deg
layout = scrolling
resize_on_border = true
}
ecosystem {
no_update_news = true
no_donation_nag = true
}
group {
col.border_active = rgba(ca9ee6cc) rgba(f2d5cfcc) 45deg
col.border_inactive = rgba(bac2decc) rgba(bac2decc) 45deg
col.border_locked_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_locked_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
}
decoration {
rounding = 10
active_opacity = 1.0
inactive_opacity = 0.8
dim_inactive = true
dim_strength = 0.2
blur {
enabled = true
size = 2
passes = 3
vibrancy = 0.5
}
}
# Fonts and Cursors
exec = hyprctl setcursor Bibata-Modern-Ice 20
exec = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Ice'
exec = gsettings set org.gnome.desktop.interface cursor-size 20
exec = gsettings set org.gnome.desktop.interface font-name 'FiraMono Nerd Font'
exec = gsettings set org.gnome.desktop.interface document-font-name 'Cantarell 10'
exec = gsettings set org.gnome.desktop.interface monospace-font-name 'CaskaydiaCove Nerd Font Mono 9'
exec = gsettings set org.gnome.desktop.interface font-antialiasing 'rgba'
exec = gsettings set org.gnome.desktop.interface font-hinting 'full'
env XCURSOR_SIZE = 20