From c72678926fc9cf9ab23707872a83ba9bb1558d09 Mon Sep 17 00:00:00 2001 From: Frank Zechert Date: Sun, 2 Aug 2026 19:41:09 +0200 Subject: [PATCH] update configuration --- user/.chezmoidata/packages.yaml | 7 +++- user/.chezmoiignore | 5 +++ user/dot_config/hypr/hyprland-binds.lua | 8 ++++ user/dot_config/hypr/hyprland-variables.lua | 2 +- user/dot_config/hypr/hyprland-windowrules.lua | 2 +- .../hypr/hyprland-workspacerules.lua | 1 + user/dot_config/hypr/hyprland.lua | 38 +++++++++---------- 7 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 user/dot_config/hypr/hyprland-workspacerules.lua diff --git a/user/.chezmoidata/packages.yaml b/user/.chezmoidata/packages.yaml index 7b4cebd..1de81e4 100644 --- a/user/.chezmoidata/packages.yaml +++ b/user/.chezmoidata/packages.yaml @@ -27,6 +27,7 @@ packages: - usbutils # Display - brightnessctl + - ddcutil # Sound System - alsa-utils - pavucontrol @@ -92,6 +93,7 @@ packages: - qt6-wayland - qt6ct - qt6-multimedia + - kimageformats # Icons - breeze-icons - breeze-cursors @@ -101,6 +103,7 @@ packages: # Software - bat - btop + - bitwarden - chezmoi - fastfetch - figlet @@ -128,7 +131,6 @@ packages: - socat - spotify - starship - - swaync - telegram-desktop - thunderbird - wev @@ -153,3 +155,6 @@ packages: intel_cpu: yay: - intel-ucode + work_env: + yay: + - teams-for-linux-bin diff --git a/user/.chezmoiignore b/user/.chezmoiignore index e4b5b45..9abc05a 100644 --- a/user/.chezmoiignore +++ b/user/.chezmoiignore @@ -27,6 +27,9 @@ thunderbird .config/spotify .config/systemd .config/yay +.config/Bitwarden +.config/autostart +.config/teams-for-linux .gnupg/crls.d .gnupg/openpgp-revocs.d @@ -43,3 +46,5 @@ thunderbird .npm .nvm .ssh +.pki +.python_history diff --git a/user/dot_config/hypr/hyprland-binds.lua b/user/dot_config/hypr/hyprland-binds.lua index f919cf5..5809d98 100644 --- a/user/dot_config/hypr/hyprland-binds.lua +++ b/user/dot_config/hypr/hyprland-binds.lua @@ -39,6 +39,7 @@ for i = 1, 10 do local workspace_name = i hl.bind("SUPER + " .. workspace_num, hl.dsp.focus({ workspace = workspace_name}), { description = "Focus Workspace "..workspace_name }) end +hl.bind("SUPER + minus", hl.dsp.workspace.toggle_special("scratchpad"), { description = "Toggle Scratchpad" }) hl.bind("SUPER + Page_Down", hl.dsp.focus({ workspace = "e+1" }), { description = "Focus Next Workspace" }) hl.bind("SUPER + mouse_down", hl.dsp.focus({ workspace = "e+1" }), { description = "Focus Next Workspace" }) @@ -110,6 +111,9 @@ for i = 1, 10 do hl.bind("SUPER + SHIFT + " .. workspace_num, hl.dsp.window.move({ workspace = workspace_name, follow = true}), { description = "Move Window to Workspace " .. workspace_name }) hl.bind("SUPER + CTRL + SHIFT + " .. workspace_num, hl.dsp.window.move({ workspace = workspace_name, follow = false}), { description = "Move Window to Workspace " .. workspace_name .. " (silent)" }) end +hl.bind("SUPER + SHIFT + minus", hl.dsp.window.move({workspace = "special:scratchpad", follow = true}), { description = "Move Window to Scratchpad" }) +hl.bind("SUPER + CTRL + SHIFT + minus", hl.dsp.window.move({workspace = "special:scratchpad", follow = false}), { description = "Move Window to Scratchpad (silent)" }) + -- Resizing Submap local resizeSubmapName = "Resize Window: [hjkl]" @@ -127,6 +131,10 @@ end) local workspaceSubmapName = "Workspace: [hjkl]" hl.bind("SUPER + T", hl.dsp.submap(workspaceSubmapName), { description = "Workspace..." }) hl.define_submap(workspaceSubmapName, function() + hl.bind("h", hl.dsp.workspace.move({monitor="l"}), {description = "Move workspace left"}) + hl.bind("j", hl.dsp.workspace.move({monitor="d"}), {description = "Move workspace down"}) + hl.bind("k", hl.dsp.workspace.move({monitor="u"}), {description = "Move workspace up"}) + hl.bind("l", hl.dsp.workspace.move({monitor="r"}), {description = "Move workspace right"}) hl.bind("escape", hl.dsp.submap("reset")) hl.bind("catchall", function() hl.dispatch(submap_toast) end) end) diff --git a/user/dot_config/hypr/hyprland-variables.lua b/user/dot_config/hypr/hyprland-variables.lua index 1edf4a4..852a501 100644 --- a/user/dot_config/hypr/hyprland-variables.lua +++ b/user/dot_config/hypr/hyprland-variables.lua @@ -158,7 +158,7 @@ return { } }, master = { - mfact = 0.7, + mfact = 0.65, new_status = "slave", new_on_top = false, new_on_active = "none", diff --git a/user/dot_config/hypr/hyprland-windowrules.lua b/user/dot_config/hypr/hyprland-windowrules.lua index 52d880e..2f7faa1 100644 --- a/user/dot_config/hypr/hyprland-windowrules.lua +++ b/user/dot_config/hypr/hyprland-windowrules.lua @@ -230,7 +230,7 @@ rule( { float() } ) rule( - { matches_class("^(firefox|librewolf)$"), matches_title("^.*(Youtube).*$") }, + { matches_class("^(firefox|librewolf)$"), matches_title("^.*(YouTube).*$") }, { content(ContentType.VIDEO), no_dim(), no_blur() } ) diff --git a/user/dot_config/hypr/hyprland-workspacerules.lua b/user/dot_config/hypr/hyprland-workspacerules.lua new file mode 100644 index 0000000..458dc26 --- /dev/null +++ b/user/dot_config/hypr/hyprland-workspacerules.lua @@ -0,0 +1 @@ +hl.workspace_rule({ workspace = "s[true]", gaps_out = 80}) diff --git a/user/dot_config/hypr/hyprland.lua b/user/dot_config/hypr/hyprland.lua index 957ed67..b861fe0 100644 --- a/user/dot_config/hypr/hyprland.lua +++ b/user/dot_config/hypr/hyprland.lua @@ -7,7 +7,7 @@ debug_flag = true ------------------- function debug_notify(message) if debug_flag and message ~= nil then - -- hl.notification.create({text = message, timeout = 30000}) + hl.notification.create({text = message, timeout = 30000}) hl.exec_cmd("echo '" .. message .. "' >> /tmp/hyprland-notify.log") end end @@ -71,24 +71,6 @@ end hl.on("hyprland.start", on_start) hl.on("keybinds.submap", submap_toast) ------------------- ----- MONITORS ---- ------------------- - --- By default, only the laptop screen is active and no other screen --- will be actived. Activation of different monitor layouts is deferred --- to other scripts, so to automate profile switching and provide some --- stable fallbacks ---[[ -hl.monitor({ - output = "eDP-1", - mode = "1920x1200@120", - position = "0x0", - scale = "1", - disabled = false, -}) -]] - --------------------- ---- MY PROGRAMS ---- --------------------- @@ -139,9 +121,27 @@ require("hyprland-windowrules") hl.layer_rule({ match = { namespace = "^(quickshell)$" }, no_anim = true }) hl.layer_rule({ match = { namespace = "^dms:.*" }, no_anim = true }) +------------------------- +---- WORKSPACE RULES ---- +------------------------- +require("hyprland-workspacerules") + ------------------ ---- MONITORS ---- ------------------ +-- By default, only the laptop screen is active and no other screen +-- will be actived. Activation of different monitor layouts is deferred +-- to other scripts, so to automate profile switching and provide some +-- stable fallbacks +--[[ +hl.monitor({ + output = "eDP-1", + mode = "1920x1200@120", + position = "0x0", + scale = "1", + disabled = false, +}) +]] require("hyprland-monitors")