From 242de398c35d349d1149c814c4ea19b1c34ee0e2 Mon Sep 17 00:00:00 2001 From: fb24m Date: Sat, 2 May 2026 01:29:43 +0400 Subject: [PATCH 01/24] add linunwind-devel to dependencies for cpptrace --- sdata/dist-fedora/SPECS/cpptrace.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/sdata/dist-fedora/SPECS/cpptrace.spec b/sdata/dist-fedora/SPECS/cpptrace.spec index a4542bf96..a656597f0 100644 --- a/sdata/dist-fedora/SPECS/cpptrace.spec +++ b/sdata/dist-fedora/SPECS/cpptrace.spec @@ -18,6 +18,7 @@ BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: make BuildRequires: ninja-build +BuildRequires: libunwind-devel %description C++ lightweight logging library used by Quickshell. From 54e19afa81b84b226b6a0aa9de690dd909ff9450 Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:47:55 +0200 Subject: [PATCH 02/24] Add files via upload --- dots/.config/hypr/hyprland/colors.lua | 37 +++ dots/.config/hypr/hyprland/env.lua | 14 ++ dots/.config/hypr/hyprland/execs.lua | 30 +++ dots/.config/hypr/hyprland/general.lua | 184 +++++++++++++++ dots/.config/hypr/hyprland/keybinds.lua | 283 +++++++++++++++++++++++ dots/.config/hypr/hyprland/rules.lua | 173 ++++++++++++++ dots/.config/hypr/hyprland/variables.lua | 23 ++ 7 files changed, 744 insertions(+) create mode 100644 dots/.config/hypr/hyprland/colors.lua create mode 100644 dots/.config/hypr/hyprland/env.lua create mode 100644 dots/.config/hypr/hyprland/execs.lua create mode 100644 dots/.config/hypr/hyprland/general.lua create mode 100644 dots/.config/hypr/hyprland/keybinds.lua create mode 100644 dots/.config/hypr/hyprland/rules.lua create mode 100644 dots/.config/hypr/hyprland/variables.lua diff --git a/dots/.config/hypr/hyprland/colors.lua b/dots/.config/hypr/hyprland/colors.lua new file mode 100644 index 000000000..0c690d8c3 --- /dev/null +++ b/dots/.config/hypr/hyprland/colors.lua @@ -0,0 +1,37 @@ +hl.config({ + col = { + active_border = "rgba(44464f77)", + inactive_border = "rgba(1a1b2033)", + }, + misc = { + background_color = "rgba(121318FF)", + }, +}) + +-- Don't know if plugins changed syntax too. +-- plugin { +-- hyprbars { +-- -- Honestly idk if it works like css, but well, why not +-- bar_text_font = Google Sans Flex Medium, Rubik, Geist, AR One Sans, Reddit Sans, Inter, Roboto, Ubuntu, Noto Sans, sans-serif +-- bar_height = 30 +-- bar_padding = 10 +-- bar_button_padding = 5 +-- bar_precedence_over_border = true +-- bar_part_of_window = true +-- +-- bar_color = rgba(121318FF) +-- col.text = rgba(e2e2e9FF) +-- +-- +-- -- example buttons (R -> L) +-- -- hyprbars-button = color, size, on-click +-- hyprbars-button = rgb(e2e2e9), 13, 󰖭, hyprctl dispatch killactive +-- hyprbars-button = rgb(e2e2e9), 13, 󰖯, hyprctl dispatch fullscreen 1 +-- hyprbars-button = rgb(e2e2e9), 13, 󰖰, hyprctl dispatch movetoworkspacesilent special +-- } +-- } + +hl.window_rule({ -- not sure how to syntax "pin 1" + match = { pin = 1 }, + border_color = "rgba(afc6ffAA) rgba(afc6ff77)", +}) diff --git a/dots/.config/hypr/hyprland/env.lua b/dots/.config/hypr/hyprland/env.lua new file mode 100644 index 000000000..cdb79d278 --- /dev/null +++ b/dots/.config/hypr/hyprland/env.lua @@ -0,0 +1,14 @@ +-- ############ Wayland ############# +hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto") + +-- ######### Applications ######### +hl.env("XDG_DATA_DIRS", "$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share +") + +-- ############ Themes ############# +hl.env("QT_QPA_PLATFORM", "wayland;xcb") +hl.env("QT_QPA_PLATFORMTHEME", "kde") +hl.env("XDG_MENU_PREFIX", "plasma-") + +-- ######## Virtual envrionment ######### +hl.env("ILLOGICAL_IMPULSE_VIRTUAL_ENV", "~/.local/state/quickshell/.venv") diff --git a/dots/.config/hypr/hyprland/execs.lua b/dots/.config/hypr/hyprland/execs.lua new file mode 100644 index 000000000..4cfd77309 --- /dev/null +++ b/dots/.config/hypr/hyprland/execs.lua @@ -0,0 +1,30 @@ +-- put former exec-once commands inside the func and former exec commands outside +hl.on("hyprland.start", function () + + -- Bar, wallpaper + hl.exec_cmd("~/.config/hypr/hyprland/scripts/start_geoclue_agent.sh") + hl.exec_cmd("qs -c $qsConfig") + hl.exec_cmd("~/.config/hypr/custom/scripts/__restore_video_wallpaper.sh") + + -- Core components (authentication, lock screen, notification daemon) + hl.exec_cmd("gnome-keyring-daemon --start --components=secrets") + hl.exec_cmd(hypridle) + hl.exec_cmd("dbus-update-activation-environment --all") + hl.exec_cmd("sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") -- Some fix idk + + -- Audio + --hl.exec_cmd("easyeffects --hide-window --service-mode") + + -- Clipboard: history + --hl.exec_cmd("wl-paste --watch cliphist store") + hl.exec_cmd("wl-paste --type text --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update'") + hl.exec_cmd("wl-paste --type image --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update'") + + -- Cursor + hl.exec_cmd("hyprctl setcursor Bibata-Modern-Classic 24") + + -- Fix dock pinned apps not launching properly (https://github.com/end-4/dots-hyprland/issues/2200) + -- This causes https://github.com/end-4/dots-hyprland/issues/2427 + -- hl.exec_cmd("sleep 3.5 && hyprctl reload && sleep 0.5 && touch ~/.config/quickshell/ii/shell.qml") + +end) diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua new file mode 100644 index 000000000..c2df49c9e --- /dev/null +++ b/dots/.config/hypr/hyprland/general.lua @@ -0,0 +1,184 @@ +-- MONITOR CONFIG +hl.monitor({ + output = "", + mode = "preferred", + position = "auto", + scale = "1", +}) + +hl.gesture({ fingers = 3, direction = "swipe", action = "move" }) +hl.gesture({ fingers = 3, direction = "pinch", action = "float" }) +hl.gesture({ fingers = 4, direction = "horizontal", action = "workspace" }) +-- maybe need to make a function if these two don't work +hl.gesture({ fingers = 4, direction = "up", action = function() global, quickshell:overviewWorkspacesToggle end }) +hl.gesture({ fingers = 4, direction = "down", action = function() global, quickshell:overviewWorkspacesClose end }) +-- couldn't find anything about this in the old or the new syntax wiki (plugin?) +hl.gesture({ + workspace_swipe_distance = 700 + workspace_swipe_cancel_ratio = 0.2 + workspace_swipe_min_speed_to_force = 5 + workspace_swipe_direction_lock = true + workspace_swipe_direction_lock_threshold = 10 + workspace_swipe_create_new = true +}) + +hl.config({ + general = { + -- Gaps and border + gaps_in = 4, + gaps_out = 5, + gaps_workspaces = 50, + + border_size = 1, + + col = { + active_border = "rgba(0DB7D455)", + inactive_border = "rgba(31313600)", + + }, + resize_on_border = true, + + no_focus_fallback = true, + allow_tearing = true, -- This just allows the `immediate` window rule to work + }, + + snap = { + enabled = true, + window_gap = 4, + monitor_gap = 5, + respect_gaps = true, + }, + + dwindle = { + preserve_split = true, + smart_split = false, + smart_resizing = false, + --precise_mouse_move = true, + }, + + decoration = { + -- 2 = circle, higher = squircle, 4 = very obvious squircle + -- Clear squircles look really off; we use only extra .4 here to make the rounding feel more continuous + rounding_power = 2, + rounding = 18, + + blur = { + enabled = true, + xray = true, + special = false, + new_optimizations = true, + size = 10, + passes = 3, + brightness = 1, + noise = 0.05, + contrast = 0.89, + vibrancy = 0.5, + vibrancy_darkness = 0.5, + popups = false, + popups_ignorealpha = 0.6, + input_methods = true, + input_methods_ignorealpha = 0.8, + }, + shadow = { + enabled = true, + ignore_window = true, + range = 20, + offset = 0 2, + render_power = 10, + color = "rgba(00000020)", + + }, + -- Dim + dim_inactive = true, + dim_strength = 0.05, + dim_special = 0.2, + }, + animations = { + enabled = true, + }, +}) +-- Curves +hl.curve("expressiveFastSpatial", { type = "bezier", points = { {0.42, 1.67}, {0.21, 0.90} } }) +hl.curve("expressiveSlowSpatial", { type = "bezier", points = { {0.39, 1.29}, {0.35, 0.98} } }) +hl.curve("expressiveDefaultSpatial", { type = "bezier", points = { {0.38, 1.21}, {0.22, 1.00} } }) +hl.curve("emphasizedDecel", { type = "bezier", points = { {0.05, 0.7}, {0.1, 1} } }) +hl.curve("emphasizedAccel", { type = "bezier", points = { {0.3, 0}, {0.8, 0.15} } }) +hl.curve("standardDecel", { type = "bezier", points = { {0, 0}, {0, 1} } }) +hl.curve("menu_decel", { type = "bezier", points = { {0.1, 1}, {0, 1} } }) +hl.curve("menu_accel", { type = "bezier", points = { {0.52, 0.03}, {0.72, 0.08} } }) +hl.curve("stall", { type = "bezier", points = { {1, -0.1}, {0.7, 0.85} } }) +-- Configs +-- windows +hl.animation({ leaf = "windowsIn", enabled = true, speed = 3, bezier = "emphasizedDecel", style = "popin 80%" }) +hl.animation({ leaf = "fadeIn", enabled = true, speed = 3, bezier = "emphasizedDecel" }) +hl.animation({ leaf = "windowsOut", enabled = true, speed = 2, bezier = "emphasizedDecel", style = "popin 90%" }) +hl.animation({ leaf = "fadeOut", enabled = true, speed = 2, bezier = "emphasizedDecel" }) +hl.animation({ leaf = "windowsMove", enabled = true, speed = 3, bezier = "emphasizedDecel", style = "slide" }) +hl.animation({ leaf = "border", enabled = true, speed = 10, bezier = "emphasizedDecel" }) + +-- layers +hl.animation({ leaf = "layersIn", enabled = true, speed = 2.7, bezier = "emphasizedDecel", style = "popin 93%" }) +hl.animation({ leaf = "layersOut", enabled = true, speed = 2.4, bezier = "menu_accel", style = "popin 94%" }) +-- fade +hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 0.5, bezier = "menu_decel" }) +hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 2.7, bezier = "stall" }) +-- workspaces +hl.animation({ leaf = "workspaces", enabled = true, speed = 7, bezier = "menu_decel", style = "slide" }) +-- specialWorkspace +hl.animation({ leaf = "specialWorkspaceIn", enabled = true, speed = 2.8, bezier = "emphasizedDecel", style = "slidevert" }) +hl.animation({ leaf = "specialWorkspaceOut",enabled = true, speed = 1.2, bezier = "emphasizedAccel", style = "slidevert" }) +-- zoom +hl.animation({ leaf = "zoomFactor", enabled = true, speed = 3, bezier = "standardDecel" }) + +hl.config({ + input = { + kb_layout = us, + numlock_by_default = true, + repeat_delay = 250, + repeat_rate = 35, + + follow_mouse = 1, + off_window_axis_events = 2, + + touchpad = { + natural_scroll = yes, + disable_while_typing = true, + clickfinger_behavior = true, + scroll_factor = 0.7, + }, + }, + + misc = { + disable_hyprland_logo = true, + disable_splash_rendering = true, + vfr = 1, + vrr = 0, + mouse_move_enables_dpms = true, + key_press_enables_dpms = true, + animate_manual_resizes = false, + animate_mouse_windowdragging = false, + enable_swallow = false, + swallow_regex = "(foot|kitty|allacritty|Alacritty)", + on_focus_under_fullscreen = 2, + allow_session_lock_restore = true, + session_lock_xray = true, + initial_workspace_tracking = false, + focus_on_activate = true, + }, + + binds = { + scroll_event_delay = 0, + hide_special_on_workspace_change = true, + }, + + cursor = { + zoom_factor = 1, + zoom_rigid = false, + zoom_disable_aa = true, + hotspot_padding = 1, + }, + + xwayland = { + force_zero_scaling = true, + }, +}) diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua new file mode 100644 index 000000000..4bb04c85f --- /dev/null +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -0,0 +1,283 @@ +-- Left the hashes that I think you use in your quickshell and scripts in hope it doesn't break the cheatsheat +-- Lines ending with `# [hidden]` won't be shown on cheatsheet +-- Lines starting with #! are section headings + +-- DO NOT REMOVE THIS EXEC OR YOU WON'T BE ABLE TO USE ANY KEYBIND +hl.dsp.exec_cmd("hyprctl dispatch submap global") +-- This is required for catchall to work +local submap = global + +--#! +--##! Shell +--# These absolutely need to be on top, or they won't work consistently +-- example: hl.bind(keys, dispatcher, {flag1 = true, flag2 = true}) +hl.bind("Super + Super_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search +hl.bind("Super + Super_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search +hl.bind("Super + Super_L", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("Super + Super_R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("Super + catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] +hl.bind("Ctrl + Super_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Ctrl + Super_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse:272", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse:273", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse:274", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse:275", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse:276", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse:277", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse_up", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("Super + mouse_down", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] + +hl.bind(" + Super_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind(" + Super_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind("Super + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview +hl.bind("Super + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard +hl.bind("Super + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard +hl.bind("Super + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar +hl.bind("Super + Alt + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] +hl.bind("Super + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("Super + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("Super + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar +hl.bind("Super + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet +hl.bind("Super + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard +hl.bind("Super + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls +hl.bind("Super + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay +hl.bind("Ctrl + Alt + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu +hl.bind("Super + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar +hl.bind("Ctrl + Alt + Delete", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) +hl.bind("Shift + Super + Alt + Slash", hl.dsp.exec_cmd("qs -p ~/.config/quickshell/" .. qsConfig .. "/welcome.qml") ) -- # [hidden] Launch welcome app + +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] + +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("Super + Shift + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] +hl.bind("Alt + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("Super + Alt + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] +hl.bind("Ctrl + Super + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector +hl.bind("Ctrl + Super + Alt + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper +hl.bind("Ctrl + Super + T", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "/scripts/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) +hl.bind("Ctrl + Super + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c " .. qsConfig .. " &") ) -- Restart widgets +hl.bind("Ctrl + Super + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family + +--##! Utilities +--# Screenshot, Record, OCR, Color picker, Clipboard history +hl.bind("Super + V", hl.dsp.exec_cmd( + "qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) +hl.bind("Super + Period", hl.dsp.exec_cmd( + "qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || ~/.config/hypr/hyprland/scripts/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) +hl.bind("Super + Shift + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip +hl.bind("Super + Shift + S", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) +hl.bind("Super + Shift + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens +hl.bind("Super + Shift + A", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || ~/.config/hypr/hyprland/scripts/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) +--# OCR +hl.bind("Super + Shift + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard +hl.bind("Super + Shift + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content +hl.bind("Super + Shift + X", hl.dsp.exec_cmd( + "qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" +) ) -- # [hidden] +--# Color picker +hl.bind("Super + Shift + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard +--# Recording stuff +hl.bind("Super + Shift + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) +hl.bind("Super + Shift + R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "scripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("Super + Alt + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) +hl.bind("Super + Alt + R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "scripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("Ctrl + Alt + R", hl.dsp.exec_cmd("~/.config/quickshell/" .. qsConfig .. "/scripts/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) +hl.bind("Super + Shift + Alt + R", hl.dsp.exec_cmd("~/.config/quickshell/" .. qsConfig .. "/scripts/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) +--# Fullscreen screenshot +hl.bind("Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard +hl.bind("Ctrl + Print", hl.dsp.exec_cmd( + "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png" +), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file +hl.bind("Ctrl + Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) +--# AI +hl.bind("Super + Shift + Alt + mouse:273", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text + -- (requires a running ollama model) + +--#! +--##! Window +--# Focusing +hl.bind("Super + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move +hl.bind("Super + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] +hl.bind("Super + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize +--#/# bind = Super + ←/↑/→/↓,, -- Focus in direction +hl.bind("Super + Left", hl.dsp.focus({l}) ) -- # [hidden] +hl.bind("Super + Right", hl.dsp.focus({r}) ) -- # [hidden] +hl.bind("Super + Up", hl.dsp.focus({u}) ) -- # [hidden] +hl.bind("Super + Down", hl.dsp.focus({d}) ) -- # [hidden] +hl.bind("Super + BracketLeft", hl.dsp.focus({l}) ) -- # [hidden] +hl.bind("Super + BracketRight", hl.dsp.focus({r}) ) -- # [hidden] +--#/# bind = Super + Shift, ←/↑/→/↓,, -- Move in direction +hl.bind("Super + Shift + Left", hl.dsp.window.move({l}) ) -- # [hidden] +hl.bind("Super + Shift + Right", hl.dsp.window.move({r}) ) -- # [hidden] +hl.bind("Super + Shift + Up", hl.dsp.window.move({u}) ) -- # [hidden] +hl.bind("Super + Shift + Down", hl.dsp.window.move({d}) ) -- # [hidden] +hl.bind("Alt + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) +hl.bind("Super + Q", hl.dsp.window.close() ) -- Close +hl.bind("Super + Shift + Alt + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window + + +--# Window split ratio +--#/# binde = Super, ;/',, -- Adjust split ratio +hl.bind("Super + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] +hl.bind("Super + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] +--# Positioning mode +hl.bind("Super+Alt, Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile +hl.bind("Super, D", hl.dsp.window.fullscreen({maximized}), ) -- Maximize +hl.bind("Super, F", hl.dsp.window.fullscreen({fullscreen}), ) -- Fullscreen +hl.bind("Super+Alt, F", hl.dsp.window.fullscreen_state({0, 3}), ) -- Fullscreen spoof +hl.bind("Super, P", hl.dsp.window.pin() ) -- Pin + +--#/# bind = Super+Alt, Hash,, -- Send to workspace -- (1, 2, 3,...) +--# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` +hl.bind("Super + Alt + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] +hl.bind("Super + Alt + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] +hl.bind("Super + Alt + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] +hl.bind("Super + Alt + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] +hl.bind("Super + Alt + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] +hl.bind("Super + Alt + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] +hl.bind("Super + Alt + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] +hl.bind("Super + Alt + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] +hl.bind("Super + Alt + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] +hl.bind("Super + Alt + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] +--# keypad numbers +hl.bind("Super + Alt + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] +hl.bind("Super + Alt + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] +hl.bind("Super + Alt + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] +hl.bind("Super + Alt + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] +hl.bind("Super + Alt + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] +hl.bind("Super + Alt + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] +hl.bind("Super + Alt + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] +hl.bind("Super + Alt + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] +hl.bind("Super + Alt + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] +hl.bind("Super + Alt + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] + +--# #/# bind = Super+Shift, Scroll ↑/↓,, -- Send to workspace left/right +hl.bind("Super + Shift + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("Super + Shift + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("Super + Alt + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("Super + Alt + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] + +--#/# bind = Super+Shift, Page_↑/↓,, -- Send to workspace left/right +hl.bind("Super + Alt + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("Super + Alt + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("Super + Shift + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("Super + Shift + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Shift + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Shift + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] + +hl.bind("Super + Alt + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad + +hl.bind("Ctrl + Super + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] + +--##! Workspace +--# Switching +--#/# bind = Super, Hash,, -- Focus workspace -- (1, 2, 3,...) +--# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` +hl.bind("Super + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] +hl.bind("Super + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] +hl.bind("Super + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] +hl.bind("Super + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] +hl.bind("Super + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] +hl.bind("Super + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] +hl.bind("Super + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] +hl.bind("Super + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] +hl.bind("Super + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] +hl.bind("Super + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] +--# keypad numbers +hl.bind("Super + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] +hl.bind("Super + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] +hl.bind("Super + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] +hl.bind("Super + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] +hl.bind("Super + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] +hl.bind("Super + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] +hl.bind("Super + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] +hl.bind("Super + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] +hl.bind("Super + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] +hl.bind("Super + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] + +--#/# bind = Ctrl+Super, ←/→,, -- Focus left/right +hl.bind("Ctrl + Super + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +--#/# bind = Ctrl+Super+Alt, ←/→,, -- # [hidden] Focus busy left/right +hl.bind("Ctrl + Super + Alt + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Alt + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden] +--#/# bind = Super, Page_↑/↓,, -- Focus left/right +hl.bind("Super + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] +hl.bind("Super + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +--#/# bind = Super, Scroll ↑/↓,, -- Focus left/right +hl.bind("Super + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] +hl.bind("Super + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +--## Special +hl.bind("Super + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad +hl.bind("Super + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("Ctrl + Super + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden] +hl.bind("Ctrl + Super + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] + +--##! Virtual machines +hl.bind("Super + Alt + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit Super+Alt+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds +local submap = virtual-machine +hl.bind("Super + Alt + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden] +local submap = global + +--#! +--# Testing +hl.bind("Super + Alt + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") + ) -- # [hidden] +hl.bind("Super + Alt + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") + ) -- # [hidden] +hl.bind("Super + Alt + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] + +--##! Session +hl.bind("Super + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock +hl.bind("Super + Shift + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep +--hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior + +hl.bind("Ctrl + Shift + Alt + Super + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off + +--##! Screen +--# Zoom +hl.bind("Super + Minus", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3"), {repeating = true} ) -- Zoom out +hl.bind("Super + Equal", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3"), {repeating = true} ) -- Zoom in +--# Zoom with keypad +hl.bind("Super + code:82", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out +hl.bind("Super + code:86", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("Super + code:82", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out +hl.bind("Super + code:86", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in + +--##! Media +hl.bind("Super + Shift + N", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- Next track +hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] +hl.bind("Super + Shift + Alt + mouse:275", hl.dsp.exec_cmd("playerctl previous"), ) -- # [hidden] +hl.bind("Super + Shift + Alt + mouse:276", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), ) -- # [hidden] +hl.bind("Super + Shift + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track +hl.bind("Super + Shift + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media +hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] + +--##! Apps +hl.bind("Super + Return"), hl.dsp.exec_cmd(terminal) ) -- Terminal +hl.bind("Super + T"), hl.dsp.exec_cmd(terminal) ) -- # [hidden] (terminal) (alt) +hl.bind("Ctrl + Alt + T"), hl.dsp.exec_cmd(terminal) ) -- # [hidden] (terminal) (for Ubuntu people) +hl.bind("Super + E"), hl.dsp.exec_cmd(fileManager) ) -- File manager +hl.bind("Super + W"), hl.dsp.exec_cmd(browser) ) -- Browser +hl.bind("Super + C"), hl.dsp.exec_cmd(codeEditor) ) -- Code editor +hl.bind("Ctrl + Super + Shift + Alt + W"), hl.dsp.exec_cmd(officeSoftware) ) -- Office software +hl.bind("Super + X"), hl.dsp.exec_cmd(textEditor) ) -- Text editor +hl.bind("Ctrl + Super + V"), hl.dsp.exec_cmd(volumeMixer) ) -- Volume mixer +hl.bind("Super + I"), hl.dsp.exec_cmd(settingsApp) ) -- Settings app +hl.bind("Ctrl + Shift + Escape"), hl.dsp.exec_cmd(taskManager) ) -- Task manager + +--# Cursed stuff +--## Make window not amogus large +hl.bind("Ctrl + Super + Backslash"), hl.dsp.resize({640, 480, exact}) ) -- # [hidden] diff --git a/dots/.config/hypr/hyprland/rules.lua b/dots/.config/hypr/hyprland/rules.lua new file mode 100644 index 000000000..4e79f3629 --- /dev/null +++ b/dots/.config/hypr/hyprland/rules.lua @@ -0,0 +1,173 @@ +-- ######## Window rules ######## + +-- Disable blur for xwayland context menus +hl.window_rule({match = {class = ^()$ }, match = {title = ^()$ }, no_blur = true }) + +-- Disable blur for every window +hl.window_rule({match = {class = .* }, no_blur = true }) + +-- Floating +hl.window_rule({match = {title = ^(Open File)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(Open File)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(Select a File)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(Select a File)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) +hl.window_rule({match = {title = ^(Open Folder)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(Open Folder)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(Save As)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(Save As)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(Library)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(Library)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(File Upload)(.*)$ }, center = true}) +hl.window_rule({match = {title = ^(File Upload)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^(.*)(wants to save)$ }, center = true}) +hl.window_rule({match = {title = ^(.*)(wants to save)$ }, float = true}) +hl.window_rule({match = {title = ^(.*)(wants to open)$ }, center = true}) +hl.window_rule({match = {title = ^(.*)(wants to open)$ }, float = true}) +hl.window_rule({match = {class = ^(blueberry\.py)$ }, float = true}) +hl.window_rule({match = {class = ^(guifetch)$ }, float = true}) -- FlafyDev/guifetch +hl.window_rule({match = {class = ^(pavucontrol)$ }, float = true}) +hl.window_rule({match = {class = ^(pavucontrol)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = ^(pavucontrol)$ }, center = true}) +hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, float = true}) +hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, center = true}) +hl.window_rule({match = {class = ^(nm-connection-editor)$ }, float = true}) +hl.window_rule({match = {class = ^(nm-connection-editor)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = ^(nm-connection-editor)$ }, center = true}) +hl.window_rule({match = {class = .*plasmawindowed.* }, float = true}) +hl.window_rule({match = {class = kcm_.* }, float = true}) +hl.window_rule({match = {class = .*bluedevilwizard }, float = true}) +hl.window_rule({match = {title = .*Welcome }, float = true}) +hl.window_rule({match = {title = ^(illogical-impulse Settings)$ }, float = true}) +hl.window_rule({match = {title = .*Shell conflicts.* }, float = true}) +hl.window_rule({match = {class = org.freedesktop.impl.portal.desktop.kde }, float = true}) +hl.window_rule({match = {class = org.freedesktop.impl.portal.desktop.kde }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) +hl.window_rule({match = {class = ^(Zotero)$ }, float = true}) +hl.window_rule({match = {class = ^(Zotero)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) + +-- Move +-- kde-material-you-colors spawns a window when changing dark/light theme. This is to make sure it doesn't interfere at all. +hl.window_rule({match = {class = ^(plasma-changeicons)$ }, float = true}) +hl.window_rule({match = {class = ^(plasma-changeicons)$ }, no_initial_focus = true}) +hl.window_rule({match = {class = ^(plasma-changeicons)$ }, move = {999999, 999999}) +-- stupid dolphin copy +hl.window_rule({match = {title = ^(Copying — Dolphin)$ }, move = {40, 80}) + +-- Tiling +hl.window_rule({match = {class = ^dev\.warp\.Warp$ }, tile = true}) + +-- Picture-in-Picture +hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, keep_aspect_ratio = true}) +hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, move = {"(monitor_w*0.73)", "(monitor_h*0.72)"} }) +hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, size = {"(monitor_w*0.25)", "(monitor_h*0.25)"} }) +hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, float = true}) +hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, pin = true}) + +-- Screen sharing +hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, float = true}) +hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, pin = true}) +hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, move = {"(monitor_w*.5-window_w*.5)", "(monitor_h-window_h-12)"} }) + +-- --- Tearing --- +hl.window_rule({match = {title = .*\.exe }, immediate = true}) +hl.window_rule({match = {title = .*minecraft.* }, immediate = true}) +hl.window_rule({match = {class = ^(steam_app).* }, immediate = true}) + +-- Fix Jetbrain IDEs focus/rerendering problem +hl.window_rule({match = {class = ^jetbrains-.*$ }, {match = {float = 1 }, {match = {title = ^$|^\s$|^win\d+$ }, no_initial_focus = true}) + +-- No shadow for tiled windows (matches windows that are not floating). +hl.window_rule({match = {float = 0 }, no_shadow = true}) + +-- ######## Workspace rules ######## +hl.workspace_rule({ workspace = "special:special", gapsout = 30 }) + +-- ######## Layer rules ######## +hl.layer_rule({ match = { namespace = .* }, xray = true}) +--hl.layer_rule({ match = { namespace = .* }, no_anim = true}) +hl.layer_rule({ match = { namespace = walker }, no_anim = true}) +hl.layer_rule({ match = { namespace = selection }, no_anim = true}) +hl.layer_rule({ match = { namespace = overview }, no_anim = true}) +hl.layer_rule({ match = { namespace = anyrun }, no_anim = true}) +hl.layer_rule({ match = { namespace = indicator.* }, no_anim = true}) +hl.layer_rule({ match = { namespace = osk }, no_anim = true}) +hl.layer_rule({ match = { namespace = hyprpicker }, no_anim = true}) + +hl.layer_rule({ match = { namespace = noanim }, no_anim = true}) +hl.layer_rule({ match = { namespace = gtk-layer-shell }, blur = true}) +hl.layer_rule({ match = { namespace = gtk-layer-shell }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = launcher }, blur = true}) +hl.layer_rule({ match = { namespace = launcher }, ignore_alpha = 0.5}) +hl.layer_rule({ match = { namespace = notifications }, blur = true}) +hl.layer_rule({ match = { namespace = notifications }, ignore_alpha = 0.69}) +hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) + +-- ags +hl.layer_rule({ match = { namespace = sideleft.* }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = sideright.* }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = session[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = bar[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = bar[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = barcorner.* }, blur = true}) +hl.layer_rule({ match = { namespace = barcorner.* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = dock[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = dock[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = indicator.* }, blur = true}) +hl.layer_rule({ match = { namespace = indicator.* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = overview[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = overview[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = cheatsheet[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = cheatsheet[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = sideright[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = sideright[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = sideleft[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = sideleft[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = indicator.* }, blur = true}) +hl.layer_rule({ match = { namespace = indicator.* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = osk[0-9]* }, blur = true}) +hl.layer_rule({ match = { namespace = osk[0-9]* }, ignore_alpha = 0.6}) + +-- Quickshell +-- Quickshell: illogical-impulse +hl.layer_rule({ match = { namespace = quickshell:.* }, blur_popups = true}) +hl.layer_rule({ match = { namespace = quickshell:.* }, blur = true}) +hl.layer_rule({ match = { namespace = quickshell:.* }, ignore_alpha = 0.79}) +hl.layer_rule({ match = { namespace = quickshell:bar }, animation = "slide"}) +hl.layer_rule({ match = { namespace = quickshell:actionCenter }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:cheatsheet }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = quickshell:dock }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = quickshell:screenCorners }, animation = "popin 120%"}) +hl.layer_rule({ match = { namespace = quickshell:lockWindowPusher }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:notificationPopup }, animation fade +hl.layer_rule({ match = { namespace = quickshell:overlay }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:overlay }, ignore_alpha = 1}) +hl.layer_rule({ match = { namespace = quickshell:overview }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:osk }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = quickshell:polkit }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:popup }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) +hl.layer_rule({ match = { namespace = quickshell:popup }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) +hl.layer_rule({ match = { namespace = quickshell:mediaControls }, ignore_alpha = 1}) -- Same as above +hl.layer_rule({ match = { namespace = quickshell:reloadPopup }, animation = "slide"}) +hl.layer_rule({ match = { namespace = quickshell:regionSelector }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:screenshot }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:session }, blur = true}) +hl.layer_rule({ match = { namespace = quickshell:session }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:session }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = quickshell:sidebarRight }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = quickshell:sidebarLeft }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = quickshell:verticalBar }, animation = "slide"}) +hl.layer_rule({ match = { namespace = quickshell:osk }, order = -1}) +-- Quickshell: waffles +hl.layer_rule({ match = { namespace = quickshell:wallpaperSelector }, animation = "slide top"}) +hl.layer_rule({ match = { namespace = quickshell:wNotificationCenter }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:wOnScreenDisplay }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:wStartMenu }, no_anim = true}) +hl.layer_rule({ match = { namespace = quickshell:wTaskView }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = quickshell:wTaskView }, no_anim = true}) + +-- Launchers need to be FAST +hl.layer_rule({ match = { namespace = gtk4-layer-shell }, no_anim = true}) diff --git a/dots/.config/hypr/hyprland/variables.lua b/dots/.config/hypr/hyprland/variables.lua new file mode 100644 index 000000000..9df9a7066 --- /dev/null +++ b/dots/.config/hypr/hyprland/variables.lua @@ -0,0 +1,23 @@ +-- Default variables +-- Copy these to ~/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner + +-- Apps +-- PULL REQUESTS ADDING MORE WILL NOT BE ACCEPTED, CONFIG FOR YOURSELF +local terminal = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kitty -1' 'foot' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'" +local fileManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'dolphin' 'nautilus' 'nemo' 'thunar' 'kitty -1 fish -c yazi'" +local browser = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'" +local codeEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'antigravity' 'code' 'codium' 'cursor' 'zed' 'zedit' 'zeditor' 'kate' 'gnome-text-editor' 'emacs' 'command -v nvim && kitty -1 nvim' 'command -v micro && kitty -1 micro'" +local officeSoftware = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'wps' 'onlyoffice-desktopeditors' 'libreoffice'" +local textEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kate' 'gnome-text-editor' 'emacs'" +local volumeMixer = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'pavucontrol-qt' 'pavucontrol'" +local settingsApp = "XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p ~/.config/quickshell/" .. qsConfig .. "/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'" +local taskManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'" + +-- The folder within ~/.config/quickshell containing the config +local qsConfig = "ii" + +-- Leave blank like this to load default config. Set to anything to not. +local dontLoadDefaultExecs = +local dontLoadDefaultGeneral = +local dontLoadDefaultRules = +local dontLoadDefaultKeybinds = From cec16c8720e32258346be2bf7db55659d3902ef9 Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:48:26 +0200 Subject: [PATCH 03/24] Create main.lua --- dots/.config/hypr/hyprland/shellOverrides/main.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/hyprland/shellOverrides/main.lua diff --git a/dots/.config/hypr/hyprland/shellOverrides/main.lua b/dots/.config/hypr/hyprland/shellOverrides/main.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/hyprland/shellOverrides/main.lua @@ -0,0 +1 @@ + From 7834f22243c635573c057925953f37dbb4740e10 Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:48:52 +0200 Subject: [PATCH 04/24] Add files via upload --- dots/.config/hypr/hyprland.lua | 49 ++++++++++++++++++++++++++++++++ dots/.config/hypr/monitors.lua | 4 +++ dots/.config/hypr/workspaces.lua | 4 +++ 3 files changed, 57 insertions(+) create mode 100644 dots/.config/hypr/hyprland.lua create mode 100644 dots/.config/hypr/monitors.lua create mode 100644 dots/.config/hypr/workspaces.lua diff --git a/dots/.config/hypr/hyprland.lua b/dots/.config/hypr/hyprland.lua new file mode 100644 index 000000000..57820af8d --- /dev/null +++ b/dots/.config/hypr/hyprland.lua @@ -0,0 +1,49 @@ +-- This file sources other files in `hyprland` and `custom` folders +-- You wanna add your stuff in files in `custom` + +-- --- Environment variables --- +require("hyprland/env.lua") +-- hyprlang noerror true +require("custom/env.lua") +-- hyprlang noerror false + +-- --- Other vars --- +require("hyprland/variables.lua") +-- hyprlang noerror true +require("custom/variables.lua") +-- hyprlang noerror false + +-- --- Defaults --- +-- hyprlang if !dontLoadDefaultExecs +require("hyprland/execs.lua") +-- hyprlang endif +-- hyprlang if !dontLoadDefaultGeneral +require("hyprland/general.lua") +-- hyprlang endif +-- hyprlang if !dontLoadDefaultRules +require("hyprland/rules.lua") +-- hyprlang endif +-- hyprlang if !dontLoadDefaultColors +require("hyprland/colors.lua") +-- hyprlang endif +-- hyprlang if !dontLoadDefaultKeybinds +require("hyprland/keybinds.lua") +-- hyprlang endif + +-- --- Custom --- +-- hyprlang noerror true +require("custom/execs.lua") +-- hyprlang noerror true +require("custom/general.lua") +-- hyprlang noerror true +require("custom/rules.lua") +-- hyprlang noerror true +require("custom/keybinds.lua") +-- hyprlang noerror false + +-- --- nwg-displays support --- +require("workspaces.lua") +require("monitors.lua") + +-- --- Shell overrides --- +require("hyprland/shellOverrides/main.lua") diff --git a/dots/.config/hypr/monitors.lua b/dots/.config/hypr/monitors.lua new file mode 100644 index 000000000..4feac0ee3 --- /dev/null +++ b/dots/.config/hypr/monitors.lua @@ -0,0 +1,4 @@ +-- This file is to be overwritten by nwg-displays if you choose to use it. +-- nwg-displays is a graphical tool for managing monitors. +-- - Installation for Arch Linux: sudo pacman -S nwg-displays +-- - Repo: https://github.com/nwg-piotr/nwg-displays diff --git a/dots/.config/hypr/workspaces.lua b/dots/.config/hypr/workspaces.lua new file mode 100644 index 000000000..4feac0ee3 --- /dev/null +++ b/dots/.config/hypr/workspaces.lua @@ -0,0 +1,4 @@ +-- This file is to be overwritten by nwg-displays if you choose to use it. +-- nwg-displays is a graphical tool for managing monitors. +-- - Installation for Arch Linux: sudo pacman -S nwg-displays +-- - Repo: https://github.com/nwg-piotr/nwg-displays From 0e1f6a97fcb828459b4fc392f405d351c1d7fc1e Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:49:28 +0200 Subject: [PATCH 05/24] Create env.lua --- dots/.config/hypr/custom/env.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/custom/env.lua diff --git a/dots/.config/hypr/custom/env.lua b/dots/.config/hypr/custom/env.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/custom/env.lua @@ -0,0 +1 @@ + From aff62069306ac38e17427d2a5c5836d880b2bf2f Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:49:42 +0200 Subject: [PATCH 06/24] Create execs.lua --- dots/.config/hypr/custom/execs.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/custom/execs.lua diff --git a/dots/.config/hypr/custom/execs.lua b/dots/.config/hypr/custom/execs.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/custom/execs.lua @@ -0,0 +1 @@ + From b034a712a92c59b59e0b0257c56a62da01d58893 Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:49:57 +0200 Subject: [PATCH 07/24] Create general.lua --- dots/.config/hypr/custom/general.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/custom/general.lua diff --git a/dots/.config/hypr/custom/general.lua b/dots/.config/hypr/custom/general.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/custom/general.lua @@ -0,0 +1 @@ + From 2cfb0c2757415193e58150ee7fbd2c9c0ef810c3 Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:50:11 +0200 Subject: [PATCH 08/24] Create keybinds.lua --- dots/.config/hypr/custom/keybinds.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/custom/keybinds.lua diff --git a/dots/.config/hypr/custom/keybinds.lua b/dots/.config/hypr/custom/keybinds.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/custom/keybinds.lua @@ -0,0 +1 @@ + From c0888cbb988a54954c76e78eacc14985121e54ed Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:50:24 +0200 Subject: [PATCH 09/24] Create rules.lua --- dots/.config/hypr/custom/rules.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/custom/rules.lua diff --git a/dots/.config/hypr/custom/rules.lua b/dots/.config/hypr/custom/rules.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/custom/rules.lua @@ -0,0 +1 @@ + From c693a3f539e61cfdd9ad6766481520de42675cf5 Mon Sep 17 00:00:00 2001 From: ThomasNoorlander <95486686+ThomasNoorlander@users.noreply.github.com> Date: Sat, 2 May 2026 17:50:36 +0200 Subject: [PATCH 10/24] Create variables.lua --- dots/.config/hypr/custom/variables.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 dots/.config/hypr/custom/variables.lua diff --git a/dots/.config/hypr/custom/variables.lua b/dots/.config/hypr/custom/variables.lua new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dots/.config/hypr/custom/variables.lua @@ -0,0 +1 @@ + From 36a4a19bca2d0061e86d4435386b9e8816b0c037 Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Sun, 3 May 2026 11:12:54 +0200 Subject: [PATCH 11/24] Add files via upload --- dots/.config/hypr/hyprland.lua | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/dots/.config/hypr/hyprland.lua b/dots/.config/hypr/hyprland.lua index 57820af8d..057cc250c 100644 --- a/dots/.config/hypr/hyprland.lua +++ b/dots/.config/hypr/hyprland.lua @@ -2,48 +2,48 @@ -- You wanna add your stuff in files in `custom` -- --- Environment variables --- -require("hyprland/env.lua") +require("hyprland/env") -- hyprlang noerror true -require("custom/env.lua") +require("custom/env") -- hyprlang noerror false -- --- Other vars --- -require("hyprland/variables.lua") +require("hyprland/variables") -- hyprlang noerror true -require("custom/variables.lua") +require("custom/variables") -- hyprlang noerror false -- --- Defaults --- -- hyprlang if !dontLoadDefaultExecs -require("hyprland/execs.lua") +require("hyprland/execs") -- hyprlang endif -- hyprlang if !dontLoadDefaultGeneral -require("hyprland/general.lua") +require("hyprland/general") -- hyprlang endif -- hyprlang if !dontLoadDefaultRules -require("hyprland/rules.lua") +require("hyprland/rules") -- hyprlang endif -- hyprlang if !dontLoadDefaultColors -require("hyprland/colors.lua") +require("hyprland/colors") -- hyprlang endif -- hyprlang if !dontLoadDefaultKeybinds -require("hyprland/keybinds.lua") +require("hyprland/keybinds") -- hyprlang endif -- --- Custom --- -- hyprlang noerror true -require("custom/execs.lua") +require("custom/execs") -- hyprlang noerror true -require("custom/general.lua") +require("custom/general") -- hyprlang noerror true -require("custom/rules.lua") +require("custom/rules") -- hyprlang noerror true -require("custom/keybinds.lua") +require("custom/keybinds") -- hyprlang noerror false -- --- nwg-displays support --- -require("workspaces.lua") -require("monitors.lua") +require("workspaces") +require("monitors") -- --- Shell overrides --- -require("hyprland/shellOverrides/main.lua") +require("hyprland/shellOverrides/main") From 63495d0b28def81bd2fcf63e74e65396c1be286b Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Sun, 3 May 2026 11:13:26 +0200 Subject: [PATCH 12/24] Add files via upload --- dots/.config/hypr/hyprland/colors.lua | 8 +- dots/.config/hypr/hyprland/env.lua | 5 +- dots/.config/hypr/hyprland/execs.lua | 2 +- dots/.config/hypr/hyprland/general.lua | 56 ++-- dots/.config/hypr/hyprland/keybinds.lua | 409 ++++++++++++----------- dots/.config/hypr/hyprland/rules.lua | 250 +++++++------- dots/.config/hypr/hyprland/variables.lua | 14 +- 7 files changed, 371 insertions(+), 373 deletions(-) diff --git a/dots/.config/hypr/hyprland/colors.lua b/dots/.config/hypr/hyprland/colors.lua index 0c690d8c3..b07c71835 100644 --- a/dots/.config/hypr/hyprland/colors.lua +++ b/dots/.config/hypr/hyprland/colors.lua @@ -1,7 +1,9 @@ hl.config({ - col = { - active_border = "rgba(44464f77)", - inactive_border = "rgba(1a1b2033)", + general = { + col = { + active_border = "rgba(44464f77)", + inactive_border = "rgba(1a1b2033)", + }, }, misc = { background_color = "rgba(121318FF)", diff --git a/dots/.config/hypr/hyprland/env.lua b/dots/.config/hypr/hyprland/env.lua index cdb79d278..84a1adecb 100644 --- a/dots/.config/hypr/hyprland/env.lua +++ b/dots/.config/hypr/hyprland/env.lua @@ -2,8 +2,7 @@ hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto") -- ######### Applications ######### -hl.env("XDG_DATA_DIRS", "$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share -") +hl.env("XDG_DATA_DIRS", "$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share") -- ############ Themes ############# hl.env("QT_QPA_PLATFORM", "wayland;xcb") @@ -11,4 +10,4 @@ hl.env("QT_QPA_PLATFORMTHEME", "kde") hl.env("XDG_MENU_PREFIX", "plasma-") -- ######## Virtual envrionment ######### -hl.env("ILLOGICAL_IMPULSE_VIRTUAL_ENV", "~/.local/state/quickshell/.venv") +hl.env("ILLOGICAL_IMPULSE_VIRTUAL_ENV", "$HOME/.local/state/quickshell/.venv") diff --git a/dots/.config/hypr/hyprland/execs.lua b/dots/.config/hypr/hyprland/execs.lua index 4cfd77309..df26881bb 100644 --- a/dots/.config/hypr/hyprland/execs.lua +++ b/dots/.config/hypr/hyprland/execs.lua @@ -8,7 +8,7 @@ hl.on("hyprland.start", function () -- Core components (authentication, lock screen, notification daemon) hl.exec_cmd("gnome-keyring-daemon --start --components=secrets") - hl.exec_cmd(hypridle) + hl.exec_cmd("hypridle") hl.exec_cmd("dbus-update-activation-environment --all") hl.exec_cmd("sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") -- Some fix idk diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index c2df49c9e..0b261944c 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -9,18 +9,17 @@ hl.monitor({ hl.gesture({ fingers = 3, direction = "swipe", action = "move" }) hl.gesture({ fingers = 3, direction = "pinch", action = "float" }) hl.gesture({ fingers = 4, direction = "horizontal", action = "workspace" }) --- maybe need to make a function if these two don't work -hl.gesture({ fingers = 4, direction = "up", action = function() global, quickshell:overviewWorkspacesToggle end }) -hl.gesture({ fingers = 4, direction = "down", action = function() global, quickshell:overviewWorkspacesClose end }) --- couldn't find anything about this in the old or the new syntax wiki (plugin?) -hl.gesture({ - workspace_swipe_distance = 700 - workspace_swipe_cancel_ratio = 0.2 - workspace_swipe_min_speed_to_force = 5 - workspace_swipe_direction_lock = true - workspace_swipe_direction_lock_threshold = 10 - workspace_swipe_create_new = true -}) +hl.gesture({ fingers = 4, direction = "up", action = hl.dsp.global("quickshell:overviewWorkspacesToggle") }) +hl.gesture({ fingers = 4, direction = "down", action = hl.dsp.global("quickshell:overviewWorkspacesClose") }) +-- couldn't find anything about this in the old or the new syntax wiki (plugin?) had to comment gave error +--hl.gesture({ +-- workspace_swipe_distance = 700, +-- workspace_swipe_cancel_ratio = 0.2, +-- workspace_swipe_min_speed_to_force = 5, +-- workspace_swipe_direction_lock = true, +-- workspace_swipe_direction_lock_threshold = 10, +-- workspace_swipe_create_new = true, +--}) hl.config({ general = { @@ -40,22 +39,13 @@ hl.config({ no_focus_fallback = true, allow_tearing = true, -- This just allows the `immediate` window rule to work + snap = { + enabled = true, + window_gap = 4, + monitor_gap = 5, + respect_gaps = true, + }, }, - - snap = { - enabled = true, - window_gap = 4, - monitor_gap = 5, - respect_gaps = true, - }, - - dwindle = { - preserve_split = true, - smart_split = false, - smart_resizing = false, - --precise_mouse_move = true, - }, - decoration = { -- 2 = circle, higher = squircle, 4 = very obvious squircle -- Clear squircles look really off; we use only extra .4 here to make the rounding feel more continuous @@ -81,9 +71,9 @@ hl.config({ }, shadow = { enabled = true, - ignore_window = true, + --ignore_window = true, -- deprecated?? range = 20, - offset = 0 2, + offset = {0, 2}, render_power = 10, color = "rgba(00000020)", @@ -96,6 +86,12 @@ hl.config({ animations = { enabled = true, }, + dwindle = { + preserve_split = true, + smart_split = false, + smart_resizing = false, + --precise_mouse_move = true, + }, }) -- Curves hl.curve("expressiveFastSpatial", { type = "bezier", points = { {0.42, 1.67}, {0.21, 0.90} } }) @@ -151,7 +147,7 @@ hl.config({ misc = { disable_hyprland_logo = true, disable_splash_rendering = true, - vfr = 1, + --vfr = 1, --deprecated?? vrr = 0, mouse_move_enables_dpms = true, key_press_enables_dpms = true, diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index 4bb04c85f..7f13b84e0 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -4,280 +4,281 @@ -- DO NOT REMOVE THIS EXEC OR YOU WON'T BE ABLE TO USE ANY KEYBIND hl.dsp.exec_cmd("hyprctl dispatch submap global") --- This is required for catchall to work -local submap = global --#! --##! Shell --# These absolutely need to be on top, or they won't work consistently -- example: hl.bind(keys, dispatcher, {flag1 = true, flag2 = true}) -hl.bind("Super + Super_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search -hl.bind("Super + Super_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search -hl.bind("Super + Super_L", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -hl.bind("Super + Super_R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -hl.bind("Super + catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] -hl.bind("Ctrl + Super_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Ctrl + Super_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse:272", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse:273", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse:274", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse:275", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse:276", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse:277", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse_up", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("Super + mouse_down", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search +hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search +hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +-- This is required for catchall to work +hl.define_submap("global", function() -- can't seem to get it to work when adding SUPER + hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] +end) +hl.bind("CTRL + SUPER_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("CTRL + SUPER_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse:272", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse:273", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse:274", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse:275", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse:276", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse:277", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse_up", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + mouse_down", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind(" + Super_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind(" + Super_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind("Super + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview -hl.bind("Super + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard -hl.bind("Super + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard -hl.bind("Super + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar -hl.bind("Super + Alt + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] -hl.bind("Super + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("Super + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("Super + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar -hl.bind("Super + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet -hl.bind("Super + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard -hl.bind("Super + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls -hl.bind("Super + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay -hl.bind("Ctrl + Alt + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu -hl.bind("Super + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar -hl.bind("Ctrl + Alt + Delete", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) -hl.bind("Shift + Super + Alt + Slash", hl.dsp.exec_cmd("qs -p ~/.config/quickshell/" .. qsConfig .. "/welcome.qml") ) -- # [hidden] Launch welcome app +hl.bind(" + SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind(" + SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview +hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard +hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard +hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar +hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] +hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar +hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet +hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard +hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls +hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay +hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu +hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar +hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) +hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p ~/.config/quickshell/$qsConfig/welcome.qml") ) -- # [hidden] Launch welcome app -hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("qs -c $qsConfig ipc call brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("qs -c $qsConfig ipc call brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("Super + Shift + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] -hl.bind("Alt + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] +hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("Super + Alt + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] -hl.bind("Ctrl + Super + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector -hl.bind("Ctrl + Super + Alt + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper -hl.bind("Ctrl + Super + T", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "/scripts/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) -hl.bind("Ctrl + Super + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c " .. qsConfig .. " &") ) -- Restart widgets -hl.bind("Ctrl + Super + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family +hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] +hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector +hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper +hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfig/scripts/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) +hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &") ) -- Restart widgets +hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family --##! Utilities --# Screenshot, Record, OCR, Color picker, Clipboard history -hl.bind("Super + V", hl.dsp.exec_cmd( - "qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) -hl.bind("Super + Period", hl.dsp.exec_cmd( - "qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || ~/.config/hypr/hyprland/scripts/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) -hl.bind("Super + Shift + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip -hl.bind("Super + Shift + S", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) -hl.bind("Super + Shift + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens -hl.bind("Super + Shift + A", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || ~/.config/hypr/hyprland/scripts/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) +hl.bind("SUPER + V", hl.dsp.exec_cmd( + "qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) +hl.bind("SUPER + Period", hl.dsp.exec_cmd( + "qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || ~/.config/hypr/hyprland/scripts/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) +hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip +hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) +hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens +hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || ~/.config/hypr/hyprland/scripts/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) --# OCR -hl.bind("Super + Shift + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard -hl.bind("Super + Shift + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content -hl.bind("Super + Shift + X", hl.dsp.exec_cmd( - "qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" +hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard +hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content +hl.bind("SUPER + SHIFT + X", hl.dsp.exec_cmd( + "qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" ) ) -- # [hidden] --# Color picker -hl.bind("Super + Shift + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard +hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard --# Recording stuff -hl.bind("Super + Shift + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) -hl.bind("Super + Shift + R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "scripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("Super + Alt + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) -hl.bind("Super + Alt + R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "scripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("Ctrl + Alt + R", hl.dsp.exec_cmd("~/.config/quickshell/" .. qsConfig .. "/scripts/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) -hl.bind("Super + Shift + Alt + R", hl.dsp.exec_cmd("~/.config/quickshell/" .. qsConfig .. "/scripts/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfigscripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) +hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfigscripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd("~/.config/quickshell/$qsConfig/scripts/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) +hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd("~/.config/quickshell/$qsConfig/scripts/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) --# Fullscreen screenshot hl.bind("Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard -hl.bind("Ctrl + Print", hl.dsp.exec_cmd( +hl.bind("CTRL + Print", hl.dsp.exec_cmd( "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png" ), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file -hl.bind("Ctrl + Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) +hl.bind("CTRL + Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) --# AI -hl.bind("Super + Shift + Alt + mouse:273", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text +hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text -- (requires a running ollama model) --#! --##! Window --# Focusing -hl.bind("Super + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move -hl.bind("Super + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] -hl.bind("Super + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize ---#/# bind = Super + ←/↑/→/↓,, -- Focus in direction -hl.bind("Super + Left", hl.dsp.focus({l}) ) -- # [hidden] -hl.bind("Super + Right", hl.dsp.focus({r}) ) -- # [hidden] -hl.bind("Super + Up", hl.dsp.focus({u}) ) -- # [hidden] -hl.bind("Super + Down", hl.dsp.focus({d}) ) -- # [hidden] -hl.bind("Super + BracketLeft", hl.dsp.focus({l}) ) -- # [hidden] -hl.bind("Super + BracketRight", hl.dsp.focus({r}) ) -- # [hidden] ---#/# bind = Super + Shift, ←/↑/→/↓,, -- Move in direction -hl.bind("Super + Shift + Left", hl.dsp.window.move({l}) ) -- # [hidden] -hl.bind("Super + Shift + Right", hl.dsp.window.move({r}) ) -- # [hidden] -hl.bind("Super + Shift + Up", hl.dsp.window.move({u}) ) -- # [hidden] -hl.bind("Super + Shift + Down", hl.dsp.window.move({d}) ) -- # [hidden] -hl.bind("Alt + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) -hl.bind("Super + Q", hl.dsp.window.close() ) -- Close -hl.bind("Super + Shift + Alt + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window +hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move +hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] +hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize +--#/# bind = SUPER + ←/↑/→/↓,, -- Focus in direction +hl.bind("SUPER + Left", hl.dsp.focus({direction = "l"}) ) -- # [hidden] +hl.bind("SUPER + Right", hl.dsp.focus({direction = "r"}) ) -- # [hidden] +hl.bind("SUPER + Up", hl.dsp.focus({direction = "u"}) ) -- # [hidden] +hl.bind("SUPER + Down", hl.dsp.focus({direction = "d"}) ) -- # [hidden] +hl.bind("SUPER + BracketLeft", hl.dsp.focus({direction = "l"}) ) -- # [hidden] +hl.bind("SUPER + BracketRight", hl.dsp.focus({direction = "r"}) ) -- # [hidden] +--#/# bind = SUPER + SHIFT, ←/↑/→/↓,, -- Move in direction +hl.bind("SUPER + SHIFT + Left", hl.dsp.window.move({direction = "l"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Right", hl.dsp.window.move({direction = "r"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Up", hl.dsp.window.move({direction = "u"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Down", hl.dsp.window.move({direction = "d"}) ) -- # [hidden] +hl.bind("ALT + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) +hl.bind("SUPER + Q", hl.dsp.window.close() ) -- Close +hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window --# Window split ratio ---#/# binde = Super, ;/',, -- Adjust split ratio -hl.bind("Super + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] -hl.bind("Super + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] +--#/# binde = SUPER, ;/',, -- Adjust split ratio +hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] +hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] --# Positioning mode -hl.bind("Super+Alt, Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile -hl.bind("Super, D", hl.dsp.window.fullscreen({maximized}), ) -- Maximize -hl.bind("Super, F", hl.dsp.window.fullscreen({fullscreen}), ) -- Fullscreen -hl.bind("Super+Alt, F", hl.dsp.window.fullscreen_state({0, 3}), ) -- Fullscreen spoof -hl.bind("Super, P", hl.dsp.window.pin() ) -- Pin +hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile +hl.bind("SUPER + D", hl.dsp.window.fullscreen({maximized}) ) -- Maximize +hl.bind("SUPER + F", hl.dsp.window.fullscreen({fullscreen}) ) -- Fullscreen +hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof +hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin ---#/# bind = Super+Alt, Hash,, -- Send to workspace -- (1, 2, 3,...) +--#/# bind = SUPER+ALT, Hash,, -- Send to workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` -hl.bind("Super + Alt + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] -hl.bind("Super + Alt + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] -hl.bind("Super + Alt + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] -hl.bind("Super + Alt + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] -hl.bind("Super + Alt + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] -hl.bind("Super + Alt + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] -hl.bind("Super + Alt + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] -hl.bind("Super + Alt + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] -hl.bind("Super + Alt + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] -hl.bind("Super + Alt + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] +hl.bind("SUPER + ALT + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] +hl.bind("SUPER + ALT + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] +hl.bind("SUPER + ALT + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] +hl.bind("SUPER + ALT + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] +hl.bind("SUPER + ALT + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] +hl.bind("SUPER + ALT + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] +hl.bind("SUPER + ALT + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] +hl.bind("SUPER + ALT + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] +hl.bind("SUPER + ALT + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] +hl.bind("SUPER + ALT + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] --# keypad numbers -hl.bind("Super + Alt + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] -hl.bind("Super + Alt + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] -hl.bind("Super + Alt + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] -hl.bind("Super + Alt + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] -hl.bind("Super + Alt + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] -hl.bind("Super + Alt + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] -hl.bind("Super + Alt + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] -hl.bind("Super + Alt + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] -hl.bind("Super + Alt + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] -hl.bind("Super + Alt + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] +hl.bind("SUPER + ALT + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] +hl.bind("SUPER + ALT + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] +hl.bind("SUPER + ALT + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] +hl.bind("SUPER + ALT + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] +hl.bind("SUPER + ALT + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] +hl.bind("SUPER + ALT + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] +hl.bind("SUPER + ALT + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] +hl.bind("SUPER + ALT + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] +hl.bind("SUPER + ALT + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] +hl.bind("SUPER + ALT + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] ---# #/# bind = Super+Shift, Scroll ↑/↓,, -- Send to workspace left/right -hl.bind("Super + Shift + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("Super + Shift + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("Super + Alt + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("Super + Alt + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +--# #/# bind = SUPER+SHIFT, Scroll ↑/↓,, -- Send to workspace left/right +hl.bind("SUPER + SHIFT + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] ---#/# bind = Super+Shift, Page_↑/↓,, -- Send to workspace left/right -hl.bind("Super + Alt + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] -hl.bind("Super + Alt + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("Super + Shift + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("Super + Shift + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Shift + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Shift + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +--#/# bind = SUPER+SHIFT, Page_↑/↓,, -- Send to workspace left/right +hl.bind("SUPER + ALT + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + SHIFT + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + SHIFT + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("Super + Alt + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad +hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad -hl.bind("Ctrl + Super + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] --##! Workspace --# Switching ---#/# bind = Super, Hash,, -- Focus workspace -- (1, 2, 3,...) +--#/# bind = SUPER, Hash,, -- Focus workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` -hl.bind("Super + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] -hl.bind("Super + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] -hl.bind("Super + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] -hl.bind("Super + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] -hl.bind("Super + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] -hl.bind("Super + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] -hl.bind("Super + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] -hl.bind("Super + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] -hl.bind("Super + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] -hl.bind("Super + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] +hl.bind("SUPER + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] +hl.bind("SUPER + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] +hl.bind("SUPER + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] +hl.bind("SUPER + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] +hl.bind("SUPER + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] +hl.bind("SUPER + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] +hl.bind("SUPER + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] +hl.bind("SUPER + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] +hl.bind("SUPER + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] +hl.bind("SUPER + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] --# keypad numbers -hl.bind("Super + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] -hl.bind("Super + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] -hl.bind("Super + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] -hl.bind("Super + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] -hl.bind("Super + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] -hl.bind("Super + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] -hl.bind("Super + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] -hl.bind("Super + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] -hl.bind("Super + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] -hl.bind("Super + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] +hl.bind("SUPER + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] +hl.bind("SUPER + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] +hl.bind("SUPER + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] +hl.bind("SUPER + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] +hl.bind("SUPER + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] +hl.bind("SUPER + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] +hl.bind("SUPER + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] +hl.bind("SUPER + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] +hl.bind("SUPER + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] +hl.bind("SUPER + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] ---#/# bind = Ctrl+Super, ←/→,, -- Focus left/right -hl.bind("Ctrl + Super + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] ---#/# bind = Ctrl+Super+Alt, ←/→,, -- # [hidden] Focus busy left/right -hl.bind("Ctrl + Super + Alt + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Alt + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden] ---#/# bind = Super, Page_↑/↓,, -- Focus left/right -hl.bind("Super + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] -hl.bind("Super + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] ---#/# bind = Super, Scroll ↑/↓,, -- Focus left/right -hl.bind("Super + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] -hl.bind("Super + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +--#/# bind = CTRL+SUPER, ←/→,, -- Focus left/right +hl.bind("CTRL + SUPER + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +--#/# bind = CTRL+SUPER+ALT, ←/→,, -- # [hidden] Focus busy left/right +hl.bind("CTRL + SUPER + ALT + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + ALT + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden] +--#/# bind = SUPER, Page_↑/↓,, -- Focus left/right +hl.bind("SUPER + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +--#/# bind = SUPER, Scroll ↑/↓,, -- Focus left/right +hl.bind("SUPER + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] --## Special -hl.bind("Super + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad -hl.bind("Super + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] -hl.bind("Ctrl + Super + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden] -hl.bind("Ctrl + Super + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] +hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad +hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("CTRL + SUPER + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] --##! Virtual machines -hl.bind("Super + Alt + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit Super+Alt+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds -local submap = virtual-machine -hl.bind("Super + Alt + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden] -local submap = global +hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit SUPER+ALT+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds +hl.define_submap("virtual-machine", function() end) +hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden] +hl.define_submap("global", function() end) --#! --# Testing -hl.bind("Super + Alt + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") +hl.bind("SUPER + ALT + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") ) -- # [hidden] -hl.bind("Super + Alt + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") +hl.bind("SUPER + ALT + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") ) -- # [hidden] -hl.bind("Super + Alt + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] +hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] --##! Session -hl.bind("Super + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock -hl.bind("Super + Shift + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep +hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock +hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep --hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior -hl.bind("Ctrl + Shift + Alt + Super + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off +hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off --##! Screen --# Zoom -hl.bind("Super + Minus", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3"), {repeating = true} ) -- Zoom out -hl.bind("Super + Equal", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3"), {repeating = true} ) -- Zoom in +hl.bind("SUPER + Minus", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3"), {repeating = true} ) -- Zoom out +hl.bind("SUPER + Equal", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3"), {repeating = true} ) -- Zoom in --# Zoom with keypad -hl.bind("Super + code:82", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out -hl.bind("Super + code:86", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in -hl.bind("Super + code:82", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out -hl.bind("Super + code:86", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("SUPER + code:82", hl.dsp.exec_cmd("qs -c $qsConfig ipc call zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out +hl.bind("SUPER + code:86", hl.dsp.exec_cmd("qs -c $qsConfig ipc call zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("SUPER + code:82", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out +hl.bind("SUPER + code:86", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in --##! Media -hl.bind("Super + Shift + N", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- Next track +hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- Next track hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- # [hidden] hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] -hl.bind("Super + Shift + Alt + mouse:275", hl.dsp.exec_cmd("playerctl previous"), ) -- # [hidden] -hl.bind("Super + Shift + Alt + mouse:276", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), ) -- # [hidden] -hl.bind("Super + Shift + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track -hl.bind("Super + Shift + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media +hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) -- # [hidden] +hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`") ) -- # [hidden] +hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track +hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] --##! Apps -hl.bind("Super + Return"), hl.dsp.exec_cmd(terminal) ) -- Terminal -hl.bind("Super + T"), hl.dsp.exec_cmd(terminal) ) -- # [hidden] (terminal) (alt) -hl.bind("Ctrl + Alt + T"), hl.dsp.exec_cmd(terminal) ) -- # [hidden] (terminal) (for Ubuntu people) -hl.bind("Super + E"), hl.dsp.exec_cmd(fileManager) ) -- File manager -hl.bind("Super + W"), hl.dsp.exec_cmd(browser) ) -- Browser -hl.bind("Super + C"), hl.dsp.exec_cmd(codeEditor) ) -- Code editor -hl.bind("Ctrl + Super + Shift + Alt + W"), hl.dsp.exec_cmd(officeSoftware) ) -- Office software -hl.bind("Super + X"), hl.dsp.exec_cmd(textEditor) ) -- Text editor -hl.bind("Ctrl + Super + V"), hl.dsp.exec_cmd(volumeMixer) ) -- Volume mixer -hl.bind("Super + I"), hl.dsp.exec_cmd(settingsApp) ) -- Settings app -hl.bind("Ctrl + Shift + Escape"), hl.dsp.exec_cmd(taskManager) ) -- Task manager +hl.bind("SUPER + Return", hl.dsp.exec_cmd("$terminal") ) -- Terminal +hl.bind("SUPER + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (alt) +hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (for Ubuntu people) +hl.bind("SUPER + E", hl.dsp.exec_cmd("$fileManager") ) -- File manager +hl.bind("SUPER + W", hl.dsp.exec_cmd("$browser") ) -- Browser +hl.bind("SUPER + C", hl.dsp.exec_cmd("$codeEditor") ) -- Code editor +hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd("$officeSoftware") ) -- Office software +hl.bind("SUPER + X", hl.dsp.exec_cmd("$textEditor") ) -- Text editor +hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd("$volumeMixer") ) -- Volume mixer +hl.bind("SUPER + I", hl.dsp.exec_cmd("$settingsApp") ) -- Settings app +hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManager") ) -- Task manager --# Cursed stuff --## Make window not amogus large -hl.bind("Ctrl + Super + Backslash"), hl.dsp.resize({640, 480, exact}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, exact}) ) -- # [hidden] diff --git a/dots/.config/hypr/hyprland/rules.lua b/dots/.config/hypr/hyprland/rules.lua index 4e79f3629..2c88ac9b4 100644 --- a/dots/.config/hypr/hyprland/rules.lua +++ b/dots/.config/hypr/hyprland/rules.lua @@ -1,173 +1,173 @@ -- ######## Window rules ######## -- Disable blur for xwayland context menus -hl.window_rule({match = {class = ^()$ }, match = {title = ^()$ }, no_blur = true }) +hl.window_rule({match = {class = "^()$" }, match = {title = "^()$" }, no_blur = true }) -- Disable blur for every window -hl.window_rule({match = {class = .* }, no_blur = true }) +hl.window_rule({match = {class = ".*" }, no_blur = true }) -- Floating -hl.window_rule({match = {title = ^(Open File)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(Open File)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(Select a File)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(Select a File)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) -hl.window_rule({match = {title = ^(Open Folder)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(Open Folder)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(Save As)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(Save As)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(Library)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(Library)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(File Upload)(.*)$ }, center = true}) -hl.window_rule({match = {title = ^(File Upload)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^(.*)(wants to save)$ }, center = true}) -hl.window_rule({match = {title = ^(.*)(wants to save)$ }, float = true}) -hl.window_rule({match = {title = ^(.*)(wants to open)$ }, center = true}) -hl.window_rule({match = {title = ^(.*)(wants to open)$ }, float = true}) -hl.window_rule({match = {class = ^(blueberry\.py)$ }, float = true}) -hl.window_rule({match = {class = ^(guifetch)$ }, float = true}) -- FlafyDev/guifetch -hl.window_rule({match = {class = ^(pavucontrol)$ }, float = true}) -hl.window_rule({match = {class = ^(pavucontrol)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -hl.window_rule({match = {class = ^(pavucontrol)$ }, center = true}) -hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, float = true}) -hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, center = true}) -hl.window_rule({match = {class = ^(nm-connection-editor)$ }, float = true}) -hl.window_rule({match = {class = ^(nm-connection-editor)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -hl.window_rule({match = {class = ^(nm-connection-editor)$ }, center = true}) -hl.window_rule({match = {class = .*plasmawindowed.* }, float = true}) -hl.window_rule({match = {class = kcm_.* }, float = true}) -hl.window_rule({match = {class = .*bluedevilwizard }, float = true}) -hl.window_rule({match = {title = .*Welcome }, float = true}) -hl.window_rule({match = {title = ^(illogical-impulse Settings)$ }, float = true}) -hl.window_rule({match = {title = .*Shell conflicts.* }, float = true}) -hl.window_rule({match = {class = org.freedesktop.impl.portal.desktop.kde }, float = true}) -hl.window_rule({match = {class = org.freedesktop.impl.portal.desktop.kde }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) -hl.window_rule({match = {class = ^(Zotero)$ }, float = true}) -hl.window_rule({match = {class = ^(Zotero)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {title = "^(Open File)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Open File)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Select a File)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Select a File)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) +hl.window_rule({match = {title = "^(Open Folder)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Open Folder)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Save As)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Save As)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Library)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Library)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(File Upload)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(File Upload)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(.*)(wants to save)$" }, center = true}) +hl.window_rule({match = {title = "^(.*)(wants to save)$" }, float = true}) +hl.window_rule({match = {title = "^(.*)(wants to open)$" }, center = true}) +hl.window_rule({match = {title = "^(.*)(wants to open)$" }, float = true}) +hl.window_rule({match = {class = "^(blueberry\\.py)$" }, float = true}) +hl.window_rule({match = {class = "^(guifetch)$" }, float = true}) -- FlafyDev/guifetch +hl.window_rule({match = {class = "^(pavucontrol)$" }, float = true}) +hl.window_rule({match = {class = "^(pavucontrol)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = "^(pavucontrol)$" }, center = true}) +hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, float = true}) +hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, center = true}) +hl.window_rule({match = {class = "^(nm-connection-editor)$" }, float = true}) +hl.window_rule({match = {class = "^(nm-connection-editor)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = "^(nm-connection-editor)$" }, center = true}) +hl.window_rule({match = {class = ".*plasmawindowed.*" }, float = true}) +hl.window_rule({match = {class = "cm_.*" }, float = true}) +hl.window_rule({match = {class = ".*bluedevilwizard" }, float = true}) +hl.window_rule({match = {title = ".*Welcome" }, float = true}) +hl.window_rule({match = {title = "^(illogical-impulse Settings)$" }, float = true}) +hl.window_rule({match = {title = ".*Shell conflicts.*" }, float = true}) +hl.window_rule({match = {class = "rg.freedesktop.impl.portal.desktop.kde" }, float = true}) +hl.window_rule({match = {class = "rg.freedesktop.impl.portal.desktop.kde" }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) +hl.window_rule({match = {class = "^(Zotero)$" }, float = true}) +hl.window_rule({match = {class = "^(Zotero)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -- Move -- kde-material-you-colors spawns a window when changing dark/light theme. This is to make sure it doesn't interfere at all. -hl.window_rule({match = {class = ^(plasma-changeicons)$ }, float = true}) -hl.window_rule({match = {class = ^(plasma-changeicons)$ }, no_initial_focus = true}) -hl.window_rule({match = {class = ^(plasma-changeicons)$ }, move = {999999, 999999}) +hl.window_rule({match = {class = "^(plasma-changeicons)$" }, float = true}) +hl.window_rule({match = {class = "^(plasma-changeicons)$" }, no_initial_focus = true}) +hl.window_rule({match = {class = "^(plasma-changeicons)$" }, move = {999999, 999999}}) -- stupid dolphin copy -hl.window_rule({match = {title = ^(Copying — Dolphin)$ }, move = {40, 80}) +hl.window_rule({match = {title = "^(Copying — Dolphin)$" }, move = {40, 80}}) -- Tiling -hl.window_rule({match = {class = ^dev\.warp\.Warp$ }, tile = true}) +hl.window_rule({match = {class = "^dev\\.warp\\.Warp$" }, tile = true}) -- Picture-in-Picture -hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, keep_aspect_ratio = true}) -hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, move = {"(monitor_w*0.73)", "(monitor_h*0.72)"} }) -hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, size = {"(monitor_w*0.25)", "(monitor_h*0.25)"} }) -hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, float = true}) -hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, pin = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, keep_aspect_ratio = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, move = {"(monitor_w*0.73)", "(monitor_h*0.72)"} }) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, size = {"(monitor_w*0.25)", "(monitor_h*0.25)"} }) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, pin = true}) -- Screen sharing -hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, float = true}) -hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, pin = true}) -hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, move = {"(monitor_w*.5-window_w*.5)", "(monitor_h-window_h-12)"} }) +hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, float = true}) +hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, pin = true}) +hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, move = {"(monitor_w*.5-window_w*.5)", "(monitor_h-window_h-12)"} }) -- --- Tearing --- -hl.window_rule({match = {title = .*\.exe }, immediate = true}) -hl.window_rule({match = {title = .*minecraft.* }, immediate = true}) -hl.window_rule({match = {class = ^(steam_app).* }, immediate = true}) +hl.window_rule({match = {title = ".*\\.exe" }, immediate = true}) +hl.window_rule({match = {title = ".*minecraft.*" }, immediate = true}) +hl.window_rule({match = {class = "^(steam_app).*" }, immediate = true}) -- Fix Jetbrain IDEs focus/rerendering problem -hl.window_rule({match = {class = ^jetbrains-.*$ }, {match = {float = 1 }, {match = {title = ^$|^\s$|^win\d+$ }, no_initial_focus = true}) +hl.window_rule({match = {class = "^jetbrains-.*$" }, match = {float = 1 }, match = {title = "^$|^\\s$|^win\\d+$" }, no_initial_focus = true}) -- No shadow for tiled windows (matches windows that are not floating). hl.window_rule({match = {float = 0 }, no_shadow = true}) -- ######## Workspace rules ######## -hl.workspace_rule({ workspace = "special:special", gapsout = 30 }) +hl.workspace_rule({ workspace = "special:special", gaps_out = 30 }) -- ######## Layer rules ######## -hl.layer_rule({ match = { namespace = .* }, xray = true}) ---hl.layer_rule({ match = { namespace = .* }, no_anim = true}) +hl.layer_rule({ match = { namespace = ".*" }, xray = true}) +--hl.layer_rule({ match = { namespace = ".*" }, no_anim = true}) hl.layer_rule({ match = { namespace = walker }, no_anim = true}) hl.layer_rule({ match = { namespace = selection }, no_anim = true}) hl.layer_rule({ match = { namespace = overview }, no_anim = true}) hl.layer_rule({ match = { namespace = anyrun }, no_anim = true}) -hl.layer_rule({ match = { namespace = indicator.* }, no_anim = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, no_anim = true}) hl.layer_rule({ match = { namespace = osk }, no_anim = true}) hl.layer_rule({ match = { namespace = hyprpicker }, no_anim = true}) hl.layer_rule({ match = { namespace = noanim }, no_anim = true}) -hl.layer_rule({ match = { namespace = gtk-layer-shell }, blur = true}) -hl.layer_rule({ match = { namespace = gtk-layer-shell }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, blur = true}) +hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0}) hl.layer_rule({ match = { namespace = launcher }, blur = true}) hl.layer_rule({ match = { namespace = launcher }, ignore_alpha = 0.5}) hl.layer_rule({ match = { namespace = notifications }, blur = true}) hl.layer_rule({ match = { namespace = notifications }, ignore_alpha = 0.69}) -hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) +--hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) -- ags -hl.layer_rule({ match = { namespace = sideleft.* }, animation = "slide left"}) -hl.layer_rule({ match = { namespace = sideright.* }, animation = "slide right"}) -hl.layer_rule({ match = { namespace = session[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = bar[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = bar[0-9]* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = barcorner.* }, blur = true}) -hl.layer_rule({ match = { namespace = barcorner.* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = dock[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = dock[0-9]* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = indicator.* }, blur = true}) -hl.layer_rule({ match = { namespace = indicator.* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = overview[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = overview[0-9]* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = cheatsheet[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = cheatsheet[0-9]* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = sideright[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = sideright[0-9]* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = sideleft[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = sideleft[0-9]* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = indicator.* }, blur = true}) -hl.layer_rule({ match = { namespace = indicator.* }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = osk[0-9]* }, blur = true}) -hl.layer_rule({ match = { namespace = osk[0-9]* }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "sideleft.*" }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = "sideright.*" }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = "session[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "bar[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "bar[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "barcorner.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "barcorner.*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "dock[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "dock[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "indicator.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "overview[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "overview[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "cheatsheet[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "cheatsheet[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "sideright[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "sideright[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "sideleft[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "sideleft[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "indicator.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "osk[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "osk[0-9]*" }, ignore_alpha = 0.6}) -- Quickshell -- Quickshell: illogical-impulse -hl.layer_rule({ match = { namespace = quickshell:.* }, blur_popups = true}) -hl.layer_rule({ match = { namespace = quickshell:.* }, blur = true}) -hl.layer_rule({ match = { namespace = quickshell:.* }, ignore_alpha = 0.79}) -hl.layer_rule({ match = { namespace = quickshell:bar }, animation = "slide"}) -hl.layer_rule({ match = { namespace = quickshell:actionCenter }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:cheatsheet }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = quickshell:dock }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = quickshell:screenCorners }, animation = "popin 120%"}) -hl.layer_rule({ match = { namespace = quickshell:lockWindowPusher }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:notificationPopup }, animation fade -hl.layer_rule({ match = { namespace = quickshell:overlay }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:overlay }, ignore_alpha = 1}) -hl.layer_rule({ match = { namespace = quickshell:overview }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:osk }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = quickshell:polkit }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:popup }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) -hl.layer_rule({ match = { namespace = quickshell:popup }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) -hl.layer_rule({ match = { namespace = quickshell:mediaControls }, ignore_alpha = 1}) -- Same as above -hl.layer_rule({ match = { namespace = quickshell:reloadPopup }, animation = "slide"}) -hl.layer_rule({ match = { namespace = quickshell:regionSelector }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:screenshot }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:session }, blur = true}) -hl.layer_rule({ match = { namespace = quickshell:session }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:session }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = quickshell:sidebarRight }, animation = "slide right"}) -hl.layer_rule({ match = { namespace = quickshell:sidebarLeft }, animation = "slide left"}) -hl.layer_rule({ match = { namespace = quickshell:verticalBar }, animation = "slide"}) -hl.layer_rule({ match = { namespace = quickshell:osk }, order = -1}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur_popups = true}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, ignore_alpha = 0.79}) +hl.layer_rule({ match = { namespace = "quickshell:bar" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:actionCenter" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:cheatsheet" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:dock" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:screenCorners" }, animation = "popin 120%"}) +hl.layer_rule({ match = { namespace = "quickshell:lockWindowPusher" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:notificationPopup" }, animation = "fade"}) +hl.layer_rule({ match = { namespace = "quickshell:overlay" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:overlay" }, ignore_alpha = 1}) +hl.layer_rule({ match = { namespace = "quickshell:overview" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:osk" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:polkit" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:popup" }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) +hl.layer_rule({ match = { namespace = "quickshell:popup" }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) +hl.layer_rule({ match = { namespace = "quickshell:mediaControls" }, ignore_alpha = 1}) -- Same as above +hl.layer_rule({ match = { namespace = "quickshell:reloadPopup" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:regionSelector" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:screenshot" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, blur = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "quickshell:sidebarRight" }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = "quickshell:sidebarLeft" }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = "quickshell:verticalBar" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:osk" }, order = -1}) -- Quickshell: waffles -hl.layer_rule({ match = { namespace = quickshell:wallpaperSelector }, animation = "slide top"}) -hl.layer_rule({ match = { namespace = quickshell:wNotificationCenter }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:wOnScreenDisplay }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:wStartMenu }, no_anim = true}) -hl.layer_rule({ match = { namespace = quickshell:wTaskView }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = quickshell:wTaskView }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wallpaperSelector" }, animation = "slide top"}) +hl.layer_rule({ match = { namespace = "quickshell:wNotificationCenter" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wOnScreenDisplay" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wStartMenu" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, no_anim = true}) -- Launchers need to be FAST -hl.layer_rule({ match = { namespace = gtk4-layer-shell }, no_anim = true}) +hl.layer_rule({ match = { namespace = "gtk4-layer-shell" }, no_anim = true}) diff --git a/dots/.config/hypr/hyprland/variables.lua b/dots/.config/hypr/hyprland/variables.lua index 9df9a7066..4dae25b03 100644 --- a/dots/.config/hypr/hyprland/variables.lua +++ b/dots/.config/hypr/hyprland/variables.lua @@ -1,6 +1,9 @@ -- Default variables -- Copy these to ~/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner +-- The folder within ~/.config/quickshell containing the config +local qsConfig = "ii" + -- Apps -- PULL REQUESTS ADDING MORE WILL NOT BE ACCEPTED, CONFIG FOR YOURSELF local terminal = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kitty -1' 'foot' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'" @@ -13,11 +16,8 @@ local volumeMixer = "~/.config/hypr/hyprland/scripts/launch_first_available.sh ' local settingsApp = "XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p ~/.config/quickshell/" .. qsConfig .. "/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'" local taskManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'" --- The folder within ~/.config/quickshell containing the config -local qsConfig = "ii" - -- Leave blank like this to load default config. Set to anything to not. -local dontLoadDefaultExecs = -local dontLoadDefaultGeneral = -local dontLoadDefaultRules = -local dontLoadDefaultKeybinds = +local dontLoadDefaultExecs = "" +local dontLoadDefaultGeneral = "" +local dontLoadDefaultRules = "" +local dontLoadDefaultKeybinds = "" From d1cd892c0f8a41982ca5ba1de89bdfbe975b0523 Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Sun, 3 May 2026 13:16:49 +0200 Subject: [PATCH 13/24] Add files via upload --- dots/.config/hypr/hyprland/execs.lua | 4 +-- dots/.config/hypr/hyprland/keybinds.lua | 14 +++++----- dots/.config/hypr/hyprland/variables.lua | 33 ++++++++++++------------ 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/dots/.config/hypr/hyprland/execs.lua b/dots/.config/hypr/hyprland/execs.lua index df26881bb..4c277af67 100644 --- a/dots/.config/hypr/hyprland/execs.lua +++ b/dots/.config/hypr/hyprland/execs.lua @@ -2,9 +2,9 @@ hl.on("hyprland.start", function () -- Bar, wallpaper - hl.exec_cmd("~/.config/hypr/hyprland/scripts/start_geoclue_agent.sh") + hl.exec_cmd("$HOME/.config/hypr/hyprland/scripts/start_geoclue_agent.sh") hl.exec_cmd("qs -c $qsConfig") - hl.exec_cmd("~/.config/hypr/custom/scripts/__restore_video_wallpaper.sh") + hl.exec_cmd("$HOME/.config/hypr/custom/scripts/__restore_video_wallpaper.sh") -- Core components (authentication, lock screen, notification daemon) hl.exec_cmd("gnome-keyring-daemon --start --components=secrets") diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index 7f13b84e0..0bc929902 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -14,9 +14,9 @@ hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:search hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -- This is required for catchall to work -hl.define_submap("global", function() -- can't seem to get it to work when adding SUPER - hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] -end) +--hl.define_submap("global", function() -- can't seem to get it to work when adding SUPER +-- hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] +--end) hl.bind("CTRL + SUPER_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] hl.bind("CTRL + SUPER_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] hl.bind("SUPER + mouse:272", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] @@ -225,10 +225,10 @@ hl.bind("CTRL + SUPER + Up", hl.dsp.window.move({workspace = hl.bind("CTRL + SUPER + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] --##! Virtual machines -hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit SUPER+ALT+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds -hl.define_submap("virtual-machine", function() end) -hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden] -hl.define_submap("global", function() end) +--hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit SUPER+ALT+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds +--hl.define_submap("virtual-machine", function() end) +--hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden] +--hl.define_submap("global", function() end) --#! --# Testing diff --git a/dots/.config/hypr/hyprland/variables.lua b/dots/.config/hypr/hyprland/variables.lua index 4dae25b03..8292af04a 100644 --- a/dots/.config/hypr/hyprland/variables.lua +++ b/dots/.config/hypr/hyprland/variables.lua @@ -1,23 +1,24 @@ -- Default variables --- Copy these to ~/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner +-- Copy these to $HOME/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner --- The folder within ~/.config/quickshell containing the config -local qsConfig = "ii" +-- The folder within $HOME/.config/quickshell containing the config +hl.env("qsConfig", "ii") -- Apps -- PULL REQUESTS ADDING MORE WILL NOT BE ACCEPTED, CONFIG FOR YOURSELF -local terminal = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kitty -1' 'foot' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'" -local fileManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'dolphin' 'nautilus' 'nemo' 'thunar' 'kitty -1 fish -c yazi'" -local browser = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'" -local codeEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'antigravity' 'code' 'codium' 'cursor' 'zed' 'zedit' 'zeditor' 'kate' 'gnome-text-editor' 'emacs' 'command -v nvim && kitty -1 nvim' 'command -v micro && kitty -1 micro'" -local officeSoftware = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'wps' 'onlyoffice-desktopeditors' 'libreoffice'" -local textEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kate' 'gnome-text-editor' 'emacs'" -local volumeMixer = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'pavucontrol-qt' 'pavucontrol'" -local settingsApp = "XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p ~/.config/quickshell/" .. qsConfig .. "/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'" -local taskManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'" +hl.env("terminal", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'kitty -1' 'foot' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'") +hl.env("fileManager", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'dolphin' 'nautilus' 'nemo' 'thunar' 'kitty -1 fish -c yazi'") +hl.env("browser", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'") +hl.env("codeEditor", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'antigravity' 'code' 'codium' 'cursor' 'zed' 'zedit' 'zeditor' 'kate' 'gnome-text-editor' 'emacs' 'command -v nvim && kitty -1 nvim' 'command -v micro && kitty -1 micro'") +hl.env("officeSoftware", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'wps' 'onlyoffice-desktopeditors' 'libreoffice'") +hl.env("textEditor", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'kate' 'gnome-text-editor' 'emacs'") +hl.env("volumeMixer", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'pavucontrol-qt' 'pavucontrol'") +hl.env("settingsApp", "XDG_CURRENT_DESKTOP=gnome $HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p $HOME/.config/quickshell/$qsConfig/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'") +hl.env("taskManager", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'") + -- Leave blank like this to load default config. Set to anything to not. -local dontLoadDefaultExecs = "" -local dontLoadDefaultGeneral = "" -local dontLoadDefaultRules = "" -local dontLoadDefaultKeybinds = "" +global dontLoadDefaultExecs = "" +global dontLoadDefaultGeneral = "" +global dontLoadDefaultRules = "" +global dontLoadDefaultKeybinds = "" From e7c283e91ec9438c7bec217029e169cfd088dcf9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 4 May 2026 10:24:11 +0200 Subject: [PATCH 14/24] fix terminal theming i've got no fucking clue why this works --- dots/.config/quickshell/ii/services/Wallpapers.qml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/dots/.config/quickshell/ii/services/Wallpapers.qml b/dots/.config/quickshell/ii/services/Wallpapers.qml index 962451682..560b5fb39 100644 --- a/dots/.config/quickshell/ii/services/Wallpapers.qml +++ b/dots/.config/quickshell/ii/services/Wallpapers.qml @@ -41,19 +41,12 @@ Singleton { } function openFallbackPicker(darkMode = Appearance.m3colors.darkmode) { - applyProc.exec([ - Directories.wallpaperSwitchScriptPath, - "--mode", (darkMode ? "dark" : "light") - ]) + Quickshell.execDetached([Directories.wallpaperSwitchScriptPath, "--mode", darkMode ? "dark" : "light"]); } function apply(path, darkMode = Appearance.m3colors.darkmode) { - if (!path || path.length === 0) return - applyProc.exec([ - Directories.wallpaperSwitchScriptPath, - "--image", path, - "--mode", (darkMode ? "dark" : "light") - ]) + if (!path || path.length === 0) return; + Quickshell.execDetached([Directories.wallpaperSwitchScriptPath, "--mode", darkMode ? "dark" : "light", "--image", path]); root.changed() } From 84cd4582dd4e1eb5d04d038cd92b77717e7b1e12 Mon Sep 17 00:00:00 2001 From: fb24m Date: Tue, 5 May 2026 00:49:38 +0400 Subject: [PATCH 15/24] install every package right after building --- sdata/dist-fedora/install-deps.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sdata/dist-fedora/install-deps.sh b/sdata/dist-fedora/install-deps.sh index a87009656..51494cb1a 100644 --- a/sdata/dist-fedora/install-deps.sh +++ b/sdata/dist-fedora/install-deps.sh @@ -45,7 +45,9 @@ function install_RPMS() { spec="$rpm_specs/$package.spec" installed_rpm_stamp=$(rpm -q --qf '%{NVRA}\n' "$package" 2>/dev/null || true) spec_stamp=$(rpmspec -q --qf '%{NVRA}\n' "$spec") - + arch=$(rpm --eval "%_arch") # if we somehow want aarch64?? + built_rpm_path="$rpmbuildroot/RPMS/$arch/$spec_stamp.rpm" + [[ -f "$spec" ]] || { echo "Missing spec: $spec" continue @@ -69,13 +71,12 @@ function install_RPMS() { sudo dnf install -y $(basename "$spec" .spec) nolock_qs=true fi - done - mapfile -t -d '' local_rpms < <(find "$rpmbuildroot/RPMS" -maxdepth 2 -type f -name '*.rpm' -not -name '*debug*' -print0) - if [[ ${#local_rpms[@]} -ge 1 ]]; then - echo -e "${STY_BLUE}Next command:${STY_RST} sudo dnf install ${local_rpms[@]} -y" - r x sudo dnf install "${local_rpms[@]}" -y - fi + if [[ -f "$rpmbuildroot/RPMS/x86_64/$spec_stamp.rpm" ]]; then + echo -e "${STY_BLUE}Next command:${STY_RST} sudo dnf install $rpmbuildroot/RPMS/x86_64/$spec_stamp.rpm -y" + r x sudo dnf install "$rpmbuildroot/RPMS/x86_64/$spec_stamp.rpm" -y + fi + done x cd ${REPO_ROOT} } From fb3ec1fdfc204381572db46feb3cd1f8e36d4e24 Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Wed, 6 May 2026 19:15:03 +0200 Subject: [PATCH 16/24] Add files via upload --- dots/.config/hypr/hyprland/general.lua | 6 +- dots/.config/hypr/hyprland/keybinds.lua | 425 ++++++++++++------------ dots/.config/hypr/hyprland/rules.lua | 82 ++--- 3 files changed, 256 insertions(+), 257 deletions(-) diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index 0b261944c..660fc37b7 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -9,8 +9,8 @@ hl.monitor({ hl.gesture({ fingers = 3, direction = "swipe", action = "move" }) hl.gesture({ fingers = 3, direction = "pinch", action = "float" }) hl.gesture({ fingers = 4, direction = "horizontal", action = "workspace" }) -hl.gesture({ fingers = 4, direction = "up", action = hl.dsp.global("quickshell:overviewWorkspacesToggle") }) -hl.gesture({ fingers = 4, direction = "down", action = hl.dsp.global("quickshell:overviewWorkspacesClose") }) +hl.gesture({ fingers = 4, direction = "up", action = function() hl.dsp.global("quickshell:overviewWorkspacesToggle") end }) +hl.gesture({ fingers = 4, direction = "down", action = function() hl.dsp.global("quickshell:overviewWorkspacesClose") end }) -- couldn't find anything about this in the old or the new syntax wiki (plugin?) had to comment gave error --hl.gesture({ -- workspace_swipe_distance = 700, @@ -168,7 +168,7 @@ hl.config({ }, cursor = { - zoom_factor = 1, + --zoom_factor = 1, zoom_rigid = false, zoom_disable_aa = true, hotspot_padding = 1, diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index 0bc929902..67121713f 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -3,282 +3,281 @@ -- Lines starting with #! are section headings -- DO NOT REMOVE THIS EXEC OR YOU WON'T BE ABLE TO USE ANY KEYBIND -hl.dsp.exec_cmd("hyprctl dispatch submap global") +-- hl.dsp.exec_cmd("hyprctl dispatch submap global" ) -- not needed anymore? + +-- This is required for catchall to work +--hl.define_submap("global", function( ) -- can't seem to get it to work when adding SUPER either function in qml stopped working or you need to find new workaround +-- hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] +--end) + +local qsScripts = "$HOME/.config/quickshell/$qsConfig/scripts" +local hyprScripts = "$HOME/.config/hypr/hyprland/scripts" +local qsIPCcall = "qs -c $qsConfig ipc call" --#! --##! Shell --# These absolutely need to be on top, or they won't work consistently -- example: hl.bind(keys, dispatcher, {flag1 = true, flag2 = true}) -hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search -hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search -hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) --- This is required for catchall to work ---hl.define_submap("global", function() -- can't seem to get it to work when adding SUPER --- hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] ---end) -hl.bind("CTRL + SUPER_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("CTRL + SUPER_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse:272", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse:273", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse:274", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse:275", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse:276", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse:277", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse_up", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] -hl.bind("SUPER + mouse_down", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden] +hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search +hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search +hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -hl.bind(" + SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind(" + SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview -hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard -hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard -hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar -hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] -hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar -hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet -hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard -hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls -hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay -hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu -hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar -hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) -hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p ~/.config/quickshell/$qsConfig/welcome.qml") ) -- # [hidden] Launch welcome app +for i = 1, 10 do + local keycombos = {"CTRL + SUPER_L", "CTRL + SUPER_R", "SUPER + mouse:272", "SUPER + mouse:273", "SUPER + mouse:274", "SUPER + mouse:275", "SUPER + mouse:276", "SUPER + mouse:277", "SUPER + mouse_up", "SUPER + mouse_down"} + hl.bind(keycombos[i], hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] +end -hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("qs -c $qsConfig ipc call brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("qs -c $qsConfig ipc call brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview +hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard +hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard +hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar +hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] +hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar +hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet +hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard +hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls +hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay +hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu +hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar +hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) +hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p $HOME/.config/quickshell/$qsConfig/welcome.qml") ) -- # [hidden] Launch welcome app -hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] -hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] -hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector -hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper -hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfig/scripts/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) -hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &") ) -- Restart widgets -hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd(qsIPCcall.." brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd(qsIPCcall.." brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] + +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] +hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] +hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector +hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper +hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) +hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &") ) -- Restart widgets +hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family --##! Utilities --# Screenshot, Record, OCR, Color picker, Clipboard history -hl.bind("SUPER + V", hl.dsp.exec_cmd( - "qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) -hl.bind("SUPER + Period", hl.dsp.exec_cmd( - "qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || ~/.config/hypr/hyprland/scripts/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) -hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip -hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) -hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens -hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || ~/.config/hypr/hyprland/scripts/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) +hl.bind("SUPER + V", hl.dsp.exec_cmd( + qsIPCcall.." TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) +hl.bind("SUPER + Period", hl.dsp.exec_cmd( + qsIPCcall.." TEST_ALIVE || pkill fuzzel || "..hyprScripts.."/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) +hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip +hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) +hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens +hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || "..hyprScripts.."/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) --# OCR -hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard -hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content -hl.bind("SUPER + SHIFT + X", hl.dsp.exec_cmd( - "qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" -) ) -- # [hidden] +hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard +hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content +hl.bind("SUPER + SHIFT + X", hl.dsp.exec_cmd( + qsIPCcall.." TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" +) ) -- # [hidden] --# Color picker -hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard +hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard --# Recording stuff -hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) -hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfigscripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) -hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfigscripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd("~/.config/quickshell/$qsConfig/scripts/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) -hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd("~/.config/quickshell/$qsConfig/scripts/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) +hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) +hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) --# Fullscreen screenshot -hl.bind("Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard -hl.bind("CTRL + Print", hl.dsp.exec_cmd( - "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png" -), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file -hl.bind("CTRL + Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) +local grimhyprctl = "grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')'" +hl.bind("Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard +hl.bind("CTRL + Print", hl.dsp.exec_cmd( + "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && "..grimhyprctl.." $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png" +), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file +hl.bind("CTRL + Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) --# AI -hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text - -- (requires a running ollama model) +hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd(hyprScripts.."/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text + -- (requires a running ollama model) --#! --##! Window --# Focusing -hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move -hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] -hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize +hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move +hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] +hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize --#/# bind = SUPER + ←/↑/→/↓,, -- Focus in direction -hl.bind("SUPER + Left", hl.dsp.focus({direction = "l"}) ) -- # [hidden] -hl.bind("SUPER + Right", hl.dsp.focus({direction = "r"}) ) -- # [hidden] -hl.bind("SUPER + Up", hl.dsp.focus({direction = "u"}) ) -- # [hidden] -hl.bind("SUPER + Down", hl.dsp.focus({direction = "d"}) ) -- # [hidden] -hl.bind("SUPER + BracketLeft", hl.dsp.focus({direction = "l"}) ) -- # [hidden] -hl.bind("SUPER + BracketRight", hl.dsp.focus({direction = "r"}) ) -- # [hidden] +for i = 1, 6 do + local arrowkey = {"Left","Right","Up","Down","BracketLeft","BracketRight"} + local focusdir = {"l","r","u","d","l","r"} + hl.bind("SUPER + "..arrowkey[i], hl.dsp.focus({direction = focusdir[i]}) ) -- # [hidden] +end --#/# bind = SUPER + SHIFT, ←/↑/→/↓,, -- Move in direction -hl.bind("SUPER + SHIFT + Left", hl.dsp.window.move({direction = "l"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Right", hl.dsp.window.move({direction = "r"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Up", hl.dsp.window.move({direction = "u"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Down", hl.dsp.window.move({direction = "d"}) ) -- # [hidden] -hl.bind("ALT + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) -hl.bind("SUPER + Q", hl.dsp.window.close() ) -- Close -hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window +for i = 1, 4 do + local arrowkey = {"Left","Right","Up","Down"} + local focusdir = {"l","r","u","d"} + hl.bind("SUPER + SHIFT + "..arrowkey[i], hl.dsp.window.move({direction = focusdir[i]}) ) -- # [hidden] +end + +hl.bind("ALT + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) +hl.bind("SUPER + Q", hl.dsp.window.close() ) -- Close +hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window --# Window split ratio --#/# binde = SUPER, ;/',, -- Adjust split ratio -hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] -hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] +hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] +hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] --# Positioning mode -hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile -hl.bind("SUPER + D", hl.dsp.window.fullscreen({maximized}) ) -- Maximize -hl.bind("SUPER + F", hl.dsp.window.fullscreen({fullscreen}) ) -- Fullscreen -hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof -hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin +hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile +hl.bind("SUPER + D", hl.dsp.window.fullscreen({maximized}) ) -- Maximize +hl.bind("SUPER + F", hl.dsp.window.fullscreen({fullscreen}) ) -- Fullscreen +hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof +hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin --#/# bind = SUPER+ALT, Hash,, -- Send to workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` -hl.bind("SUPER + ALT + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] -hl.bind("SUPER + ALT + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] -hl.bind("SUPER + ALT + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] -hl.bind("SUPER + ALT + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] -hl.bind("SUPER + ALT + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] -hl.bind("SUPER + ALT + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] -hl.bind("SUPER + ALT + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] -hl.bind("SUPER + ALT + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] -hl.bind("SUPER + ALT + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] -hl.bind("SUPER + ALT + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] +for i = 1, 10 do + local numberkeys = {10,11,12,13,14,15,16,17,18,19} + hl.bind("SUPER + ALT + code:"..numberkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh movetoworkspacesilent "..i) ) -- # [hidden] +end --# keypad numbers -hl.bind("SUPER + ALT + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden] -hl.bind("SUPER + ALT + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden] -hl.bind("SUPER + ALT + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden] -hl.bind("SUPER + ALT + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden] -hl.bind("SUPER + ALT + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden] -hl.bind("SUPER + ALT + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden] -hl.bind("SUPER + ALT + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden] -hl.bind("SUPER + ALT + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden] -hl.bind("SUPER + ALT + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden] -hl.bind("SUPER + ALT + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden] +for i = 1, 10 do + local numpadkeys = {87,88,89,83,84,85,79,80,81,90} + hl.bind("SUPER + ALT + code:"..numpadkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh movetoworkspacesilent "..i) ) -- # [hidden] +end --# #/# bind = SUPER+SHIFT, Scroll ↑/↓,, -- Send to workspace left/right -hl.bind("SUPER + SHIFT + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] --#/# bind = SUPER+SHIFT, Page_↑/↓,, -- Send to workspace left/right -hl.bind("SUPER + ALT + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + SHIFT + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + SHIFT + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + ALT + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("SUPER + SHIFT + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + SHIFT + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + SHIFT + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad +hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad -hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] --##! Workspace --# Switching --#/# bind = SUPER, Hash,, -- Focus workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` -hl.bind("SUPER + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] -hl.bind("SUPER + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] -hl.bind("SUPER + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] -hl.bind("SUPER + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] -hl.bind("SUPER + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] -hl.bind("SUPER + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] -hl.bind("SUPER + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] -hl.bind("SUPER + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] -hl.bind("SUPER + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] -hl.bind("SUPER + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] +for i = 1, 10 do + local numberkeys = {10,11,12,13,14,15,16,17,18,19} + hl.bind("SUPER + code:"..numberkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh workspace "..i) ) -- # [hidden] +end --# keypad numbers -hl.bind("SUPER + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden] -hl.bind("SUPER + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden] -hl.bind("SUPER + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden] -hl.bind("SUPER + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden] -hl.bind("SUPER + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden] -hl.bind("SUPER + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden] -hl.bind("SUPER + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden] -hl.bind("SUPER + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden] -hl.bind("SUPER + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden] -hl.bind("SUPER + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden] +for i = 1, 10 do + local numpadkeys = {87,88,89,83,84,85,79,80,81,90} + hl.bind("SUPER + code:"..numpadkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh workspace "..i) ) -- # [hidden] +end --#/# bind = CTRL+SUPER, ←/→,, -- Focus left/right -hl.bind("CTRL + SUPER + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] --#/# bind = CTRL+SUPER+ALT, ←/→,, -- # [hidden] Focus busy left/right -hl.bind("CTRL + SUPER + ALT + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + ALT + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + ALT + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + ALT + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden] --#/# bind = SUPER, Page_↑/↓,, -- Focus left/right -hl.bind("SUPER + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] -hl.bind("SUPER + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +hl.bind("SUPER + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] --#/# bind = SUPER, Scroll ↑/↓,, -- Focus left/right -hl.bind("SUPER + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] -hl.bind("SUPER + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +hl.bind("SUPER + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] +hl.bind("SUPER + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] --## Special -hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad -hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] -hl.bind("CTRL + SUPER + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] +hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad +hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("CTRL + SUPER + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] --##! Virtual machines ---hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit SUPER+ALT+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds ---hl.define_submap("virtual-machine", function() end) ---hl.bind("SUPER + ALT + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden] ---hl.define_submap("global", function() end) +hl.define_submap("virtual-machine", function() + hl.bind("SUPER + ALT + F1", function() + local currentsubmap = hl.get_current_submap() + if currentsubmap == "virtual-machine" then + hl.dispatch(hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland'") ) -- # [hidden] + hl.dispatch(hl.dsp.submap("reset") ) + elseif currentsubmap == "" then + hl.dispatch(hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. hit SUPER+ALT+F1 to escape' -a 'Hyprland'") ) -- Disable keybinds + hl.dispatch(hl.dsp.submap("virtual-machine") ) + end + end, {submap_universal = true}) +end) + --#! --# Testing -hl.bind("SUPER + ALT + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") - ) -- # [hidden] -hl.bind("SUPER + ALT + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") - ) -- # [hidden] -hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] +hl.bind("SUPER + ALT + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find $HOME/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") + ) -- # [hidden] +hl.bind("SUPER + ALT + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find $HOME/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") + ) -- # [hidden] +hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] --##! Session -hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock -hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep ---hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior +hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock +hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep +--hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior -hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off +hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off --##! Screen ---# Zoom -hl.bind("SUPER + Minus", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3"), {repeating = true} ) -- Zoom out -hl.bind("SUPER + Equal", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3"), {repeating = true} ) -- Zoom in +--# Zoom -- doesn't work yet due to hyprland having issues updating conf variables after conf is loaded and reloading conf resets zoomfactor +local function zoomfunction(value) + local zoomvalue = hl.get_config("cursor:zoom_factor") + if (zoomvalue + value) > 3.0 then + hl.config({cursor = {zoom_factor = 3.0}}) + elseif (zoomvalue + value) < 1.0 then + hl.config({cursor = {zoom_factor = 1.0}}) + else + hl.config({cursor = {zoom_factor = zoomvalue + value}}) + end + +end +hl.bind("SUPER + Minus", function() zoomfunction(-0.3) end, {repeating = true} ) -- Zoom out +hl.bind("SUPER + Equal", function() zoomfunction(0.3) end, {repeating = true} ) -- Zoom in + --# Zoom with keypad -hl.bind("SUPER + code:82", hl.dsp.exec_cmd("qs -c $qsConfig ipc call zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out -hl.bind("SUPER + code:86", hl.dsp.exec_cmd("qs -c $qsConfig ipc call zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in -hl.bind("SUPER + code:82", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out -hl.bind("SUPER + code:86", hl.dsp.exec_cmd("qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out +hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out +hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in --##! Media -hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- Next track -hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) -- # [hidden] -hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`") ) -- # [hidden] -hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track -hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media -hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] - +local mediacommand = "playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`" +hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- Next track +hl.bind("XF86AudioNext", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) -- # [hidden] +hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd(mediacommand) ) -- # [hidden] +hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track +hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media +hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] --##! Apps -hl.bind("SUPER + Return", hl.dsp.exec_cmd("$terminal") ) -- Terminal -hl.bind("SUPER + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (alt) -hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (for Ubuntu people) -hl.bind("SUPER + E", hl.dsp.exec_cmd("$fileManager") ) -- File manager -hl.bind("SUPER + W", hl.dsp.exec_cmd("$browser") ) -- Browser -hl.bind("SUPER + C", hl.dsp.exec_cmd("$codeEditor") ) -- Code editor -hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd("$officeSoftware") ) -- Office software -hl.bind("SUPER + X", hl.dsp.exec_cmd("$textEditor") ) -- Text editor -hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd("$volumeMixer") ) -- Volume mixer -hl.bind("SUPER + I", hl.dsp.exec_cmd("$settingsApp") ) -- Settings app -hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManager") ) -- Task manager +hl.bind("SUPER + Return", hl.dsp.exec_cmd("$terminal") ) -- Terminal +hl.bind("SUPER + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (alt) +hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (for Ubuntu people) +hl.bind("SUPER + E", hl.dsp.exec_cmd("$fileManager") ) -- File manager +hl.bind("SUPER + W", hl.dsp.exec_cmd("$browser") ) -- Browser +hl.bind("SUPER + C", hl.dsp.exec_cmd("$codeEditor") ) -- Code editor +hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd("$officeSoftware") ) -- Office software +hl.bind("SUPER + X", hl.dsp.exec_cmd("$textEditor") ) -- Text editor +hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd("$volumeMixer") ) -- Volume mixer +hl.bind("SUPER + I", hl.dsp.exec_cmd("$settingsApp") ) -- Settings app +hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManager") ) -- Task manager --# Cursed stuff --## Make window not amogus large -hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, exact}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, exact}) ) -- # [hidden] diff --git a/dots/.config/hypr/hyprland/rules.lua b/dots/.config/hypr/hyprland/rules.lua index 2c88ac9b4..07f346712 100644 --- a/dots/.config/hypr/hyprland/rules.lua +++ b/dots/.config/hypr/hyprland/rules.lua @@ -87,24 +87,24 @@ hl.window_rule({match = {float = 0 }, hl.workspace_rule({ workspace = "special:special", gaps_out = 30 }) -- ######## Layer rules ######## -hl.layer_rule({ match = { namespace = ".*" }, xray = true}) ---hl.layer_rule({ match = { namespace = ".*" }, no_anim = true}) +hl.layer_rule({ match = { namespace = ".*" }, xray = true}) +--hl.layer_rule({ match = { namespace = ".*" }, no_anim = true}) hl.layer_rule({ match = { namespace = walker }, no_anim = true}) hl.layer_rule({ match = { namespace = selection }, no_anim = true}) hl.layer_rule({ match = { namespace = overview }, no_anim = true}) hl.layer_rule({ match = { namespace = anyrun }, no_anim = true}) -hl.layer_rule({ match = { namespace = "indicator.*" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, no_anim = true}) hl.layer_rule({ match = { namespace = osk }, no_anim = true}) hl.layer_rule({ match = { namespace = hyprpicker }, no_anim = true}) hl.layer_rule({ match = { namespace = noanim }, no_anim = true}) -hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, blur = true}) -hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, blur = true}) +hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0}) hl.layer_rule({ match = { namespace = launcher }, blur = true}) hl.layer_rule({ match = { namespace = launcher }, ignore_alpha = 0.5}) hl.layer_rule({ match = { namespace = notifications }, blur = true}) hl.layer_rule({ match = { namespace = notifications }, ignore_alpha = 0.69}) ---hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) +--hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) -- ags hl.layer_rule({ match = { namespace = "sideleft.*" }, animation = "slide left"}) @@ -133,41 +133,41 @@ hl.layer_rule({ match = { namespace = "osk[0-9]*" }, -- Quickshell -- Quickshell: illogical-impulse -hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur_popups = true}) -hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur = true}) -hl.layer_rule({ match = { namespace = "quickshell:.*" }, ignore_alpha = 0.79}) -hl.layer_rule({ match = { namespace = "quickshell:bar" }, animation = "slide"}) -hl.layer_rule({ match = { namespace = "quickshell:actionCenter" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:cheatsheet" }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = "quickshell:dock" }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = "quickshell:screenCorners" }, animation = "popin 120%"}) -hl.layer_rule({ match = { namespace = "quickshell:lockWindowPusher" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:notificationPopup" }, animation = "fade"}) -hl.layer_rule({ match = { namespace = "quickshell:overlay" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:overlay" }, ignore_alpha = 1}) -hl.layer_rule({ match = { namespace = "quickshell:overview" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:osk" }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = "quickshell:polkit" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:popup" }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) -hl.layer_rule({ match = { namespace = "quickshell:popup" }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) -hl.layer_rule({ match = { namespace = "quickshell:mediaControls" }, ignore_alpha = 1}) -- Same as above -hl.layer_rule({ match = { namespace = "quickshell:reloadPopup" }, animation = "slide"}) -hl.layer_rule({ match = { namespace = "quickshell:regionSelector" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:screenshot" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:session" }, blur = true}) -hl.layer_rule({ match = { namespace = "quickshell:session" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:session" }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = "quickshell:sidebarRight" }, animation = "slide right"}) -hl.layer_rule({ match = { namespace = "quickshell:sidebarLeft" }, animation = "slide left"}) -hl.layer_rule({ match = { namespace = "quickshell:verticalBar" }, animation = "slide"}) -hl.layer_rule({ match = { namespace = "quickshell:osk" }, order = -1}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur_popups = true}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, ignore_alpha = 0.79}) +hl.layer_rule({ match = { namespace = "quickshell:bar" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:actionCenter" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:cheatsheet" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:dock" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:screenCorners" }, animation = "popin 120%"}) +hl.layer_rule({ match = { namespace = "quickshell:lockWindowPusher" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:notificationPopup" }, animation = "fade"}) +hl.layer_rule({ match = { namespace = "quickshell:overlay" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:overlay" }, ignore_alpha = 1}) +hl.layer_rule({ match = { namespace = "quickshell:overview" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:osk" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:polkit" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:popup" }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) +hl.layer_rule({ match = { namespace = "quickshell:popup" }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) +hl.layer_rule({ match = { namespace = "quickshell:mediaControls" }, ignore_alpha = 1}) -- Same as above +hl.layer_rule({ match = { namespace = "quickshell:reloadPopup" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:regionSelector" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:screenshot" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, blur = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "quickshell:sidebarRight" }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = "quickshell:sidebarLeft" }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = "quickshell:verticalBar" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:osk" }, order = -1}) -- Quickshell: waffles -hl.layer_rule({ match = { namespace = "quickshell:wallpaperSelector" }, animation = "slide top"}) -hl.layer_rule({ match = { namespace = "quickshell:wNotificationCenter" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:wOnScreenDisplay" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:wStartMenu" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wallpaperSelector" }, animation = "slide top"}) +hl.layer_rule({ match = { namespace = "quickshell:wNotificationCenter" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wOnScreenDisplay" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wStartMenu" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, no_anim = true}) -- Launchers need to be FAST -hl.layer_rule({ match = { namespace = "gtk4-layer-shell" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "gtk4-layer-shell" }, no_anim = true}) From c3147dc7ffd07fe4c73faa9d5ea1d763e2a88021 Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Thu, 7 May 2026 11:19:53 +0200 Subject: [PATCH 17/24] Add files via upload --- dots/.config/hypr/hyprland/execs.lua | 2 +- dots/.config/hypr/hyprland/general.lua | 2 +- dots/.config/hypr/hyprland/keybinds.lua | 318 +++++++++++++----------- 3 files changed, 168 insertions(+), 154 deletions(-) diff --git a/dots/.config/hypr/hyprland/execs.lua b/dots/.config/hypr/hyprland/execs.lua index 4c277af67..5f513c7f1 100644 --- a/dots/.config/hypr/hyprland/execs.lua +++ b/dots/.config/hypr/hyprland/execs.lua @@ -13,7 +13,7 @@ hl.on("hyprland.start", function () hl.exec_cmd("sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") -- Some fix idk -- Audio - --hl.exec_cmd("easyeffects --hide-window --service-mode") + hl.exec_cmd("easyeffects --hide-window --service-mode") -- Clipboard: history --hl.exec_cmd("wl-paste --watch cliphist store") diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index 660fc37b7..a1355485d 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -168,7 +168,7 @@ hl.config({ }, cursor = { - --zoom_factor = 1, + zoom_factor = 1, zoom_rigid = false, zoom_disable_aa = true, hotspot_padding = 1, diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index 67121713f..1350e73e5 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -6,9 +6,9 @@ -- hl.dsp.exec_cmd("hyprctl dispatch submap global" ) -- not needed anymore? -- This is required for catchall to work ---hl.define_submap("global", function( ) -- can't seem to get it to work when adding SUPER either function in qml stopped working or you need to find new workaround --- hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] ---end) +-- hl.define_submap("", function( ) -- can't seem to get it to work when adding SUPER either function in qml stopped working or you need to find new workaround +-- hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] +-- end) local qsScripts = "$HOME/.config/quickshell/$qsConfig/scripts" local hyprScripts = "$HOME/.config/hypr/hyprland/scripts" @@ -18,200 +18,211 @@ local qsIPCcall = "qs -c $qsConfig ipc call" --##! Shell --# These absolutely need to be on top, or they won't work consistently -- example: hl.bind(keys, dispatcher, {flag1 = true, flag2 = true}) -hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search -hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search -hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search +hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search +hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -for i = 1, 10 do - local keycombos = {"CTRL + SUPER_L", "CTRL + SUPER_R", "SUPER + mouse:272", "SUPER + mouse:273", "SUPER + mouse:274", "SUPER + mouse:275", "SUPER + mouse:276", "SUPER + mouse:277", "SUPER + mouse_up", "SUPER + mouse_down"} - hl.bind(keycombos[i], hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] +hl.bind("CTRL + SUPER_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] +hl.bind("CTRL + SUPER_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] +for i = 1, 8 do + local keycombos = {":272", ":273", ":274", ":275", ":276", ":277", "_up", "_down"} + hl.bind("SUPER + mouse"..keycombos[i], hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] end -hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview -hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard -hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard -hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar -hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] -hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar -hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet -hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard -hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls -hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay -hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu -hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar -hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) -hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p $HOME/.config/quickshell/$qsConfig/welcome.qml") ) -- # [hidden] Launch welcome app +hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] +hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview +hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard +hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard +hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar +hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] +hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] +hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar +hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet +hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard +hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls +hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay +hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu +hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar +hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) +hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p $HOME/.config/quickshell/$qsConfig/welcome.qml") ) -- # [hidden] Launch welcome app -hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd(qsIPCcall.." brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd(qsIPCcall.." brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd(qsIPCcall.." brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd(qsIPCcall.." brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] -hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] -hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector -hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper -hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) -hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &") ) -- Restart widgets -hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] +hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] +hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector +hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper +hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) +hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &") ) -- Restart widgets +hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family --##! Utilities --# Screenshot, Record, OCR, Color picker, Clipboard history hl.bind("SUPER + V", hl.dsp.exec_cmd( - qsIPCcall.." TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) + qsIPCcall.." TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) hl.bind("SUPER + Period", hl.dsp.exec_cmd( - qsIPCcall.." TEST_ALIVE || pkill fuzzel || "..hyprScripts.."/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) -hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip -hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) -hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens -hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || "..hyprScripts.."/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) + qsIPCcall.." TEST_ALIVE || pkill fuzzel || "..hyprScripts.."/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) +hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip +hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) +hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens +hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || "..hyprScripts.."/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) --# OCR -hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard -hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content +hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard +hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content hl.bind("SUPER + SHIFT + X", hl.dsp.exec_cmd( qsIPCcall.." TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" ) ) -- # [hidden] --# Color picker -hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard +hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard --# Recording stuff -hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) -hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) -hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) -hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) +hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) +hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) +hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) --# Fullscreen screenshot local grimhyprctl = "grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')'" -hl.bind("Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard +hl.bind("Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard hl.bind("CTRL + Print", hl.dsp.exec_cmd( "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && "..grimhyprctl.." $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png" -), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file -hl.bind("CTRL + Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) +), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file +hl.bind("CTRL + Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) --# AI -hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd(hyprScripts.."/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text +hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd(hyprScripts.."/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text -- (requires a running ollama model) --#! --##! Window --# Focusing -hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move -hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] -hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize +hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move +hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] +hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize --#/# bind = SUPER + ←/↑/→/↓,, -- Focus in direction for i = 1, 6 do local arrowkey = {"Left","Right","Up","Down","BracketLeft","BracketRight"} local focusdir = {"l","r","u","d","l","r"} - hl.bind("SUPER + "..arrowkey[i], hl.dsp.focus({direction = focusdir[i]}) ) -- # [hidden] + hl.bind("SUPER + "..arrowkey[i], hl.dsp.focus({direction = focusdir[i]}) ) -- # [hidden] end --#/# bind = SUPER + SHIFT, ←/↑/→/↓,, -- Move in direction for i = 1, 4 do local arrowkey = {"Left","Right","Up","Down"} local focusdir = {"l","r","u","d"} - hl.bind("SUPER + SHIFT + "..arrowkey[i], hl.dsp.window.move({direction = focusdir[i]}) ) -- # [hidden] + hl.bind("SUPER + SHIFT + "..arrowkey[i], hl.dsp.window.move({direction = focusdir[i]}) ) -- # [hidden] end -hl.bind("ALT + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) -hl.bind("SUPER + Q", hl.dsp.window.close() ) -- Close -hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window +hl.bind("ALT + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) +hl.bind("SUPER + Q", hl.dsp.window.close() ) -- Close +hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window --# Window split ratio --#/# binde = SUPER, ;/',, -- Adjust split ratio -hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] -hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] +hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] +hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] --# Positioning mode -hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile -hl.bind("SUPER + D", hl.dsp.window.fullscreen({maximized}) ) -- Maximize -hl.bind("SUPER + F", hl.dsp.window.fullscreen({fullscreen}) ) -- Fullscreen -hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof -hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin +hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile +hl.bind("SUPER + D", hl.dsp.window.fullscreen({maximized}) ) -- Maximize +hl.bind("SUPER + F", hl.dsp.window.fullscreen({fullscreen}) ) -- Fullscreen +hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof +hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin --#/# bind = SUPER+ALT, Hash,, -- Send to workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` for i = 1, 10 do - local numberkeys = {10,11,12,13,14,15,16,17,18,19} - hl.bind("SUPER + ALT + code:"..numberkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh movetoworkspacesilent "..i) ) -- # [hidden] + local numberkey = {10,11,12,13,14,15,16,17,18,19} + hl.bind("SUPER + ALT + code:"..numberkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) -- # [hidden] end --# keypad numbers for i = 1, 10 do - local numpadkeys = {87,88,89,83,84,85,79,80,81,90} - hl.bind("SUPER + ALT + code:"..numpadkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh movetoworkspacesilent "..i) ) -- # [hidden] + local numpadkey = {87,88,89,83,84,85,79,80,81,90} + hl.bind("SUPER + ALT + code:"..numpadkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) -- # [hidden] end --# #/# bind = SUPER+SHIFT, Scroll ↑/↓,, -- Send to workspace left/right -hl.bind("SUPER + SHIFT + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] +for i = 1, 4 do + local key = {"SUPER + SHIFT + mouse_", "SUPER + ALT + mouse_"} + local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up"} + local prefix = {"r-","r+","-","+"} + hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden] +end --#/# bind = SUPER+SHIFT, Page_↑/↓,, -- Send to workspace left/right -hl.bind("SUPER + ALT + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] -hl.bind("SUPER + ALT + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("SUPER + SHIFT + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + SHIFT + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + SHIFT + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden] +for i = 1, 6 do + local key = {"SUPER + ALT + Page_", "SUPER + SHIFT + Page_", "CTRL + SUPER + SHIFT + "} + local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up", key[3].."Right", key[3].."Left"} + local prefix = {"+","-","r+","r-","r+","r-"} + hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden] +end -hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad +hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", follow = false}) ) -- Send to scratchpad -hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] --##! Workspace --# Switching --#/# bind = SUPER, Hash,, -- Focus workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` for i = 1, 10 do - local numberkeys = {10,11,12,13,14,15,16,17,18,19} - hl.bind("SUPER + code:"..numberkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh workspace "..i) ) -- # [hidden] + local numberkey = {10,11,12,13,14,15,16,17,18,19} + hl.bind("SUPER + code:"..numberkey[i], hl.dsp.focus({ workspace = i}) ) -- # [hidden] end --# keypad numbers for i = 1, 10 do - local numpadkeys = {87,88,89,83,84,85,79,80,81,90} - hl.bind("SUPER + code:"..numpadkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh workspace "..i) ) -- # [hidden] + local numpadkey = {87,88,89,83,84,85,79,80,81,90} + hl.bind("SUPER + code:"..numpadkey[i], hl.dsp.focus({ workspace = i}) ) -- # [hidden] end --#/# bind = CTRL+SUPER, ←/→,, -- Focus left/right -hl.bind("CTRL + SUPER + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] --#/# bind = CTRL+SUPER+ALT, ←/→,, -- # [hidden] Focus busy left/right -hl.bind("CTRL + SUPER + ALT + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + ALT + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden] +for i = 1, 4 do + local key = {"CTRL + SUPER + ", "CTRL + SUPER + ALT + "} + local keycombos = {key[1].."Right", key[1].."Left", key[2].."Right", key[2].."Left"} + local prefix = {"r+","r-","m+","m-"} + hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden] +end --#/# bind = SUPER, Page_↑/↓,, -- Focus left/right -hl.bind("SUPER + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] -hl.bind("SUPER + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +for i = 1, 4 do + local key = {"SUPER + Page_Down", "SUPER + Page_Up"} + local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]} + local prefix = {"+","-","r+","r-"} + hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden] +end --#/# bind = SUPER, Scroll ↑/↓,, -- Focus left/right -hl.bind("SUPER + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden] -hl.bind("SUPER + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden] +for i = 1, 4 do + local key = {"SUPER + mouse_up", "SUPER + mouse_down"} + local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]} + local prefix = {"+","-","r+","r-"} + hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden] +end --## Special -hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad -hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] -hl.bind("CTRL + SUPER + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden] -hl.bind("CTRL + SUPER + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden] +hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad +hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +for i = 1, 4 do + local key = {"BracketLeft","BracketRight","Up","Down"} + local prefix = {"-1","+1","r-5","r+5"} + hl.bind("CTRL + SUPER + "..key[i], hl.dsp.window.move({workspace = prefix[i]}) ) -- # [hidden] +end --##! Virtual machines hl.define_submap("virtual-machine", function() hl.bind("SUPER + ALT + F1", function() local currentsubmap = hl.get_current_submap() if currentsubmap == "virtual-machine" then - hl.dispatch(hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland'") ) -- # [hidden] - hl.dispatch(hl.dsp.submap("reset") ) + hl.dispatch(hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland'") ) -- # [hidden] + hl.dispatch(hl.dsp.submap("reset") ) elseif currentsubmap == "" then - hl.dispatch(hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. hit SUPER+ALT+F1 to escape' -a 'Hyprland'") ) -- Disable keybinds - hl.dispatch(hl.dsp.submap("virtual-machine") ) + hl.dispatch(hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. hit SUPER+ALT+F1 to escape' -a 'Hyprland'") ) -- Disable keybinds + hl.dispatch(hl.dsp.submap("virtual-machine") ) end end, {submap_universal = true}) end) @@ -220,17 +231,17 @@ end) --#! --# Testing hl.bind("SUPER + ALT + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find $HOME/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") - ) -- # [hidden] + ) -- # [hidden] hl.bind("SUPER + ALT + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find $HOME/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") - ) -- # [hidden] -hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] + ) -- # [hidden] +hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] --##! Session -hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock -hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep ---hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior +hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock +hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep +-- hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior -hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off +hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off --##! Screen --# Zoom -- doesn't work yet due to hyprland having issues updating conf variables after conf is loaded and reloading conf resets zoomfactor @@ -245,39 +256,42 @@ local function zoomfunction(value) end end -hl.bind("SUPER + Minus", function() zoomfunction(-0.3) end, {repeating = true} ) -- Zoom out -hl.bind("SUPER + Equal", function() zoomfunction(0.3) end, {repeating = true} ) -- Zoom in +hl.bind("SUPER + Minus", function() zoomfunction(-0.3) end, {repeating = true} ) -- Zoom out +hl.bind("SUPER + Equal", function() zoomfunction(0.3) end, {repeating = true} ) -- Zoom in --# Zoom with keypad -hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out -hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in -hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out -hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("SUPER + code:82", function() zoomfunction(-0.1) end, {repeating = true} ) -- # [hidden] Zoom out +hl.bind("SUPER + code:86", function() zoomfunction(0.1) end, {repeating = true} ) -- # [hidden] Zoom in +-- Don't know why these use different functions to zoom but for now I replaced them with the same as above +-- hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out +-- hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in +-- hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out +-- hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in --##! Media local mediacommand = "playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`" -hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- Next track -hl.bind("XF86AudioNext", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) -- # [hidden] -hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd(mediacommand) ) -- # [hidden] -hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track -hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media -hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- Next track +hl.bind("XF86AudioNext", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] +hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) -- # [hidden] +hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd(mediacommand) ) -- # [hidden] +hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track +hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media +hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] +hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] --##! Apps -hl.bind("SUPER + Return", hl.dsp.exec_cmd("$terminal") ) -- Terminal -hl.bind("SUPER + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (alt) -hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (for Ubuntu people) -hl.bind("SUPER + E", hl.dsp.exec_cmd("$fileManager") ) -- File manager -hl.bind("SUPER + W", hl.dsp.exec_cmd("$browser") ) -- Browser -hl.bind("SUPER + C", hl.dsp.exec_cmd("$codeEditor") ) -- Code editor -hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd("$officeSoftware") ) -- Office software -hl.bind("SUPER + X", hl.dsp.exec_cmd("$textEditor") ) -- Text editor -hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd("$volumeMixer") ) -- Volume mixer -hl.bind("SUPER + I", hl.dsp.exec_cmd("$settingsApp") ) -- Settings app -hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManager") ) -- Task manager +hl.bind("SUPER + Return", hl.dsp.exec_cmd("$terminal") ) -- Terminal +hl.bind("SUPER + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (alt) +hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (for Ubuntu people) +hl.bind("SUPER + E", hl.dsp.exec_cmd("$fileManager") ) -- File manager +hl.bind("SUPER + W", hl.dsp.exec_cmd("$browser") ) -- Browser +hl.bind("SUPER + C", hl.dsp.exec_cmd("$codeEditor") ) -- Code editor +hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd("$officeSoftware") ) -- Office software +hl.bind("SUPER + X", hl.dsp.exec_cmd("$textEditor") ) -- Text editor +hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd("$volumeMixer") ) -- Volume mixer +hl.bind("SUPER + I", hl.dsp.exec_cmd("$settingsApp") ) -- Settings app +hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManager") ) -- Task manager --# Cursed stuff --## Make window not amogus large -hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, exact}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, exact}) ) -- # [hidden] From 0ae900515e75ac9e9b368d2f995d01bf9e102e70 Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Thu, 7 May 2026 19:20:37 +0200 Subject: [PATCH 18/24] Add files via upload --- dots/.config/hypr/hyprland/execs.lua | 2 +- dots/.config/hypr/hyprland/general.lua | 4 ++-- dots/.config/hypr/hyprland/keybinds.lua | 6 ++--- dots/.config/hypr/hyprland/rules.lua | 28 ++++++++++++------------ dots/.config/hypr/hyprland/variables.lua | 8 +++---- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dots/.config/hypr/hyprland/execs.lua b/dots/.config/hypr/hyprland/execs.lua index 5f513c7f1..4c277af67 100644 --- a/dots/.config/hypr/hyprland/execs.lua +++ b/dots/.config/hypr/hyprland/execs.lua @@ -13,7 +13,7 @@ hl.on("hyprland.start", function () hl.exec_cmd("sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") -- Some fix idk -- Audio - hl.exec_cmd("easyeffects --hide-window --service-mode") + --hl.exec_cmd("easyeffects --hide-window --service-mode") -- Clipboard: history --hl.exec_cmd("wl-paste --watch cliphist store") diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index a1355485d..ccb509a52 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -128,7 +128,7 @@ hl.animation({ leaf = "zoomFactor", enabled = true, speed = 3, bezi hl.config({ input = { - kb_layout = us, + kb_layout = "us", numlock_by_default = true, repeat_delay = 250, repeat_rate = 35, @@ -137,7 +137,7 @@ hl.config({ off_window_axis_events = 2, touchpad = { - natural_scroll = yes, + natural_scroll = "yes", disable_while_typing = true, clickfinger_behavior = true, scroll_factor = 0.7, diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index 1350e73e5..04afd8f5c 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -131,8 +131,8 @@ hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0 hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] --# Positioning mode hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile -hl.bind("SUPER + D", hl.dsp.window.fullscreen({maximized}) ) -- Maximize -hl.bind("SUPER + F", hl.dsp.window.fullscreen({fullscreen}) ) -- Fullscreen +hl.bind("SUPER + D", hl.dsp.window.fullscreen({"maximized"}) ) -- Maximize +hl.bind("SUPER + F", hl.dsp.window.fullscreen({"fullscreen"}) ) -- Fullscreen hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin @@ -294,4 +294,4 @@ hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManage --# Cursed stuff --## Make window not amogus large -hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, exact}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, "exact"}) ) -- # [hidden] diff --git a/dots/.config/hypr/hyprland/rules.lua b/dots/.config/hypr/hyprland/rules.lua index 07f346712..ffb1aa485 100644 --- a/dots/.config/hypr/hyprland/rules.lua +++ b/dots/.config/hypr/hyprland/rules.lua @@ -1,7 +1,7 @@ -- ######## Window rules ######## -- Disable blur for xwayland context menus -hl.window_rule({match = {class = "^()$" }, match = {title = "^()$" }, no_blur = true }) +hl.window_rule({match = {class = "^()$", title = "^()$" }, no_blur = true }) -- Disable blur for every window hl.window_rule({match = {class = ".*" }, no_blur = true }) @@ -78,7 +78,7 @@ hl.window_rule({match = {title = ".*minecraft.*" }, hl.window_rule({match = {class = "^(steam_app).*" }, immediate = true}) -- Fix Jetbrain IDEs focus/rerendering problem -hl.window_rule({match = {class = "^jetbrains-.*$" }, match = {float = 1 }, match = {title = "^$|^\\s$|^win\\d+$" }, no_initial_focus = true}) +hl.window_rule({match = {class = "^jetbrains-.*$", float = 1, title = "^$|^\\s$|^win\\d+$" }, no_initial_focus = true}) -- No shadow for tiled windows (matches windows that are not floating). hl.window_rule({match = {float = 0 }, no_shadow = true}) @@ -88,22 +88,22 @@ hl.workspace_rule({ workspace = "special:special", gaps_out = 30 }) -- ######## Layer rules ######## hl.layer_rule({ match = { namespace = ".*" }, xray = true}) ---hl.layer_rule({ match = { namespace = ".*" }, no_anim = true}) -hl.layer_rule({ match = { namespace = walker }, no_anim = true}) -hl.layer_rule({ match = { namespace = selection }, no_anim = true}) -hl.layer_rule({ match = { namespace = overview }, no_anim = true}) -hl.layer_rule({ match = { namespace = anyrun }, no_anim = true}) +--hl.layer_rule({ match = { namespace = ".*" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "walker" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "selection" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "overview" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "anyrun" }, no_anim = true}) hl.layer_rule({ match = { namespace = "indicator.*" }, no_anim = true}) -hl.layer_rule({ match = { namespace = osk }, no_anim = true}) -hl.layer_rule({ match = { namespace = hyprpicker }, no_anim = true}) +hl.layer_rule({ match = { namespace = "osk" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "hyprpicker" }, no_anim = true}) -hl.layer_rule({ match = { namespace = noanim }, no_anim = true}) +hl.layer_rule({ match = { namespace = "noanim" }, no_anim = true}) hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, blur = true}) hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = launcher }, blur = true}) -hl.layer_rule({ match = { namespace = launcher }, ignore_alpha = 0.5}) -hl.layer_rule({ match = { namespace = notifications }, blur = true}) -hl.layer_rule({ match = { namespace = notifications }, ignore_alpha = 0.69}) +hl.layer_rule({ match = { namespace = "launcher" }, blur = true}) +hl.layer_rule({ match = { namespace = "launcher" }, ignore_alpha = 0.5}) +hl.layer_rule({ match = { namespace = "notifications" }, blur = true}) +hl.layer_rule({ match = { namespace = "notifications" }, ignore_alpha = 0.69}) --hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) -- ags diff --git a/dots/.config/hypr/hyprland/variables.lua b/dots/.config/hypr/hyprland/variables.lua index 8292af04a..e40174ef4 100644 --- a/dots/.config/hypr/hyprland/variables.lua +++ b/dots/.config/hypr/hyprland/variables.lua @@ -18,7 +18,7 @@ hl.env("taskManager", "$HOME/.config/hypr/hyprland/scripts/launch_first_availabl -- Leave blank like this to load default config. Set to anything to not. -global dontLoadDefaultExecs = "" -global dontLoadDefaultGeneral = "" -global dontLoadDefaultRules = "" -global dontLoadDefaultKeybinds = "" +local dontLoadDefaultExecs = "" +local dontLoadDefaultGeneral = "" +local dontLoadDefaultRules = "" +local dontLoadDefaultKeybinds = "" From bfad75c93af10dc8cf440edb7c8cc3fce5ce8c36 Mon Sep 17 00:00:00 2001 From: clsty Date: Fri, 8 May 2026 08:31:42 +0800 Subject: [PATCH 19/24] Fix quickshell PKGBUILD to work with some packages (fix #3286) --- sdata/dist-arch/illogical-impulse-quickshell-git/PKGBUILD | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sdata/dist-arch/illogical-impulse-quickshell-git/PKGBUILD b/sdata/dist-arch/illogical-impulse-quickshell-git/PKGBUILD index 418f0253f..3d6e83aae 100644 --- a/sdata/dist-arch/illogical-impulse-quickshell-git/PKGBUILD +++ b/sdata/dist-arch/illogical-impulse-quickshell-git/PKGBUILD @@ -5,12 +5,10 @@ _commit='7511545ee20664e3b8b8d3322c0ffe7567c56f7a' groups=(illogical-impulse) _prefix='illogical-impulse' -conflicts=("quickshell-git") - _pkgname=quickshell pkgname="$_prefix-$_pkgname-git" pkgver=0.1.0.r1 -pkgrel=7 +pkgrel=8 pkgdesc="$_pkgname-git pinned commit and extra deps for $_prefix" arch=(x86_64 aarch64) url='https://git.outfoxxed.me/quickshell/quickshell' @@ -55,8 +53,8 @@ makedepends=( 'wayland' 'wayland-protocols' ) -provides=("$_pkgname") -conflicts=("$_pkgname") +provides=("$_pkgname" "$_pkgname-git") +conflicts=("$_pkgname" "$_pkgname-git") _pkgsrc="$_pkgname" source=("$_pkgsrc::git+$url.git#commit=$_commit" From c67c8840e42be79fecbb5016d4dbdd3434c290d7 Mon Sep 17 00:00:00 2001 From: fb24m Date: Fri, 8 May 2026 17:32:53 +0400 Subject: [PATCH 20/24] rewrite script to use RPM built using GitHub action --- sdata/dist-fedora/SPECS/cpptrace.spec | 43 ---------- sdata/dist-fedora/SPECS/matugen.spec | 37 --------- sdata/dist-fedora/SPECS/quickshell-git.spec | 87 --------------------- sdata/dist-fedora/feddeps.toml | 29 +------ sdata/dist-fedora/install-deps.sh | 77 +++++------------- 5 files changed, 23 insertions(+), 250 deletions(-) delete mode 100644 sdata/dist-fedora/SPECS/cpptrace.spec delete mode 100644 sdata/dist-fedora/SPECS/matugen.spec delete mode 100644 sdata/dist-fedora/SPECS/quickshell-git.spec diff --git a/sdata/dist-fedora/SPECS/cpptrace.spec b/sdata/dist-fedora/SPECS/cpptrace.spec deleted file mode 100644 index a656597f0..000000000 --- a/sdata/dist-fedora/SPECS/cpptrace.spec +++ /dev/null @@ -1,43 +0,0 @@ -%global source_date_epoch_from_changelog 0 - -%global tag 1.0.4 -%global commits 1054 -%global commit 91b6b78e408a8b1c0b7146c9034a03156c082da2 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - -Name: cpptrace -Version: 1.0.4 -Release: 1%{?dist} -Summary: Simple, portable, and self-contained stacktrace library for C++11 and newer - -License: MIT -URL: https://github.com/jeremy-rifkin/cpptrace -Source0: %{url}/archive/%{commit}/cpptrace-%{shortcommit}.tar.gz - -BuildRequires: cmake -BuildRequires: gcc-c++ -BuildRequires: make -BuildRequires: ninja-build -BuildRequires: libunwind-devel - -%description -C++ lightweight logging library used by Quickshell. - -%prep -%autosetup -n cpptrace-%{commit} -p1 - -%build -mkdir -p build -cd build -cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCPPTRACE_UNWIND_WITH_LIBUNWIND=true -cmake --build . - -%install -cd build -DESTDIR=%{buildroot} cmake --install . - -%files -%{_prefix}/local/include/* -%{_prefix}/local/lib64/* -%license LICENSE -%doc README.md diff --git a/sdata/dist-fedora/SPECS/matugen.spec b/sdata/dist-fedora/SPECS/matugen.spec deleted file mode 100644 index 1014975e4..000000000 --- a/sdata/dist-fedora/SPECS/matugen.spec +++ /dev/null @@ -1,37 +0,0 @@ -%global commit 4112d352914742ba69f6380fd07984adba02d376 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global snapdate 20260322 -%global tag 4.1.0 - -Name: matugen -Version: %{tag}.%{shortcommit} -Release: 0%{?dist} -Summary: A cross-platform material you and base16 color generation tool - -License: GPL-2.0 -URL: https://github.com/InioX/matugen -Source0: %{url}/archive/%{commit}/matugen-%{shortcommit}.tar.gz - -BuildRequires: rust-packaging -BuildRequires: cargo -BuildRequires: gcc - -%description -A cross-platform material you and base16 color generation tool - -%prep -%autosetup -n matugen-%{commit} -p1 - -%build -cargo build --release - -%install -install -Dm0755 target/release/matugen %{buildroot}%{_bindir}/matugen - -%files -%license LICENSE -%doc README.md -%{_bindir}/matugen - -%changelog -%autochangelog diff --git a/sdata/dist-fedora/SPECS/quickshell-git.spec b/sdata/dist-fedora/SPECS/quickshell-git.spec deleted file mode 100644 index e3c6ee4a8..000000000 --- a/sdata/dist-fedora/SPECS/quickshell-git.spec +++ /dev/null @@ -1,87 +0,0 @@ -# Original-Spec: https://copr-dist-git.fedorainfracloud.org/packages/errornointernet/quickshell/quickshell-git.git/plain/quickshell-git.spec?h=master - -%bcond_with asan - -%global commit 7511545ee20664e3b8b8d3322c0ffe7567c56f7a -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commits 770 -%global snapdate 20260327 -%global tag 0.2.1 - -Name: quickshell-git -Version: %{tag}^%{commits}.git%{shortcommit} -Release: 0%{?dist} -Summary: Flexible QtQuick based desktop shell toolkit - -License: LGPL-3.0-only AND GPL-3.0-only -URL: https://github.com/quickshell-mirror/quickshell -Source0: %{url}/archive/%{commit}/quickshell-%{shortcommit}.tar.gz - -Conflicts: quickshell <= %{tag} - -%if 0%{fedora} >= 43 -BuildRequires: breakpad-static -%endif -BuildRequires: cmake -BuildRequires: cmake(Qt6Core) -BuildRequires: cmake(Qt6Qml) -BuildRequires: cmake(Qt6ShaderTools) -BuildRequires: cmake(Qt6WaylandClient) -BuildRequires: gcc-c++ -BuildRequires: ninja-build -BuildRequires: pkgconfig(breakpad) -BuildRequires: pkgconfig(CLI11) -BuildRequires: pkgconfig(gbm) -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(jemalloc) -BuildRequires: pkgconfig(libdrm) -BuildRequires: pkgconfig(libpipewire-0.3) -BuildRequires: pkgconfig(pam) -BuildRequires: pkgconfig(polkit-agent-1) -BuildRequires: pkgconfig(wayland-client) -BuildRequires: pkgconfig(wayland-protocols) -BuildRequires: qt6-qtbase-private-devel -BuildRequires: spirv-tools - -%if %{with asan} -BuildRequires: libasan -%endif - -Provides: desktop-notification-daemon - -%description -Flexible toolkit for making desktop shells with QtQuick, targeting -Wayland and X11. - -%prep -%autosetup -n quickshell-%{commit} -p1 - -%build -%cmake -GNinja \ -%if %{with asan} - -DASAN=ON \ -%endif - -DBUILD_SHARED_LIBS=OFF \ - -DCMAKE_BUILD_TYPE=Release \ - -DGIT_REVISION=%{commit} \ - -DINSTALL_QML_PREFIX=%{_lib}/qt6/qml -%cmake_build - -%install -%cmake_install - -%files -%license LICENSE -%license LICENSE-GPL -%doc BUILD.md -%doc CONTRIBUTING.md -%doc README.md -%doc changelog/v%{tag}.md -%{_bindir}/qs -%{_bindir}/quickshell -%{_datadir}/applications/org.quickshell.desktop -%{_datadir}/icons/hicolor/scalable/apps/org.quickshell.svg -%{_libdir}/qt6/qml/Quickshell - -%changelog -%autochangelog diff --git a/sdata/dist-fedora/feddeps.toml b/sdata/dist-fedora/feddeps.toml index 57083f53a..86eee19b6 100644 --- a/sdata/dist-fedora/feddeps.toml +++ b/sdata/dist-fedora/feddeps.toml @@ -134,33 +134,10 @@ packages = [ ] install_opts = ["--setopt=install_weak_deps=False"] -# Quickshell-git -[groups.quickshell] +[groups.illogical-impulse] packages = [ - "qt6-qtdeclarative", - "qt6-qtbase", - "jemalloc", - "qt6-qtsvg", - "pipewire-libs", - "libxcb", - "wayland-devel", - "qt6-qtwayland", - "qt5-qtwayland", - "libdrm", - "breakpad", - "kf6-kirigami", - "libunwind-devel", - # NOTE: Below are custom dependencies of illogical-impulse - "qt6-qt5compat", - "qt6-qtimageformats", - "qt6-qtpositioning", - "qt6-qtquicktimeline", - "qt6-qtsensors", - "qt6-qttools", - "qt6-qttranslations", - "qt6-qtvirtualkeyboard", - "kdialog", - "kf6-syntax-highlighting" + "quickshell-git", + "matugen" ] # Screencapture diff --git a/sdata/dist-fedora/install-deps.sh b/sdata/dist-fedora/install-deps.sh index 51494cb1a..7e48410ca 100644 --- a/sdata/dist-fedora/install-deps.sh +++ b/sdata/dist-fedora/install-deps.sh @@ -23,61 +23,20 @@ function r() { [ "$original_id" == "$last_id" ] || yq -i ".dnf.transaction_ids += [ $last_id ]" "$user_config" || : } -# Start building and install the missing RPM package locally. -function install_RPMS() { - local local_specs local_rpms - rpmbuildroot="${rpmbuildroot:-${REPO_ROOT}/cache/rpmbuild}" +# Init local RPM repo and download rpms from releases there. +function init_local_repo() { + url="https://api.github.com/repos/end-4/ii-package-builds/releases/tags/packages-fedora" + path="$HOME/.cache/illogical-impulse-repo" - x rm -rf "${REPO_ROOT}/cache/rpmbuild" - x mkdir -p "$rpmbuildroot"/{BUILD,RPMS,SOURCES} - x cp -r "${REPO_ROOT}/sdata/dist-fedora/SPECS" "$rpmbuildroot/" + rm -rf -- "$path" + mkdir -p "$path" - x cd $rpmbuildroot/SPECS - - packages=( - "cpptrace" - "quickshell-git" - "matugen" - ) - for package in "${packages[@]}"; do - echo "start $package" - - spec="$rpm_specs/$package.spec" - installed_rpm_stamp=$(rpm -q --qf '%{NVRA}\n' "$package" 2>/dev/null || true) - spec_stamp=$(rpmspec -q --qf '%{NVRA}\n' "$spec") - arch=$(rpm --eval "%_arch") # if we somehow want aarch64?? - built_rpm_path="$rpmbuildroot/RPMS/$arch/$spec_stamp.rpm" - - [[ -f "$spec" ]] || { - echo "Missing spec: $spec" - continue - } - - echo "rpm_specs=$rpm_specs" - echo "spec=$spec" - echo "spec_stamp=$spec_stamp" - - if [[ "$installed_rpm_stamp" == "$spec_stamp" ]]; then - printf "$installed_rpm_stamp is installed and up to date. Skipping.\n" - continue - fi - # Download sources - x spectool -g -C "$rpmbuildroot/SOURCES" "$spec" - # Install build dependencies - r x sudo dnf builddep -y "$spec" - # Build the RPM package locally. If it fails, download it from COPR. - if ! rpmbuild -bb --define "_topdir $rpmbuildroot" --define "debug_package %{nil}" "$spec"; then - printf "${STY_RED}Local build encountered an issue. Downloading $(basename "$spec" .spec) from COPR. Report the issue to Discussions pls.${STY_RST}\n" - sudo dnf install -y $(basename "$spec" .spec) - nolock_qs=true - fi - - if [[ -f "$rpmbuildroot/RPMS/x86_64/$spec_stamp.rpm" ]]; then - echo -e "${STY_BLUE}Next command:${STY_RST} sudo dnf install $rpmbuildroot/RPMS/x86_64/$spec_stamp.rpm -y" - r x sudo dnf install "$rpmbuildroot/RPMS/x86_64/$spec_stamp.rpm" -y - fi - done - x cd ${REPO_ROOT} + for file in $(curl -s "$url" | jq -r '.assets[].browser_download_url'); do + name=$(basename "$file") + echo "Downloading $file" + curl --max-time 10 -L --fail --show-error --progress-bar -o "$path/$name" "$file" + createrepo_c "$path" + done } # ------------------------- @@ -102,7 +61,7 @@ v sudo dnf versionlock delete quickshell-git 2>/dev/null v sudo dnf install yq -y # Install development tools -r v sudo dnf install @development-tools fedora-packager -y +r v sudo dnf install createrepo_c -y # Install COPR repositories copr_repos_json=$(yq -o=j '.copr.repos // []' "$deps_data_file") @@ -111,9 +70,9 @@ for copr in ${copr_repos_array[@]}; do v sudo dnf copr enable "$copr" -y done -# Build and install locally RPMS -showfun install_RPMS -v install_RPMS +# Init local repo with prebuilt rpms +showfun init_local_repo +v init_local_repo # Install packages from toml file deps_data=$(yq -o=j '.' "$deps_data_file") @@ -125,6 +84,10 @@ while IFS= read -r deps_list_key; do install_opts=$(echo $deps_data | yq ".groups.\"$deps_list_key\" | select(has(\"install_opts\")) | .install_opts[]") package_list=$(echo $deps_data | yq ".groups.\"$deps_list_key\".packages | unique | .[]") + if [[ $deps_list_key == 'illogical-impulse' ]]; then + install_opts="$install_opts --repofrompath=illogical-impulse,file://$HOME/.cache/illogical-impulse-repo --nogpgcheck" + fi + r v sudo dnf install -y $install_opts $package_list Date: Fri, 8 May 2026 17:49:55 +0400 Subject: [PATCH 21/24] replace tested note --- sdata/dist-fedora/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdata/dist-fedora/README.md b/sdata/dist-fedora/README.md index d47c843fd..a96a04bbd 100644 --- a/sdata/dist-fedora/README.md +++ b/sdata/dist-fedora/README.md @@ -11,7 +11,7 @@ Note: - Author: [ririko6z](https://github.com/ririko6z) ## Tested -- It has been tested on Fedora 43 (KDE Plasma Desktop Edition) on the `x86_64` platform. +- It has been tested on Fedora Everything 44 on the `x86_64` platform. ## Post installation - Fix the issue of the right column crashing when clicking the `Details` button in Wi-Fi mode. Edit this file: `~/.config/illogical-impulse/config.json` @@ -24,4 +24,3 @@ Note: + "bluetooth": "kcmshell6 kcm_bluetooth", + "network": "plasmawindowed org.kde.plasma.networkmanagement", ``` - From f6b97c4649d5f4fa89208be2499f459e2ef7f003 Mon Sep 17 00:00:00 2001 From: Linuxius <95486686+Linuxius-Thomas@users.noreply.github.com> Date: Sat, 9 May 2026 21:57:36 +0200 Subject: [PATCH 22/24] Update general.lua --- dots/.config/hypr/hyprland/general.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index ccb509a52..7beb6346e 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -137,7 +137,7 @@ hl.config({ off_window_axis_events = 2, touchpad = { - natural_scroll = "yes", + natural_scroll = true, disable_while_typing = true, clickfinger_behavior = true, scroll_factor = 0.7, From 010f070eef11d81ec136251264fff9350b40dcb5 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 11 May 2026 22:52:48 +0200 Subject: [PATCH 23/24] fix stuff --- dots/.config/hypr/custom/env.conf | 23 -- dots/.config/hypr/custom/execs.conf | 7 - dots/.config/hypr/custom/general.conf | 7 - dots/.config/hypr/custom/keybinds.conf | 25 -- dots/.config/hypr/custom/rules.conf | 12 - dots/.config/hypr/custom/variables.conf | 2 - dots/.config/hypr/hyprland.conf | 49 --- dots/.config/hypr/hyprland.lua | 37 +-- dots/.config/hypr/hyprland/colors.conf | 34 -- dots/.config/hypr/hyprland/colors.lua | 23 -- dots/.config/hypr/hyprland/env.conf | 13 - dots/.config/hypr/hyprland/env.lua | 8 +- dots/.config/hypr/hyprland/execs.conf | 25 -- dots/.config/hypr/hyprland/execs.lua | 7 +- dots/.config/hypr/hyprland/general.conf | 171 ---------- dots/.config/hypr/hyprland/general.lua | 253 +++++++++++---- dots/.config/hypr/hyprland/keybinds.conf | 272 ---------------- dots/.config/hypr/hyprland/keybinds.lua | 379 ++++++++++------------ dots/.config/hypr/hyprland/rules.conf | 173 ---------- dots/.config/hypr/hyprland/rules.lua | 271 ++++++++-------- dots/.config/hypr/hyprland/variables.conf | 23 -- dots/.config/hypr/hyprland/variables.lua | 29 +- dots/.config/hypr/monitors.conf | 4 - dots/.config/hypr/monitors.lua | 4 - dots/.config/hypr/workspaces.conf | 4 - dots/.config/hypr/workspaces.lua | 4 - 26 files changed, 524 insertions(+), 1335 deletions(-) delete mode 100644 dots/.config/hypr/custom/env.conf delete mode 100644 dots/.config/hypr/custom/execs.conf delete mode 100644 dots/.config/hypr/custom/general.conf delete mode 100644 dots/.config/hypr/custom/keybinds.conf delete mode 100644 dots/.config/hypr/custom/rules.conf delete mode 100644 dots/.config/hypr/custom/variables.conf delete mode 100644 dots/.config/hypr/hyprland.conf delete mode 100644 dots/.config/hypr/hyprland/colors.conf delete mode 100644 dots/.config/hypr/hyprland/env.conf delete mode 100644 dots/.config/hypr/hyprland/execs.conf delete mode 100644 dots/.config/hypr/hyprland/general.conf delete mode 100644 dots/.config/hypr/hyprland/keybinds.conf delete mode 100644 dots/.config/hypr/hyprland/rules.conf delete mode 100644 dots/.config/hypr/hyprland/variables.conf delete mode 100644 dots/.config/hypr/monitors.conf delete mode 100644 dots/.config/hypr/monitors.lua delete mode 100644 dots/.config/hypr/workspaces.conf delete mode 100644 dots/.config/hypr/workspaces.lua diff --git a/dots/.config/hypr/custom/env.conf b/dots/.config/hypr/custom/env.conf deleted file mode 100644 index 31a62fe97..000000000 --- a/dots/.config/hypr/custom/env.conf +++ /dev/null @@ -1,23 +0,0 @@ -# hyprlang noerror false -# You can put extra environment variables here -# https://wiki.hyprland.org/Configuring/Environment-variables/ - -# ######### Input method ########## -# See https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland -#env = QT_IM_MODULE, fcitx -#env = XMODIFIERS, @im=fcitx -#env = SDL_IM_MODULE, fcitx -#env = GLFW_IM_MODULE, ibus -#env = INPUT_METHOD, fcitx - -# ######## Wayland ######### -# Tearing -# env = WLR_DRM_NO_ATOMIC, 1 -# ? -# env = WLR_NO_HARDWARE_CURSORS, 1 - -# ######## EDITOR ######### -#https://wiki.archlinux.org/title/Category:Text_editors -# for example: vi nano nvim ... - -#env = EDITOR, vim diff --git a/dots/.config/hypr/custom/execs.conf b/dots/.config/hypr/custom/execs.conf deleted file mode 100644 index fbabcc7b7..000000000 --- a/dots/.config/hypr/custom/execs.conf +++ /dev/null @@ -1,7 +0,0 @@ -# hyprlang noerror false -# You can make apps auto-start here -# Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing - -# Input method -# exec-once = fcitx5 - diff --git a/dots/.config/hypr/custom/general.conf b/dots/.config/hypr/custom/general.conf deleted file mode 100644 index f5b34b5a9..000000000 --- a/dots/.config/hypr/custom/general.conf +++ /dev/null @@ -1,7 +0,0 @@ -# hyprlang noerror false -# Put general config stuff here -# Here's a list of every variable: https://wiki.hyprland.org/Configuring/Variables/ - -# monitor=,addreserved, 0, 0, 0, 0 # Custom reserved area - -# HDMI port: mirror display. To see device name, use `hyprctl monitors` diff --git a/dots/.config/hypr/custom/keybinds.conf b/dots/.config/hypr/custom/keybinds.conf deleted file mode 100644 index bc6fc209c..000000000 --- a/dots/.config/hypr/custom/keybinds.conf +++ /dev/null @@ -1,25 +0,0 @@ -# hyprlang noerror false -# See https://wiki.hyprland.org/Configuring/Binds/ -#! -##! User -bind = Ctrl+Super, Slash, exec, xdg-open ~/.config/illogical-impulse/config.json # Edit shell config -bind = Ctrl+Super+Alt, Slash, exec, xdg-open ~/.config/hypr/custom/keybinds.conf # Edit extra keybinds - -##! Apps -# bind = Super, Return, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "${TERMINAL}" "kitty -1" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm" # Terminal -# bind = Super, T, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "${TERMINAL}" "kitty -1" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm" # [hidden] (terminal) (alt) -# bind = Ctrl+Alt, T, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "${TERMINAL}" "kitty -1" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm" # [hidden] (terminal) (for Ubuntu people) -# bind = Super, E, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "dolphin" "nautilus" "nemo" "thunar" "${TERMINAL}" "kitty -1 fish -c yazi" # File manager -# bind = Super, W, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "google-chrome-stable" "zen-browser" "firefox" "brave" "chromium" "microsoft-edge-stable" "opera" "librewolf" # Browser -# bind = Super, C, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "code" "codium" "cursor" "zed" "zedit" "zeditor" "kate" "gnome-text-editor" "emacs" "command -v nvim && kitty -1 nvim" "command -v micro && kitty -1 micro" # Code editor -# bind = Ctrl+Super+Shift+Alt, W, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "wps" "onlyoffice-desktopeditors" "libreoffice" # Office software -# bind = Super, X, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kate" "gnome-text-editor" "emacs" # Text editor -# bind = Ctrl+Super, V, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "pavucontrol-qt" "pavucontrol" # Volume mixer -# bind = Super, I, exec, XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh "qs -p ~/.config/quickshell/$qsConfig/settings.qml" "systemsettings" "gnome-control-center" "better-control" # Settings app -# bind = Ctrl+Shift, Escape, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "gnome-system-monitor" "plasma-systemmonitor --page-name Processes" "command -v btop && kitty -1 fish -c btop" # Task manager - -# Add stuff here -# Use #! to add an extra column on the cheatsheet -# Use ##! to add a section in that column -# Add a comment after a bind to add a description, like above - diff --git a/dots/.config/hypr/custom/rules.conf b/dots/.config/hypr/custom/rules.conf deleted file mode 100644 index 59772d611..000000000 --- a/dots/.config/hypr/custom/rules.conf +++ /dev/null @@ -1,12 +0,0 @@ -# hyprlang noerror false -# You can put custom rules here -# Window/layer rules: https://wiki.hyprland.org/Configuring/Window-Rules/ -# Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/ - -# ######## Window rules ######## - -# Uncomment to apply global transparency to all windows: -# windowrule = opacity 0.89 override 0.89 override, match:class .* - -# Disable blur for all xwayland apps -# windowrule = no_blur on, match:xwayland 1 diff --git a/dots/.config/hypr/custom/variables.conf b/dots/.config/hypr/custom/variables.conf deleted file mode 100644 index b692ce113..000000000 --- a/dots/.config/hypr/custom/variables.conf +++ /dev/null @@ -1,2 +0,0 @@ -# hyprlang noerror false -# For all available variables, see ~/.config/hypr/hyprland/variables.conf diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf deleted file mode 100644 index 819c6cf26..000000000 --- a/dots/.config/hypr/hyprland.conf +++ /dev/null @@ -1,49 +0,0 @@ -# This file sources other files in `hyprland` and `custom` folders -# You wanna add your stuff in files in `custom` - -# --- Environment variables --- -source=hyprland/env.conf -# hyprlang noerror true -source=custom/env.conf -# hyprlang noerror false - -# --- Other vars --- -source=hyprland/variables.conf -# hyprlang noerror true -source=custom/variables.conf -# hyprlang noerror false - -# --- Defaults --- -# hyprlang if !dontLoadDefaultExecs -source=hyprland/execs.conf -# hyprlang endif -# hyprlang if !dontLoadDefaultGeneral -source=hyprland/general.conf -# hyprlang endif -# hyprlang if !dontLoadDefaultRules -source=hyprland/rules.conf -# hyprlang endif -# hyprlang if !dontLoadDefaultColors -source=hyprland/colors.conf -# hyprlang endif -# hyprlang if !dontLoadDefaultKeybinds -source=hyprland/keybinds.conf -# hyprlang endif - -# --- Custom --- -# hyprlang noerror true -source=custom/execs.conf -# hyprlang noerror true -source=custom/general.conf -# hyprlang noerror true -source=custom/rules.conf -# hyprlang noerror true -source=custom/keybinds.conf -# hyprlang noerror false - -# --- nwg-displays support --- -source=workspaces.conf -source=monitors.conf - -# --- Shell overrides --- -source=hyprland/shellOverrides/main.conf diff --git a/dots/.config/hypr/hyprland.lua b/dots/.config/hypr/hyprland.lua index 057cc250c..f027f80e1 100644 --- a/dots/.config/hypr/hyprland.lua +++ b/dots/.config/hypr/hyprland.lua @@ -1,49 +1,26 @@ -- This file sources other files in `hyprland` and `custom` folders -- You wanna add your stuff in files in `custom` --- --- Environment variables --- +-- Environment variables -- require("hyprland/env") --- hyprlang noerror true require("custom/env") --- hyprlang noerror false --- --- Other vars --- -require("hyprland/variables") --- hyprlang noerror true -require("custom/variables") --- hyprlang noerror false - --- --- Defaults --- --- hyprlang if !dontLoadDefaultExecs +-- Defaults -- require("hyprland/execs") --- hyprlang endif --- hyprlang if !dontLoadDefaultGeneral require("hyprland/general") --- hyprlang endif --- hyprlang if !dontLoadDefaultRules require("hyprland/rules") --- hyprlang endif --- hyprlang if !dontLoadDefaultColors require("hyprland/colors") --- hyprlang endif --- hyprlang if !dontLoadDefaultKeybinds require("hyprland/keybinds") --- hyprlang endif --- --- Custom --- --- hyprlang noerror true +-- Custom -- require("custom/execs") --- hyprlang noerror true require("custom/general") --- hyprlang noerror true require("custom/rules") --- hyprlang noerror true require("custom/keybinds") --- hyprlang noerror false --- --- nwg-displays support --- -require("workspaces") -require("monitors") +-- nwg-displays support: re-add the files if it updates later +-- require("workspaces") +-- require("monitors") --- --- Shell overrides --- +-- Shell overrides -- require("hyprland/shellOverrides/main") diff --git a/dots/.config/hypr/hyprland/colors.conf b/dots/.config/hypr/hyprland/colors.conf deleted file mode 100644 index 28863e35d..000000000 --- a/dots/.config/hypr/hyprland/colors.conf +++ /dev/null @@ -1,34 +0,0 @@ -# exec = export SLURP_ARGS='-d -c FFDAD4BB -b 673B3444 -s 00000000' - -general { - col.active_border = rgba(F7DCDE39) - col.inactive_border = rgba(A58A8D30) -} - -misc { - background_color = rgba(1D1011FF) -} - -plugin { - hyprbars { - # Honestly idk if it works like css, but well, why not - bar_text_font = Google Sans Flex Medium, Rubik, Geist, AR One Sans, Reddit Sans, Inter, Roboto, Ubuntu, Noto Sans, sans-serif - bar_height = 30 - bar_padding = 10 - bar_button_padding = 5 - bar_precedence_over_border = true - bar_part_of_window = true - - bar_color = rgba(1D1011FF) - col.text = rgba(F7DCDEFF) - - - # example buttons (R -> L) - # hyprbars-button = color, size, on-click - hyprbars-button = rgb(F7DCDE), 13, 󰖭, hyprctl dispatch killactive - hyprbars-button = rgb(F7DCDE), 13, 󰖯, hyprctl dispatch fullscreen 1 - hyprbars-button = rgb(F7DCDE), 13, 󰖰, hyprctl dispatch movetoworkspacesilent special - } -} - -windowrule = border_color rgba(FFB2BCAA) rgba(FFB2BC77), match:pin 1 diff --git a/dots/.config/hypr/hyprland/colors.lua b/dots/.config/hypr/hyprland/colors.lua index b07c71835..b5ad1ce1a 100644 --- a/dots/.config/hypr/hyprland/colors.lua +++ b/dots/.config/hypr/hyprland/colors.lua @@ -10,29 +10,6 @@ hl.config({ }, }) --- Don't know if plugins changed syntax too. --- plugin { --- hyprbars { --- -- Honestly idk if it works like css, but well, why not --- bar_text_font = Google Sans Flex Medium, Rubik, Geist, AR One Sans, Reddit Sans, Inter, Roboto, Ubuntu, Noto Sans, sans-serif --- bar_height = 30 --- bar_padding = 10 --- bar_button_padding = 5 --- bar_precedence_over_border = true --- bar_part_of_window = true --- --- bar_color = rgba(121318FF) --- col.text = rgba(e2e2e9FF) --- --- --- -- example buttons (R -> L) --- -- hyprbars-button = color, size, on-click --- hyprbars-button = rgb(e2e2e9), 13, 󰖭, hyprctl dispatch killactive --- hyprbars-button = rgb(e2e2e9), 13, 󰖯, hyprctl dispatch fullscreen 1 --- hyprbars-button = rgb(e2e2e9), 13, 󰖰, hyprctl dispatch movetoworkspacesilent special --- } --- } - hl.window_rule({ -- not sure how to syntax "pin 1" match = { pin = 1 }, border_color = "rgba(afc6ffAA) rgba(afc6ff77)", diff --git a/dots/.config/hypr/hyprland/env.conf b/dots/.config/hypr/hyprland/env.conf deleted file mode 100644 index 29a171f82..000000000 --- a/dots/.config/hypr/hyprland/env.conf +++ /dev/null @@ -1,13 +0,0 @@ -# ############ Wayland ############# -env = ELECTRON_OZONE_PLATFORM_HINT,auto - -######### Applications ######### -env = XDG_DATA_DIRS,$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share - -# ############ Themes ############# -env = QT_QPA_PLATFORM, wayland;xcb -env = QT_QPA_PLATFORMTHEME, kde -env = XDG_MENU_PREFIX, plasma- - -# ######## Virtual envrionment ######### -env = ILLOGICAL_IMPULSE_VIRTUAL_ENV, ~/.local/state/quickshell/.venv diff --git a/dots/.config/hypr/hyprland/env.lua b/dots/.config/hypr/hyprland/env.lua index 84a1adecb..aa41c815b 100644 --- a/dots/.config/hypr/hyprland/env.lua +++ b/dots/.config/hypr/hyprland/env.lua @@ -1,13 +1,13 @@ --- ############ Wayland ############# +-- Wayland hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto") --- ######### Applications ######### +-- Applications hl.env("XDG_DATA_DIRS", "$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share") --- ############ Themes ############# +-- Themes hl.env("QT_QPA_PLATFORM", "wayland;xcb") hl.env("QT_QPA_PLATFORMTHEME", "kde") hl.env("XDG_MENU_PREFIX", "plasma-") --- ######## Virtual envrionment ######### +-- Virtual environment hl.env("ILLOGICAL_IMPULSE_VIRTUAL_ENV", "$HOME/.local/state/quickshell/.venv") diff --git a/dots/.config/hypr/hyprland/execs.conf b/dots/.config/hypr/hyprland/execs.conf deleted file mode 100644 index 1f4b0e913..000000000 --- a/dots/.config/hypr/hyprland/execs.conf +++ /dev/null @@ -1,25 +0,0 @@ -# Bar, wallpaper -exec-once = ~/.config/hypr/hyprland/scripts/start_geoclue_agent.sh -exec-once = qs -c $qsConfig & -exec-once = ~/.config/hypr/custom/scripts/__restore_video_wallpaper.sh - -# Core components (authentication, lock screen, notification daemon) -exec-once = gnome-keyring-daemon --start --components=secrets -exec-once = hypridle -exec-once = dbus-update-activation-environment --all -exec-once = sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # Some fix idk - -# Audio -exec-once = easyeffects --hide-window --service-mode - -# Clipboard: history -# exec-once = wl-paste --watch cliphist store & -exec-once = wl-paste --type text --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update' -exec-once = wl-paste --type image --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update' - -# Cursor -exec-once = hyprctl setcursor Bibata-Modern-Classic 24 - -# Fix dock pinned apps not launching properly (https://github.com/end-4/dots-hyprland/issues/2200) -# This causes https://github.com/end-4/dots-hyprland/issues/2427 -# exec-once = sleep 3.5 && hyprctl reload && sleep 0.5 && touch ~/.config/quickshell/ii/shell.qml diff --git a/dots/.config/hypr/hyprland/execs.lua b/dots/.config/hypr/hyprland/execs.lua index 4c277af67..23f766827 100644 --- a/dots/.config/hypr/hyprland/execs.lua +++ b/dots/.config/hypr/hyprland/execs.lua @@ -13,7 +13,7 @@ hl.on("hyprland.start", function () hl.exec_cmd("sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") -- Some fix idk -- Audio - --hl.exec_cmd("easyeffects --hide-window --service-mode") + hl.exec_cmd("easyeffects --hide-window --service-mode") -- Clipboard: history --hl.exec_cmd("wl-paste --watch cliphist store") @@ -22,9 +22,4 @@ hl.on("hyprland.start", function () -- Cursor hl.exec_cmd("hyprctl setcursor Bibata-Modern-Classic 24") - - -- Fix dock pinned apps not launching properly (https://github.com/end-4/dots-hyprland/issues/2200) - -- This causes https://github.com/end-4/dots-hyprland/issues/2427 - -- hl.exec_cmd("sleep 3.5 && hyprctl reload && sleep 0.5 && touch ~/.config/quickshell/ii/shell.qml") - end) diff --git a/dots/.config/hypr/hyprland/general.conf b/dots/.config/hypr/hyprland/general.conf deleted file mode 100644 index 239e193ae..000000000 --- a/dots/.config/hypr/hyprland/general.conf +++ /dev/null @@ -1,171 +0,0 @@ -# MONITOR CONFIG -monitor=,preferred,auto,1 - -gesture = 3, swipe, move, -gesture = 3, pinch, float -gesture = 4, horizontal, workspace -gesture = 4, up, dispatcher, global, quickshell:overviewWorkspacesToggle -gesture = 4, down, dispatcher, global, quickshell:overviewWorkspacesClose -gestures { - workspace_swipe_distance = 700 - workspace_swipe_cancel_ratio = 0.2 - workspace_swipe_min_speed_to_force = 5 - workspace_swipe_direction_lock = true - workspace_swipe_direction_lock_threshold = 10 - workspace_swipe_create_new = true -} - -general { - # Gaps and border - gaps_in = 4 - gaps_out = 5 - gaps_workspaces = 50 - - border_size = 1 - col.active_border = rgba(0DB7D455) - col.inactive_border = rgba(31313600) - resize_on_border = true - - no_focus_fallback = true - - allow_tearing = true # This just allows the `immediate` window rule to work - - snap { - enabled = true - window_gap = 4 - monitor_gap = 5 - respect_gaps = true - } -} - -dwindle { - preserve_split = true - smart_split = false - smart_resizing = false - # precise_mouse_move = true -} - -decoration { - # 2 = circle, higher = squircle, 4 = very obvious squircle - # Clear squircles look really off; we use only extra .4 here to make the rounding feel more continuous - rounding_power = 2 - rounding = 18 - - blur { - enabled = true - xray = true - special = false - new_optimizations = true - size = 10 - passes = 3 - brightness = 1 - noise = 0.05 - contrast = 0.89 - vibrancy = 0.5 - vibrancy_darkness = 0.5 - popups = false - popups_ignorealpha = 0.6 - input_methods = true - input_methods_ignorealpha = 0.8 - } - - shadow { - enabled = true - ignore_window = true - range = 20 - offset = 0 2 - render_power = 10 - color = rgba(00000020) - } - - # Dim - dim_inactive = true - dim_strength = 0.05 - dim_special = 0.2 -} - -animations { - enabled = true - # Curves - bezier = expressiveFastSpatial, 0.42, 1.67, 0.21, 0.90 - bezier = expressiveSlowSpatial, 0.39, 1.29, 0.35, 0.98 - bezier = expressiveDefaultSpatial, 0.38, 1.21, 0.22, 1.00 - bezier = emphasizedDecel, 0.05, 0.7, 0.1, 1 - bezier = emphasizedAccel, 0.3, 0, 0.8, 0.15 - bezier = standardDecel, 0, 0, 0, 1 - bezier = menu_decel, 0.1, 1, 0, 1 - bezier = menu_accel, 0.52, 0.03, 0.72, 0.08 - bezier = stall, 1, -0.1, 0.7, 0.85 - # Configs - # windows - animation = windowsIn, 1, 3, emphasizedDecel, popin 80% - animation = fadeIn, 1, 3, emphasizedDecel - animation = windowsOut, 1, 2, emphasizedDecel, popin 90% - animation = fadeOut, 1, 2, emphasizedDecel - animation = windowsMove, 1, 3, emphasizedDecel, slide - animation = border, 1, 10, emphasizedDecel - # layers - animation = layersIn, 1, 2.7, emphasizedDecel, popin 93% - animation = layersOut, 1, 2.4, menu_accel, popin 94% - # fade - animation = fadeLayersIn, 1, 0.5, menu_decel - animation = fadeLayersOut, 1, 2.7, stall - # workspaces - animation = workspaces, 1, 7, menu_decel, slide - ## specialWorkspace - animation = specialWorkspaceIn, 1, 2.8, emphasizedDecel, slidevert - animation = specialWorkspaceOut, 1, 1.2, emphasizedAccel, slidevert - # zoom - animation = zoomFactor, 1, 3, standardDecel -} - -input { - kb_layout = us - numlock_by_default = true - repeat_delay = 250 - repeat_rate = 35 - - follow_mouse = 1 - off_window_axis_events = 2 - - touchpad { - natural_scroll = yes - disable_while_typing = true - clickfinger_behavior = true - scroll_factor = 0.7 - } -} - -misc { - disable_hyprland_logo = true - disable_splash_rendering = true - vfr = 1 - vrr = 0 - mouse_move_enables_dpms = true - key_press_enables_dpms = true - animate_manual_resizes = false - animate_mouse_windowdragging = false - enable_swallow = false - swallow_regex = (foot|kitty|allacritty|Alacritty) - on_focus_under_fullscreen = 2 - allow_session_lock_restore = true - session_lock_xray = true - initial_workspace_tracking = false - focus_on_activate = true -} - -binds { - scroll_event_delay = 0 - hide_special_on_workspace_change = true -} - -cursor { - zoom_factor = 1 - zoom_rigid = false - zoom_disable_aa = true - hotspot_padding = 1 -} - -xwayland { - force_zero_scaling = true -} diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index 7beb6346e..6c772ecea 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -1,39 +1,63 @@ -- MONITOR CONFIG hl.monitor({ - output = "", - mode = "preferred", + output = "", + mode = "preferred", position = "auto", - scale = "1", + scale = "1" }) -hl.gesture({ fingers = 3, direction = "swipe", action = "move" }) -hl.gesture({ fingers = 3, direction = "pinch", action = "float" }) -hl.gesture({ fingers = 4, direction = "horizontal", action = "workspace" }) -hl.gesture({ fingers = 4, direction = "up", action = function() hl.dsp.global("quickshell:overviewWorkspacesToggle") end }) -hl.gesture({ fingers = 4, direction = "down", action = function() hl.dsp.global("quickshell:overviewWorkspacesClose") end }) --- couldn't find anything about this in the old or the new syntax wiki (plugin?) had to comment gave error ---hl.gesture({ --- workspace_swipe_distance = 700, --- workspace_swipe_cancel_ratio = 0.2, --- workspace_swipe_min_speed_to_force = 5, --- workspace_swipe_direction_lock = true, --- workspace_swipe_direction_lock_threshold = 10, --- workspace_swipe_create_new = true, ---}) +hl.gesture({ + fingers = 3, + direction = "swipe", + action = "move" +}) +hl.gesture({ + fingers = 3, + direction = "pinch", + action = "fullscreen" +}) +hl.gesture({ + fingers = 4, + direction = "horizontal", + action = "workspace" +}) +hl.gesture({ + fingers = 4, + direction = "up", + action = function() + -- For whatever reason hl.dsp.global doesn't work here??? + hl.exec_cmd("qs -c $qsConfig ipc call search workspacesToggle") + end +}) +hl.gesture({ + fingers = 4, + direction = "down", + action = function() + -- For whatever reason hl.dsp.global doesn't work here??? + hl.exec_cmd("qs -c $qsConfig ipc call search workspacesToggle") + end +}) hl.config({ + gestures = { + workspace_swipe_distance = 700, + workspace_swipe_cancel_ratio = 0.2, + workspace_swipe_min_speed_to_force = 5, + workspace_swipe_direction_lock = true, + workspace_swipe_direction_lock_threshold = 10, + workspace_swipe_create_new = true + }, general = { -- Gaps and border - gaps_in = 4, + gaps_in = 4, gaps_out = 5, gaps_workspaces = 50, border_size = 1, col = { - active_border = "rgba(0DB7D455)", - inactive_border = "rgba(31313600)", - + active_border = "rgba(0DB7D455)", + inactive_border = "rgba(31313600)" }, resize_on_border = true, @@ -43,13 +67,13 @@ hl.config({ enabled = true, window_gap = 4, monitor_gap = 5, - respect_gaps = true, - }, + respect_gaps = true + } }, decoration = { -- 2 = circle, higher = squircle, 4 = very obvious squircle - -- Clear squircles look really off; we use only extra .4 here to make the rounding feel more continuous - rounding_power = 2, + -- Fuck clearly visible squircles. 100% Apple brainrot. + rounding_power = 2.5, rounding = 18, blur = { @@ -67,64 +91,168 @@ hl.config({ popups = false, popups_ignorealpha = 0.6, input_methods = true, - input_methods_ignorealpha = 0.8, + input_methods_ignorealpha = 0.8 }, shadow = { enabled = true, - --ignore_window = true, -- deprecated?? range = 20, offset = {0, 2}, render_power = 10, - color = "rgba(00000020)", + color = "rgba(00000020)" }, -- Dim dim_inactive = true, dim_strength = 0.05, - dim_special = 0.2, + dim_special = 0.2 }, animations = { - enabled = true, + enabled = true }, dwindle = { preserve_split = true, smart_split = false, - smart_resizing = false, - --precise_mouse_move = true, + smart_resizing = false + -- precise_mouse_move = true, }, }) -- Curves -hl.curve("expressiveFastSpatial", { type = "bezier", points = { {0.42, 1.67}, {0.21, 0.90} } }) -hl.curve("expressiveSlowSpatial", { type = "bezier", points = { {0.39, 1.29}, {0.35, 0.98} } }) -hl.curve("expressiveDefaultSpatial", { type = "bezier", points = { {0.38, 1.21}, {0.22, 1.00} } }) -hl.curve("emphasizedDecel", { type = "bezier", points = { {0.05, 0.7}, {0.1, 1} } }) -hl.curve("emphasizedAccel", { type = "bezier", points = { {0.3, 0}, {0.8, 0.15} } }) -hl.curve("standardDecel", { type = "bezier", points = { {0, 0}, {0, 1} } }) -hl.curve("menu_decel", { type = "bezier", points = { {0.1, 1}, {0, 1} } }) -hl.curve("menu_accel", { type = "bezier", points = { {0.52, 0.03}, {0.72, 0.08} } }) -hl.curve("stall", { type = "bezier", points = { {1, -0.1}, {0.7, 0.85} } }) +hl.curve("expressiveFastSpatial", { + type = "bezier", + points = {{0.42, 1.67}, {0.21, 0.90}} +}) +hl.curve("expressiveSlowSpatial", { + type = "bezier", + points = {{0.39, 1.29}, {0.35, 0.98}} +}) +hl.curve("expressiveDefaultSpatial", { + type = "bezier", + points = {{0.38, 1.21}, {0.22, 1.00}} +}) +hl.curve("emphasizedDecel", { + type = "bezier", + points = {{0.05, 0.7}, {0.1, 1}} +}) +hl.curve("emphasizedAccel", { + type = "bezier", + points = {{0.3, 0}, {0.8, 0.15}} +}) +hl.curve("standardDecel", { + type = "bezier", + points = {{0, 0}, {0, 1}} +}) +hl.curve("menu_decel", { + type = "bezier", + points = {{0.1, 1}, {0, 1}} +}) +hl.curve("menu_accel", { + type = "bezier", + points = {{0.52, 0.03}, {0.72, 0.08}} +}) +hl.curve("stall", { + type = "bezier", + points = {{1, -0.1}, {0.7, 0.85}} +}) -- Configs -- windows -hl.animation({ leaf = "windowsIn", enabled = true, speed = 3, bezier = "emphasizedDecel", style = "popin 80%" }) -hl.animation({ leaf = "fadeIn", enabled = true, speed = 3, bezier = "emphasizedDecel" }) -hl.animation({ leaf = "windowsOut", enabled = true, speed = 2, bezier = "emphasizedDecel", style = "popin 90%" }) -hl.animation({ leaf = "fadeOut", enabled = true, speed = 2, bezier = "emphasizedDecel" }) -hl.animation({ leaf = "windowsMove", enabled = true, speed = 3, bezier = "emphasizedDecel", style = "slide" }) -hl.animation({ leaf = "border", enabled = true, speed = 10, bezier = "emphasizedDecel" }) +hl.animation({ + leaf = "windowsIn", + enabled = true, + speed = 3, + bezier = "emphasizedDecel", + style = "popin 80%" +}) +hl.animation({ + leaf = "fadeIn", + enabled = true, + speed = 3, + bezier = "emphasizedDecel" +}) +hl.animation({ + leaf = "windowsOut", + enabled = true, + speed = 2, + bezier = "emphasizedDecel", + style = "popin 90%" +}) +hl.animation({ + leaf = "fadeOut", + enabled = true, + speed = 2, + bezier = "emphasizedDecel" +}) +hl.animation({ + leaf = "windowsMove", + enabled = true, + speed = 3, + bezier = "emphasizedDecel", + style = "slide" +}) +hl.animation({ + leaf = "border", + enabled = true, + speed = 10, + bezier = "emphasizedDecel" +}) -- layers -hl.animation({ leaf = "layersIn", enabled = true, speed = 2.7, bezier = "emphasizedDecel", style = "popin 93%" }) -hl.animation({ leaf = "layersOut", enabled = true, speed = 2.4, bezier = "menu_accel", style = "popin 94%" }) +hl.animation({ + leaf = "layersIn", + enabled = true, + speed = 2.7, + bezier = "emphasizedDecel", + style = "popin 93%" +}) +hl.animation({ + leaf = "layersOut", + enabled = true, + speed = 2.4, + bezier = "menu_accel", + style = "popin 94%" +}) -- fade -hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 0.5, bezier = "menu_decel" }) -hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 2.7, bezier = "stall" }) +hl.animation({ + leaf = "fadeLayersIn", + enabled = true, + speed = 0.5, + bezier = "menu_decel" +}) +hl.animation({ + leaf = "fadeLayersOut", + enabled = true, + speed = 2.7, + bezier = "stall" +}) -- workspaces -hl.animation({ leaf = "workspaces", enabled = true, speed = 7, bezier = "menu_decel", style = "slide" }) +hl.animation({ + leaf = "workspaces", + enabled = true, + speed = 7, + bezier = "menu_decel", + style = "slide" +}) -- specialWorkspace -hl.animation({ leaf = "specialWorkspaceIn", enabled = true, speed = 2.8, bezier = "emphasizedDecel", style = "slidevert" }) -hl.animation({ leaf = "specialWorkspaceOut",enabled = true, speed = 1.2, bezier = "emphasizedAccel", style = "slidevert" }) +hl.animation({ + leaf = "specialWorkspaceIn", + enabled = true, + speed = 2.8, + bezier = "emphasizedDecel", + style = "slidevert" +}) +hl.animation({ + leaf = "specialWorkspaceOut", + enabled = true, + speed = 1.2, + bezier = "emphasizedAccel", + style = "slidevert" +}) -- zoom -hl.animation({ leaf = "zoomFactor", enabled = true, speed = 3, bezier = "standardDecel" }) +hl.animation({ + leaf = "zoomFactor", + enabled = true, + speed = 3, + bezier = "standardDecel" +}) hl.config({ input = { @@ -140,14 +268,13 @@ hl.config({ natural_scroll = true, disable_while_typing = true, clickfinger_behavior = true, - scroll_factor = 0.7, - }, + scroll_factor = 0.7 + } }, misc = { disable_hyprland_logo = true, disable_splash_rendering = true, - --vfr = 1, --deprecated?? vrr = 0, mouse_move_enables_dpms = true, key_press_enables_dpms = true, @@ -159,22 +286,22 @@ hl.config({ allow_session_lock_restore = true, session_lock_xray = true, initial_workspace_tracking = false, - focus_on_activate = true, + focus_on_activate = true }, binds = { scroll_event_delay = 0, - hide_special_on_workspace_change = true, + hide_special_on_workspace_change = true }, cursor = { zoom_factor = 1, zoom_rigid = false, zoom_disable_aa = true, - hotspot_padding = 1, + hotspot_padding = 1 }, xwayland = { - force_zero_scaling = true, - }, + force_zero_scaling = true + } }) diff --git a/dots/.config/hypr/hyprland/keybinds.conf b/dots/.config/hypr/hyprland/keybinds.conf deleted file mode 100644 index 7b0c4d15e..000000000 --- a/dots/.config/hypr/hyprland/keybinds.conf +++ /dev/null @@ -1,272 +0,0 @@ -# Lines ending with `# [hidden]` won't be shown on cheatsheet -# Lines starting with #! are section headings - -# DO NOT REMOVE THIS EXEC OR YOU WON'T BE ABLE TO USE ANY KEYBIND -exec = hyprctl dispatch submap global -# This is required for catchall to work -submap = global - -#! -##! Shell -# These absolutely need to be on top, or they won't work consistently -bindid = Super, Super_L, Toggle search, global, quickshell:searchToggleRelease # Toggle search -bindid = Super, Super_R, Toggle search, global, quickshell:searchToggleRelease # [hidden] Toggle search -bind = Super, Super_L, exec, qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel # [hidden] Launcher (fallback) -bind = Super, Super_R, exec, qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || fuzzel # [hidden] Launcher (fallback) -binditn = Super, catchall, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Ctrl, Super_L, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Ctrl, Super_R, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse:272, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse:273, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse:274, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse:275, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse:276, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse:277, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse_up, global, quickshell:searchToggleReleaseInterrupt # [hidden] -bind = Super, mouse_down,global, quickshell:searchToggleReleaseInterrupt # [hidden] - -bindit = ,Super_L, global, quickshell:workspaceNumber # [hidden] -bindit = ,Super_R, global, quickshell:workspaceNumber # [hidden] -bind = Super, Tab, global, quickshell:overviewWorkspacesToggle # Toggle overview -bindd = Super, V, Clipboard history >> clipboard, global, quickshell:overviewClipboardToggle # Clipboard history >> clipboard -bindd = Super, Period, Emoji >> clipboard, global, quickshell:overviewEmojiToggle # Emoji >> clipboard -bind = Super, A, global, quickshell:sidebarLeftToggle # Toggle left sidebar -bind = Super+Alt, A, global, quickshell:sidebarLeftToggleDetach # [hidden] -bind = Super, B, global, quickshell:sidebarLeftToggle # [hidden] -bind = Super, O, global, quickshell:sidebarLeftToggle # [hidden] -bindd = Super, N, Toggle right sidebar, global, quickshell:sidebarRightToggle # Toggle right sidebar -bindd = Super, Slash, Toggle cheatsheet, global, quickshell:cheatsheetToggle # Toggle cheatsheet -bindd = Super, K, Toggle on-screen keyboard, global, quickshell:oskToggle # Toggle on-screen keyboard -bindd = Super, M, Toggle media controls, global, quickshell:mediaControlsToggle # Toggle media controls -bind = Super, G, global, quickshell:overlayToggle # Toggle overlay -bindd = Ctrl+Alt, Delete, Toggle session menu, global, quickshell:sessionToggle # Toggle session menu -bindd = Super, J, Toggle bar, global, quickshell:barToggle # Toggle bar -bind = Ctrl+Alt, Delete, exec, qs -c $qsConfig ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell # [hidden] Session menu (fallback) -bind = Shift+Super+Alt, Slash, exec, qs -p ~/.config/quickshell/$qsConfig/welcome.qml # [hidden] Launch welcome app - -bindle=, XF86MonBrightnessUp, exec, qs -c $qsConfig ipc call brightness increment || brightnessctl s 5%+ # [hidden] -bindle=, XF86MonBrightnessDown, exec, qs -c $qsConfig ipc call brightness decrement || brightnessctl s 5%- # [hidden] -bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5# [hidden] -bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- # [hidden] - -bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle # [hidden] -bindld = Super+Shift,M, Toggle mute, exec, wpctl set-mute @DEFAULT_SINK@ toggle # [hidden] -bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden] -bindl = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden] -bindld = Super+Alt,M, Toggle mic, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden] -bindd = Ctrl+Super, T, Toggle wallpaper selector, global, quickshell:wallpaperSelectorToggle # Wallpaper selector -bindd = Ctrl+Super+Alt, T, Select random wallpaper, global, quickshell:wallpaperSelectorRandom # Random wallpaper -bindd = Ctrl+Super, T, Change wallpaper, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfig/scripts/colors/switchwall.sh # [hidden] Change wallpaper (fallback) -bind = Ctrl+Super, R, exec, killall ydotool qs quickshell; qs -c $qsConfig & # Restart widgets -bind = Ctrl+Super, P, global, quickshell:panelFamilyCycle # Cycle panel family - -##! Utilities -# Screenshot, Record, OCR, Color picker, Clipboard history -bindd = Super, V, Copy clipboard history entry, exec, qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy # [hidden] Clipboard history >> clipboard (fallback) -bindd = Super, Period, Copy an emoji, exec, qs -c $qsConfig ipc call TEST_ALIVE || pkill fuzzel || ~/.config/hypr/hyprland/scripts/fuzzel-emoji.sh copy # [hidden] Emoji >> clipboard (fallback) -bind = Super+Shift, S, global, quickshell:regionScreenshot # Screen snip -bind = Super+Shift, S, exec, qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent # [hidden] Screen snip (fallback) -bind = Super+Shift, A, global, quickshell:regionSearch # Google Lens -bind = Super+Shift, A, exec, qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || ~/.config/hypr/hyprland/scripts/snip_to_search.sh # [hidden] Google Lens (fallback) -# OCR -bind = Super+Shift, X, global, quickshell:regionOcr # Character recognition >> clipboard -bind = Super+Shift, T, global, quickshell:screenTranslate # Translate screen content -bind = Super+Shift, X,exec, qs -c $qsConfig ipc call TEST_ALIVE || pidof slurp || grim -g "$(slurp $SLURP_ARGS)" "/tmp/ocr_image.png" && tesseract "/tmp/ocr_image.png" stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm "/tmp/ocr_image.png" # [hidden] -# Color picker -bindd = Super+Shift, C, Color picker, exec, hyprpicker -a # Pick color (Hex) >> clipboard -# Recording stuff -bindl = Super+Shift, R, global, quickshell:regionRecord # Record region (no sound) -bindl = Super+Shift, R, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfig/scripts/videos/record.sh # [hidden] Record region (no sound) (fallback) -bindl = Super+Alt, R, global, quickshell:regionRecord # [hidden] Record region (no sound) -bindl = Super+Alt, R, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/quickshell/$qsConfig/scripts/videos/record.sh # [hidden] Record region (no sound) (fallback) -bindl = Ctrl+Alt, R, exec, ~/.config/quickshell/$qsConfig/scripts/videos/record.sh --fullscreen # [hidden] Record screen (no sound) -bindl = Super+Shift+Alt, R, exec, ~/.config/quickshell/$qsConfig/scripts/videos/record.sh --fullscreen --sound # Record screen (with sound) -# Fullscreen screenshot -bindl = ,Print,exec,grim -o "$(hyprctl activeworkspace -j | jq -r '.monitor')" - | wl-copy # Screenshot >> clipboard -bindln = Ctrl,Print, exec, mkdir -p $(xdg-user-dir PICTURES)/Screenshots && grim -o "$(hyprctl activeworkspace -j | jq -r '.monitor')" $(xdg-user-dir PICTURES)/Screenshots/Screenshot_"$(date '+%Y-%m-%d_%H.%M.%S')".png # Screenshot >> clipboard & file -bindln = Ctrl,Print,exec,grim -o "$(hyprctl activeworkspace -j | jq -r '.monitor')" - | wl-copy # [hidden] Screenshot >> clipboard & file (clipboard) -# AI -bindd = Super+Shift+Alt, mouse:273, Generate AI summary for selected text, exec, ~/.config/hypr/hyprland/scripts/ai/primary-buffer-query.sh # [hidden] AI summary for selected text (requires a running ollama model) - -#! -##! Window -# Focusing -bindm = Super, mouse:272, movewindow # Move -bindm = Super, mouse:274, movewindow # [hidden] -bindm = Super, mouse:273, resizewindow # Resize -#/# bind = Super, ←/↑/→/↓,, # Focus in direction -bind = Super, Left, movefocus, l # [hidden] -bind = Super, Right, movefocus, r # [hidden] -bind = Super, Up, movefocus, u # [hidden] -bind = Super, Down, movefocus, d # [hidden] -bind = Super, BracketLeft, movefocus, l # [hidden] -bind = Super, BracketRight, movefocus, r # [hidden] -#/# bind = Super+Shift, ←/↑/→/↓,, # Move in direction -bind = Super+Shift, Left, movewindow, l # [hidden] -bind = Super+Shift, Right, movewindow, r # [hidden] -bind = Super+Shift, Up, movewindow, u # [hidden] -bind = Super+Shift, Down, movewindow, d # [hidden] -bind = Alt, F4, killactive, # [hidden] Close (Windows) -bind = Super, Q, killactive, # Close -bind = Super+Shift+Alt, Q, exec, hyprctl kill # Forcefully zap a window - - -# Window split ratio -#/# binde = Super, ;/',, # Adjust split ratio -binde = Super, Semicolon, layoutmsg, splitratio -0.1 # [hidden] -binde = Super, Apostrophe, layoutmsg, splitratio +0.1 # [hidden] -# Positioning mode -bind = Super+Alt, Space, togglefloating, # Float/Tile -bind = Super, D, fullscreen, 1 # Maximize -bind = Super, F, fullscreen, 0 # Fullscreen -bind = Super+Alt, F, fullscreenstate, 0 3 # Fullscreen spoof -bind = Super, P, pin # Pin - -#/# bind = Super+Alt, Hash,, # Send to workspace # (1, 2, 3,...) -# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` -bind = Super+Alt, code:10, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1 # [hidden] -bind = Super+Alt, code:11, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2 # [hidden] -bind = Super+Alt, code:12, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3 # [hidden] -bind = Super+Alt, code:13, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4 # [hidden] -bind = Super+Alt, code:14, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5 # [hidden] -bind = Super+Alt, code:15, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6 # [hidden] -bind = Super+Alt, code:16, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7 # [hidden] -bind = Super+Alt, code:17, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8 # [hidden] -bind = Super+Alt, code:18, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9 # [hidden] -bind = Super+Alt, code:19, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10 # [hidden] -# keypad numbers -bind = Super+Alt, code:87, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1 # [hidden] -bind = Super+Alt, code:88, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2 # [hidden] -bind = Super+Alt, code:89, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3 # [hidden] -bind = Super+Alt, code:83, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4 # [hidden] -bind = Super+Alt, code:84, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5 # [hidden] -bind = Super+Alt, code:85, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6 # [hidden] -bind = Super+Alt, code:79, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7 # [hidden] -bind = Super+Alt, code:80, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8 # [hidden] -bind = Super+Alt, code:81, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9 # [hidden] -bind = Super+Alt, code:90, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10 # [hidden] - -# #/# bind = Super+Shift, Scroll ↑/↓,, # Send to workspace left/right -bind = Super+Shift, mouse_down, movetoworkspace, r-1 # [hidden] -bind = Super+Shift, mouse_up, movetoworkspace, r+1 # [hidden] -bind = Super+Alt, mouse_down, movetoworkspace, -1 # [hidden] -bind = Super+Alt, mouse_up, movetoworkspace, +1 # [hidden] - -#/# bind = Super+Shift, Page_↑/↓,, # Send to workspace left/right -bind = Super+Alt, Page_Down, movetoworkspace, +1 # [hidden] -bind = Super+Alt, Page_Up, movetoworkspace, -1 # [hidden] -bind = Super+Shift, Page_Down, movetoworkspace, r+1 # [hidden] -bind = Super+Shift, Page_Up, movetoworkspace, r-1 # [hidden] -bind = Ctrl+Super+Shift, Right, movetoworkspace, r+1 # [hidden] -bind = Ctrl+Super+Shift, Left, movetoworkspace, r-1 # [hidden] - -bind = Super+Alt, S, movetoworkspacesilent, special # Send to scratchpad - -bind = Ctrl+Super, S, togglespecialworkspace, # [hidden] - -##! Workspace -# Switching -#/# bind = Super, Hash,, # Focus workspace # (1, 2, 3,...) -# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` -bind = Super, code:10, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1 # [hidden] -bind = Super, code:11, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2 # [hidden] -bind = Super, code:12, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3 # [hidden] -bind = Super, code:13, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4 # [hidden] -bind = Super, code:14, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5 # [hidden] -bind = Super, code:15, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6 # [hidden] -bind = Super, code:16, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7 # [hidden] -bind = Super, code:17, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8 # [hidden] -bind = Super, code:18, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9 # [hidden] -bind = Super, code:19, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10 # [hidden] -# keypad numbers -bindp = Super, code:87, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1 # [hidden] -bindp = Super, code:88, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2 # [hidden] -bindp = Super, code:89, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3 # [hidden] -bindp = Super, code:83, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4 # [hidden] -bindp = Super, code:84, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5 # [hidden] -bindp = Super, code:85, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6 # [hidden] -bindp = Super, code:79, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7 # [hidden] -bindp = Super, code:80, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8 # [hidden] -bindp = Super, code:81, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9 # [hidden] -bindp = Super, code:90, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10 # [hidden] - -#/# bind = Ctrl+Super, ←/→,, # Focus left/right -bind = Ctrl+Super, Right, workspace, r+1 # [hidden] -bind = Ctrl+Super, Left, workspace, r-1 # [hidden] -#/# bind = Ctrl+Super+Alt, ←/→,, # [hidden] Focus busy left/right -bind = Ctrl+Super+Alt, Right, workspace, m+1 # [hidden] -bind = Ctrl+Super+Alt, Left, workspace, m-1 # [hidden] -#/# bind = Super, Page_↑/↓,, # Focus left/right -bind = Super, Page_Down, workspace, +1 # [hidden] -bind = Super, Page_Up, workspace, -1 # [hidden] -bind = Ctrl+Super, Page_Down, workspace, r+1 # [hidden] -bind = Ctrl+Super, Page_Up, workspace, r-1 # [hidden] -#/# bind = Super, Scroll ↑/↓,, # Focus left/right -bind = Super, mouse_up, workspace, +1 # [hidden] -bind = Super, mouse_down, workspace, -1 # [hidden] -bind = Ctrl+Super, mouse_up, workspace, r+1 # [hidden] -bind = Ctrl+Super, mouse_down, workspace, r-1 # [hidden] -## Special -bind = Super, S, togglespecialworkspace, # Toggle scratchpad -bind = Super, mouse:275, togglespecialworkspace, # [hidden] -bind = Ctrl+Super, BracketLeft, workspace, -1 # [hidden] -bind = Ctrl+Super, BracketRight, workspace, +1 # [hidden] -bind = Ctrl+Super, Up, workspace, r-5 # [hidden] -bind = Ctrl+Super, Down, workspace, r+5 # [hidden] - -##! Virtual machines -bind = Super+Alt, F1, exec, notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit Super+Alt+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine # Disable keybinds -submap = virtual-machine -bind = Super+Alt, F1, exec, notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global # [hidden] -submap = global - -#! -# Testing -bind = Super+Alt, f11, exec, bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i "nipple" | grep -v -i "pussy" | shuf -n 1); ACTION=$(notify-send "Test notification with body image" "This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \"Testing" -a "Hyprland keybind" -p -h "string:image-path:/var/lib/AccountsService/icons/$USER" -t 6000 -i "discord" -A "openImage=Profile image" -A "action2=Open the random image" -A "action3=Useless button"); [[ $ACTION == *openImage ]] && xdg-open "/var/lib/AccountsService/icons/$USER"; [[ $ACTION == *action2 ]] && xdg-open \"$RANDOM_IMAGE\"' # [hidden] -bind = Super+Alt, f12, exec, bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i "nipple" | grep -v -i "pussy" | shuf -n 1); ACTION=$(notify-send "Test notification" "This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!" -a "Discord (fake)" -p -h "string:image-path:$RANDOM_IMAGE" -t 6000 -i "discord" -A "openImage=Profile image" -A "action2=Useless button"); [[ $ACTION == *openImage ]] && xdg-open "/var/lib/AccountsService/icons/$USER"' # [hidden] -bind = Super+Alt, Equal, exec, notify-send "Urgent notification" "Ah hell no" -u critical -a 'Hyprland keybind' # [hidden] - -##! Session -bindd = Super, L, Lock, exec, loginctl lock-session # Lock -bindld = Super+Shift, L, Suspend system, exec, systemctl suspend || loginctl suspend # Sleep -# bindl=,switch:on:Lid Switch, exec, systemctl suspend || loginctl suspend # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior -bindd = Ctrl+Shift+Alt+Super, Delete, Shutdown, exec, systemctl poweroff || loginctl poweroff # [hidden] Power off - -##! Screen -# Zoom -binde = Super, Minus, exec, ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3 # Zoom out -binde = Super, Equal, exec, ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3 # Zoom in -# Zoom with keypad -binde = Super, code:82, exec, qs -c $qsConfig ipc call zoom zoomOut # [hidden] Zoom out -binde = Super, code:86, exec, qs -c $qsConfig ipc call zoom zoomIn # [hidden] Zoom in -binde = Super, code:82, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1 # [hidden] Zoom out -binde = Super, code:86, exec, qs -c $qsConfig ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1 # [hidden] Zoom in - -##! Media -bindl= Super+Shift, N, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` # Next track -bindl= ,XF86AudioNext, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` # [hidden] -bindl= ,XF86AudioPrev, exec, playerctl previous # [hidden] -bind = Super+Shift+Alt, mouse:275, exec, playerctl previous # [hidden] -bind = Super+Shift+Alt, mouse:276, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` # [hidden] -bindl= Super+Shift, B, exec, playerctl previous # Previous track -bindl= Super+Shift, P, exec, playerctl play-pause # Play/pause media -bindl= ,XF86AudioPlay, exec, playerctl play-pause # [hidden] -bindl= ,XF86AudioPause, exec, playerctl play-pause # [hidden] - -##! Apps -bind = Super, Return, exec, $terminal # Terminal -bind = Super, T, exec, $terminal # [hidden] (terminal) (alt) -bind = Ctrl+Alt, T, exec, $terminal # [hidden] (terminal) (for Ubuntu people) -bind = Super, E, exec, $fileManager # File manager -bind = Super, W, exec, $browser # Browser -bind = Super, C, exec, $codeEditor # Code editor -bind = Ctrl+Super+Shift+Alt, W, exec, $officeSoftware # Office software -bind = Super, X, exec, $textEditor # Text editor -bind = Ctrl+Super, V, exec, $volumeMixer # Volume mixer -bind = Super, I, exec, $settingsApp # Settings app -bind = Ctrl+Shift, Escape, exec, $taskManager # Task manager - -# Cursed stuff -## Make window not amogus large -bind = Ctrl+Super, Backslash, resizeactive, exact 640 480 # [hidden] - diff --git a/dots/.config/hypr/hyprland/keybinds.lua b/dots/.config/hypr/hyprland/keybinds.lua index 04afd8f5c..c98becd0f 100644 --- a/dots/.config/hypr/hyprland/keybinds.lua +++ b/dots/.config/hypr/hyprland/keybinds.lua @@ -1,297 +1,270 @@ --- Left the hashes that I think you use in your quickshell and scripts in hope it doesn't break the cheatsheat --- Lines ending with `# [hidden]` won't be shown on cheatsheet --- Lines starting with #! are section headings - --- DO NOT REMOVE THIS EXEC OR YOU WON'T BE ABLE TO USE ANY KEYBIND --- hl.dsp.exec_cmd("hyprctl dispatch submap global" ) -- not needed anymore? - --- This is required for catchall to work --- hl.define_submap("", function( ) -- can't seem to get it to work when adding SUPER either function in qml stopped working or you need to find new workaround --- hl.bind("catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden] --- end) +require("hyprland.variables") +require("custom.variables") local qsScripts = "$HOME/.config/quickshell/$qsConfig/scripts" local hyprScripts = "$HOME/.config/hypr/hyprland/scripts" -local qsIPCcall = "qs -c $qsConfig ipc call" +local qsIpcCall = "qs -c $qsConfig ipc call" +local qsIsAlive = qsIpcCall.." TEST_ALIVE" ---#! ---##! Shell ---# These absolutely need to be on top, or they won't work consistently --- example: hl.bind(keys, dispatcher, {flag1 = true, flag2 = true}) -hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search -hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search -hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) -hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback) +hl.bind("SUPER + SUPER_L", hl.dsp.global("quickshell:searchToggleRelease"), {description = "Toggle search"} ) +hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:searchToggleRelease")) +hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd(qsIsAlive.." || pkill fuzzel || fuzzel") ) +hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIsAlive.." || pkill fuzzel || fuzzel") ) -hl.bind("CTRL + SUPER_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] -hl.bind("CTRL + SUPER_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] -for i = 1, 8 do - local keycombos = {":272", ":273", ":274", ":275", ":276", ":277", "_up", "_down"} - hl.bind("SUPER + mouse"..keycombos[i], hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden] -end +hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) +hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) +hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle"), {description = "Toggle overview"} ) +hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) +hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) +hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle"), {description = "Toggle left sidebar"} ) +hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) +hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) +hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) +hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) +hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) +hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) +hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) +hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle"), {description = "Toggle widget overlay"} ) +hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) +hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) +hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd(qsIsAlive.." || pkill wlogout || wlogout -p layer-shell") ) +hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p $HOME/.config/quickshell/$qsConfig/welcome.qml") ) -hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind("SUPER_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden] -hl.bind("SUPER + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview -hl.bind("SUPER + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard -hl.bind("SUPER + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard -hl.bind("SUPER + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar -hl.bind("SUPER + ALT + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden] -hl.bind("SUPER + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("SUPER + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden] -hl.bind("SUPER + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar -hl.bind("SUPER + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet -hl.bind("SUPER + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard -hl.bind("SUPER + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls -hl.bind("SUPER + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay -hl.bind("CTRL + ALT + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu -hl.bind("SUPER + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar -hl.bind("CTRL + ALT + Delete", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback) -hl.bind("SHIFT + SUPER + ALT + Slash", hl.dsp.exec_cmd("qs -p $HOME/.config/quickshell/$qsConfig/welcome.qml") ) -- # [hidden] Launch welcome app +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd(qsIpcCall.." brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) +hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd(qsIpcCall.." brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd(qsIPCcall.." brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd(qsIPCcall.." brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden] -hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden] - -hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden] -hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden] -hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector -hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper -hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback) -hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &") ) -- Restart widgets -hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) +hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) +hl.bind("ALT + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) +hl.bind("SUPER + ALT + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) +hl.bind("CTRL + SUPER + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) +hl.bind("CTRL + SUPER + ALT + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) +hl.bind("CTRL + SUPER + T", hl.dsp.exec_cmd(qsIsAlive.." || "..qsScripts.."/colors/switchwall.sh") ) +hl.bind("CTRL + SUPER + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c $qsConfig &"), {description = "Restart widgets"} ) +hl.bind("CTRL + SUPER + P", hl.dsp.global("quickshell:panelFamilyCycle"), {description = "Cycle panel family"} ) --##! Utilities --# Screenshot, Record, OCR, Color picker, Clipboard history -hl.bind("SUPER + V", hl.dsp.exec_cmd( - qsIPCcall.." TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback) -hl.bind("SUPER + Period", hl.dsp.exec_cmd( - qsIPCcall.." TEST_ALIVE || pkill fuzzel || "..hyprScripts.."/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback) -hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip -hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback) -hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens -hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pidof slurp || "..hyprScripts.."/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback) +hl.bind("SUPER + V", hl.dsp.exec_cmd( + qsIsAlive.." || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Clipboard history >> clipboard"} ) +hl.bind("SUPER + Period", hl.dsp.exec_cmd( + qsIsAlive.." || pkill fuzzel || "..hyprScripts.."/fuzzel-emoji.sh copy"), {description = "Emoji >> clipboard"} ) +hl.bind("SUPER + SHIFT + S", hl.dsp.global("quickshell:regionScreenshot"), {description = "Screen snip"} ) +hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(qsIsAlive.." || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) +hl.bind("SUPER + SHIFT + A", hl.dsp.global("quickshell:regionSearch"), {description = "Google Lens"} ) +hl.bind("SUPER + SHIFT + A", hl.dsp.exec_cmd(qsIsAlive.." || pidof slurp || "..hyprScripts.."/snip_to_search.sh") ) --# OCR -hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard -hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content -hl.bind("SUPER + SHIFT + X", hl.dsp.exec_cmd( - qsIPCcall.." TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'" -) ) -- # [hidden] +hl.bind("SUPER + SHIFT + X", hl.dsp.global("quickshell:regionOcr"), {description = "Character recognition >> clipboard"} ) +hl.bind("SUPER + SHIFT + T", hl.dsp.global("quickshell:screenTranslate"), {description = "Translate screen content"} ) +hl.bind("SUPER + SHIFT + X", hl.dsp.exec_cmd( + qsIsAlive.." || pidof slurp || grim -g \"$(slurp $SLURP_ARGS)\" \"/tmp/ocr_image.png\" && tesseract \"/tmp/ocr_image.png\" stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\\\n' '+' | sed 's/\\\\+$/\\\\n/') | wl-copy && rm \"/tmp/ocr_image.png\"" +) ) --# Color picker -hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard +hl.bind("SUPER + SHIFT + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Pick color #RRGGBB >> clipboard"} ) --# Recording stuff -hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound) -hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound) -hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..qsScripts.."/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback) -hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound) -hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound) +hl.bind("SUPER + SHIFT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true, description = "Record region (no sound)"} ) +hl.bind("SUPER + SHIFT + R", hl.dsp.exec_cmd(qsIsAlive.." || "..qsScripts.."/videos/record.sh"), {locked = true} ) +hl.bind("SUPER + ALT + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) +hl.bind("SUPER + ALT + R", hl.dsp.exec_cmd(qsIsAlive.." || "..qsScripts.."/videos/record.sh"), {locked = true} ) +hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen"), {locked = true} ) +hl.bind("SUPER + SHIFT + ALT + R", hl.dsp.exec_cmd(qsScripts.."/videos/record.sh --fullscreen --sound"), {locked = true, description = "Record screen (with sound)"} ) --# Fullscreen screenshot -local grimhyprctl = "grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')'" -hl.bind("Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard -hl.bind("CTRL + Print", hl.dsp.exec_cmd( - "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && "..grimhyprctl.." $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png" -), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file -hl.bind("CTRL + Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard) +local grimhyprctl = "grim -o \"$(hyprctl activeworkspace -j | jq -r '.monitor')\"" +hl.bind("Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true, description = "Screenshot >> clipboard"} ) +hl.bind("CTRL + Print", hl.dsp.exec_cmd( + "mkdir -p $(xdg-user-dir PICTURES)/Screenshots && "..grimhyprctl.." $(xdg-user-dir PICTURES)/Screenshots/Screenshot_\"$(date '+%Y-%m-%d_%H.%M.%S')\".png" +), {locked = true, non_consuming = true, description = "Screenshot >> clipboard & file"} ) +hl.bind("CTRL + Print", hl.dsp.exec_cmd(grimhyprctl.." - | wl-copy"), {locked = true, non_consuming = true}) --# AI -hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd(hyprScripts.."/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text - -- (requires a running ollama model) +hl.bind("SUPER + SHIFT + ALT + mouse:273", hl.dsp.exec_cmd(hyprScripts.."/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) + -- (requires a running ollama model) --#! --##! Window --# Focusing -hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move -hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden] -hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize +hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), {mouse = true, description = "Move"} ) +hl.bind("SUPER + mouse:274", hl.dsp.window.drag(), {mouse = true} ) +hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), {mouse = true, description = "Resize"} ) --#/# bind = SUPER + ←/↑/→/↓,, -- Focus in direction for i = 1, 6 do - local arrowkey = {"Left","Right","Up","Down","BracketLeft","BracketRight"} - local focusdir = {"l","r","u","d","l","r"} - hl.bind("SUPER + "..arrowkey[i], hl.dsp.focus({direction = focusdir[i]}) ) -- # [hidden] + local arrowkey = {"Left","Right","Up","Down","BracketLeft","BracketRight"} + local focusdir = {"l","r","u","d","l","r"} + hl.bind("SUPER + "..arrowkey[i], hl.dsp.focus({direction = focusdir[i]}) ) end --#/# bind = SUPER + SHIFT, ←/↑/→/↓,, -- Move in direction for i = 1, 4 do - local arrowkey = {"Left","Right","Up","Down"} - local focusdir = {"l","r","u","d"} - hl.bind("SUPER + SHIFT + "..arrowkey[i], hl.dsp.window.move({direction = focusdir[i]}) ) -- # [hidden] + local arrowkey = {"Left","Right","Up","Down"} + local focusdir = {"l","r","u","d"} + hl.bind("SUPER + SHIFT + "..arrowkey[i], hl.dsp.window.move({direction = focusdir[i]}) ) end -hl.bind("ALT + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows) -hl.bind("SUPER + Q", hl.dsp.window.close() ) -- Close -hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window - +hl.bind("ALT + F4", function() hl.exec_cmd("notify-send \"Wrong close keybind\" \"Super+Q to close. Use Alt+F4 for Windows VMs\" -a Hyprland") end, {non_consuming = true} ) +hl.bind("SUPER + Q", hl.dsp.window.close(), {description = "Close"} ) +hl.bind("SUPER + SHIFT + ALT + Q", hl.dsp.exec_cmd("hyprctl kill"), {description = "Forcefully zap a window"} ) --# Window split ratio --#/# binde = SUPER, ;/',, -- Adjust split ratio -hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden] -hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden] +hl.bind("SUPER + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) +hl.bind("SUPER + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) --# Positioning mode -hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile -hl.bind("SUPER + D", hl.dsp.window.fullscreen({"maximized"}) ) -- Maximize -hl.bind("SUPER + F", hl.dsp.window.fullscreen({"fullscreen"}) ) -- Fullscreen -hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}) ) -- Fullscreen spoof -hl.bind("SUPER + P", hl.dsp.window.pin() ) -- Pin +hl.bind("SUPER + ALT + Space", hl.dsp.window.float({action = "toggle"}), {description = "Float/Tile"} ) +hl.bind("SUPER + D", hl.dsp.window.fullscreen({"maximized"}, {description = "Maximize"}) ) +hl.bind("SUPER + F", hl.dsp.window.fullscreen({"fullscreen"}, {description = "Fullscreen"}) ) +hl.bind("SUPER + ALT + F", hl.dsp.window.fullscreen_state({internal = 0, client = 3}, {description = "Fullscreen spoof"}) ) +hl.bind("SUPER + P", hl.dsp.window.pin(), {description = "Pin"} ) --#/# bind = SUPER+ALT, Hash,, -- Send to workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` for i = 1, 10 do - local numberkey = {10,11,12,13,14,15,16,17,18,19} - hl.bind("SUPER + ALT + code:"..numberkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) -- # [hidden] + local numberkey = {10,11,12,13,14,15,16,17,18,19} + hl.bind("SUPER + ALT + code:"..numberkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) end --# keypad numbers for i = 1, 10 do - local numpadkey = {87,88,89,83,84,85,79,80,81,90} - hl.bind("SUPER + ALT + code:"..numpadkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) -- # [hidden] + local numpadkey = {87,88,89,83,84,85,79,80,81,90} + hl.bind("SUPER + ALT + code:"..numpadkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) end --# #/# bind = SUPER+SHIFT, Scroll ↑/↓,, -- Send to workspace left/right for i = 1, 4 do - local key = {"SUPER + SHIFT + mouse_", "SUPER + ALT + mouse_"} - local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up"} - local prefix = {"r-","r+","-","+"} - hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden] + local key = {"SUPER + SHIFT + mouse_", "SUPER + ALT + mouse_"} + local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up"} + local prefix = {"r-","r+","-","+"} + hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) end --#/# bind = SUPER+SHIFT, Page_↑/↓,, -- Send to workspace left/right for i = 1, 6 do - local key = {"SUPER + ALT + Page_", "SUPER + SHIFT + Page_", "CTRL + SUPER + SHIFT + "} - local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up", key[3].."Right", key[3].."Left"} - local prefix = {"+","-","r+","r-","r+","r-"} - hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden] + local key = {"SUPER + ALT + Page_", "SUPER + SHIFT + Page_", "CTRL + SUPER + SHIFT + "} + local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up", key[3].."Right", key[3].."Left"} + local prefix = {"+","-","r+","r-","r+","r-"} + hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden] end -hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", follow = false}) ) -- Send to scratchpad - -hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", follow = false, description = "Send to scratchpad"}) ) +hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) --##! Workspace --# Switching --#/# bind = SUPER, Hash,, -- Focus workspace -- (1, 2, 3,...) --# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev` for i = 1, 10 do - local numberkey = {10,11,12,13,14,15,16,17,18,19} - hl.bind("SUPER + code:"..numberkey[i], hl.dsp.focus({ workspace = i}) ) -- # [hidden] + local numberkey = {10,11,12,13,14,15,16,17,18,19} + hl.bind("SUPER + code:"..numberkey[i], hl.dsp.focus({ workspace = i}) ) end --# keypad numbers for i = 1, 10 do - local numpadkey = {87,88,89,83,84,85,79,80,81,90} - hl.bind("SUPER + code:"..numpadkey[i], hl.dsp.focus({ workspace = i}) ) -- # [hidden] + local numpadkey = {87,88,89,83,84,85,79,80,81,90} + hl.bind("SUPER + code:"..numpadkey[i], hl.dsp.focus({ workspace = i}) ) end --#/# bind = CTRL+SUPER, ←/→,, -- Focus left/right --#/# bind = CTRL+SUPER+ALT, ←/→,, -- # [hidden] Focus busy left/right for i = 1, 4 do - local key = {"CTRL + SUPER + ", "CTRL + SUPER + ALT + "} - local keycombos = {key[1].."Right", key[1].."Left", key[2].."Right", key[2].."Left"} - local prefix = {"r+","r-","m+","m-"} - hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden] + local key = {"CTRL + SUPER + ", "CTRL + SUPER + ALT + "} + local keycombos = {key[1].."Right", key[1].."Left", key[2].."Right", key[2].."Left"} + local prefix = {"r+","r-","m+","m-"} + hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) end --#/# bind = SUPER, Page_↑/↓,, -- Focus left/right for i = 1, 4 do - local key = {"SUPER + Page_Down", "SUPER + Page_Up"} - local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]} - local prefix = {"+","-","r+","r-"} - hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden] + local key = {"SUPER + Page_Down", "SUPER + Page_Up"} + local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]} + local prefix = {"r+","r-","r+","r-"} + hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) end --#/# bind = SUPER, Scroll ↑/↓,, -- Focus left/right for i = 1, 4 do - local key = {"SUPER + mouse_up", "SUPER + mouse_down"} - local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]} - local prefix = {"+","-","r+","r-"} - hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden] + local key = {"SUPER + mouse_up", "SUPER + mouse_down"} + local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]} + local prefix = {"+","-","r+","r-"} + hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) end --## Special -hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad -hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden] +hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special"), {description = "Toggle scratchpad"} ) +hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) for i = 1, 4 do - local key = {"BracketLeft","BracketRight","Up","Down"} - local prefix = {"-1","+1","r-5","r+5"} - hl.bind("CTRL + SUPER + "..key[i], hl.dsp.window.move({workspace = prefix[i]}) ) -- # [hidden] + local key = {"BracketLeft","BracketRight","Up","Down"} + local prefix = {"-1","+1","r-5","r+5"} + hl.bind("CTRL + SUPER + "..key[i], hl.dsp.focus({workspace = prefix[i]}) ) end --##! Virtual machines hl.define_submap("virtual-machine", function() - hl.bind("SUPER + ALT + F1", function() - local currentsubmap = hl.get_current_submap() - if currentsubmap == "virtual-machine" then - hl.dispatch(hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland'") ) -- # [hidden] - hl.dispatch(hl.dsp.submap("reset") ) - elseif currentsubmap == "" then - hl.dispatch(hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. hit SUPER+ALT+F1 to escape' -a 'Hyprland'") ) -- Disable keybinds - hl.dispatch(hl.dsp.submap("virtual-machine") ) - end - end, {submap_universal = true}) + hl.bind("SUPER + ALT + F1", function() + local currentsubmap = hl.get_current_submap() + if currentsubmap == "virtual-machine" then + hl.dispatch(hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland'") ) + hl.dispatch(hl.dsp.submap("reset") ) + elseif currentsubmap == "" then + hl.dispatch(hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. hit SUPER+ALT+F1 to escape' -a 'Hyprland'") ) + hl.dispatch(hl.dsp.submap("virtual-machine") ) + end + end, {submap_universal = true}) end) --#! --# Testing -hl.bind("SUPER + ALT + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find $HOME/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \'Testing' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''") - ) -- # [hidden] -hl.bind("SUPER + ALT + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find $HOME/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''") - ) -- # [hidden] -hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] +hl.bind("SUPER + ALT + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | shuf -n 1); ACTION=$(notify-send \"Test notification with body image\" \"This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \\\"Testing\" -a \"Hyprland\" -p -h \"string:image-path:/var/lib/AccountsService/icons/$USER\" -t 6000 -i \"discord\" -A \"openImage=Profile image\" -A \"action2=Open the random image\" -A \"action3=Useless button\"); [[ $ACTION == *openImage ]] && xdg-open \"/var/lib/AccountsService/icons/$USER\"; [[ $ACTION == *action2 ]] && xdg-open \"$RANDOM_IMAGE\"'") + ) -- # [hidden] +hl.bind("SUPER + ALT + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | shuf -n 1); ACTION=$(notify-send \"Test notification\" \"This notification should contain a random image in your Pictures folder and Discord icon.\nFlick right to dismiss!\" -a \"Discord (fake)\" -p -h \"string:image-path:$RANDOM_IMAGE\" -t 6000 -i \"discord\" -A \"openImage=Profile image\" -A \"action2=Useless button\"); [[ $ACTION == *openImage ]] && xdg-open \"/var/lib/AccountsService/icons/$USER\"'") + ) -- # [hidden] +hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden] --##! Session -hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock -hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep --- hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior +hl.bind("SUPER + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) +hl.bind("SUPER + SHIFT + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep +-- hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior -hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off +hl.bind("CTRL + SHIFT + ALT + SUPER + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off --##! Screen ---# Zoom -- doesn't work yet due to hyprland having issues updating conf variables after conf is loaded and reloading conf resets zoomfactor +--# Zoom local function zoomfunction(value) - local zoomvalue = hl.get_config("cursor:zoom_factor") - if (zoomvalue + value) > 3.0 then - hl.config({cursor = {zoom_factor = 3.0}}) - elseif (zoomvalue + value) < 1.0 then - hl.config({cursor = {zoom_factor = 1.0}}) - else - hl.config({cursor = {zoom_factor = zoomvalue + value}}) - end - + local zoomvalue = hl.get_config("cursor:zoom_factor") + if (zoomvalue + value) > 3.0 then + hl.config({cursor = {zoom_factor = 3.0}}) + elseif (zoomvalue + value) < 1.0 then + hl.config({cursor = {zoom_factor = 1.0}}) + else + hl.config({cursor = {zoom_factor = zoomvalue + value}}) + end end -hl.bind("SUPER + Minus", function() zoomfunction(-0.3) end, {repeating = true} ) -- Zoom out -hl.bind("SUPER + Equal", function() zoomfunction(0.3) end, {repeating = true} ) -- Zoom in +hl.bind("SUPER + Minus", function() zoomfunction(-0.3) end, {repeating = true, description = "Zoom out"} ) +hl.bind("SUPER + Equal", function() zoomfunction(0.3) end, {repeating = true, description = "Zoom in"} ) --# Zoom with keypad -hl.bind("SUPER + code:82", function() zoomfunction(-0.1) end, {repeating = true} ) -- # [hidden] Zoom out -hl.bind("SUPER + code:86", function() zoomfunction(0.1) end, {repeating = true} ) -- # [hidden] Zoom in --- Don't know why these use different functions to zoom but for now I replaced them with the same as above --- hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out --- hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in --- hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out --- hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in +hl.bind("SUPER + code:82", function() zoomfunction(-0.3) end, {repeating = true} ) +hl.bind("SUPER + code:86", function() zoomfunction(0.3) end, {repeating = true} ) --##! Media -local mediacommand = "playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`" -hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- Next track -hl.bind("XF86AudioNext", hl.dsp.exec_cmd(mediacommand), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden] -hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) -- # [hidden] -hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd(mediacommand) ) -- # [hidden] -hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track -hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media -hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] -hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden] +local mediaNextCommand = "playerctl next || playerctl position `bc <<< \"100 * $(playerctl metadata mpris:length) / 1000000 / 100\"`" +hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd(mediaNextCommand), {locked = true, description = "Next track"} ) +hl.bind("XF86AudioNext", hl.dsp.exec_cmd(mediaNextCommand), {locked = true} ) +hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) +hl.bind("SUPER + SHIFT + ALT + mouse:275", hl.dsp.exec_cmd("playerctl previous") ) +hl.bind("SUPER + SHIFT + ALT + mouse:276", hl.dsp.exec_cmd(mediaNextCommand) ) +hl.bind("SUPER + SHIFT + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true, description = "Previous track"} ) +hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true, description = "Play/pause media"} ) +hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) +hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) --##! Apps -hl.bind("SUPER + Return", hl.dsp.exec_cmd("$terminal") ) -- Terminal -hl.bind("SUPER + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (alt) -hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("$terminal") ) -- # [hidden] (terminal) (for Ubuntu people) -hl.bind("SUPER + E", hl.dsp.exec_cmd("$fileManager") ) -- File manager -hl.bind("SUPER + W", hl.dsp.exec_cmd("$browser") ) -- Browser -hl.bind("SUPER + C", hl.dsp.exec_cmd("$codeEditor") ) -- Code editor -hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd("$officeSoftware") ) -- Office software -hl.bind("SUPER + X", hl.dsp.exec_cmd("$textEditor") ) -- Text editor -hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd("$volumeMixer") ) -- Volume mixer -hl.bind("SUPER + I", hl.dsp.exec_cmd("$settingsApp") ) -- Settings app -hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd("$taskManager") ) -- Task manager +hl.bind("SUPER + Return", hl.dsp.exec_cmd(terminal), {description = "Terminal"} ) +hl.bind("SUPER + T", hl.dsp.exec_cmd(terminal) ) +hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd(terminal) ) +hl.bind("SUPER + E", hl.dsp.exec_cmd(fileManager), {description = "File manager"} ) +hl.bind("SUPER + W", hl.dsp.exec_cmd(browser), {description = "Browser"} ) +hl.bind("SUPER + C", hl.dsp.exec_cmd(codeEditor), {description = "Code editor"} ) +hl.bind("CTRL + SUPER + SHIFT + ALT + W", hl.dsp.exec_cmd(officeSoftware), {description = "Office software"} ) +hl.bind("SUPER + X", hl.dsp.exec_cmd(textEditor), {description = "Text editor"} ) +hl.bind("CTRL + SUPER + V", hl.dsp.exec_cmd(volumeMixer), {description = "Volume mixer"} ) +hl.bind("SUPER + I", hl.dsp.exec_cmd(settingsApp), {description = "Settings app"} ) +hl.bind("CTRL + SHIFT + Escape", hl.dsp.exec_cmd(taskManager), {description = "Task manager"} ) --# Cursed stuff --## Make window not amogus large -hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, "exact"}) ) -- # [hidden] +hl.bind("CTRL + SUPER + Backslash", hl.dsp.window.resize({x = 640, y = 480, "exact"}) ) diff --git a/dots/.config/hypr/hyprland/rules.conf b/dots/.config/hypr/hyprland/rules.conf deleted file mode 100644 index 38e8cf560..000000000 --- a/dots/.config/hypr/hyprland/rules.conf +++ /dev/null @@ -1,173 +0,0 @@ -# ######## Window rules ######## - -# Disable blur for xwayland context menus -windowrule = match:class ^()$, match:title ^()$, no_blur on - -# Disable blur for every window -windowrule = match:class .*, no_blur on - -# Floating -windowrule = match:title ^(Open File)(.*)$, center on -windowrule = match:title ^(Open File)(.*)$, float on -windowrule = match:title ^(Select a File)(.*)$, center on -windowrule = match:title ^(Select a File)(.*)$, float on -windowrule = match:title ^(Choose wallpaper)(.*)$, center on -windowrule = match:title ^(Choose wallpaper)(.*)$, float on -windowrule = match:title ^(Choose wallpaper)(.*)$, size (monitor_w*.60) (monitor_h*.65) -windowrule = match:title ^(Open Folder)(.*)$, center on -windowrule = match:title ^(Open Folder)(.*)$, float on -windowrule = match:title ^(Save As)(.*)$, center on -windowrule = match:title ^(Save As)(.*)$, float on -windowrule = match:title ^(Library)(.*)$, center on -windowrule = match:title ^(Library)(.*)$, float on -windowrule = match:title ^(File Upload)(.*)$, center on -windowrule = match:title ^(File Upload)(.*)$, float on -windowrule = match:title ^(.*)(wants to save)$, center on -windowrule = match:title ^(.*)(wants to save)$, float on -windowrule = match:title ^(.*)(wants to open)$, center on -windowrule = match:title ^(.*)(wants to open)$, float on -windowrule = match:class ^(blueberry\.py)$, float on -windowrule = match:class ^(guifetch)$ , float on # FlafyDev/guifetch -windowrule = match:class ^(pavucontrol)$, float on -windowrule = match:class ^(pavucontrol)$, size (monitor_w*.45) (monitor_h*.45) -windowrule = match:class ^(pavucontrol)$, center on -windowrule = match:class ^(org.pulseaudio.pavucontrol)$, float on -windowrule = match:class ^(org.pulseaudio.pavucontrol)$, size (monitor_w*.45) (monitor_h*.45) -windowrule = match:class ^(org.pulseaudio.pavucontrol)$, center on -windowrule = match:class ^(nm-connection-editor)$, float on -windowrule = match:class ^(nm-connection-editor)$, size (monitor_w*.45) (monitor_h*.45) -windowrule = match:class ^(nm-connection-editor)$, center on -windowrule = match:class .*plasmawindowed.*, float on -windowrule = match:class kcm_.*, float on -windowrule = match:class .*bluedevilwizard, float on -windowrule = match:title .*Welcome, float on -windowrule = match:title ^(illogical-impulse Settings)$, float on -windowrule = match:title .*Shell conflicts.*, float on -windowrule = match:class org.freedesktop.impl.portal.desktop.kde, float on -windowrule = match:class org.freedesktop.impl.portal.desktop.kde, size (monitor_w*.60) (monitor_h*.65) -windowrule = match:class ^(Zotero)$, float on -windowrule = match:class ^(Zotero)$, size (monitor_w*.45) (monitor_h*.45) - -# Move -# kde-material-you-colors spawns a window when changing dark/light theme. This is to make sure it doesn't interfere at all. -windowrule = match:class ^(plasma-changeicons)$, float on -windowrule = match:class ^(plasma-changeicons)$, no_initial_focus on -windowrule = match:class ^(plasma-changeicons)$, move 999999 999999 -# stupid dolphin copy -windowrule = match:title ^(Copying — Dolphin)$, move 40 80 - -# Tiling -windowrule = match:class ^dev\.warp\.Warp$, tile on - -# Picture-in-Picture -windowrule = match:title ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$, float on -windowrule = match:title ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$, keep_aspect_ratio on -windowrule = match:title ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$, move (monitor_w*.73) (monitor_h*.72) -windowrule = match:title ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$, size (monitor_w*.25) (monitor_h*.25) -windowrule = match:title ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$, float on -windowrule = match:title ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$, pin on - -# Screen sharing -windowrule = match:title .*is sharing (a window|your screen).*, float on -windowrule = match:title .*is sharing (a window|your screen).*, pin on -windowrule = match:title .*is sharing (a window|your screen).*, move (monitor_w*.5-window_w*.5) (monitor_h-window_h-12) - -# --- Tearing --- -windowrule = match:title .*\.exe, immediate on -windowrule = match:title .*minecraft.*, immediate on -windowrule = match:class ^(steam_app).*, immediate on - -# Fix Jetbrain IDEs focus/rerendering problem -windowrule = match:class ^jetbrains-.*$, match:float 1, match:title ^$|^\s$|^win\d+$, no_initial_focus on - -# No shadow for tiled windows (matches windows that are not floating). -windowrule = match:float 0, no_shadow on - -# ######## Workspace rules ######## -workspace = special:special, gapsout:30 - -# ######## Layer rules ######## -layerrule = match:namespace .*, xray on -# layerrule = match:namespace .*, no_anim on -layerrule = match:namespace walker, no_anim on -layerrule = match:namespace selection, no_anim on -layerrule = match:namespace overview, no_anim on -layerrule = match:namespace anyrun, no_anim on -layerrule = match:namespace indicator.*, no_anim on -layerrule = match:namespace osk, no_anim on -layerrule = match:namespace hyprpicker, no_anim on - -layerrule = match:namespace noanim, no_anim on -layerrule = match:namespace gtk-layer-shell, blur on -layerrule = match:namespace gtk-layer-shell, ignore_alpha 0 -layerrule = match:namespace launcher, blur on -layerrule = match:namespace launcher, ignore_alpha 0.5 -layerrule = match:namespace notifications, blur on -layerrule = match:namespace notifications, ignore_alpha 0.69 -layerrule = match:namespace logout_dialog # wlogout, blur on - -# ags -layerrule = match:namespace sideleft.*, animation slide left -layerrule = match:namespace sideright.*, animation slide right -layerrule = match:namespace session[0-9]*, blur on -layerrule = match:namespace bar[0-9]*, blur on -layerrule = match:namespace bar[0-9]*, ignore_alpha 0.6 -layerrule = match:namespace barcorner.*, blur on -layerrule = match:namespace barcorner.*, ignore_alpha 0.6 -layerrule = match:namespace dock[0-9]*, blur on -layerrule = match:namespace dock[0-9]*, ignore_alpha 0.6 -layerrule = match:namespace indicator.*, blur on -layerrule = match:namespace indicator.*, ignore_alpha 0.6 -layerrule = match:namespace overview[0-9]*, blur on -layerrule = match:namespace overview[0-9]*, ignore_alpha 0.6 -layerrule = match:namespace cheatsheet[0-9]*, blur on -layerrule = match:namespace cheatsheet[0-9]*, ignore_alpha 0.6 -layerrule = match:namespace sideright[0-9]*, blur on -layerrule = match:namespace sideright[0-9]*, ignore_alpha 0.6 -layerrule = match:namespace sideleft[0-9]*, blur on -layerrule = match:namespace sideleft[0-9]*, ignore_alpha 0.6 -layerrule = match:namespace indicator.*, blur on -layerrule = match:namespace indicator.*, ignore_alpha 0.6 -layerrule = match:namespace osk[0-9]*, blur on -layerrule = match:namespace osk[0-9]*, ignore_alpha 0.6 - -# Quickshell -# Quickshell: illogical-impulse -layerrule = match:namespace quickshell:.*, blur_popups on -layerrule = match:namespace quickshell:.*, blur on -layerrule = match:namespace quickshell:.*, ignore_alpha 0.79 -layerrule = match:namespace quickshell:bar, animation slide -layerrule = match:namespace quickshell:actionCenter, no_anim on -layerrule = match:namespace quickshell:cheatsheet, animation slide bottom -layerrule = match:namespace quickshell:dock, animation slide bottom -layerrule = match:namespace quickshell:screenCorners, animation popin 120% -layerrule = match:namespace quickshell:lockWindowPusher, no_anim on -layerrule = match:namespace quickshell:notificationPopup, animation fade -layerrule = match:namespace quickshell:overlay, no_anim on -layerrule = match:namespace quickshell:overlay, ignore_alpha 1 -layerrule = match:namespace quickshell:overview, no_anim on -layerrule = match:namespace quickshell:osk, animation slide bottom -layerrule = match:namespace quickshell:polkit, no_anim on -layerrule = match:namespace quickshell:popup, xray off # No weird color for bar tooltips (this in theory should suffice) -layerrule = match:namespace quickshell:popup, ignore_alpha 1 # No weird color for bar tooltips (but somehow this is necessary) -layerrule = match:namespace quickshell:mediaControls, ignore_alpha 1 # Same as above -layerrule = match:namespace quickshell:reloadPopup, animation slide -layerrule = match:namespace quickshell:regionSelector, no_anim on -layerrule = match:namespace quickshell:screenshot, no_anim on -layerrule = match:namespace quickshell:session, blur on -layerrule = match:namespace quickshell:session, no_anim on -layerrule = match:namespace quickshell:session, ignore_alpha 0 -layerrule = match:namespace quickshell:sidebarRight, animation slide right -layerrule = match:namespace quickshell:sidebarLeft, animation slide left -layerrule = match:namespace quickshell:verticalBar, animation slide -layerrule = match:namespace quickshell:osk, order -1 -# Quickshell: waffles -layerrule = match:namespace quickshell:wallpaperSelector, animation slide top -layerrule = match:namespace quickshell:wNotificationCenter, no_anim on -layerrule = match:namespace quickshell:wOnScreenDisplay, no_anim on -layerrule = match:namespace quickshell:wStartMenu, no_anim on -layerrule = match:namespace quickshell:wTaskView, ignore_alpha 0 -layerrule = match:namespace quickshell:wTaskView, no_anim on - -# Launchers need to be FAST -layerrule = match:namespace gtk4-layer-shell, no_anim on diff --git a/dots/.config/hypr/hyprland/rules.lua b/dots/.config/hypr/hyprland/rules.lua index ffb1aa485..ed80b0082 100644 --- a/dots/.config/hypr/hyprland/rules.lua +++ b/dots/.config/hypr/hyprland/rules.lua @@ -1,173 +1,172 @@ -- ######## Window rules ######## -- Disable blur for xwayland context menus -hl.window_rule({match = {class = "^()$", title = "^()$" }, no_blur = true }) +hl.window_rule({match = {class = "^()$", title = "^()$" }, no_blur = true }) -- Disable blur for every window hl.window_rule({match = {class = ".*" }, no_blur = true }) -- Floating -hl.window_rule({match = {title = "^(Open File)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(Open File)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(Select a File)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(Select a File)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) -hl.window_rule({match = {title = "^(Open Folder)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(Open Folder)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(Save As)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(Save As)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(Library)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(Library)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(File Upload)(.*)$" }, center = true}) -hl.window_rule({match = {title = "^(File Upload)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^(.*)(wants to save)$" }, center = true}) -hl.window_rule({match = {title = "^(.*)(wants to save)$" }, float = true}) -hl.window_rule({match = {title = "^(.*)(wants to open)$" }, center = true}) -hl.window_rule({match = {title = "^(.*)(wants to open)$" }, float = true}) -hl.window_rule({match = {class = "^(blueberry\\.py)$" }, float = true}) -hl.window_rule({match = {class = "^(guifetch)$" }, float = true}) -- FlafyDev/guifetch -hl.window_rule({match = {class = "^(pavucontrol)$" }, float = true}) -hl.window_rule({match = {class = "^(pavucontrol)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -hl.window_rule({match = {class = "^(pavucontrol)$" }, center = true}) -hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, float = true}) -hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, center = true}) -hl.window_rule({match = {class = "^(nm-connection-editor)$" }, float = true}) -hl.window_rule({match = {class = "^(nm-connection-editor)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -hl.window_rule({match = {class = "^(nm-connection-editor)$" }, center = true}) -hl.window_rule({match = {class = ".*plasmawindowed.*" }, float = true}) -hl.window_rule({match = {class = "cm_.*" }, float = true}) -hl.window_rule({match = {class = ".*bluedevilwizard" }, float = true}) -hl.window_rule({match = {title = ".*Welcome" }, float = true}) -hl.window_rule({match = {title = "^(illogical-impulse Settings)$" }, float = true}) -hl.window_rule({match = {title = ".*Shell conflicts.*" }, float = true}) -hl.window_rule({match = {class = "rg.freedesktop.impl.portal.desktop.kde" }, float = true}) -hl.window_rule({match = {class = "rg.freedesktop.impl.portal.desktop.kde" }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) -hl.window_rule({match = {class = "^(Zotero)$" }, float = true}) -hl.window_rule({match = {class = "^(Zotero)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {title = "^(Open File)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Open File)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Select a File)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Select a File)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Choose wallpaper)(.*)$" }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) +hl.window_rule({match = {title = "^(Open Folder)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Open Folder)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Save As)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Save As)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(Library)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(Library)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(File Upload)(.*)$" }, center = true}) +hl.window_rule({match = {title = "^(File Upload)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^(.*)(wants to save)$" }, center = true}) +hl.window_rule({match = {title = "^(.*)(wants to save)$" }, float = true}) +hl.window_rule({match = {title = "^(.*)(wants to open)$" }, center = true}) +hl.window_rule({match = {title = "^(.*)(wants to open)$" }, float = true}) +hl.window_rule({match = {class = "^(blueberry\\.py)$" }, float = true}) +hl.window_rule({match = {class = "^(guifetch)$" }, float = true}) -- FlafyDev/guifetch +hl.window_rule({match = {class = "^(pavucontrol)$" }, float = true}) +hl.window_rule({match = {class = "^(pavucontrol)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = "^(pavucontrol)$" }, center = true}) +hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, float = true}) +hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = "^(org.pulseaudio.pavucontrol)$" }, center = true}) +hl.window_rule({match = {class = "^(nm-connection-editor)$" }, float = true}) +hl.window_rule({match = {class = "^(nm-connection-editor)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) +hl.window_rule({match = {class = "^(nm-connection-editor)$" }, center = true}) +hl.window_rule({match = {class = ".*plasmawindowed.*" }, float = true}) +hl.window_rule({match = {class = "kcm_.*" }, float = true}) +hl.window_rule({match = {class = ".*bluedevilwizard" }, float = true}) +hl.window_rule({match = {title = ".*Welcome" }, float = true}) +hl.window_rule({match = {title = "^(illogical-impulse Settings)$" }, float = true}) +hl.window_rule({match = {title = ".*Shell conflicts.*" }, float = true}) +hl.window_rule({match = {class = "org.freedesktop.impl.portal.desktop.kde" }, float = true}) +hl.window_rule({match = {class = "org.freedesktop.impl.portal.desktop.kde" }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} }) +hl.window_rule({match = {class = "^(Zotero)$" }, float = true}) +hl.window_rule({match = {class = "^(Zotero)$" }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} }) -- Move -- kde-material-you-colors spawns a window when changing dark/light theme. This is to make sure it doesn't interfere at all. -hl.window_rule({match = {class = "^(plasma-changeicons)$" }, float = true}) -hl.window_rule({match = {class = "^(plasma-changeicons)$" }, no_initial_focus = true}) -hl.window_rule({match = {class = "^(plasma-changeicons)$" }, move = {999999, 999999}}) +hl.window_rule({match = {class = "^(plasma-changeicons)$" }, float = true}) +hl.window_rule({match = {class = "^(plasma-changeicons)$" }, no_initial_focus = true}) +hl.window_rule({match = {class = "^(plasma-changeicons)$" }, move = {999999, 999999}}) -- stupid dolphin copy -hl.window_rule({match = {title = "^(Copying — Dolphin)$" }, move = {40, 80}}) +hl.window_rule({match = {title = "^(Copying — Dolphin)$" }, move = {40, 80}}) -- Tiling -hl.window_rule({match = {class = "^dev\\.warp\\.Warp$" }, tile = true}) +hl.window_rule({match = {class = "^dev\\.warp\\.Warp$" }, tile = true}) -- Picture-in-Picture -hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, keep_aspect_ratio = true}) -hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, move = {"(monitor_w*0.73)", "(monitor_h*0.72)"} }) -hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, size = {"(monitor_w*0.25)", "(monitor_h*0.25)"} }) -hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, float = true}) -hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, pin = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, keep_aspect_ratio = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, move = {"(monitor_w*0.73)", "(monitor_h*0.72)"} }) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, size = {"(monitor_w*0.25)", "(monitor_h*0.25)"} }) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, float = true}) +hl.window_rule({match = {title = "^([Pp]icture[-\\s]?[Ii]n[-\\s]?[Pp]icture)(.*)$" }, pin = true}) -- Screen sharing -hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, float = true}) -hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, pin = true}) -hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, move = {"(monitor_w*.5-window_w*.5)", "(monitor_h-window_h-12)"} }) +hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, float = true}) +hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, pin = true}) +hl.window_rule({match = {title = ".*is sharing (a window|your screen).*" }, move = {"(monitor_w*.5-window_w*.5)", "(monitor_h-window_h-12)"} }) -- --- Tearing --- -hl.window_rule({match = {title = ".*\\.exe" }, immediate = true}) -hl.window_rule({match = {title = ".*minecraft.*" }, immediate = true}) -hl.window_rule({match = {class = "^(steam_app).*" }, immediate = true}) +hl.window_rule({match = {title = ".*\\.exe" }, immediate = true}) +hl.window_rule({match = {title = ".*minecraft.*" }, immediate = true}) +hl.window_rule({match = {class = "^(steam_app).*" }, immediate = true}) -- Fix Jetbrain IDEs focus/rerendering problem -hl.window_rule({match = {class = "^jetbrains-.*$", float = 1, title = "^$|^\\s$|^win\\d+$" }, no_initial_focus = true}) +hl.window_rule({match = {class = "^jetbrains-.*$", float = 1, title = "^$|^\\s$|^win\\d+$" }, no_initial_focus = true}) --- No shadow for tiled windows (matches windows that are not floating). -hl.window_rule({match = {float = 0 }, no_shadow = true}) +-- No shadow for tiled windows +hl.window_rule({match = {float = 0 }, no_shadow = true}) -- ######## Workspace rules ######## hl.workspace_rule({ workspace = "special:special", gaps_out = 30 }) -- ######## Layer rules ######## -hl.layer_rule({ match = { namespace = ".*" }, xray = true}) ---hl.layer_rule({ match = { namespace = ".*" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "walker" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "selection" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "overview" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "anyrun" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "indicator.*" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "osk" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "hyprpicker" }, no_anim = true}) +hl.layer_rule({ match = { namespace = ".*" }, xray = true}) +hl.layer_rule({ match = { namespace = "walker" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "selection" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "overview" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "anyrun" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "osk" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "hyprpicker" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "noanim" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, blur = true}) -hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = "launcher" }, blur = true}) -hl.layer_rule({ match = { namespace = "launcher" }, ignore_alpha = 0.5}) -hl.layer_rule({ match = { namespace = "notifications" }, blur = true}) -hl.layer_rule({ match = { namespace = "notifications" }, ignore_alpha = 0.69}) ---hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true}) +hl.layer_rule({ match = { namespace = "noanim" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, blur = true}) +hl.layer_rule({ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "launcher" }, blur = true}) +hl.layer_rule({ match = { namespace = "launcher" }, ignore_alpha = 0.5}) +hl.layer_rule({ match = { namespace = "notifications" }, blur = true}) +hl.layer_rule({ match = { namespace = "notifications" }, ignore_alpha = 0.69}) +hl.layer_rule({ match = { namespace = "logout_dialog" }, blur = true}) -- wlogout -- ags -hl.layer_rule({ match = { namespace = "sideleft.*" }, animation = "slide left"}) -hl.layer_rule({ match = { namespace = "sideright.*" }, animation = "slide right"}) -hl.layer_rule({ match = { namespace = "session[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "bar[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "bar[0-9]*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "barcorner.*" }, blur = true}) -hl.layer_rule({ match = { namespace = "barcorner.*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "dock[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "dock[0-9]*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "indicator.*" }, blur = true}) -hl.layer_rule({ match = { namespace = "indicator.*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "overview[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "overview[0-9]*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "cheatsheet[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "cheatsheet[0-9]*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "sideright[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "sideright[0-9]*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "sideleft[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "sideleft[0-9]*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "indicator.*" }, blur = true}) -hl.layer_rule({ match = { namespace = "indicator.*" }, ignore_alpha = 0.6}) -hl.layer_rule({ match = { namespace = "osk[0-9]*" }, blur = true}) -hl.layer_rule({ match = { namespace = "osk[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "sideleft.*" }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = "sideright.*" }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = "session[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "bar[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "bar[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "barcorner.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "barcorner.*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "dock[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "dock[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "indicator.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "overview[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "overview[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "cheatsheet[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "cheatsheet[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "sideright[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "sideright[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "sideleft[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "sideleft[0-9]*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "indicator.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "indicator.*" }, ignore_alpha = 0.6}) +hl.layer_rule({ match = { namespace = "osk[0-9]*" }, blur = true}) +hl.layer_rule({ match = { namespace = "osk[0-9]*" }, ignore_alpha = 0.6}) -- Quickshell -- Quickshell: illogical-impulse -hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur_popups = true}) -hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur = true}) -hl.layer_rule({ match = { namespace = "quickshell:.*" }, ignore_alpha = 0.79}) -hl.layer_rule({ match = { namespace = "quickshell:bar" }, animation = "slide"}) -hl.layer_rule({ match = { namespace = "quickshell:actionCenter" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:cheatsheet" }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = "quickshell:dock" }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = "quickshell:screenCorners" }, animation = "popin 120%"}) -hl.layer_rule({ match = { namespace = "quickshell:lockWindowPusher" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:notificationPopup" }, animation = "fade"}) -hl.layer_rule({ match = { namespace = "quickshell:overlay" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:overlay" }, ignore_alpha = 1}) -hl.layer_rule({ match = { namespace = "quickshell:overview" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:osk" }, animation = "slide bottom"}) -hl.layer_rule({ match = { namespace = "quickshell:polkit" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:popup" }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) -hl.layer_rule({ match = { namespace = "quickshell:popup" }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) -hl.layer_rule({ match = { namespace = "quickshell:mediaControls" }, ignore_alpha = 1}) -- Same as above -hl.layer_rule({ match = { namespace = "quickshell:reloadPopup" }, animation = "slide"}) -hl.layer_rule({ match = { namespace = "quickshell:regionSelector" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:screenshot" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:session" }, blur = true}) -hl.layer_rule({ match = { namespace = "quickshell:session" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:session" }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = "quickshell:sidebarRight" }, animation = "slide right"}) -hl.layer_rule({ match = { namespace = "quickshell:sidebarLeft" }, animation = "slide left"}) -hl.layer_rule({ match = { namespace = "quickshell:verticalBar" }, animation = "slide"}) -hl.layer_rule({ match = { namespace = "quickshell:osk" }, order = -1}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur_popups = true}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, blur = true}) +hl.layer_rule({ match = { namespace = "quickshell:.*" }, ignore_alpha = 0.79}) +hl.layer_rule({ match = { namespace = "quickshell:bar" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:actionCenter" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:cheatsheet" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:dock" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:screenCorners" }, animation = "popin 120%"}) +hl.layer_rule({ match = { namespace = "quickshell:lockWindowPusher" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:notificationPopup" }, animation = "fade"}) +hl.layer_rule({ match = { namespace = "quickshell:overlay" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:overlay" }, ignore_alpha = 1}) +hl.layer_rule({ match = { namespace = "quickshell:overview" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:osk" }, animation = "slide bottom"}) +hl.layer_rule({ match = { namespace = "quickshell:polkit" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:popup" }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice) +hl.layer_rule({ match = { namespace = "quickshell:popup" }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary) +hl.layer_rule({ match = { namespace = "quickshell:mediaControls" }, ignore_alpha = 1}) -- Same as above +hl.layer_rule({ match = { namespace = "quickshell:reloadPopup" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:regionSelector" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:screenshot" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, blur = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:session" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "quickshell:sidebarRight" }, animation = "slide right"}) +hl.layer_rule({ match = { namespace = "quickshell:sidebarLeft" }, animation = "slide left"}) +hl.layer_rule({ match = { namespace = "quickshell:verticalBar" }, animation = "slide"}) +hl.layer_rule({ match = { namespace = "quickshell:osk" }, order = -1}) -- Quickshell: waffles -hl.layer_rule({ match = { namespace = "quickshell:wallpaperSelector" }, animation = "slide top"}) -hl.layer_rule({ match = { namespace = "quickshell:wNotificationCenter" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:wOnScreenDisplay" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:wStartMenu" }, no_anim = true}) -hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, ignore_alpha = 0}) -hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wallpaperSelector" }, animation = "slide top"}) +hl.layer_rule({ match = { namespace = "quickshell:wNotificationCenter" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wOnScreenDisplay" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wStartMenu" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, ignore_alpha = 0}) +hl.layer_rule({ match = { namespace = "quickshell:wTaskView" }, no_anim = true}) -- Launchers need to be FAST -hl.layer_rule({ match = { namespace = "gtk4-layer-shell" }, no_anim = true}) +hl.layer_rule({ match = { namespace = "gtk4-layer-shell" }, no_anim = true}) diff --git a/dots/.config/hypr/hyprland/variables.conf b/dots/.config/hypr/hyprland/variables.conf deleted file mode 100644 index a32013782..000000000 --- a/dots/.config/hypr/hyprland/variables.conf +++ /dev/null @@ -1,23 +0,0 @@ -# Default variables -# Copy these to ~/.config/hypr/custom/variables.conf to make changes in a dotfiles-update-friendly manner - -# Apps -# PULL REQUESTS ADDING MORE WILL NOT BE ACCEPTED, CONFIG FOR YOURSELF -$terminal = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty -1" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm" -$fileManager = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "dolphin" "nautilus" "nemo" "thunar" "kitty -1 fish -c yazi" -$browser = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "google-chrome-stable" "zen-browser" "firefox" "brave" "chromium" "microsoft-edge-stable" "opera" "librewolf" -$codeEditor = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "antigravity" "code" "codium" "cursor" "zed" "zedit" "zeditor" "kate" "gnome-text-editor" "emacs" "command -v nvim && kitty -1 nvim" "command -v micro && kitty -1 micro" -$officeSoftware = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "wps" "onlyoffice-desktopeditors" "libreoffice" -$textEditor = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kate" "gnome-text-editor" "emacs" -$volumeMixer = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "pavucontrol-qt" "pavucontrol" -$settingsApp = XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh "qs -p ~/.config/quickshell/$qsConfig/settings.qml" "systemsettings" "gnome-control-center" "better-control" -$taskManager = ~/.config/hypr/hyprland/scripts/launch_first_available.sh "gnome-system-monitor" "plasma-systemmonitor --page-name Processes" "command -v btop && kitty -1 fish -c btop" - -# The folder within ~/.config/quickshell containing the config -$qsConfig = ii - -# Leave blank like this to load default config. Set to anything to not. -$dontLoadDefaultExecs = -$dontLoadDefaultGeneral = -$dontLoadDefaultRules = -$dontLoadDefaultKeybinds = diff --git a/dots/.config/hypr/hyprland/variables.lua b/dots/.config/hypr/hyprland/variables.lua index e40174ef4..57f8145b4 100644 --- a/dots/.config/hypr/hyprland/variables.lua +++ b/dots/.config/hypr/hyprland/variables.lua @@ -1,24 +1,17 @@ -- Default variables --- Copy these to $HOME/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner +-- Copy these to ~/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner --- The folder within $HOME/.config/quickshell containing the config +-- The folder within ~/.config/quickshell containing the config hl.env("qsConfig", "ii") -- Apps -- PULL REQUESTS ADDING MORE WILL NOT BE ACCEPTED, CONFIG FOR YOURSELF -hl.env("terminal", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'kitty -1' 'foot' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'") -hl.env("fileManager", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'dolphin' 'nautilus' 'nemo' 'thunar' 'kitty -1 fish -c yazi'") -hl.env("browser", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'") -hl.env("codeEditor", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'antigravity' 'code' 'codium' 'cursor' 'zed' 'zedit' 'zeditor' 'kate' 'gnome-text-editor' 'emacs' 'command -v nvim && kitty -1 nvim' 'command -v micro && kitty -1 micro'") -hl.env("officeSoftware", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'wps' 'onlyoffice-desktopeditors' 'libreoffice'") -hl.env("textEditor", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'kate' 'gnome-text-editor' 'emacs'") -hl.env("volumeMixer", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'pavucontrol-qt' 'pavucontrol'") -hl.env("settingsApp", "XDG_CURRENT_DESKTOP=gnome $HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p $HOME/.config/quickshell/$qsConfig/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'") -hl.env("taskManager", "$HOME/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'") - - --- Leave blank like this to load default config. Set to anything to not. -local dontLoadDefaultExecs = "" -local dontLoadDefaultGeneral = "" -local dontLoadDefaultRules = "" -local dontLoadDefaultKeybinds = "" +terminal = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'foot' 'kitty -1' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'" +fileManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'dolphin' 'nautilus' 'nemo' 'thunar' 'kitty -1 fish -c yazi'" +browser = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'" +codeEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'windsurf' 'antigravity' 'code' 'codium' 'cursor' 'zed' 'zedit' 'zeditor' 'kate' 'gnome-text-editor' 'emacs' 'command -v nvim && kitty -1 nvim' 'command -v micro && kitty -1 micro'" +officeSoftware = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'wps' 'onlyoffice-desktopeditors' 'libreoffice'" +textEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kate' 'gnome-text-editor' 'emacs'" +volumeMixer = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'pavucontrol-qt' 'pavucontrol'" +settingsApp = "XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p ~/.config/quickshell/$qsConfig/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'" +taskManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'" diff --git a/dots/.config/hypr/monitors.conf b/dots/.config/hypr/monitors.conf deleted file mode 100644 index 67c6e199a..000000000 --- a/dots/.config/hypr/monitors.conf +++ /dev/null @@ -1,4 +0,0 @@ -# This file is to be overwritten by nwg-displays if you choose to use it. -# nwg-displays is a graphical tool for managing monitors. -# - Installation for Arch Linux: sudo pacman -S nwg-displays -# - Repo: https://github.com/nwg-piotr/nwg-displays diff --git a/dots/.config/hypr/monitors.lua b/dots/.config/hypr/monitors.lua deleted file mode 100644 index 4feac0ee3..000000000 --- a/dots/.config/hypr/monitors.lua +++ /dev/null @@ -1,4 +0,0 @@ --- This file is to be overwritten by nwg-displays if you choose to use it. --- nwg-displays is a graphical tool for managing monitors. --- - Installation for Arch Linux: sudo pacman -S nwg-displays --- - Repo: https://github.com/nwg-piotr/nwg-displays diff --git a/dots/.config/hypr/workspaces.conf b/dots/.config/hypr/workspaces.conf deleted file mode 100644 index 67c6e199a..000000000 --- a/dots/.config/hypr/workspaces.conf +++ /dev/null @@ -1,4 +0,0 @@ -# This file is to be overwritten by nwg-displays if you choose to use it. -# nwg-displays is a graphical tool for managing monitors. -# - Installation for Arch Linux: sudo pacman -S nwg-displays -# - Repo: https://github.com/nwg-piotr/nwg-displays diff --git a/dots/.config/hypr/workspaces.lua b/dots/.config/hypr/workspaces.lua deleted file mode 100644 index 4feac0ee3..000000000 --- a/dots/.config/hypr/workspaces.lua +++ /dev/null @@ -1,4 +0,0 @@ --- This file is to be overwritten by nwg-displays if you choose to use it. --- nwg-displays is a graphical tool for managing monitors. --- - Installation for Arch Linux: sudo pacman -S nwg-displays --- - Repo: https://github.com/nwg-piotr/nwg-displays From 9f4afde0c5a7ffa56823a944a7196e4d4ccfec54 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 11 May 2026 23:00:50 +0200 Subject: [PATCH 24/24] use globalshortcut for 4finger up touchpad gesture --- dots/.config/hypr/hyprland/general.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dots/.config/hypr/hyprland/general.lua b/dots/.config/hypr/hyprland/general.lua index 6c772ecea..fab1e5d2b 100644 --- a/dots/.config/hypr/hyprland/general.lua +++ b/dots/.config/hypr/hyprland/general.lua @@ -25,16 +25,14 @@ hl.gesture({ fingers = 4, direction = "up", action = function() - -- For whatever reason hl.dsp.global doesn't work here??? - hl.exec_cmd("qs -c $qsConfig ipc call search workspacesToggle") + hl.dispatch(hl.dsp.global("quickshell:overviewWorkspacesToggle")) end }) hl.gesture({ fingers = 4, direction = "down", action = function() - -- For whatever reason hl.dsp.global doesn't work here??? - hl.exec_cmd("qs -c $qsConfig ipc call search workspacesToggle") + hl.dispatch(hl.dsp.global("quickshell:overviewWorkspacesToggle")) end })