From a2171b70131bd67b9241548fc13b4fca2e3d2835 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 12 Jul 2026 20:17:52 +0545 Subject: [PATCH] config: update keybinds and remove launcher.toml - Rename fabric-cli exec to use 'modus' instead of 'modus1' - Add spotlight keybinds (Super+D, Super+E, Super+V, Super+W) - Change reload bind to Alt+Shift+R - Delete config/launcher.toml (replaced by spotlight plugins) --- config/hypr/modus.lua | 13 +++++++--- config/launcher.toml | 60 ------------------------------------------- 2 files changed, 9 insertions(+), 64 deletions(-) delete mode 100644 config/launcher.toml diff --git a/config/hypr/modus.lua b/config/hypr/modus.lua index 1d02815..f2c571e 100644 --- a/config/hypr/modus.lua +++ b/config/hypr/modus.lua @@ -1,7 +1,7 @@ -- local modus = os.getenv("HOME") .. "/.config/Modus" local modus = os.getenv("HOME") .. "/Projects/dev/Modus" local colors = dofile(modus .. "/config/hypr/colors.lua") -local fabricSend = "fabric-cli exec modus1" +local fabricSend = "fabric-cli exec modus" -- startup hl.on("hyprland.start", function() @@ -19,17 +19,22 @@ hl.on("hyprland.start", function() end) -- Reload Modus -hl.bind("SUPER + ALT + B", hl.dsp.exec_cmd("killall modus1; cd " .. modus .. " && uwsm app -- uv run start")) +hl.bind("ALT + SHIFT + R", hl.dsp.exec_cmd("killall modus; cd " .. modus .. " && uwsm app -- uv run start")) --- Fabric Launcher Binds +-- Fabric Spotlight Binds for key, method in pairs({ + ["SUPER + D"] = "spotlight.toggle()", -- Spotlight + ["SUPER + E"] = "spotlight.toggle('em')", -- Emoji + ["SUPER + V"] = "spotlight.toggle('clip')", -- Clipboard + ["SUPER + W"] = "spotlight.toggle('wall')", -- Wallpaper ["SUPER + SHIFT + Y"] = "app.set_css()", -- Reload CSS ["ALT + TAB"] = "switcher.show_switcher()", -- Application Switcher ["SUPER + Z"] = "screencapture.toggle()", -- ScreenCapture ["SUPER + S"] = 'screencapture.toggle(ss="region")', -- Screenshot Region ["ALT + SPACE"] = "switch_keyboard_layout()", -- KB_Layout Switcher + ["ALT + SHIFT + W"] = "spotlight.toggle('wr', external=True)", -- Random Wallpaper }) do - hl.bind(key, hl.dsp.exec_cmd(fabricSend .. " '" .. method .. "'")) + hl.bind(key, hl.dsp.exec_cmd(fabricSend .. ' "' .. method .. '"')) end -- Layer Rules diff --git a/config/launcher.toml b/config/launcher.toml deleted file mode 100644 index 44a5e59..0000000 --- a/config/launcher.toml +++ /dev/null @@ -1,60 +0,0 @@ -[launcher_config.em] -icon = "emoji-people-symbolic" -description = "Emoji - Search and copy emojis" -examples = [ - "em updatejson", -] - -[launcher_config.clip] -icon = "app.getclipboard.Clipboard" -description = "Clipboard - Search and manage clipboard history" - -[launcher_config."="] -icon = "calculator" -description = "Quick Math - Fast mathematical expressions" -examples = [ - "= 10*5", - "= 2^8", - "= sin(30)", -] - -[launcher_config.app] -icon = "apps" -description = "Applications - Launch installed applications" - -[launcher_config.power] -icon = "shutdown" -description = "Power - System power management and session control" - -[launcher_config.caffeine] -icon = "caffeine" -description = "Caffeine - Prevent system from going idle" -examples = [ - "caffeine 30m", - "caffeine 1h", - "caffeine 2h", - "caffeine on", -] - -[launcher_config.sc] -icon = "cs-screen" -description = "Screencapture - Record screen" - -[launcher_config.wall] -icon = "daily-wallpaper" -description = "Wallpapers - Set wallpapers, and tons of features" - -[launcher_config."?"] -icon = "search-symbolic" -description = "Quick Web Search - Fast web search with question mark" -examples = [ - "? cats", - "? google cats", - "? youtube music", -] - -[settings] -max_examples_shown = 2 -default_icon = "apps" -fallback_example_template = "{trigger} " -config_version = "1.0"