dots: public mirror (history reset after licence cleanup)

This commit is contained in:
Coja committed 2026-11-09 18:19:14 +01:00
commit 693822ad5f
226 files changed
+22502

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"diagnostics": {
"globals": ["hl", "hyde", "check_require"]
},
"workspace": {
"library": ["/usr/share/hypr/stubs", "~/.local/share/hypr/lua"]
},
"runtime": {
"version": "Lua 5.5"
}
}
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Battery readout for the hyprlock label. Prints nothing on machines without a
# battery (wm desktop), so the label just stays empty there.
for bat in /sys/class/power_supply/BAT*; do
[ -r "$bat/capacity" ] || continue
cap=$(<"$bat/capacity")
glyph="󰁹"
[ "$(cat "$bat/status" 2>/dev/null)" = "Charging" ] && glyph="󰂄"
printf '%s %s%%' "$glyph" "$cap"
exit 0
done
+263
View File
@@ -0,0 +1,263 @@
-- gui package — the dots keybinds, split out of ./hyprland.lua. Required there
-- after the app/start overrides (the launchers read hc.app.*) and before
-- ./host.lua.
local hc = hyde.config
local MOD = hc.modifiers.main
local home = os.getenv("HOME") or ""
-- ── Keybinds ─────────────────────────────────────────────────────────────────
-- Policy: preserve what the dots keybindings.conf did live until the port —
-- where a dots bind and a HyDE bind share a combo, the dots action wins and
-- the displaced HyDE action is noted. Binds identical in both are not
-- repeated here (volume/media/brightness, screenshots, Super+Q/W,
-- rofi menus, Super+L lock, Super+Shift+F pin, Super+S scratchpad family,
-- Super+Z/X + mouse drag/resize, Super+J togglesplit, Super+T/E/B via the
-- app.* overrides in hyprland.lua, Super+Alt+G gamemode, Ctrl+Shift+Esc
-- sysmon).
-- Removes every live bind on a combo regardless of flags. hl.bind's dedup only
-- replaces a bind whose flags match exactly; HyDE binds with locked/transparent/
-- repeating flags would otherwise stay live next to ours and double-fire.
local function unbind_all(combo)
-- _active/canonicalize are HyDE-private; if an update renames them, degrade
-- to "the displaced HyDE binds double-fire" instead of erroring here and
-- silently dropping every bind registered below this line.
if not (hyde.binds and hyde.binds._active and hyde.binds.canonicalize) then
return
end
local canon = hyde.binds.canonicalize(combo)
for id, registered in pairs(hyde.binds._active) do
if id:sub(1, #canon + 1) == canon .. "|" then
hl.unbind(registered)
hyde.binds._active[id] = nil
end
end
end
local _F
-- Launchers (dots-only combos, no conflict)
_F = { description = "[Launcher|Apps] work session (kitty c2)" }
hl.bind(MOD .. " + CTRL + I", hl.dsp.exec_cmd("kitty --session " .. home .. "/.config/kitty/c2.conf"), _F)
_F = { description = "[Launcher|Apps] work session (kitty runners)" }
hl.bind(MOD .. " + CTRL + O", hl.dsp.exec_cmd("kitty --session " .. home .. "/.config/kitty/runners.conf"), _F)
_F = { description = "[Launcher|Apps] pyradio (kitty music)" }
hl.bind(MOD .. " + R", hl.dsp.exec_cmd("kitty --session " .. home .. "/.config/kitty/music.conf"), _F)
_F = { description = "[Launcher|Apps] ferdium" }
hl.bind(MOD .. " + Y", hl.dsp.exec_cmd("ferdium"), _F)
_F = { description = "[Launcher|Apps] betterbird" }
hl.bind(MOD .. " + M", hl.dsp.exec_cmd("betterbird"), _F)
_F = { description = "[Launcher|Apps] freetube" }
hl.bind(MOD .. " + F", hl.dsp.exec_cmd("freetube"), _F)
_F = { description = "[Launcher|Apps] web browser (librewolf)" }
hl.bind(MOD .. " + SHIFT + B", hl.dsp.exec_cmd("librewolf"), _F)
_F = { description = "[Launcher|Apps] terminal emulator (st)" }
hl.bind(MOD .. " + CTRL + T", hl.dsp.exec_cmd("st"), _F)
_F = { description = "[Launcher|Apps] terminal emulator" }
hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd(hc.app.terminal), _F)
-- Rebound fresh so the hc.app.* overrides actually apply: HyDE's binds
-- evaluated _apps.browser/_apps.explorer when key_binds.lua ran, baking in the
-- hyde-shell open wrappers.
_F = { description = "[Launcher|Apps] web browser" }
hl.bind(MOD .. " + B", hl.dsp.exec_cmd("zen-browser"), _F)
_F = { description = "[Launcher|Apps] file explorer" }
hl.bind(MOD .. " + E", hl.dsp.exec_cmd("dolphin"), _F)
-- Conflict resolutions (dots action wins; displaced HyDE action noted)
_F = { description = "[Launcher|Apps] web browser (firefox)" } -- displaces HyDE: hide waybar
hl.bind(MOD .. " + CTRL + B", hl.dsp.exec_cmd("firefox"), _F)
_F = { description = "[Launcher|Apps] xmpp (gajim)" } -- displaces HyDE: toggle group (dots keeps it on Super+Shift+G)
hl.bind(MOD .. " + G", hl.dsp.exec_cmd("gajim"), _F)
_F = { description = "[Window Management] toggle group" } -- displaces HyDE: game launcher
hl.bind(MOD .. " + SHIFT + G", hl.dsp.group.toggle(), _F)
_F = { description = "[Launcher|Apps] terminal emulator (alacritty)" } -- displaces HyDE: theme select menu
hl.bind(MOD .. " + SHIFT + T", hl.dsp.exec_cmd("alacritty"), _F)
-- Through `wbar`, never killall: under supervision a killed waybar is back in
-- seconds, and a raw relaunch next to it means two bars.
_F = { description = "[Theming and Wallpaper] reload hyprland + waybar" } -- displaces HyDE: wallbash mode menu
hl.bind(MOD .. " + SHIFT + R", hl.dsp.exec_cmd("hyprctl reload; " .. home .. "/.local/bin/wbar restart"), _F)
_F = { description = "[Launcher|Apps] neovim" } -- displaces HyDE: code editor
hl.bind(MOD .. " + C", hl.dsp.exec_cmd("kitty nvim"), _F)
-- Super+K keepassxc — HyDE's keyboard-layout switch carries locked=true, so a
-- plain rebind would leave both live (flags are part of a bind's identity).
unbind_all(MOD .. " + K") -- displaces HyDE: keyboard layout switch (locked)
_F = { description = "[Launcher|Apps] password manager" }
hl.bind(MOD .. " + K", hl.dsp.exec_cmd("keepassxc"), _F)
-- Alt+Tab focus-down — HyDE ships a 4-bind alt-tab switcher (transparent/
-- release flags); remove the whole cluster, half a switcher is worse than none.
unbind_all("ALT + TAB") -- displaces HyDE: alt-tab switcher (cycle next)
unbind_all("ALT + SHIFT + TAB")
unbind_all("ALT + ALT_L")
unbind_all("ALT + ALT_R")
_F = { description = "[Window Management|Change focus] focus down" }
hl.bind("ALT + TAB", hl.dsp.focus({ direction = "down" }), _F)
-- Waybar toggle (custom layout; the legacy Ctrl+Alt+W). systemctl stop is a
-- deliberate stop, so Restart=always does not undo it.
_F = { description = "[Window Management] toggle waybar" }
hl.bind("CTRL + ALT + W", hl.dsp.exec_cmd(home .. "/.local/bin/wbar toggle"), _F)
-- Fullscreen on Alt+Return (Shift+F11 stays HyDE's cycle-fullscreen).
-- Native dispatcher, not exec "hyprctl dispatch fullscreen": in Lua mode that
-- CLI arg is evaluated as hl.dispatch(fullscreen) — a nil global, dead bind.
_F = { description = "[Window Management] toggle fullscreen" }
hl.bind("ALT + RETURN", hl.dsp.window.fullscreen(), _F)
-- No Super+Delete: HyDE's exit() ends the session on the spot, no confirm, and
-- the combo is one slipped finger from Super+Alt+Delete. Ctrl+Alt+Delete (the
-- logout menu) stays the way out.
unbind_all(MOD .. " + Delete") -- displaces HyDE: exit hyprland session
-- ── Focus (arrows + hjkl) ────────────────────────────────────────────────────
-- Super+Ctrl+Up/Down: movefocus — displaces HyDE: nearest-empty (Down), which
-- moves to Super+Ctrl+E below. Super+Ctrl+Left/Right move the window to r±1
-- (Workspaces below); r±1 nav is on Super+Left/Right and Super+Ctrl+Shift.
for dir, key in pairs({ left = "LEFT", right = "RIGHT", up = "UP", down = "DOWN" }) do
_F = { description = "[Window Management|Change focus] focus " .. dir }
if key == "UP" or key == "DOWN" then
hl.bind(MOD .. " + CTRL + " .. key, hl.dsp.focus({ direction = dir }), _F)
end
hl.bind("ALT + CTRL + " .. key, hl.dsp.focus({ direction = dir }), _F)
end
for dir, key in pairs({ left = "H", right = "L", up = "K", down = "J" }) do
_F = { description = "[Window Management|Change focus] focus " .. dir }
hl.bind("ALT + CTRL + " .. key, hl.dsp.focus({ direction = dir }), _F)
end
-- Super+Ctrl+H/L carried a deliberate double action in the hyprlang chain:
-- changegroupactive (a no-op outside a group) AND movefocus fired together.
-- Lua dedup would collapse the pair, so one function does both.
-- (Replaces HyDE's plain group-nav binds on the same combos.) Unlike the
-- arrows, they do not move the window to r±1 — that is Super+Ctrl+Alt+H/L.
_F = { description = "[Window Management|Change focus] group prev + focus left" }
hl.bind(MOD .. " + CTRL + H", function()
hl.dispatch(hl.dsp.group.prev())
hl.dispatch(hl.dsp.focus({ direction = "left" }))
end, _F)
_F = { description = "[Window Management|Change focus] group next + focus right" }
hl.bind(MOD .. " + CTRL + L", function()
hl.dispatch(hl.dsp.group.next())
hl.dispatch(hl.dsp.focus({ direction = "right" }))
end, _F)
_F = { description = "[Window Management|Change focus] focus up" }
hl.bind(MOD .. " + CTRL + K", hl.dsp.focus({ direction = "up" }), _F)
_F = { description = "[Window Management|Change focus] focus down" }
hl.bind(MOD .. " + CTRL + J", hl.dsp.focus({ direction = "down" }), _F)
-- ── Resize (add hjkl to HyDE's arrow set) ────────────────────────────────────
-- HyDE puts a flagless calculator menu on Super+Shift+K; our repeating resize
-- would double-fire next to it (flag mismatch), so drop the calculator.
unbind_all(MOD .. " + SHIFT + K") -- displaces HyDE: calculator menu
for _, m in ipairs({ { "L", 30, 0 }, { "H", -30, 0 }, { "K", 0, -30 }, { "J", 0, 30 } }) do
_F = { description = "[Window Management|Resize Active Window] resize window", repeating = true }
hl.bind(MOD .. " + SHIFT + " .. m[1], hl.dsp.window.resize({ x = m[2], y = m[3], relative = true }), _F)
end
-- ── Move active window (Super+Alt, float-aware: moveactive / swapwindow) ─────
-- Displaces HyDE: wallpaper next/prev (Alt+Right/Left) and waybar layout
-- next/prev (Alt+Up/Down); wallpaper moves to Super+Alt+Ctrl+Shift below,
-- as in the dots chain. HyDE's binds carry no flags but ours are repeating,
-- so an explicit unbind is needed to keep them from double-firing.
unbind_all(MOD .. " + ALT + RIGHT")
unbind_all(MOD .. " + ALT + LEFT")
unbind_all(MOD .. " + ALT + UP")
unbind_all(MOD .. " + ALT + DOWN")
local function dots_move_window(dir, pix)
local lut = { l = { -1, 0 }, r = { 1, 0 }, u = { 0, -1 }, d = { 0, 1 } }
local m = lut[dir]
return function()
local w = hl.get_active_window()
if w and w.floating then
hl.dispatch(hl.dsp.window.move({ x = m[1] * pix, y = m[2] * pix, relative = true }))
else
local names = { l = "left", r = "right", u = "up", d = "down" }
hl.dispatch(hl.dsp.window.swap({ direction = names[dir] }))
end
end
end
for _, m in ipairs({
{ "LEFT", "l" },
{ "RIGHT", "r" },
{ "UP", "u" },
{ "DOWN", "d" },
{ "H", "l" },
{ "L", "r" },
{ "K", "u" },
{ "J", "d" },
}) do
_F = { description = "[Window Management|Move active window] move " .. m[2], repeating = true }
hl.bind(MOD .. " + ALT + " .. m[1], dots_move_window(m[2], 30), _F)
end
-- ── Wallpaper (moved off Super+Alt by the dots chain) ────────────────────────
_F = { description = "[Theming and Wallpaper] next global wallpaper" }
hl.bind(MOD .. " + ALT + CTRL + SHIFT + RIGHT", hl.dsp.exec_cmd(hyde.sh.wallpaper("--next")), _F)
_F = { description = "[Theming and Wallpaper] previous global wallpaper" }
hl.bind(MOD .. " + ALT + CTRL + SHIFT + LEFT", hl.dsp.exec_cmd(hyde.sh.wallpaper("--prev")), _F)
-- ── Workspaces ───────────────────────────────────────────────────────────────
-- r~N = Nth workspace of the FOCUSED monitor — load-bearing on the 3-monitor
-- workspace sets (1-10 / 11-20 / 21-30 pinned per monitor in host.lua).
-- HyDE's own binds pass "r+1"/"empty" strings the same way; r~N is the one
-- thing to verify first in the live session.
for i = 1, 10 do
local key = (i == 10) and 0 or i
_F = { description = "[Workspaces|Navigation] navigate to workspace " .. i .. " (monitor-relative)" }
hl.bind(MOD .. " + " .. key, hl.dsp.focus({ workspace = "r~" .. i }), _F) -- displaces HyDE: absolute workspace N
_F = { description = "[Workspaces|Move window to workspace] move to workspace " .. i .. " (monitor-relative)" }
hl.bind(MOD .. " + CTRL + " .. key, hl.dsp.window.move({ workspace = "r~" .. i }), _F)
_F = { description = "[Workspaces|Move window silently] move to workspace " .. i .. " (monitor-relative)" }
hl.bind(MOD .. " + ALT + " .. key, hl.dsp.window.move({ workspace = "r~" .. i, follow = false }), _F) -- displaces HyDE: absolute silent move
end
-- Relative workspace nav on Super+Ctrl+Shift (dots), displacing HyDE's
-- move-window-in-workspace family there (repeating flags -> explicit unbind;
-- dots does window movement on Super+Alt instead).
unbind_all(MOD .. " + SHIFT + CTRL + LEFT")
unbind_all(MOD .. " + SHIFT + CTRL + RIGHT")
unbind_all(MOD .. " + SHIFT + CTRL + UP")
unbind_all(MOD .. " + SHIFT + CTRL + DOWN")
_F = { description = "[Workspaces|Navigation|Relative workspace] change active workspace forwards" }
hl.bind(MOD .. " + CTRL + SHIFT + RIGHT", hl.dsp.focus({ workspace = "r+1" }), _F)
hl.bind(MOD .. " + CTRL + SHIFT + L", hl.dsp.focus({ workspace = "r+1" }), _F)
_F = { description = "[Workspaces|Navigation|Relative workspace] change active workspace backwards" }
hl.bind(MOD .. " + CTRL + SHIFT + LEFT", hl.dsp.focus({ workspace = "r-1" }), _F)
hl.bind(MOD .. " + CTRL + SHIFT + H", hl.dsp.focus({ workspace = "r-1" }), _F)
_F = { description = "[Workspaces|Navigation|Relative workspace] change active workspace forwards" }
hl.bind(MOD .. " + RIGHT", hl.dsp.focus({ workspace = "r+1" }), _F)
_F = { description = "[Workspaces|Navigation|Relative workspace] change active workspace backwards" }
hl.bind(MOD .. " + LEFT", hl.dsp.focus({ workspace = "r-1" }), _F)
_F = { description = "[Workspaces|Move window to workspace|Relative workspace] move focused window to next workspace" }
hl.bind(MOD .. " + CTRL + RIGHT", hl.dsp.window.move({ workspace = "r+1" }), _F) -- displaces HyDE: workspace r+1
_F = {
description = "[Workspaces|Move window to workspace|Relative workspace] move focused window to previous workspace",
}
hl.bind(MOD .. " + CTRL + LEFT", hl.dsp.window.move({ workspace = "r-1" }), _F) -- displaces HyDE: workspace r-1
-- E for "empty" — Super+Ctrl+Down is taken by movefocus above
_F = { description = "[Workspaces|Navigation] navigate to the nearest empty workspace" }
hl.bind(MOD .. " + CTRL + E", hl.dsp.focus({ workspace = "empty" }), _F)
-- Move window to relative workspace: HyDE ships the arrow pair; add hjkl.
_F = { description = "[Workspaces|Move window to workspace|Relative workspace] move focused window to next workspace" }
hl.bind(MOD .. " + CTRL + ALT + L", hl.dsp.window.move({ workspace = "r+1" }), _F)
_F = {
description = "[Workspaces|Move window to workspace|Relative workspace] move focused window to previous workspace",
}
hl.bind(MOD .. " + CTRL + ALT + H", hl.dsp.window.move({ workspace = "r-1" }), _F)
-- ── Hardware controls ────────────────────────────────────────────────────────
-- HyDE binds bare F10/F11/F12 to mute / volume down / volume up (key_binds.lua,
-- locked + repeating -- a plain rebind would leave both live). That is a laptop
-- F-row assumption: the Cantor has no F-row, so F1-F12 only ever arrive from its
-- Vial layer 5 and have to reach applications instead of the mixer. The
-- XF86Audio* binds below them keep the media keys working, so nothing is lost,
-- and Shift+F11 (cycle fullscreen) canonicalizes separately and survives.
unbind_all("F10") -- displaces HyDE: un/mute output
unbind_all("F11") -- displaces HyDE: decrease volume
unbind_all("F12") -- displaces HyDE: increase volume
+122
View File
@@ -0,0 +1,122 @@
-- gui package — the dots layer + window rules, split out of ./hyprland.lua
-- (required there in their original position). Plain hl.* registrations;
-- nothing here depends on the rest of the layer.
-- ── Layer rules ──────────────────────────────────────────────────────────────
-- waybar blur ships upstream (layer_rules.lua), but its ignore_alpha uses the
-- boolean form (default threshold), which drops the blur on low-alpha regions
-- — the cavabar background is rgba(0,0,0,0.2) and went flat. The legacy chain
-- set the threshold to 0 (blur everything) on both bars; restore that exactly.
hl.layer_rule({
name = "dots_cavabar_blur",
match = { namespace = "cavabar" },
blur = true,
ignore_alpha = 0,
})
hl.layer_rule({
name = "dots_waybar_ignore_alpha",
match = { namespace = "waybar" },
ignore_alpha = 0,
})
-- ── Window rules ─────────────────────────────────────────────────────────────
-- Upstream's window_rules.lua consolidates most floats (dialogs, portals,
-- dolphin, nm-*, qt*ct, vlc, pavucontrol, …) and the PiP/modal handling.
-- Ported here: everything the repo's windowrules.conf had that upstream
-- dropped when it went global-opacity — per-app opacity, idle_inhibit,
-- jetbrains popups — plus the floats upstream does not cover.
-- idle_inhibit while fullscreen (media players, browsers)
hl.window_rule({
name = "dots_idle_inhibit_media",
match = { class = "^(.*celluloid.*)$|^(.*mpv.*)$|^(.*vlc.*)$|^(.*[Ss]potify.*)$" },
idle_inhibit = "fullscreen",
})
hl.window_rule({
name = "dots_idle_inhibit_browsers",
match = {
class = "^(.*LibreWolf.*)$|^(.*floorp.*)$|^(.*brave-browser.*)$|^(.*firefox.*)$|^(.*chromium.*)$|^(.*zen.*)$|^(.*vivaldi.*)$",
},
idle_inhibit = "fullscreen",
})
-- per-app opacity ("active inactive fullscreen", hyprlang-style value string --
-- the Lua rule's opacity field is string-typed and takes the whole triple)
hl.window_rule({
name = "dots_opacity_browsers",
match = { class = "^(firefox)$|^(zen)$|^(brave-browser)$" },
opacity = "0.90 0.90 1",
})
hl.window_rule({
name = "dots_opacity_editors_terms",
match = {
class = "^(code-oss)$|^([Cc]ode)$|^(code-url-handler)$|^(code-insiders-url-handler)$|^(kitty)$|^(org.kde.dolphin)$|^(org.kde.ark)$|^(nwg-look)$|^(qt5ct)$|^(qt6ct)$|^(kvantummanager)$",
},
opacity = "0.80 0.80 1",
})
hl.window_rule({
name = "dots_opacity_applets",
match = {
class = "^(org.pulseaudio.pavucontrol)$|^(blueman-manager)$|^(nm-applet)$|^(nm-connection-editor)$|^(hyprpolkitagent)$|^(org.freedesktop.impl.portal.desktop.gtk)$|^(org.freedesktop.impl.portal.desktop.hyprland)$",
},
opacity = "0.80 0.70 1",
})
hl.window_rule({
name = "dots_opacity_spotify_class",
match = { class = "^([Ss]potify)$" },
opacity = "0.70 0.70 1",
})
hl.window_rule({
name = "dots_opacity_spotify_title",
match = { initial_title = "^(Spotify Free)$|^(Spotify Premium)$" },
opacity = "0.70 0.70 1",
})
hl.window_rule({
name = "dots_opacity_blender",
match = { class = "^(blender)$" },
opacity = "1.00 1.00 1",
})
hl.window_rule({
name = "dots_opacity_gtk_apps",
match = { class = "^(com.github.rafostar.Clapper)$" },
opacity = "0.90 0.90",
})
hl.window_rule({
name = "dots_opacity_misc_apps",
match = {
class = "^(com.github.tchx84.Flatseal)$|^(hu.kramo.Cartridges)$|^(com.obsproject.Studio)$|^(gnome-boxes)$|^(vesktop)$|^(discord)$|^(WebCord)$|^(ArmCord)$|^(app.drey.Warp)$|^(net.davidotek.pupgui2)$|^(yad)$|^(Signal)$|^(io.github.alainm23.planify)$|^(io.gitlab.theevilskeleton.Upscaler)$|^(com.github.unrud.VideoDownloader)$|^(io.gitlab.adhami3310.Impression)$|^(io.missioncenter.MissionCenter)$|^(io.github.flattool.Warehouse)$",
},
opacity = "0.80 0.80",
})
-- floats upstream's consolidated list does not cover
hl.window_rule({
name = "dots_float_class",
match = {
class = "^(Signal)$|^(com.github.rafostar.Clapper)$|^(app.drey.Warp)$|^(net.davidotek.pupgui2)$|^(yad)$|^(eog)$|^(io.github.alainm23.planify)$|^(io.gitlab.theevilskeleton.Upscaler)$|^(com.github.unrud.VideoDownloader)$|^(io.gitlab.adhami3310.Impression)$|^(io.missioncenter.MissionCenter)$",
},
float = true,
})
hl.window_rule({
name = "dots_float_title",
match = { title = "^(About Mozilla Firefox)$|^(Ghidra: NO ACTIVE PROJECT.*)$" },
float = true,
})
hl.window_rule({
name = "dots_float_kitty_monitors",
match = { class = "^(kitty)$", title = "^(top)$|^(btop)$|^(htop)$" },
float = true,
})
hl.window_rule({
name = "dots_blender_image_editor",
match = { class = "^(blender)$", initial_title = "^(Image Editor)$" },
float = true,
size = "(monitor_w*0.5) (monitor_h*0.5)",
})
-- jetbrains dropdowns/popups flicker workaround
hl.window_rule({
name = "dots_jetbrains_popups",
match = { class = "^(.*jetbrains.*)$", title = "^(win[0-9]+)$" },
no_initial_focus = true,
})
+61
View File
@@ -0,0 +1,61 @@
#!   ░▒▒▒░░░▓▓          ___________
#! ░░▒▒▒░░░░░▓▓        //___________/
#! ░░▒▒▒░░░░░▓▓     _   _ _    _ _____
#! ░░▒▒░░░░░▓▓▓▓▓▓ | | | | |  | |  __/
#! ░▒▒░░░░▓▓   ▓▓ | |_| | |_/ /| |___
#!  ░▒▒░░▓▓   ▓▓   \__  |____/ |____/
#!    ░▒▓▓   ▓▓  //____/
# $LOCKSCREEN = hyprlock # preferred LOCKSCREEN e.g swaylock
# Absolute path required: the Lua chain starts hypridle as a systemd user unit
# (hyde-Hyprland-idle.service), and on the SDDM/fish session path the session PATH
# never reaches the user manager (start_up.lua's unconditional `uwsm finalize` runs
# but errors outside a uwsm session, so the import never happens) — a bare
# `lockscreen.sh` is "command not found" there — Super+L, the 240s idle lock and
# before_sleep all silently no-op. The script self-bootstraps its own env
# (hyde-shell init), so the full path alone is sufficient.
$LOCKSCREEN = ~/.local/lib/hyde/lockscreen.sh
general {
lock_cmd = $LOCKSCREEN
unlock_cmd = #notify-send "unlock!" # same as above, but unlock
before_sleep_cmd = $LOCKSCREEN # command ran before sleep
after_sleep_cmd = # notify-send "Awake!" # command ran after sleep
ignore_dbus_inhibit = 0
}
# Dims the display
listener {
timeout = 120
on-timeout = { brightnessctl -s && brightnessctl s 1% ;}
on-resume = brightnessctl -r
}
# Lock it first before dpms off so that screen won't show for a moment after wake up.
listener {
timeout = 240
on-timeout = $LOCKSCREEN
}
# DPMS off
# Lua-chain form: in Lua mode `hyprctl dispatch` evaluates its argument as Lua, so the hyprlang
# `dpms off` is a syntax error and this listener silently never ran. The table form is the one
# hypridle's own sample uses (/usr/share/hypr/hypridle.conf); a bare bool/string argument acts
# like a toggle — `hl.dsp.dpms("on")` turned the display OFF. main (hyprlang) keeps `dpms off/on`.
listener {
timeout = 2300
on-timeout = hyprctl dispatch 'hl.dsp.dpms({action = "off"})' #do not turn off display while media is playing
on-resume = hyprctl dispatch 'hl.dsp.dpms({action = "on"})'
}
# Suspend
# listener {
# timeout = 500
# on-timeout = systemctl suspend
# }
# hyprlang noerror true
# Source anything from this path if you want to add your own listener
# source command actually do not exist yet
source = ~/.config/hypridle/*
# hyprlang noerror false
+128
View File
@@ -0,0 +1,128 @@
-- gui package — the dots Hyprland layer, ported from the hyprlang chain
-- (hyde.conf / userprefs.conf / keybindings.conf / windowrules.conf) to
-- HyDE 26.x's Lua config. Loaded by ~/.local/share/hypr/hyde.lua second-to-last
-- (after every HyDE module, before lua_state.workflows), so plain assignments
-- here override HyDE's defaults. HyDE never overwrites this file.
--
-- The rules and keybinds sections live in ./dots_rules.lua and
-- ./dots_binds.lua, required in place below. Host-specific config (monitors,
-- workspace pins, gaps/rounding, gpu extras) lives in ./host.lua, loaded at
-- the bottom — same layering the hyprlang chain had with
-- `source = ./host.conf`.
-- Bootstrap: Hyprland prefers hyprland.lua as the entry point when started
-- without a config; without this block that path yields a bare cursor. hyde.lua
-- sets `hyde` on its first line, so this runs only when HyDE has not loaded.
-- The `return` matters: dofile(hyde.lua) re-enters this file through
-- check_require("hyprland"), so by the time dofile returns the body below has
-- already run once — falling through would register everything twice.
if not hyde then
local share = os.getenv("XDG_DATA_HOME") or (os.getenv("HOME") .. "/.local/share")
local entry = share .. "/hypr/hyde.lua"
local handle = io.open(entry, "r")
if not handle then
error(
"HyDE is not installed at " .. entry .. ". Run HyDE's install.sh -r, or point Hyprland at your own config."
)
end
handle:close()
dofile(entry)
return
end
local hc = hyde.config
local home = os.getenv("HOME") or ""
-- ── Apps ─────────────────────────────────────────────────────────────────────
-- Named directly (not hyde-shell open --fall …) for the same reason hyde.conf
-- did: skip the wrapper, match the xdg defaults. The assignments cover lazy
-- readers of hc.app.*, but key_binds.lua already baked the defaults into its
-- Super+B/E dispatchers at bind time — hence the explicit rebinds in
-- dots_binds.lua.
hc.app.browser = "zen-browser"
hc.app.explorer = "dolphin"
-- ── Startup ──────────────────────────────────────────────────────────────────
-- One knob suppresses HyDE's plain waybar AND launches the cava rig (was
-- $start.BAR= + a userprefs exec-once). start_up.lua captures hc.start by
-- reference and the hyprland.start event fires after this file loads, so the
-- override lands in time. `wbar` (gui/.local/bin) runs the rig as the
-- dots-waybar.service transient unit with Restart=always: waybar 0.15.0 dies on
-- every DP-2 link drop/return, and as a plain scope nothing relaunched it.
-- Absolute path: the exec env's PATH is not guaranteed to hold ~/.local/bin.
hc.start.bar = home .. "/.local/bin/wbar start"
-- Not part of the legacy session — the Lua defaults would newly launch these
-- (both binaries are installed). hyprsunset would visibly tint the screen.
-- Delete a line to adopt the HyDE default.
hc.start.blue_light_filter_daemon = ""
hc.start.clipboard_persist = ""
-- nm-applet --indicator is already the Lua default (kept deliberately: the
-- tray icon is the one place with a quick connect/disconnect menu).
-- ── UI / icon theme ──────────────────────────────────────────────────────────
-- dots-icons = repo-tracked overlay theme (gui/.local/share/icons/dots-icons)
-- that inherits Tela-circle-dracula and swaps the tray/status icons for the
-- monochrome panel set — without it, waybar on a fractionally-scaled monitor
-- gets the colored-circle variants (the blue nm-applet blob).
hc.ui.icon_theme = "dots-icons"
-- The theme-switch pipeline regenerates lua_state/ui.lua from the theme's
-- hypr.theme and writes THAT to dconf (color/hypr.sh -> color/dconf.lua), so
-- the assignment above is not enough on its own. Top-level code re-runs on
-- every `hyprctl reload`, and both theme-switch paths end in a reload, so this
-- write lands last — the Lua-mode equivalent of the legacy $exec.dConf.
-- Upstream-sanctioned alternative if this ever races: add
-- [hyprland]\n icon_theme = "dots-icons"
-- to ~/.config/hyde/config.toml (state/hyde/hyprland.conf then overrides the
-- theme vars in theme.switch.sh:151).
hl.exec_cmd([[dconf write /org/gnome/desktop/interface/icon-theme "'dots-icons'"]])
-- ── Env (was userprefs.conf) ─────────────────────────────────────────────────
hl.env("SSH_AUTH_SOCK", (os.getenv("XDG_RUNTIME_DIR") or "") .. "/ssh-agent.socket")
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "x11") -- disable after hyprland fixes electron flickering
-- ── Layer + window rules (dots_rules.lua) ────────────────────────────────────
-- Plain require, not check_require: stow --no-folding links new files one by
-- one, so a host that pulled without re-running install.sh fails loudly in
-- `hyprctl configerrors` instead of booting silently without its rules/binds.
-- The dots_ prefix matters: hyde.lua searches HyDE's own lua/ before
-- ~/.config/hypr, so a bare window_rules / key_binds would load HyDE's module.
require("dots_rules")
-- ── Animations ───────────────────────────────────────────────────────────────
-- The legacy chain ran $ANIMATION=theme — the hyprdots set from the theme's
-- animations.dcol. The Lua chain cannot inherit it: hyq's hyprland-lua.json
-- schema dumps decoration/borders into lua_state/hypr_theme.lua but NOT the
-- animations block (LUA-PORT.md risk 6, confirmed live), so without this the
-- session falls back to Hyprland's slower built-in defaults. Ported verbatim
-- from the generated ~/.config/hypr/animations/theme.conf.
-- Conditional so `hyde-shell animations --select` still works: a selector-
-- chosen lua_state/animations.lua loads earlier (dynamic.lua) and this block
-- steps aside for it.
local anim_state = (os.getenv("XDG_STATE_HOME") or home .. "/.local/state") .. "/hyde/lua_state/animations.lua"
local anim_f = io.open(anim_state, "r")
if anim_f then
anim_f:close()
else
hl.curve("wind", { type = "bezier", points = { { 0.05, 0.9 }, { 0.1, 1.05 } } })
hl.curve("winIn", { type = "bezier", points = { { 0.1, 1.1 }, { 0.1, 1.1 } } })
hl.curve("winOut", { type = "bezier", points = { { 0.3, -0.3 }, { 0, 1 } } })
hl.curve("liner", { type = "bezier", points = { { 1, 1 }, { 1, 1 } } })
hl.animation({ leaf = "windows", enabled = true, speed = 6, bezier = "wind", style = "slide" })
hl.animation({ leaf = "windowsIn", enabled = true, speed = 6, bezier = "winIn", style = "slide" })
hl.animation({ leaf = "windowsOut", enabled = true, speed = 5, bezier = "winOut", style = "slide" })
hl.animation({ leaf = "windowsMove", enabled = true, speed = 5, bezier = "wind", style = "slide" })
hl.animation({ leaf = "border", enabled = true, speed = 1, bezier = "liner" })
hl.animation({ leaf = "borderangle", enabled = true, speed = 30, bezier = "liner", style = "once" })
hl.animation({ leaf = "fade", enabled = true, speed = 10, bezier = "default" })
hl.animation({ leaf = "workspaces", enabled = true, speed = 5, bezier = "wind" })
end
-- ── Keybinds (dots_binds.lua) ────────────────────────────────────────────────
-- After the hc.app.* overrides above: the launcher binds read them.
require("dots_binds")
-- ── Host layer ───────────────────────────────────────────────────────────────
-- Resolves via hyde.lua's package.path (~/.config/hypr/?.lua); each host
-- overlay stows its own host.lua (wm/, lw/). check_require is HyDE's
-- missing-tolerant require — a host without one just skips it.
check_require("host")
+9
View File
@@ -0,0 +1,9 @@
# Default (empty) per-host hyprlock sizes — fallback shared by all GUI hosts.
# The real one comes from the per-host overlay (see lw/.config/hypr/hyprlock-host.conf).
# Present so `source = ~/.config/hypr/hyprlock-host.conf` in hyprlock.conf always resolves,
# even mid-install before the host overlay is stowed. A missing `source` target is a hard
# parse error in hyprlang — for hyprlock that means the lock screen itself fails, so this
# file must never be deleted.
#
# gui's defaults are tuned for wm (3072x1728 logical). To override, redefine any of:
# $fsClock $fsDate $fsMeta $fsSmall $fsIcon $logoSize
+195
View File
@@ -0,0 +1,195 @@
#! █░█ █▄█ █▀█ █▀█ █░░ █▀█ █▀▀ █▄▀
#! █▀█ ░█░ █▀▀ █▀▄ █▄▄ █▄█ █▄▄ █░█
#* Hyprlock Configuration File
# Everything is anchored to the CENTRE (only the two bottom-corner labels use valign), in this
# order top to bottom: uptime, greeting, logo, input field, clock, date. The offsets spread the
# content out to the top and bottom edges. Centre-anchoring is deliberate: an earlier pass used
# TOP/BOTTOM valign bands and silently reordered the clock and date, putting the date above the
# clock and the clock half off the bottom edge — don't reintroduce that.
# Every `position` and `size` is a percentage (hyprlock accepts them: both are LAYOUTCONFIG
# values), so the arrangement scales instead of being the fixed pixel offsets it once was.
# The percentages are the old pixel offsets expressed against a 1080-tall screen.
#
# `font_size` and `image:size` are plain ints in hyprlock 0.9.6 and cannot take a
# percentage, so they can't scale on their own. They're hoisted into the variables below:
# retune those few numbers for a very different screen (they are tuned for wm, 3072x1728 logical),
# or `source` a per-host file that redefines them, as kitty.conf does with host.conf.
#
# Coordinates: +x is right, +y is UP — so centre-anchored, a positive y sits above centre.
# (For the two bottom-corner labels, valign = bottom means positive y moves up from it.)
$fontColor = rgba(255,255,255,0.5)
$fontFamily = SourceCodeVF ExtraBold
$timeFontFamily = Cantarell ExtraBold
# Type scale — tuned for wm's 3072x1728 logical screen (this file is shared with lw —
# see ToDo.md). Since these can't be
# percentages, they are the one thing to retune on a very different display: they are
# roughly clock 13%, date 2.5%, meta 1.5% of screen height.
$fsClock = 220
$fsDate = 44
$fsMeta = 26
$fsSmall = 24
$fsIcon = 40
$logoSize = 280
# Vertical positions — % of screen height from centre, + is up. Order top to bottom: uptime,
# greet, logo, input, clock, date. Deliberately pushed OUT to the edges: uptime/greet ride near
# the top, clock/date near the bottom, leaving logo + input as the only things near the middle.
# Anchored to centre rather than valign top/bottom on purpose — an earlier pass used bands and
# silently reordered the clock and date (see the header). Percentages scale, and because each
# host's font sizes are set to the same *proportion* of its screen (clock ~12.8% of height on
# both), one set of offsets gives both hosts the same layout — hence no per-host override here
# by default. Add $y* to hyprlock-host.conf if a host ever needs to differ.
$yUptime = 45%
$yGreet = 41%
$yLogo = 12%
$yInput = -5%
$yClock = -30%
$yDate = -42%
# Per-host override for the six sizes above. They are ints, not percentages, so they are the
# one thing that cannot scale itself — a host with a different panel redefines whichever it
# needs here, and everything below picks up the new value (hyprlang expands in file order).
# Shipped empty in gui/ so this always resolves even mid-install, before a host overlay is
# stowed — same idiom, and same reason, as hypr/host.conf.
source = ~/.config/hypr/hyprlock-host.conf
general {
ignore_empty_input = true
text_trim = true
}
# Dropped as of hyprlock 0.9.6 — it rejected all four as "config option does not exist"
# and carried on without them, so they never took effect:
# no_fade_in / fade_in_time -> fade-in is CLI-only now: lockscreen.sh --no-fade-in
# grade, disable_loading_bar -> no equivalent
background {
monitor =
path = ~/.config/hypr/hyprlock/assets/background.jpg
# Heavier blur than you'd expect: the wallpaper has "open source" set across its
# middle, which otherwise reads as text competing with the clock sitting on top of it.
blur_passes = 3
blur_size = 6
contrast = 0.7
brightness = 0.38
vibrancy = 0.15
vibrancy_darkness = 0.5
}
# // ▀█▀ █▀█ █▀█
# // ░█░ █▄█ █▀▀
# uptime
label {
monitor =
text = cmd[update:5000] echo "<span alpha='40%'>$(uptime -p)</span>"
color = $fontColor
font_family = $fontFamily
font_size = $fsMeta
position = 0, $yUptime
halign = center
valign = center
}
# greeting / weather
label {
monitor =
text = cmd[update:300000] echo "<span alpha='50%'>$(cat ~/.config/fish/greet.txt)</span>"
color = $fontColor
font_family = $fontFamily
font_size = $fsSmall
position = 0, $yGreet
halign = center
valign = center
}
# // █▀▄▀█ █ █▀▄ █▀▄ █░░ █▀▀
# // █░▀░█ █ █▄▀ █▄▀ █▄▄ ██▄
image {
monitor =
path = ~/.config/hypr/hyprlock/assets/logo.jpg
size = $logoSize
position = 0, $yLogo
halign = center
valign = center
reload_time = -1
reload_cmd =
}
input-field {
monitor =
size = 20%, 5%
position = 0, $yInput
halign = center
valign = center
outline_thickness = 3
dots_size = 0.08
dots_spacing = 0.2
dots_center = true
outer_color = rgba(0,0,0,0.1)
inner_color = $fontColor
fade_on_empty = true
}
# // █▄▄ █▀█ ▀█▀ ▀█▀ █▀█ █▀▄▀█
# // █▄█ █▄█ ░█░ ░█░ █▄█ █░▀░█
# date — sits BELOW the clock (-28% vs the clock's -17%), as it did before the band rewrite.
label {
monitor =
text = cmd[update:1000] echo "<span alpha='50%'>$(LC_TIME=en_US.UTF-8 date +'%A, %B %d')</span>"
color = $fontColor
font_family = $fontFamily
font_size = $fsDate
position = 0, $yDate
halign = center
valign = center
}
# clock — 17% below centre, directly under the input field, with the date below it. Centre-
# anchored, so y is the box's CENTRE and the glyphs grow both ways from it; budget for that
# when changing $fsClock, which is by far the tallest text here.
label {
monitor =
text = cmd[update:1000] echo "<span alpha='50%'>$(date +"%H:%M")</span>"
color = $fontColor
font_family = $timeFontFamily
font_size = $fsClock
position = 0, $yClock
halign = center
valign = center
shadow_passes = 1
shadow_size = 1
shadow_color = rgba(0, 0, 0, 0.5)
}
# power
label {
monitor =
text = cmd[] echo "<span alpha='50%'>⏻ </span>"
color = $fontColor
font_size = $fsIcon
onclick = systemctl poweroff
position = 3%, 3%
halign = left
valign = bottom
}
# battery (prints nothing on a desktop)
label {
monitor =
text = cmd[update:1000] echo -e "<span alpha='50%'>$(~/.config/hypr/battery.sh)</span>"
color = $fontColor
font_family = $fontFamily
font_size = $fsSmall
position = -3%, 3%
halign = right
valign = bottom
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB