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] 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