aboutsummaryrefslogtreecommitdiff
path: root/hypr/configs
diff options
context:
space:
mode:
authorBlaster4385 <[email protected]>2026-05-15 23:28:20 +0530
committerBlaster4385 <[email protected]>2026-05-18 16:52:47 +0530
commitf826256c010c0e5c8c2bd64adb1fae1c3f399717 (patch)
tree194e7c15f0903b073d2db3dcae6aa09651341a85 /hypr/configs
parent8b254a730b26a40ef2d2ccf0881075a6719b6712 (diff)
feat: migrate hyprland config to luaHEADmain
Diffstat (limited to 'hypr/configs')
-rw-r--r--hypr/configs/animations.lua14
-rw-r--r--hypr/configs/autostart.lua12
-rw-r--r--hypr/configs/decoration.lua25
-rw-r--r--hypr/configs/decorations.lua20
-rw-r--r--hypr/configs/env.lua0
-rw-r--r--hypr/configs/input.lua24
-rw-r--r--hypr/configs/keybinds.lua113
-rw-r--r--hypr/configs/monitors.lua26
-rw-r--r--hypr/configs/plugins.lua38
-rw-r--r--hypr/configs/windows.lua44
-rw-r--r--hypr/configs/workspaces.lua10
11 files changed, 326 insertions, 0 deletions
diff --git a/hypr/configs/animations.lua b/hypr/configs/animations.lua
new file mode 100644
index 0000000..c55489d
--- /dev/null
+++ b/hypr/configs/animations.lua
@@ -0,0 +1,14 @@
+hl.config({
+ animations = {
+ enabled = true
+ }
+})
+
+hl.curve("myBezier", { type = "bezier", points = { { 0.05, 0.9 }, { 0.1, 1.05 } } })
+
+hl.animation({ leaf = "windows", enabled = true, speed = 7, bezier = "myBezier" })
+hl.animation({ leaf = "windowsOut", enabled = true, speed = 7, bezier = "default", style = "popin 80%" })
+hl.animation({ leaf = "border", enabled = false, speed = 0, bezier = "default" })
+hl.animation({ leaf = "borderangle", enabled = false, speed = 0, bezier = "default" })
+hl.animation({ leaf = "fade", enabled = false, speed = 4, bezier = "default" })
+hl.animation({ leaf = "workspaces", enabled = true, speed = 6, bezier = "default" })
diff --git a/hypr/configs/autostart.lua b/hypr/configs/autostart.lua
new file mode 100644
index 0000000..00b2099
--- /dev/null
+++ b/hypr/configs/autostart.lua
@@ -0,0 +1,12 @@
+hl.on("hyprland.start", function()
+ hl.exec_cmd("uwsm app -- nm-applet &")
+ hl.exec_cmd("uwsm app -- /usr/bin/openrgb -p MyProfile1")
+ hl.exec_cmd("uwsm app -- easyeffects --gapplication-service &")
+ hl.exec_cmd("uwsm app -- /home/venkatesh/.scripts/wallpaper.sh /home/venkatesh/Pictures/Wallpapers 60")
+ hl.exec_cmd("uwsm app -- hypridle")
+ hl.exec_cmd("uwsm app -- hyprpm reload -n")
+ hl.exec_cmd("uwsm app -- wl-paste --watch cliphist store &")
+ hl.exec_cmd("uwsm app -- zmk-battman &")
+ hl.exec_cmd("uwsm app -- ~/.config/waybar/launch.sh")
+ hl.exec_cmd("xrandr --output HDMI-A-1 --primary")
+end)
diff --git a/hypr/configs/decoration.lua b/hypr/configs/decoration.lua
new file mode 100644
index 0000000..44079cb
--- /dev/null
+++ b/hypr/configs/decoration.lua
@@ -0,0 +1,25 @@
+hl.config({
+ decoration = {
+ rounding = 16,
+ active_opacity = 0.85,
+ inactive_opacity = 0.79,
+
+ shadow = {
+ enabled = false
+ },
+
+ blur = {
+ enabled = true,
+ popups = true,
+ size = 2,
+ passes = 4,
+ brightness = 1.5,
+ vibrancy = 0.1696
+ },
+ },
+
+ col = {
+ active_border = "rgba(ebdbb280)",
+ inactive_border = "rgba(a8998480)",
+ }
+})
diff --git a/hypr/configs/decorations.lua b/hypr/configs/decorations.lua
new file mode 100644
index 0000000..80b7835
--- /dev/null
+++ b/hypr/configs/decorations.lua
@@ -0,0 +1,20 @@
+hl.config({
+ decoration = {
+ rounding = 16,
+ active_opacity = 0.85,
+ inactive_opacity = 0.79,
+
+ shadow = {
+ enabled = false
+ },
+
+ blur = {
+ enabled = true,
+ popups = true,
+ size = 2,
+ passes = 4,
+ brightness = 1.5,
+ vibrancy = 0.1696
+ }
+ }
+})
diff --git a/hypr/configs/env.lua b/hypr/configs/env.lua
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/hypr/configs/env.lua
diff --git a/hypr/configs/input.lua b/hypr/configs/input.lua
new file mode 100644
index 0000000..04fb0da
--- /dev/null
+++ b/hypr/configs/input.lua
@@ -0,0 +1,24 @@
+hl.config({
+ cursor = {
+ inactive_timeout = 5
+ },
+
+ input = {
+ kb_layout = "us",
+ follow_mouse = 1,
+
+ touchpad = {
+ natural_scroll = true,
+ clickfinger_behavior = true,
+ tap_to_click = false,
+ tap_and_drag = false,
+ scroll_factor = 0.3
+ }
+ }
+})
+
+hl.gesture({
+ fingers = 3,
+ direction = "horizontal",
+ action = "workspace"
+})
diff --git a/hypr/configs/keybinds.lua b/hypr/configs/keybinds.lua
new file mode 100644
index 0000000..6e5457f
--- /dev/null
+++ b/hypr/configs/keybinds.lua
@@ -0,0 +1,113 @@
+local mainMod = "SUPER"
+
+local terminal = "uwsm app -- kitty"
+local menu = [[uwsm app -- rofi -font "JetBrainsMono Nerd Font 10" -show drun -run-command 'uwsm app -- {cmd}']]
+
+local hy3 = hl.plugin.hy3
+
+hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(terminal))
+hl.bind(mainMod .. " + Q", hl.dsp.window.close())
+hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("/home/venkatesh/.config/rofi/scripts/rofi-mpris.sh"))
+hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
+hl.bind(mainMod .. " + D", hl.dsp.exec_cmd(menu))
+
+hl.bind(
+ mainMod .. " + C",
+ hl.dsp.exec_cmd(
+ [[uwsm app -- rofi -font "JetBrainsMono Nerd Font 10" -modi clipboard:/home/venkatesh/.config/rofi/scripts/cliphist-rofi -show clipboard]]
+ )
+)
+
+hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen())
+hl.bind(mainMod .. " + SHIFT + R", hl.dsp.exec_cmd("hyprctl reload"))
+
+hl.bind(mainMod .. " + W", hy3.change_group("toggletab"))
+
+hl.bind(mainMod .. " + left", hy3.move_focus("l"))
+hl.bind(mainMod .. " + right", hy3.move_focus("r"))
+hl.bind(mainMod .. " + up", hy3.move_focus("u"))
+hl.bind(mainMod .. " + down", hy3.move_focus("d"))
+
+hl.bind(mainMod .. " + SHIFT + left", hy3.move_window("l", { visible = true }))
+hl.bind(mainMod .. " + SHIFT + right", hy3.move_window("r", { visible = true }))
+hl.bind(mainMod .. " + SHIFT + up", hy3.move_window("u", { visible = true }))
+hl.bind(mainMod .. " + SHIFT + down", hy3.move_window("d", { visible = true }))
+
+for i = 1, 10 do
+ local key = i % 10
+
+ hl.bind(
+ mainMod .. " + " .. key,
+ hl.dsp.focus({ workspace = tostring(i) })
+ )
+
+ hl.bind(
+ mainMod .. " + SHIFT + " .. key,
+ hl.dsp.window.move({ workspace = tostring(i) })
+ )
+end
+
+hl.bind(
+ mainMod .. " + SHIFT + SPACE",
+ hl.dsp.window.move({ workspace = "11" })
+)
+
+hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic"))
+
+hl.bind(
+ mainMod .. " + SHIFT + S",
+ hl.dsp.window.move({ workspace = "special:magic" })
+)
+
+hl.bind(mainMod .. " + mouse_down",
+ hl.dsp.focus({ workspace = "e+1" }))
+
+hl.bind(mainMod .. " + mouse_up",
+ hl.dsp.focus({ workspace = "e-1" }))
+
+hl.bind(
+ "Print",
+ hl.dsp.exec_cmd([[grim -g "$(slurp -d)" - | wl-copy]])
+)
+
+hl.bind(
+ "XF86AudioRaiseVolume",
+ hl.dsp.exec_cmd("pactl set-sink-volume @DEFAULT_SINK@ +1%")
+)
+
+hl.bind(
+ "XF86AudioLowerVolume",
+ hl.dsp.exec_cmd("pactl set-sink-volume @DEFAULT_SINK@ -1%")
+)
+
+hl.bind(
+ "XF86AudioMute",
+ hl.dsp.exec_cmd("pactl set-sink-mute @DEFAULT_SINK@ toggle")
+)
+
+hl.bind(
+ "XF86AudioMicMute",
+ hl.dsp.exec_cmd("pactl set-source-mute @DEFAULT_SOURCE@ toggle")
+)
+
+hl.bind(
+ mainMod .. " + SUPER_L",
+ hl.dsp.exec_cmd("pkill -SIGUSR1 waybar"),
+ { ignore_mods = true, transparent = true }
+)
+
+hl.bind(
+ mainMod .. " + SUPER_L",
+ hl.dsp.exec_cmd("pkill -SIGUSR1 waybar"),
+ { release = true, transparent = true }
+)
+
+hl.bind(
+ mainMod .. " + B",
+ hl.dsp.exec_cmd("pkill -SIGUSR1 waybar")
+)
+
+hl.bind(
+ mainMod .. " + F1",
+ hl.dsp.exec_cmd("~/.config/hypr/gamemode.sh")
+)
diff --git a/hypr/configs/monitors.lua b/hypr/configs/monitors.lua
new file mode 100644
index 0000000..fe2b79b
--- /dev/null
+++ b/hypr/configs/monitors.lua
@@ -0,0 +1,26 @@
+hl.monitor({
+ output = "desc:LG Electronics LG ULTRAGEAR 306NTQD5B076",
+ mode = "[email protected]",
+ position = "2560x0",
+ scale = 1.25,
+ bitdepth = 10
+})
+
+hl.monitor({
+ output = "desc:Microstep MPG341CX OLED",
+ mode = "[email protected]",
+ position = "4608x0",
+ scale = 1,
+ bitdepth = 10
+})
+
+hl.monitor({
+ output = "desc:DENON Ltd. DENON-AVR 0x01010101",
+ mode = "[email protected]",
+ position = "8048x0",
+ scale = 1.50,
+ bitdepth = 10,
+ cm = "hdr",
+ sdrbrightness = 1.1,
+ sdrsaturation = 1.15
+})
diff --git a/hypr/configs/plugins.lua b/hypr/configs/plugins.lua
new file mode 100644
index 0000000..8249609
--- /dev/null
+++ b/hypr/configs/plugins.lua
@@ -0,0 +1,38 @@
+local bg = "rgba(282828d9)"
+local fg = "rgb(ebdbb2)"
+local fg1 = "rgb(a89984)"
+hl.config({
+ plugin = {
+ hy3 = {
+ node_collapse_policy = 0,
+ tab_first_window = false,
+ group_inset = 5,
+
+ tabs = {
+ from_top = false,
+ height = 25,
+ radius = 10,
+ text_font = "JetBrainsMono Nerd Font",
+ text_height = 12,
+ colors = {
+ active_border = fg,
+ active_text = fg,
+ active = bg,
+ focused_border = fg,
+ focused_text = fg,
+ focused = bg,
+ urgent_border = fg,
+ urgent_text = fg,
+ urgent = bg,
+ inactive_border = fg1,
+ inactive_text = fg,
+ inactive = bg
+ }
+ },
+
+ autotile = {
+ enable = true
+ }
+ }
+ }
+})
diff --git a/hypr/configs/windows.lua b/hypr/configs/windows.lua
new file mode 100644
index 0000000..e08e176
--- /dev/null
+++ b/hypr/configs/windows.lua
@@ -0,0 +1,44 @@
+hl.window_rule({
+ match = { class = ".*" },
+ suppress_event = "maximize",
+})
+
+hl.window_rule({
+ match = { class = ".*" },
+ idle_inhibit = "fullscreen",
+})
+
+hl.window_rule({
+ match = { content = 3 },
+ immediate = true,
+ idle_inhibit = "fullscreen",
+ fullscreen = true,
+ content = "game"
+})
+
+hl.window_rule({
+ match = { class = "^(eden)$" },
+ no_vrr = true
+})
+
+hl.window_rule({
+ match = { class = "^(steam_app_default)$" },
+ border_size = 0,
+ rounding = 0,
+ no_anim = true,
+ no_blur = true,
+ no_dim = true,
+ no_shadow = true
+})
+
+hl.layer_rule({
+ match = { namespace = "notifications" },
+ blur = true,
+ ignore_alpha = 0.5
+})
+
+hl.layer_rule({
+ match = { namespace = "rofi" },
+ blur = true,
+ ignore_alpha = 0.5
+})
diff --git a/hypr/configs/workspaces.lua b/hypr/configs/workspaces.lua
new file mode 100644
index 0000000..a537f28
--- /dev/null
+++ b/hypr/configs/workspaces.lua
@@ -0,0 +1,10 @@
+hl.workspace_rule({ workspace = 1, monitor = "desc:Microstep MPG341CX OLED", default = true })
+hl.workspace_rule({ workspace = 2, monitor = "desc:Microstep MPG341CX OLED" })
+hl.workspace_rule({ workspace = 3, monitor = "desc:Microstep MPG341CX OLED" })
+hl.workspace_rule({ workspace = 4, monitor = "desc:Microstep MPG341CX OLED" })
+hl.workspace_rule({ workspace = 5, monitor = "desc:Microstep MPG341CX OLED" })
+hl.workspace_rule({ workspace = 6, monitor = "desc:Microstep MPG341CX OLED" })
+hl.workspace_rule({ workspace = 7, monitor = "desc:LG Electronics LG ULTRAGEAR 306NTQD5B076", default = true })
+hl.workspace_rule({ workspace = 8, monitor = "desc:LG Electronics LG ULTRAGEAR 306NTQD5B076" })
+hl.workspace_rule({ workspace = 9, monitor = "desc:DENON Ltd. DENON-AVR 0x01010101", default = true })
+hl.workspace_rule({ workspace = 10, monitor = "desc:DENON Ltd. DENON-AVR 0x01010101" })