summaryrefslogtreecommitdiff
path: root/home-manager/hypr/config
diff options
context:
space:
mode:
authoralex <[email protected]>2026-10-17 13:57:21 +0200
committeralex <[email protected]>2026-10-17 13:57:21 +0200
commite9d4853a5aa29dfee07c4e23780f2ffc429be1a4 (patch)
tree44eab16084113fa83e0039bf2df45d7e58d3f21f /home-manager/hypr/config
parentd6a4711c17e4b267f61023f4440eaa41728b345c (diff)
downloadnixos-e9d4853a5aa29dfee07c4e23780f2ffc429be1a4.tar.xz
nixos-e9d4853a5aa29dfee07c4e23780f2ffc429be1a4.zip
added hyprland dotfiles to homemanager
Diffstat (limited to 'home-manager/hypr/config')
-rw-r--r--home-manager/hypr/config/autostart.lua21
-rw-r--r--home-manager/hypr/config/env.lua10
-rw-r--r--home-manager/hypr/config/keybinds.lua67
-rw-r--r--home-manager/hypr/config/monitors.lua28
-rw-r--r--home-manager/hypr/config/settings.lua61
-rw-r--r--home-manager/hypr/config/variables.lua2
6 files changed, 189 insertions, 0 deletions
diff --git a/home-manager/hypr/config/autostart.lua b/home-manager/hypr/config/autostart.lua
new file mode 100644
index 0000000..929c990
--- /dev/null
+++ b/home-manager/hypr/config/autostart.lua
@@ -0,0 +1,21 @@
+hl.on("hyprland.start", function()
+ hl.exec_cmd("wl-paste --type text --watch cliphist store")
+ hl.exec_cmd("wl-paste --type image --watch cliphist store")
+ hl.exec_cmd("systemctl --user enable --now easyeffects")
+ hl.exec_cmd("serpantinumd start")
+
+ hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'")
+ hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'")
+
+ hl.exec_cmd("~/scripts/matugen-sync.sh")
+ hl.exec_cmd("tailscale systray")
+
+ hl.exec_cmd("vesktop")
+ hl.exec_cmd("spotify")
+ hl.exec_cmd("steam -silent")
+
+ hl.exec_cmd("hyprctl setcursor Bibata-Modern-Classic 24")
+
+ hl.exec_cmd("wl-paste --type text --watch cliphist store")
+ hl.exec_cmd("wl-paste --type image --watch cliphist store")
+end)
diff --git a/home-manager/hypr/config/env.lua b/home-manager/hypr/config/env.lua
new file mode 100644
index 0000000..b818a46
--- /dev/null
+++ b/home-manager/hypr/config/env.lua
@@ -0,0 +1,10 @@
+hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
+hl.env("XDG_SESSION_TYPE", "wayland")
+hl.env("XDG_SESSION_DESKTOP", "Hyprland")
+hl.env("GTK_THEME", "Adwaita:dark")
+hl.env("COLORTERM", "truecolor")
+hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
+hl.env("HYPRCURSOR_THEME", "Adwaita")
+hl.env("HYPRCURSOR_SIZE", "24")
+hl.env("XCURSOR_THEME", "Adwaita")
+hl.env("XCURSOR_SIZE", "24")
diff --git a/home-manager/hypr/config/keybinds.lua b/home-manager/hypr/config/keybinds.lua
new file mode 100644
index 0000000..df5d89c
--- /dev/null
+++ b/home-manager/hypr/config/keybinds.lua
@@ -0,0 +1,67 @@
+local mainMod = _G.mainMod or "SUPER"
+local terminal = _G.terminal or "kitty"
+local browser = _G.broser or "helium"
+local files = _G.files or "thunar"
+hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
+hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
+hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
+
+hl.bind(mainMod .. " + SHIFT + Left", hl.dsp.window.resize({ x = -50, y = 0, relative = true }), { repeating = true })
+hl.bind(mainMod .. " + SHIFT + Right", hl.dsp.window.resize({ x = 50, y = 0, relative = true }), { repeating = true })
+hl.bind(mainMod .. " + SHIFT + Up", hl.dsp.window.resize({ x = 0, y = -50, relative = true }), { repeating = true })
+hl.bind(mainMod .. " + SHIFT + Down", hl.dsp.window.resize({ x = 0, y = 50, relative = true }), { repeating = true })
+
+hl.bind(mainMod .. " + CTRL + Left", hl.dsp.window.move({ direction = "l" }))
+hl.bind(mainMod .. " + CTRL + Right", hl.dsp.window.move({ direction = "r" }))
+hl.bind(mainMod .. " + CTRL + Up", hl.dsp.window.move({ direction = "u" }))
+hl.bind(mainMod .. " + CTRL + Down", hl.dsp.window.move({ direction = "d" }))
+
+hl.bind(mainMod .. " + Left", hl.dsp.focus({ direction = "left" }))
+hl.bind(mainMod .. " + Right", hl.dsp.focus({ direction = "right" }))
+hl.bind(mainMod .. " + Up", hl.dsp.focus({ direction = "up" }))
+hl.bind(mainMod .. " + Down", hl.dsp.focus({ direction = "down" }))
+
+hl.bind(mainMod .. " + W", hl.dsp.window.close())
+hl.bind(mainMod .. " + SHIFT + F", hl.dsp.window.float({ action = "toggle" }))
+
+hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("serpantinum brightness lower"), { locked = true })
+hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("serpantinum brightness raise"), { locked = true })
+
+hl.bind("Print", hl.dsp.exec_cmd("serpantinum screenshot"), { locked = true })
+hl.bind("SHIFT + Print", hl.dsp.exec_cmd("serpantinum screenshot --edit"), { locked = true })
+hl.bind("SUPER + Print", hl.dsp.exec_cmd("serpantinum screenshot --full"), { locked = true })
+hl.bind("SUPER + SHIFT + Print", hl.dsp.exec_cmd("serpantinum screenshot --full --edit"), { locked = true })
+
+hl.bind("XF86PowerOff", hl.dsp.exec_cmd("serpantinum lock"), { locked = true })
+hl.bind(mainMod .. " + L", hl.dsp.exec_cmd("serpantinum lock"), { repeating = true, locked = true })
+
+hl.bind(mainMod .. " + SPACE", hl.dsp.exec_cmd("playerctl play-pause"), { 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 })
+hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
+hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("serpantinum volume mic-toggle"), { locked = true })
+hl.bind("XF86AudioMute", hl.dsp.exec_cmd("serpantinum volume mute-toggle"), { locked = true })
+hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("serpantinum volume lower"), { repeating = true, locked = true })
+hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("serpantinum volume raise"), { repeating = true, locked = true })
+
+hl.bind(mainMod .. " + B", hl.dsp.exec_cmd(browser))
+hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(files))
+hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal))
+
+hl.bind(mainMod .. " + R", hl.dsp.exec_cmd("serpantinum reload"))
+hl.bind(mainMod .. " + C", hl.dsp.exec_cmd("serpantinum msg toggle clipboard"))
+hl.bind("ALT + SPACE", hl.dsp.exec_cmd("serpantinum msg toggle launcher"))
+hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("serpantinum msg toggle music"))
+hl.bind(mainMod .. " + N", hl.dsp.exec_cmd("serpantinum msg toggle system"))
+hl.bind(mainMod .. " + S", hl.dsp.exec_cmd("serpantinum msg toggle calendar"))
+hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("serpantinum msg toggle volume"))
+hl.bind(mainMod .. " + H", hl.dsp.exec_cmd("serpantinum msg toggle guide"))
+hl.bind(mainMod .. " + A", hl.dsp.exec_cmd("serpantinum msg toggle autohide"))
+
+for i = 1, 10 do
+ local ws = tostring(i)
+ local key = tostring(i % 10)
+ hl.bind(mainMod .. " + " .. key, hl.dsp.exec_cmd("serpantinum msg workspace " .. ws))
+ hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.exec_cmd("serpantinum msg workspace " .. ws .. " move"))
+end
diff --git a/home-manager/hypr/config/monitors.lua b/home-manager/hypr/config/monitors.lua
new file mode 100644
index 0000000..883ed6b
--- /dev/null
+++ b/home-manager/hypr/config/monitors.lua
@@ -0,0 +1,28 @@
+hl.monitor({
+ output = "DP-2",
+ mode = "2560x1440@144",
+ position = "0x0",
+ scale = 1
+})
+hl.monitor({
+ output = "HDMI-A-1",
+ mode = "1920x1080@60",
+ position = "2560x0",
+ scale = 1,
+ transform= 3
+})
+
+
+hl.config({
+ master = {
+ mfact = 0.60, -- Master window takes 65%, stack takes 35%
+ orientation = "top" -- Master on left, stack on right
+ }
+})
+
+hl.workspace_rule({ workspace = "10", monitor = "HDMI-A-1", default = true, layout = "master" })
+hl.workspace_rule({ workspace = "9", monitor = "HDMI-A-1"})
+
+hl.window_rule({ match = { class = "discord" }, workspace = "10" })
+hl.window_rule({ match = { class = "vesktop" }, workspace = "10" })
+hl.window_rule({ match = { class = "Spotify" }, workspace = "10" })
diff --git a/home-manager/hypr/config/settings.lua b/home-manager/hypr/config/settings.lua
new file mode 100644
index 0000000..a952965
--- /dev/null
+++ b/home-manager/hypr/config/settings.lua
@@ -0,0 +1,61 @@
+hl.config({
+ general = {
+ border_size = 0,
+ gaps_in = 4,
+ gaps_out = 6,
+ float_gaps = 6,
+ resize_on_border = true,
+ extend_border_grab_area = 30,
+ },
+
+ decoration = {
+ rounding = 12,
+ active_opacity = 1.0,
+ inactive_opacity = 1.0,
+ blur = {
+ enabled = true,
+ size = 8,
+ passes = 2,
+ new_optimizations = true,
+ },
+ shadow = {
+ enabled = false,
+ },
+ },
+
+ input = {
+ kb_layout = "us,sk",
+ kb_variant = ",qwerty",
+ kb_options = "grp:alt_shift_toggle",
+ accel_profile = "flat",
+ touchpad = {
+ natural_scroll = true,
+ disable_while_typing = false,
+ },
+ },
+
+ cursor = {
+ no_hardware_cursors = true,
+ },
+
+ misc = {
+ focus_on_activate = false,
+ font_family = "JetBrains Mono",
+ disable_hyprland_logo = true,
+ disable_splash_rendering = true,
+ },
+})
+
+hl.curve("myBezier", { type = "bezier", points = { {0.05, 0.9}, {0.1, 1.05} } })
+
+hl.animation({ leaf = "windows", enabled = true, speed = 5, bezier = "myBezier", style = "popin 80%" })
+hl.animation({ leaf = "windowsOut", enabled = true, speed = 5, bezier = "myBezier", style = "popin 80%" })
+hl.animation({ leaf = "layers", enabled = true, speed = 5, bezier = "myBezier", style = "fade" })
+hl.animation({ leaf = "layersIn", enabled = true, speed = 5, bezier = "myBezier", style = "fade" })
+hl.animation({ leaf = "layersOut", enabled = true, speed = 5, bezier = "myBezier", style = "fade" })
+hl.animation({ leaf = "fade", enabled = true, speed = 5, bezier = "myBezier" })
+hl.animation({ leaf = "workspaces", enabled = true, speed = 5, bezier = "myBezier", style = "slide" })
+hl.animation({ leaf = "specialWorkspaceIn", enabled = true, speed = 5, bezier = "myBezier", style = "fade" })
+hl.animation({ leaf = "specialWorkspaceOut", enabled = true, speed = 5, bezier = "myBezier", style = "fade" })
+
+
diff --git a/home-manager/hypr/config/variables.lua b/home-manager/hypr/config/variables.lua
new file mode 100644
index 0000000..8a789e1
--- /dev/null
+++ b/home-manager/hypr/config/variables.lua
@@ -0,0 +1,2 @@
+mainMod = "SUPER"
+terminal = "foot"