From 5438f786a9afbdf9a4bc5817881e5dba669060de Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 24 Sep 2026 20:32:55 +0200 Subject: [PATCH] keybind for direct tmux --- hypr/.config/hypr/modules/keybinds.lua | 1 + hypr/.config/hypr/modules/variables.lua | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hypr/.config/hypr/modules/keybinds.lua b/hypr/.config/hypr/modules/keybinds.lua index 1af8a2c..c641d97 100644 --- a/hypr/.config/hypr/modules/keybinds.lua +++ b/hypr/.config/hypr/modules/keybinds.lua @@ -4,6 +4,7 @@ local command = require("modules.shell_commands") -- Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more hl.bind(var.mainMod .. " + RETURN", hl.dsp.exec_cmd(var.terminal), { description = "Open terminal (kitty)" }) +hl.bind(var.mainMod .. " + ALT + RETURN", hl.dsp.exec_cmd(var.terminal_tmux), { description = "Open terminal (kitty)" }) hl.bind(var.mainMod .. " + Q", hl.dsp.window.close(), { description = "Close focused window" }) hl.bind( var.mainMod .. " + ESCAPE", diff --git a/hypr/.config/hypr/modules/variables.lua b/hypr/.config/hypr/modules/variables.lua index f4ad71f..96e7897 100644 --- a/hypr/.config/hypr/modules/variables.lua +++ b/hypr/.config/hypr/modules/variables.lua @@ -9,12 +9,15 @@ local theme = dofile(os.getenv("HOME") .. "/.config/themes/current/theme.lua") -- local var_menu = "noctalia msg panel-toggle launcher" -- local var_screenshot_folder = "~/Bilder/Screenshots/" +local terminal = "kitty" + return { color_active_border = theme.border_active, color_inactive_border = theme.border_inactive, color_decoration_shadow = theme.shadow, mainMod = "SUPER", - terminal = "kitty", + terminal = terminal, + terminal_tmux = terminal .. " -e tmux", fileManager = "dolphin", screenshot_folder = "~/Bilder/Screenshots/", }