-- App launchers hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal)) hl.bind(mainMod .. " + C", hl.dsp.window.close()) hl.bind(mainMod .. " + M", hl.dsp.exit()) hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager)) hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" })) hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu)) hl.bind(mainMod .. " + P", hl.dsp.window.pseudo({ action = "toggle" })) hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit")) hl.bind(mainMod .. " + D", hl.dsp.exec_cmd("rofi -show combi -combi-modi drun,window,ssh,run")) hl.bind("Print", hl.dsp.exec_cmd("hyprshot --freeze -m region")) hl.bind("CTRL + ALT + T", hl.dsp.exec_cmd("alacritty")) hl.bind("CTRL + ALT + F", hl.dsp.exec_cmd("firefox")) hl.bind("CTRL + ALT + V", hl.dsp.exec_cmd("vesktop --enable-wayland-ime --ozone-platform=wayland")) hl.bind("CTRL + ALT + P", hl.dsp.exec_cmd("prismlauncher")) hl.bind("CTRL + ALT + C", hl.dsp.exec_cmd("hyprpicker")) hl.bind("CTRL + ALT + O", hl.dsp.exec_cmd("obsidian")) hl.bind("CTRL + ALT + R", hl.dsp.exec_cmd("google-chrome-stable http://iot.local --password-store=basic")) hl.bind("SUPER + F", hl.dsp.exec_cmd("~/.config/hypr/scripts/toggle-firefox.sh")) hl.bind(mainMod .. " + Space", hl.dsp.focus({ urgent_or_last = true })) -- Focus direction hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "l" })) hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "r" })) hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "u" })) hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "d" })) -- Move window hl.bind(mainMod .. " + SHIFT + left", hl.dsp.window.move({ direction = "l" })) hl.bind(mainMod .. " + SHIFT + right", hl.dsp.window.move({ direction = "r" })) hl.bind(mainMod .. " + SHIFT + up", hl.dsp.window.move({ direction = "u" })) hl.bind(mainMod .. " + SHIFT + down", hl.dsp.window.move({ direction = "d" })) -- Workspaces via split-monitor-workspaces plugin for i = 1, 9 do local n = tostring(i) hl.bind(mainMod .. " + " .. n, function() hl.plugin.split_monitor_workspaces.workspace(n) end) hl.bind(mainMod .. " + SHIFT + " .. n, function() hl.plugin.split_monitor_workspaces.move_to_workspace_silent(n) end) end hl.bind(mainMod .. " + 0", function() hl.plugin.split_monitor_workspaces.workspace(10) end) hl.bind(mainMod .. " + SHIFT + 0", function() hl.plugin.split_monitor_workspaces.move_to_workspace_silent(10) end) -- Special workspace hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic")) hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" })) -- Scroll through workspaces hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" })) hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" })) -- Mouse window management hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true }) hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true }) -- Volume hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { repeating = true }) hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { repeating = true }) hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { repeating = true }) hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { repeating = true }) -- Brightness hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { repeating = true }) hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { repeating = true }) -- Media hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true }) hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true }) hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })