From 94efaa6d56cdb10b73014b3247781be0150c5fee Mon Sep 17 00:00:00 2001 From: Koda YeenBean Date: Sat, 23 May 2026 17:12:20 +0200 Subject: [PATCH] init --- env.lua | 3 ++ execs.lua | 3 ++ general.lua | 27 ++++++++++++++ keybinds.lua | 54 ++++++++++++++++++++++++++++ rules.lua | 3 ++ scripts/__restore_video_wallpaper.sh | 2 ++ variables.lua | 5 +++ 7 files changed, 97 insertions(+) create mode 100644 env.lua create mode 100644 execs.lua create mode 100644 general.lua create mode 100644 keybinds.lua create mode 100644 rules.lua create mode 100644 scripts/__restore_video_wallpaper.sh create mode 100644 variables.lua diff --git a/env.lua b/env.lua new file mode 100644 index 0000000..4faf63e --- /dev/null +++ b/env.lua @@ -0,0 +1,3 @@ +-- This file will not be overwritten across dots-hyprland updates. +-- The file name is for the sake of organization and does not matter +-- See the corresponding files in ~/.config/hypr/hyprland for examples diff --git a/execs.lua b/execs.lua new file mode 100644 index 0000000..4faf63e --- /dev/null +++ b/execs.lua @@ -0,0 +1,3 @@ +-- This file will not be overwritten across dots-hyprland updates. +-- The file name is for the sake of organization and does not matter +-- See the corresponding files in ~/.config/hypr/hyprland for examples diff --git a/general.lua b/general.lua new file mode 100644 index 0000000..c14fed9 --- /dev/null +++ b/general.lua @@ -0,0 +1,27 @@ +-- This file will not be overwritten across dots-hyprland updates. +-- The file name is for the sake of organization and does not matter +-- See the corresponding files in ~/.config/hypr/hyprland for examples +if is_file_exists(HOME .. "/.config/hypr/monitors.lua") then + require("monitors") +end + +hl.config({ + input = { + kb_layout = "de", + numlock_by_default = true, + repeat_delay = 250, + repeat_rate = 35, + + follow_mouse = 1, + off_window_axis_events = 2, + + accel_profile = "flat", + + touchpad = { + natural_scroll = true, + disable_while_typing = true, + clickfinger_behavior = true, + scroll_factor = 0.5 + } + } +}) diff --git a/keybinds.lua b/keybinds.lua new file mode 100644 index 0000000..ddb45c4 --- /dev/null +++ b/keybinds.lua @@ -0,0 +1,54 @@ +-- This file will not be overwritten across dots-hyprland updates. +-- The file name is for the sake of organization and does not matter +-- See the corresponding files in ~/.config/hypr/hyprland for examples +hl.unbind("Super + Slash") +hl.bind("SUPER + Space", hl.dsp.global("quickshell:cheatsheetToggle"), { description = "Shell: Toggle cheatsheet" }) + +hl.unbind("Super + mouse:272") +hl.unbind("Super + mouse:273") +hl.unbind("Super + mouse:274") + +hl.bind("ALT + mouse:272", hl.dsp.window.drag(), { mouse = true, description = "Window: Move" }) +hl.bind("ALT + mouse:273", hl.dsp.window.resize(), { mouse = true, description = "Window: Resize" }) +hl.bind("ALT + mouse:274", hl.dsp.window.drag(), { mouse = true }) + +for i = 1, 4 do + local arrowkey = { "Left", "Right", "Up", "Down" } + local focusdir = { "l", "r", "u", "d" } + hl.unbind("SUPER + " .. arrowkey[i]) + hl.unbind("SUPER + SHIFT + " .. arrowkey[i]) + hl.bind("SUPER + SHIFT + " .. arrowkey[i], hl.dsp.focus({ direction = focusdir[i] }), + { description = "Window: Focus " .. arrowkey[i] }) + hl.bind("SUPER + " .. arrowkey[i], hl.dsp.window.move({ direction = focusdir[i] }), + { description = "Window: Move " .. arrowkey[i] }) +end + +hl.unbind("Super + Q") +hl.unbind("ALT + F4") +hl.bind("ALT + F4", hl.dsp.window.close(), { description = "Window: Close" }) + +for i = 1, 10 do + hl.unbind("SUPER + ALT + code:" .. i + 9) + hl.unbind("SUPER + ALT + code:" .. i + 86) + hl.bind("SUPER + code:" .. i + 9, function() + hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = false })) + end) + hl.bind("SUPER + code:" .. i + 86, function() + hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = false })) + end) +end + +for i = 1, 2 do + local keydirs = { "Up", "Down" } + local prefix = { "r-", "r+" } + local descdir = { "left", "right" } + hl.unbind("SUPER + SHIFT + Page_" .. keydirs[i]) + hl.bind("SUPER + Page_" .. keydirs[i], hl.dsp.window.move({ workspace = prefix[i] .. "1" }), {description = "Window: Send to workspace " .. descdir[i]}) +end + +hl.unbind("Super + W") +hl.unbind("Super + C") +hl.unbind("Super + X") +hl.bind("SUPER + X", hl.dsp.exec_cmd(codeEditor), { description = "App: Code editor" }) +hl.bind("SUPER + C", hl.dsp.exec_cmd(codeEditor), { description = "App: Code editor" }) +hl.bind("SUPER + W", hl.dsp.exec_cmd(browser), { description = "App: Browser" }) \ No newline at end of file diff --git a/rules.lua b/rules.lua new file mode 100644 index 0000000..4faf63e --- /dev/null +++ b/rules.lua @@ -0,0 +1,3 @@ +-- This file will not be overwritten across dots-hyprland updates. +-- The file name is for the sake of organization and does not matter +-- See the corresponding files in ~/.config/hypr/hyprland for examples diff --git a/scripts/__restore_video_wallpaper.sh b/scripts/__restore_video_wallpaper.sh new file mode 100644 index 0000000..ea4b4fb --- /dev/null +++ b/scripts/__restore_video_wallpaper.sh @@ -0,0 +1,2 @@ +#!/bin/bash +# The content of this script will be generated by switchwall.sh - Don't modify it by yourself. diff --git a/variables.lua b/variables.lua new file mode 100644 index 0000000..c9e096b --- /dev/null +++ b/variables.lua @@ -0,0 +1,5 @@ +-- This file will not be overwritten across dots-hyprland updates. +-- The file name is for the sake of organization and does not matter +-- See the corresponding files in ~/.config/hypr/hyprland for examples + +browser = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox -P' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'" \ No newline at end of file