From 99c0cc2f613fcb89038d0b089a5fed92796df25b Mon Sep 17 00:00:00 2001 From: lullu Date: Sun, 1 Nov 2026 13:49:47 +0100 Subject: [PATCH] initial collect from laptop --- collect.sh | 0 config/hypr/hyprland.lua | 77 +++++++++++++++++++++++++++++++++++- config/kitty/kitty.conf | 21 +++++++++- config/waybar/user-style.css | 2 +- 4 files changed, 97 insertions(+), 3 deletions(-) mode change 100644 => 100755 collect.sh diff --git a/collect.sh b/collect.sh old mode 100644 new mode 100755 diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua index c48901c..4e52ab5 100644 --- a/config/hypr/hyprland.lua +++ b/config/hypr/hyprland.lua @@ -1 +1,76 @@ --- Placeholder: run ./collect.sh on a machine with the real file to fill this in. +-- Hyprland loads this file when it is started without a config, and it prefers +-- it over hyprland.conf. HyDE loads it too, last, as the override layer below. +-- The block keeps the two apart: hyde.lua sets `hyde` on its first line, so it +-- runs only when this file is the entry point and HyDE has not been loaded. +-- Removing it leaves a session with a cursor and nothing else. +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 install.sh -r, or point Hyprland at your own config.") + end + handle:close() + dofile(entry) +end + +-- Your Hyprland configuration. HyDE never overwrites this file. +-- +-- It loads after HyDE's own binds, so settings here take precedence. Replacing +-- a bind needs more than that: see below. HyDE's defaults live in +-- ~/.local/share/hypr/lua/ and are overwritten on every update, so edits there +-- do not survive. +-- +-- Adding a keybind: +-- +-- hl.bind("SUPER + SPACE", hl.dsp.exec_cmd(hyde.sh.gamelauncher()), { +-- description = "[Utilities] game launcher", +-- }) +-- +-- Replacing one of HyDE's: bind the same combination again and yours takes +-- over, but copy its flags across as well. A bind counts as the same one only +-- when its flags match, and `description` is not a flag — miss one and both +-- binds stay live on that combination. Copy the whole options table from +-- ~/.local/share/hypr/lua/key_binds.lua and change only what you need: +-- +-- hl.bind("F9", hl.dsp.exec_cmd(hyde.sh.volumecontrol("-o", "m")), { +-- locked = true, +-- description = "[Hardware Controls|Audio] un/mute output", +-- }) +-- +-- Press SUPER + / to see what is actually loaded, your own binds included. +-- The full reference is KEYBINDINGS.md in the HyDE repository. +-- +-- Other Lua files next to this one can be pulled in with require("name"). + +-- Custom config + +-- DK layout +hl.config({ + input = { + kb_layout = "dk", + }, +}) + +-- Switch workspace left/right +hl.bind("CONTROL + ALT + Right", hl.dsp.focus({ workspace = "r+1" }), { + description = "[Workspaces] next workspace", +}) +hl.bind("CONTROL + ALT + Left", hl.dsp.focus({ workspace = "r-1" }), { + description = "[Workspaces] previous workspace", +}) + +-- Move focused window to workspace left/right +hl.bind("SUPER + CONTROL + ALT + Right", hl.dsp.window.move({ workspace = "r+1" }), { + description = "[Workspaces] move window to next workspace", +}) +hl.bind("SUPER + CONTROL + ALT + Left", hl.dsp.window.move({ workspace = "r-1" }), { + description = "[Workspaces] move window to previous workspace", +}) + +-- Terminal on SUPER + Return +hl.bind("SUPER + Return", hl.dsp.exec_cmd("kitty"), { + description = "[Launcher|Apps] terminal emulator", +}) + + diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index 0a1a35f..f3faf44 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -1 +1,20 @@ -# Placeholder: run ./collect.sh on a machine with the real file to fill this in. +include hyde.conf + +# Minimal Tab bar styling +tab_bar_edge bottom +tab_bar_style powerline +tab_powerline_style slanted +tab_title_template {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''} + +# user conf +font_size 12.0 +window_padding_width 10 + +# remap to open new kitty tab in the same directory (default is home dir) +# map ctrl+shift+t new_tab_with_cwd + +# Uncomment the following 4 lines to minimize kitty latency (higher energy usage) +# input_delay 0 +# repaint_delay 2 +# sync_to_monitor no +# wayland_enable_ime no diff --git a/config/waybar/user-style.css b/config/waybar/user-style.css index b7e392a..953985d 100644 --- a/config/waybar/user-style.css +++ b/config/waybar/user-style.css @@ -1 +1 @@ -/* Placeholder: run ./collect.sh on a machine with the real file to fill this in. */ +/* User custom styles */