forked from Shinonome/dots-hyprland
Add files via upload
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
hl.config({
|
||||
col = {
|
||||
active_border = "rgba(44464f77)",
|
||||
inactive_border = "rgba(1a1b2033)",
|
||||
},
|
||||
misc = {
|
||||
background_color = "rgba(121318FF)",
|
||||
},
|
||||
})
|
||||
|
||||
-- Don't know if plugins changed syntax too.
|
||||
-- plugin {
|
||||
-- hyprbars {
|
||||
-- -- Honestly idk if it works like css, but well, why not
|
||||
-- bar_text_font = Google Sans Flex Medium, Rubik, Geist, AR One Sans, Reddit Sans, Inter, Roboto, Ubuntu, Noto Sans, sans-serif
|
||||
-- bar_height = 30
|
||||
-- bar_padding = 10
|
||||
-- bar_button_padding = 5
|
||||
-- bar_precedence_over_border = true
|
||||
-- bar_part_of_window = true
|
||||
--
|
||||
-- bar_color = rgba(121318FF)
|
||||
-- col.text = rgba(e2e2e9FF)
|
||||
--
|
||||
--
|
||||
-- -- example buttons (R -> L)
|
||||
-- -- hyprbars-button = color, size, on-click
|
||||
-- hyprbars-button = rgb(e2e2e9), 13, , hyprctl dispatch killactive
|
||||
-- hyprbars-button = rgb(e2e2e9), 13, , hyprctl dispatch fullscreen 1
|
||||
-- hyprbars-button = rgb(e2e2e9), 13, , hyprctl dispatch movetoworkspacesilent special
|
||||
-- }
|
||||
-- }
|
||||
|
||||
hl.window_rule({ -- not sure how to syntax "pin 1"
|
||||
match = { pin = 1 },
|
||||
border_color = "rgba(afc6ffAA) rgba(afc6ff77)",
|
||||
})
|
||||
@@ -0,0 +1,14 @@
|
||||
-- ############ Wayland #############
|
||||
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
|
||||
|
||||
-- ######### Applications #########
|
||||
hl.env("XDG_DATA_DIRS", "$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
|
||||
")
|
||||
|
||||
-- ############ Themes #############
|
||||
hl.env("QT_QPA_PLATFORM", "wayland;xcb")
|
||||
hl.env("QT_QPA_PLATFORMTHEME", "kde")
|
||||
hl.env("XDG_MENU_PREFIX", "plasma-")
|
||||
|
||||
-- ######## Virtual envrionment #########
|
||||
hl.env("ILLOGICAL_IMPULSE_VIRTUAL_ENV", "~/.local/state/quickshell/.venv")
|
||||
@@ -0,0 +1,30 @@
|
||||
-- put former exec-once commands inside the func and former exec commands outside
|
||||
hl.on("hyprland.start", function ()
|
||||
|
||||
-- Bar, wallpaper
|
||||
hl.exec_cmd("~/.config/hypr/hyprland/scripts/start_geoclue_agent.sh")
|
||||
hl.exec_cmd("qs -c $qsConfig")
|
||||
hl.exec_cmd("~/.config/hypr/custom/scripts/__restore_video_wallpaper.sh")
|
||||
|
||||
-- Core components (authentication, lock screen, notification daemon)
|
||||
hl.exec_cmd("gnome-keyring-daemon --start --components=secrets")
|
||||
hl.exec_cmd(hypridle)
|
||||
hl.exec_cmd("dbus-update-activation-environment --all")
|
||||
hl.exec_cmd("sleep 1 && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") -- Some fix idk
|
||||
|
||||
-- Audio
|
||||
--hl.exec_cmd("easyeffects --hide-window --service-mode")
|
||||
|
||||
-- Clipboard: history
|
||||
--hl.exec_cmd("wl-paste --watch cliphist store")
|
||||
hl.exec_cmd("wl-paste --type text --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update'")
|
||||
hl.exec_cmd("wl-paste --type image --watch bash -c 'cliphist store && qs -c $qsConfig ipc call cliphistService update'")
|
||||
|
||||
-- Cursor
|
||||
hl.exec_cmd("hyprctl setcursor Bibata-Modern-Classic 24")
|
||||
|
||||
-- Fix dock pinned apps not launching properly (https://github.com/end-4/dots-hyprland/issues/2200)
|
||||
-- This causes https://github.com/end-4/dots-hyprland/issues/2427
|
||||
-- hl.exec_cmd("sleep 3.5 && hyprctl reload && sleep 0.5 && touch ~/.config/quickshell/ii/shell.qml")
|
||||
|
||||
end)
|
||||
@@ -0,0 +1,184 @@
|
||||
-- MONITOR CONFIG
|
||||
hl.monitor({
|
||||
output = "",
|
||||
mode = "preferred",
|
||||
position = "auto",
|
||||
scale = "1",
|
||||
})
|
||||
|
||||
hl.gesture({ fingers = 3, direction = "swipe", action = "move" })
|
||||
hl.gesture({ fingers = 3, direction = "pinch", action = "float" })
|
||||
hl.gesture({ fingers = 4, direction = "horizontal", action = "workspace" })
|
||||
-- maybe need to make a function if these two don't work
|
||||
hl.gesture({ fingers = 4, direction = "up", action = function() global, quickshell:overviewWorkspacesToggle end })
|
||||
hl.gesture({ fingers = 4, direction = "down", action = function() global, quickshell:overviewWorkspacesClose end })
|
||||
-- couldn't find anything about this in the old or the new syntax wiki (plugin?)
|
||||
hl.gesture({
|
||||
workspace_swipe_distance = 700
|
||||
workspace_swipe_cancel_ratio = 0.2
|
||||
workspace_swipe_min_speed_to_force = 5
|
||||
workspace_swipe_direction_lock = true
|
||||
workspace_swipe_direction_lock_threshold = 10
|
||||
workspace_swipe_create_new = true
|
||||
})
|
||||
|
||||
hl.config({
|
||||
general = {
|
||||
-- Gaps and border
|
||||
gaps_in = 4,
|
||||
gaps_out = 5,
|
||||
gaps_workspaces = 50,
|
||||
|
||||
border_size = 1,
|
||||
|
||||
col = {
|
||||
active_border = "rgba(0DB7D455)",
|
||||
inactive_border = "rgba(31313600)",
|
||||
|
||||
},
|
||||
resize_on_border = true,
|
||||
|
||||
no_focus_fallback = true,
|
||||
allow_tearing = true, -- This just allows the `immediate` window rule to work
|
||||
},
|
||||
|
||||
snap = {
|
||||
enabled = true,
|
||||
window_gap = 4,
|
||||
monitor_gap = 5,
|
||||
respect_gaps = true,
|
||||
},
|
||||
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
smart_split = false,
|
||||
smart_resizing = false,
|
||||
--precise_mouse_move = true,
|
||||
},
|
||||
|
||||
decoration = {
|
||||
-- 2 = circle, higher = squircle, 4 = very obvious squircle
|
||||
-- Clear squircles look really off; we use only extra .4 here to make the rounding feel more continuous
|
||||
rounding_power = 2,
|
||||
rounding = 18,
|
||||
|
||||
blur = {
|
||||
enabled = true,
|
||||
xray = true,
|
||||
special = false,
|
||||
new_optimizations = true,
|
||||
size = 10,
|
||||
passes = 3,
|
||||
brightness = 1,
|
||||
noise = 0.05,
|
||||
contrast = 0.89,
|
||||
vibrancy = 0.5,
|
||||
vibrancy_darkness = 0.5,
|
||||
popups = false,
|
||||
popups_ignorealpha = 0.6,
|
||||
input_methods = true,
|
||||
input_methods_ignorealpha = 0.8,
|
||||
},
|
||||
shadow = {
|
||||
enabled = true,
|
||||
ignore_window = true,
|
||||
range = 20,
|
||||
offset = 0 2,
|
||||
render_power = 10,
|
||||
color = "rgba(00000020)",
|
||||
|
||||
},
|
||||
-- Dim
|
||||
dim_inactive = true,
|
||||
dim_strength = 0.05,
|
||||
dim_special = 0.2,
|
||||
},
|
||||
animations = {
|
||||
enabled = true,
|
||||
},
|
||||
})
|
||||
-- Curves
|
||||
hl.curve("expressiveFastSpatial", { type = "bezier", points = { {0.42, 1.67}, {0.21, 0.90} } })
|
||||
hl.curve("expressiveSlowSpatial", { type = "bezier", points = { {0.39, 1.29}, {0.35, 0.98} } })
|
||||
hl.curve("expressiveDefaultSpatial", { type = "bezier", points = { {0.38, 1.21}, {0.22, 1.00} } })
|
||||
hl.curve("emphasizedDecel", { type = "bezier", points = { {0.05, 0.7}, {0.1, 1} } })
|
||||
hl.curve("emphasizedAccel", { type = "bezier", points = { {0.3, 0}, {0.8, 0.15} } })
|
||||
hl.curve("standardDecel", { type = "bezier", points = { {0, 0}, {0, 1} } })
|
||||
hl.curve("menu_decel", { type = "bezier", points = { {0.1, 1}, {0, 1} } })
|
||||
hl.curve("menu_accel", { type = "bezier", points = { {0.52, 0.03}, {0.72, 0.08} } })
|
||||
hl.curve("stall", { type = "bezier", points = { {1, -0.1}, {0.7, 0.85} } })
|
||||
-- Configs
|
||||
-- windows
|
||||
hl.animation({ leaf = "windowsIn", enabled = true, speed = 3, bezier = "emphasizedDecel", style = "popin 80%" })
|
||||
hl.animation({ leaf = "fadeIn", enabled = true, speed = 3, bezier = "emphasizedDecel" })
|
||||
hl.animation({ leaf = "windowsOut", enabled = true, speed = 2, bezier = "emphasizedDecel", style = "popin 90%" })
|
||||
hl.animation({ leaf = "fadeOut", enabled = true, speed = 2, bezier = "emphasizedDecel" })
|
||||
hl.animation({ leaf = "windowsMove", enabled = true, speed = 3, bezier = "emphasizedDecel", style = "slide" })
|
||||
hl.animation({ leaf = "border", enabled = true, speed = 10, bezier = "emphasizedDecel" })
|
||||
|
||||
-- layers
|
||||
hl.animation({ leaf = "layersIn", enabled = true, speed = 2.7, bezier = "emphasizedDecel", style = "popin 93%" })
|
||||
hl.animation({ leaf = "layersOut", enabled = true, speed = 2.4, bezier = "menu_accel", style = "popin 94%" })
|
||||
-- fade
|
||||
hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 0.5, bezier = "menu_decel" })
|
||||
hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 2.7, bezier = "stall" })
|
||||
-- workspaces
|
||||
hl.animation({ leaf = "workspaces", enabled = true, speed = 7, bezier = "menu_decel", style = "slide" })
|
||||
-- specialWorkspace
|
||||
hl.animation({ leaf = "specialWorkspaceIn", enabled = true, speed = 2.8, bezier = "emphasizedDecel", style = "slidevert" })
|
||||
hl.animation({ leaf = "specialWorkspaceOut",enabled = true, speed = 1.2, bezier = "emphasizedAccel", style = "slidevert" })
|
||||
-- zoom
|
||||
hl.animation({ leaf = "zoomFactor", enabled = true, speed = 3, bezier = "standardDecel" })
|
||||
|
||||
hl.config({
|
||||
input = {
|
||||
kb_layout = us,
|
||||
numlock_by_default = true,
|
||||
repeat_delay = 250,
|
||||
repeat_rate = 35,
|
||||
|
||||
follow_mouse = 1,
|
||||
off_window_axis_events = 2,
|
||||
|
||||
touchpad = {
|
||||
natural_scroll = yes,
|
||||
disable_while_typing = true,
|
||||
clickfinger_behavior = true,
|
||||
scroll_factor = 0.7,
|
||||
},
|
||||
},
|
||||
|
||||
misc = {
|
||||
disable_hyprland_logo = true,
|
||||
disable_splash_rendering = true,
|
||||
vfr = 1,
|
||||
vrr = 0,
|
||||
mouse_move_enables_dpms = true,
|
||||
key_press_enables_dpms = true,
|
||||
animate_manual_resizes = false,
|
||||
animate_mouse_windowdragging = false,
|
||||
enable_swallow = false,
|
||||
swallow_regex = "(foot|kitty|allacritty|Alacritty)",
|
||||
on_focus_under_fullscreen = 2,
|
||||
allow_session_lock_restore = true,
|
||||
session_lock_xray = true,
|
||||
initial_workspace_tracking = false,
|
||||
focus_on_activate = true,
|
||||
},
|
||||
|
||||
binds = {
|
||||
scroll_event_delay = 0,
|
||||
hide_special_on_workspace_change = true,
|
||||
},
|
||||
|
||||
cursor = {
|
||||
zoom_factor = 1,
|
||||
zoom_rigid = false,
|
||||
zoom_disable_aa = true,
|
||||
hotspot_padding = 1,
|
||||
},
|
||||
|
||||
xwayland = {
|
||||
force_zero_scaling = true,
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,283 @@
|
||||
-- Left the hashes that I think you use in your quickshell and scripts in hope it doesn't break the cheatsheat
|
||||
-- Lines ending with `# [hidden]` won't be shown on cheatsheet
|
||||
-- Lines starting with #! are section headings
|
||||
|
||||
-- DO NOT REMOVE THIS EXEC OR YOU WON'T BE ABLE TO USE ANY KEYBIND
|
||||
hl.dsp.exec_cmd("hyprctl dispatch submap global")
|
||||
-- This is required for catchall to work
|
||||
local submap = global
|
||||
|
||||
--#!
|
||||
--##! Shell
|
||||
--# These absolutely need to be on top, or they won't work consistently
|
||||
-- example: hl.bind(keys, dispatcher, {flag1 = true, flag2 = true})
|
||||
hl.bind("Super + Super_L", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- Toggle search
|
||||
hl.bind("Super + Super_R", hl.dsp.global("quickshell:searchToggleRelease"), {ignore_mods = true, description = "Toggle search"} ) -- # [hidden] Toggle search
|
||||
hl.bind("Super + Super_L", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback)
|
||||
hl.bind("Super + Super_R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback)
|
||||
hl.bind("Super + catchall", hl.dsp.global("quickshell:searchToggleReleaseInterrupt"), {ignore_mods = true, transparent = true, non_consuming = true} ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse:272", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse:273", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse:274", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse:275", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse:276", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse:277", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse_up", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
hl.bind("Super + mouse_down", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") ) -- # [hidden]
|
||||
|
||||
hl.bind(" + Super_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden]
|
||||
hl.bind(" + Super_R", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden]
|
||||
hl.bind("Super + Tab", hl.dsp.global("quickshell:overviewWorkspacesToggle") ) -- Toggle overview
|
||||
hl.bind("Super + V", hl.dsp.global("quickshell:overviewClipboardToggle"), {description = "Clipboard history >> clipboard"} ) -- Clipboard history >> clipboard
|
||||
hl.bind("Super + Period", hl.dsp.global("quickshell:overviewEmojiToggle"), {description = "Emoji >> clipboard"} ) -- Emoji >> clipboard
|
||||
hl.bind("Super + A", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- Toggle left sidebar
|
||||
hl.bind("Super + Alt + A", hl.dsp.global("quickshell:sidebarLeftToggleDetach") ) -- # [hidden]
|
||||
hl.bind("Super + B", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden]
|
||||
hl.bind("Super + O", hl.dsp.global("quickshell:sidebarLeftToggle") ) -- # [hidden]
|
||||
hl.bind("Super + N", hl.dsp.global("quickshell:sidebarRightToggle"), {description = "Toggle right sidebar"} ) -- Toggle right sidebar
|
||||
hl.bind("Super + Slash", hl.dsp.global("quickshell:cheatsheetToggle"), {description = "Toggle cheatsheet"} ) -- Toggle cheatsheet
|
||||
hl.bind("Super + K", hl.dsp.global("quickshell:oskToggle"), {description = "Toggle on-screen keyboard"} ) -- Toggle on-screen keyboard
|
||||
hl.bind("Super + M", hl.dsp.global("quickshell:mediaControlsToggle"), {description = "Toggle media controls"} ) -- Toggle media controls
|
||||
hl.bind("Super + G", hl.dsp.global("quickshell:overlayToggle") ) -- Toggle overlay
|
||||
hl.bind("Ctrl + Alt + Delete", hl.dsp.global("quickshell:sessionToggle"), {description = "Toggle session menu"} ) -- Toggle session menu
|
||||
hl.bind("Super + J", hl.dsp.global("quickshell:barToggle"), {description = "Toggle bar"} ) -- Toggle bar
|
||||
hl.bind("Ctrl + Alt + Delete", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell") ) -- # [hidden] Session menu (fallback)
|
||||
hl.bind("Shift + Super + Alt + Slash", hl.dsp.exec_cmd("qs -p ~/.config/quickshell/" .. qsConfig .. "/welcome.qml") ) -- # [hidden] Launch welcome app
|
||||
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call brightness increment || brightnessctl s 5%+"), {locked = true, repeating = true} ) -- # [hidden]
|
||||
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call brightness decrement || brightnessctl s 5%-"), {locked = true, repeating = true} ) -- # [hidden]
|
||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5"), {locked = true, repeating = true} ) -- # [hidden]
|
||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), {locked = true, repeating = true} ) -- # [hidden]
|
||||
|
||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true} ) -- # [hidden]
|
||||
hl.bind("Super + Shift + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SINK@ toggle"), {locked = true, description = "Toggle mute"} ) -- # [hidden]
|
||||
hl.bind("Alt + XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden]
|
||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true} ) -- # [hidden]
|
||||
hl.bind("Super + Alt + M", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_SOURCE@ toggle"), {locked = true, description = "Toggle mic"} ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + T", hl.dsp.global("quickshell:wallpaperSelectorToggle"), {description = "Toggle wallpaper selector"} ) -- Wallpaper selector
|
||||
hl.bind("Ctrl + Super + Alt + T", hl.dsp.global("quickshell:wallpaperSelectorRandom"), {description = "Select random wallpaper"} ) -- Random wallpaper
|
||||
hl.bind("Ctrl + Super + T", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "/scripts/colors/switchwall.sh"), {description = "Change wallpaper"} ) -- # [hidden] Change wallpaper (fallback)
|
||||
hl.bind("Ctrl + Super + R", hl.dsp.exec_cmd("killall ydotool qs quickshell; qs -c " .. qsConfig .. " &") ) -- Restart widgets
|
||||
hl.bind("Ctrl + Super + P", hl.dsp.global("quickshell:panelFamilyCycle") ) -- Cycle panel family
|
||||
|
||||
--##! Utilities
|
||||
--# Screenshot, Record, OCR, Color picker, Clipboard history
|
||||
hl.bind("Super + V", hl.dsp.exec_cmd(
|
||||
"qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy"), {description = "Copy clipboard history entry"} ) -- # [hidden] Clipboard history >> clipboard (fallback)
|
||||
hl.bind("Super + Period", hl.dsp.exec_cmd(
|
||||
"qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pkill fuzzel || ~/.config/hypr/hyprland/scripts/fuzzel-emoji.sh copy"), {description = "Copy an emoji"} ) -- # [hidden] Emoji >> clipboard (fallback)
|
||||
hl.bind("Super + Shift + S", hl.dsp.global("quickshell:regionScreenshot") ) -- Screen snip
|
||||
hl.bind("Super + Shift + S", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || hyprshot --freeze --clipboard-only --mode region --silent") ) -- # [hidden] Screen snip (fallback)
|
||||
hl.bind("Super + Shift + A", hl.dsp.global("quickshell:regionSearch") ) -- Google Lens
|
||||
hl.bind("Super + Shift + A", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || ~/.config/hypr/hyprland/scripts/snip_to_search.sh") ) -- # [hidden] Google Lens (fallback)
|
||||
--# OCR
|
||||
hl.bind("Super + Shift + X", hl.dsp.global("quickshell:regionOcr") ) -- Character recognition >> clipboard
|
||||
hl.bind("Super + Shift + T", hl.dsp.global("quickshell:screenTranslate") ) -- Translate screen content
|
||||
hl.bind("Super + Shift + X", hl.dsp.exec_cmd(
|
||||
"qs -c " .. qsConfig .. " ipc call TEST_ALIVE || pidof slurp || grim -g '$(slurp $SLURP_ARGS)' '/tmp/ocr_image.png && tesseract' '/tmp/ocr_image.png' stdout -l $(tesseract --list-langs | awk 'NR>1{print $1}' | tr '\\n' '+' | sed 's/\\+$/\\n/') | wl-copy && rm '/tmp/ocr_image.png'"
|
||||
) ) -- # [hidden]
|
||||
--# Color picker
|
||||
hl.bind("Super + Shift + C", hl.dsp.exec_cmd("hyprpicker -a"), {description = "Color picker"} ) -- Pick color (Hex) >> clipboard
|
||||
--# Recording stuff
|
||||
hl.bind("Super + Shift + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- Record region (no sound)
|
||||
hl.bind("Super + Shift + R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "scripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback)
|
||||
hl.bind("Super + Alt + R", hl.dsp.global("quickshell:regionRecord"), {locked = true} ) -- # [hidden] Record region (no sound)
|
||||
hl.bind("Super + Alt + R", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/quickshell/" .. qsConfig .. "scripts/videos/record.sh"), {locked = true} ) -- # [hidden] Record region (no sound) (fallback)
|
||||
hl.bind("Ctrl + Alt + R", hl.dsp.exec_cmd("~/.config/quickshell/" .. qsConfig .. "/scripts/videos/record.sh --fullscreen"), {locked = true} ) -- # [hidden] Record screen (no sound)
|
||||
hl.bind("Super + Shift + Alt + R", hl.dsp.exec_cmd("~/.config/quickshell/" .. qsConfig .. "/scripts/videos/record.sh --fullscreen --sound"), {locked = true} ) -- Record screen (with sound)
|
||||
--# Fullscreen screenshot
|
||||
hl.bind("Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true} ) -- Screenshot >> clipboard
|
||||
hl.bind("Ctrl + Print", hl.dsp.exec_cmd(
|
||||
"mkdir -p $(xdg-user-dir PICTURES)/Screenshots && grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' $(xdg-user-dir PICTURES)/Screenshots/Screenshot_'$(date '+%Y-%m-%d_%H.%M.%S')'.png"
|
||||
), {locked = true, non_consuming = true} ) -- Screenshot >> clipboard & file
|
||||
hl.bind("Ctrl + Print", hl.dsp.exec_cmd("grim -o '$(hyprctl activeworkspace -j | jq -r '.monitor')' - | wl-copy"), {locked = true, non_consuming = true} ) -- # [hidden] Screenshot >> clipboard & file (clipboard)
|
||||
--# AI
|
||||
hl.bind("Super + Shift + Alt + mouse:273", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/ai/primary-buffer-query.sh"), {description = "Generate AI summary for selected text"} ) -- # [hidden] AI summary for selected text
|
||||
-- (requires a running ollama model)
|
||||
|
||||
--#!
|
||||
--##! Window
|
||||
--# Focusing
|
||||
hl.bind("Super + mouse:272", hl.dsp.window.drag(), {mouse = true} ) -- Move
|
||||
hl.bind("Super + mouse:274", hl.dsp.window.drag(), {mouse = true} ) -- # [hidden]
|
||||
hl.bind("Super + mouse:273", hl.dsp.window.resize(), {mouse = true} ) -- Resize
|
||||
--#/# bind = Super + ←/↑/→/↓,, -- Focus in direction
|
||||
hl.bind("Super + Left", hl.dsp.focus({l}) ) -- # [hidden]
|
||||
hl.bind("Super + Right", hl.dsp.focus({r}) ) -- # [hidden]
|
||||
hl.bind("Super + Up", hl.dsp.focus({u}) ) -- # [hidden]
|
||||
hl.bind("Super + Down", hl.dsp.focus({d}) ) -- # [hidden]
|
||||
hl.bind("Super + BracketLeft", hl.dsp.focus({l}) ) -- # [hidden]
|
||||
hl.bind("Super + BracketRight", hl.dsp.focus({r}) ) -- # [hidden]
|
||||
--#/# bind = Super + Shift, ←/↑/→/↓,, -- Move in direction
|
||||
hl.bind("Super + Shift + Left", hl.dsp.window.move({l}) ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Right", hl.dsp.window.move({r}) ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Up", hl.dsp.window.move({u}) ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Down", hl.dsp.window.move({d}) ) -- # [hidden]
|
||||
hl.bind("Alt + F4", hl.dsp.window.close() ) -- # [hidden] Close (Windows)
|
||||
hl.bind("Super + Q", hl.dsp.window.close() ) -- Close
|
||||
hl.bind("Super + Shift + Alt + Q", hl.dsp.exec_cmd("hyprctl kill") ) -- Forcefully zap a window
|
||||
|
||||
|
||||
--# Window split ratio
|
||||
--#/# binde = Super, ;/',, -- Adjust split ratio
|
||||
hl.bind("Super + Semicolon", hl.dsp.layout("splitratio -0.1"), {repeating = true} ) -- # [hidden]
|
||||
hl.bind("Super + Apostrophe", hl.dsp.layout("splitratio +0.1"), {repeating = true} ) -- # [hidden]
|
||||
--# Positioning mode
|
||||
hl.bind("Super+Alt, Space", hl.dsp.window.float({action = "toggle"}) ) -- Float/Tile
|
||||
hl.bind("Super, D", hl.dsp.window.fullscreen({maximized}), ) -- Maximize
|
||||
hl.bind("Super, F", hl.dsp.window.fullscreen({fullscreen}), ) -- Fullscreen
|
||||
hl.bind("Super+Alt, F", hl.dsp.window.fullscreen_state({0, 3}), ) -- Fullscreen spoof
|
||||
hl.bind("Super, P", hl.dsp.window.pin() ) -- Pin
|
||||
|
||||
--#/# bind = Super+Alt, Hash,, -- Send to workspace -- (1, 2, 3,...)
|
||||
--# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev`
|
||||
hl.bind("Super + Alt + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden]
|
||||
--# keypad numbers
|
||||
hl.bind("Super + Alt + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9") ) -- # [hidden]
|
||||
hl.bind("Super + Alt + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10") ) -- # [hidden]
|
||||
|
||||
--# #/# bind = Super+Shift, Scroll ↑/↓,, -- Send to workspace left/right
|
||||
hl.bind("Super + Shift + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Shift + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Alt + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Alt + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden]
|
||||
|
||||
--#/# bind = Super+Shift, Page_↑/↓,, -- Send to workspace left/right
|
||||
hl.bind("Super + Alt + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Alt + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Shift + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Shift + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden]
|
||||
|
||||
hl.bind("Super + Alt + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad
|
||||
|
||||
hl.bind("Ctrl + Super + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden]
|
||||
|
||||
--##! Workspace
|
||||
--# Switching
|
||||
--#/# bind = Super, Hash,, -- Focus workspace -- (1, 2, 3,...)
|
||||
--# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev`
|
||||
hl.bind("Super + code:10", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden]
|
||||
hl.bind("Super + code:11", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden]
|
||||
hl.bind("Super + code:12", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden]
|
||||
hl.bind("Super + code:13", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden]
|
||||
hl.bind("Super + code:14", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden]
|
||||
hl.bind("Super + code:15", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden]
|
||||
hl.bind("Super + code:16", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden]
|
||||
hl.bind("Super + code:17", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden]
|
||||
hl.bind("Super + code:18", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden]
|
||||
hl.bind("Super + code:19", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden]
|
||||
--# keypad numbers
|
||||
hl.bind("Super + code:87", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1") ) -- # [hidden]
|
||||
hl.bind("Super + code:88", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2") ) -- # [hidden]
|
||||
hl.bind("Super + code:89", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3") ) -- # [hidden]
|
||||
hl.bind("Super + code:83", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4") ) -- # [hidden]
|
||||
hl.bind("Super + code:84", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5") ) -- # [hidden]
|
||||
hl.bind("Super + code:85", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6") ) -- # [hidden]
|
||||
hl.bind("Super + code:79", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7") ) -- # [hidden]
|
||||
hl.bind("Super + code:80", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8") ) -- # [hidden]
|
||||
hl.bind("Super + code:81", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9") ) -- # [hidden]
|
||||
hl.bind("Super + code:90", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10") ) -- # [hidden]
|
||||
|
||||
--#/# bind = Ctrl+Super, ←/→,, -- Focus left/right
|
||||
hl.bind("Ctrl + Super + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden]
|
||||
--#/# bind = Ctrl+Super+Alt, ←/→,, -- # [hidden] Focus busy left/right
|
||||
hl.bind("Ctrl + Super + Alt + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Alt + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden]
|
||||
--#/# bind = Super, Page_↑/↓,, -- Focus left/right
|
||||
hl.bind("Super + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden]
|
||||
hl.bind("Super + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden]
|
||||
--#/# bind = Super, Scroll ↑/↓,, -- Focus left/right
|
||||
hl.bind("Super + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden]
|
||||
hl.bind("Super + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden]
|
||||
--## Special
|
||||
hl.bind("Super + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad
|
||||
hl.bind("Super + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden]
|
||||
hl.bind("Ctrl + Super + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden]
|
||||
|
||||
--##! Virtual machines
|
||||
hl.bind("Super + Alt + F1", hl.dsp.exec_cmd("notify-send 'Entered Virtual Machine submap' 'Keybinds disabled. Hit Super+Alt+F1 to escape' -a 'Hyprland' && hyprctl dispatch submap virtual-machine") ) -- Disable keybinds
|
||||
local submap = virtual-machine
|
||||
hl.bind("Super + Alt + F1", hl.dsp.exec_cmd("notify-send 'Exited Virtual Machine submap' 'Keybinds re-enabled' -a 'Hyprland' && hyprctl dispatch submap global") ) -- # [hidden]
|
||||
local submap = global
|
||||
|
||||
--#!
|
||||
--# Testing
|
||||
hl.bind("Super + Alt + F11", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification with body image' 'This notification should contain your user account <b>image</b> and <a href=\'https://discord.com/app\'>Discord</a> <b>icon</b>. Oh and here is a random image in your Pictures folder: <img src=\'$RANDOM_IMAGE\' alt=\'Testing image\'/>' -a 'Hyprland keybind' -p -h 'string:image-path:/var/lib/AccountsService/icons/$USER' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Open the random image' -A 'action3=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER'; [[ $ACTION == *action2 ]] && xdg-open \'$RANDOM_IMAGE\'''")
|
||||
) -- # [hidden]
|
||||
hl.bind("Super + Alt + F12", hl.dsp.exec_cmd("bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i 'nipple' | grep -v -i 'pussy' | shuf -n 1); ACTION=$(notify-send 'Test notification' 'This notification should contain a random image in your <b>Pictures</b> folder and <a href=\'https://discord.com/app\'>Discord</a> <b>icon</b>.\n<i>Flick right to dismiss!</i>' -a 'Discord (fake)' -p -h 'string:image-path:$RANDOM_IMAGE' -t 6000 -i 'discord' -A 'openImage=Profile image' -A 'action2=Useless button'); [[ $ACTION == *openImage ]] && xdg-open '/var/lib/AccountsService/icons/$USER''")
|
||||
) -- # [hidden]
|
||||
hl.bind("Super + Alt + Equal", hl.dsp.exec_cmd("notify-send 'Urgent notification' 'Ah hell no' -u critical -a 'Hyprland keybind'") ) -- # [hidden]
|
||||
|
||||
--##! Session
|
||||
hl.bind("Super + L", hl.dsp.exec_cmd("loginctl lock-session"), {description = "Lock"} ) -- Lock
|
||||
hl.bind("Super + Shift + L", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true, description = "Suspend system"} ) -- Sleep
|
||||
--hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("systemctl suspend || loginctl suspend"), {locked = true} ) -- # [hidden] Suspend when laptop lid is closed, uncomment if for whatever reason it's not the default behavior
|
||||
|
||||
hl.bind("Ctrl + Shift + Alt + Super + Delete", hl.dsp.exec_cmd("systemctl poweroff || loginctl poweroff"), {description = "Shutdown"} ) -- # [hidden] Power off
|
||||
|
||||
--##! Screen
|
||||
--# Zoom
|
||||
hl.bind("Super + Minus", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.3"), {repeating = true} ) -- Zoom out
|
||||
hl.bind("Super + Equal", hl.dsp.exec_cmd("~/.config/hypr/hyprland/scripts/zoom.sh increase 0.3"), {repeating = true} ) -- Zoom in
|
||||
--# Zoom with keypad
|
||||
hl.bind("Super + code:82", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out
|
||||
hl.bind("Super + code:86", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in
|
||||
hl.bind("Super + code:82", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out
|
||||
hl.bind("Super + code:86", hl.dsp.exec_cmd("qs -c " .. qsConfig .. " ipc call TEST_ALIVE || ~/.config/hypr/hyprland/scripts/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in
|
||||
|
||||
--##! Media
|
||||
hl.bind("Super + Shift + N", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- Next track
|
||||
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), {locked = true} ) -- # [hidden]
|
||||
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Alt + mouse:275", hl.dsp.exec_cmd("playerctl previous"), ) -- # [hidden]
|
||||
hl.bind("Super + Shift + Alt + mouse:276", hl.dsp.exec_cmd("playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"), ) -- # [hidden]
|
||||
hl.bind("Super + Shift + B", hl.dsp.exec_cmd("playerctl previous"), {locked = true} ) -- Previous track
|
||||
hl.bind("Super + Shift + P", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- Play/pause media
|
||||
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden]
|
||||
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), {locked = true} ) -- # [hidden]
|
||||
|
||||
--##! Apps
|
||||
hl.bind("Super + Return"), hl.dsp.exec_cmd(terminal) ) -- Terminal
|
||||
hl.bind("Super + T"), hl.dsp.exec_cmd(terminal) ) -- # [hidden] (terminal) (alt)
|
||||
hl.bind("Ctrl + Alt + T"), hl.dsp.exec_cmd(terminal) ) -- # [hidden] (terminal) (for Ubuntu people)
|
||||
hl.bind("Super + E"), hl.dsp.exec_cmd(fileManager) ) -- File manager
|
||||
hl.bind("Super + W"), hl.dsp.exec_cmd(browser) ) -- Browser
|
||||
hl.bind("Super + C"), hl.dsp.exec_cmd(codeEditor) ) -- Code editor
|
||||
hl.bind("Ctrl + Super + Shift + Alt + W"), hl.dsp.exec_cmd(officeSoftware) ) -- Office software
|
||||
hl.bind("Super + X"), hl.dsp.exec_cmd(textEditor) ) -- Text editor
|
||||
hl.bind("Ctrl + Super + V"), hl.dsp.exec_cmd(volumeMixer) ) -- Volume mixer
|
||||
hl.bind("Super + I"), hl.dsp.exec_cmd(settingsApp) ) -- Settings app
|
||||
hl.bind("Ctrl + Shift + Escape"), hl.dsp.exec_cmd(taskManager) ) -- Task manager
|
||||
|
||||
--# Cursed stuff
|
||||
--## Make window not amogus large
|
||||
hl.bind("Ctrl + Super + Backslash"), hl.dsp.resize({640, 480, exact}) ) -- # [hidden]
|
||||
@@ -0,0 +1,173 @@
|
||||
-- ######## Window rules ########
|
||||
|
||||
-- Disable blur for xwayland context menus
|
||||
hl.window_rule({match = {class = ^()$ }, match = {title = ^()$ }, no_blur = true })
|
||||
|
||||
-- Disable blur for every window
|
||||
hl.window_rule({match = {class = .* }, no_blur = true })
|
||||
|
||||
-- Floating
|
||||
hl.window_rule({match = {title = ^(Open File)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(Open File)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(Select a File)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(Select a File)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(Choose wallpaper)(.*)$ }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} })
|
||||
hl.window_rule({match = {title = ^(Open Folder)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(Open Folder)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(Save As)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(Save As)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(Library)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(Library)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(File Upload)(.*)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(File Upload)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(.*)(wants to save)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(.*)(wants to save)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^(.*)(wants to open)$ }, center = true})
|
||||
hl.window_rule({match = {title = ^(.*)(wants to open)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(blueberry\.py)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(guifetch)$ }, float = true}) -- FlafyDev/guifetch
|
||||
hl.window_rule({match = {class = ^(pavucontrol)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(pavucontrol)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} })
|
||||
hl.window_rule({match = {class = ^(pavucontrol)$ }, center = true})
|
||||
hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} })
|
||||
hl.window_rule({match = {class = ^(org.pulseaudio.pavucontrol)$ }, center = true})
|
||||
hl.window_rule({match = {class = ^(nm-connection-editor)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(nm-connection-editor)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} })
|
||||
hl.window_rule({match = {class = ^(nm-connection-editor)$ }, center = true})
|
||||
hl.window_rule({match = {class = .*plasmawindowed.* }, float = true})
|
||||
hl.window_rule({match = {class = kcm_.* }, float = true})
|
||||
hl.window_rule({match = {class = .*bluedevilwizard }, float = true})
|
||||
hl.window_rule({match = {title = .*Welcome }, float = true})
|
||||
hl.window_rule({match = {title = ^(illogical-impulse Settings)$ }, float = true})
|
||||
hl.window_rule({match = {title = .*Shell conflicts.* }, float = true})
|
||||
hl.window_rule({match = {class = org.freedesktop.impl.portal.desktop.kde }, float = true})
|
||||
hl.window_rule({match = {class = org.freedesktop.impl.portal.desktop.kde }, size = {"(monitor_w*0.60)", "(monitor_h*0.65)"} })
|
||||
hl.window_rule({match = {class = ^(Zotero)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(Zotero)$ }, size = {"(monitor_w*0.45)", "(monitor_h*0.45)"} })
|
||||
|
||||
-- Move
|
||||
-- kde-material-you-colors spawns a window when changing dark/light theme. This is to make sure it doesn't interfere at all.
|
||||
hl.window_rule({match = {class = ^(plasma-changeicons)$ }, float = true})
|
||||
hl.window_rule({match = {class = ^(plasma-changeicons)$ }, no_initial_focus = true})
|
||||
hl.window_rule({match = {class = ^(plasma-changeicons)$ }, move = {999999, 999999})
|
||||
-- stupid dolphin copy
|
||||
hl.window_rule({match = {title = ^(Copying — Dolphin)$ }, move = {40, 80})
|
||||
|
||||
-- Tiling
|
||||
hl.window_rule({match = {class = ^dev\.warp\.Warp$ }, tile = true})
|
||||
|
||||
-- Picture-in-Picture
|
||||
hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, keep_aspect_ratio = true})
|
||||
hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, move = {"(monitor_w*0.73)", "(monitor_h*0.72)"} })
|
||||
hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, size = {"(monitor_w*0.25)", "(monitor_h*0.25)"} })
|
||||
hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, float = true})
|
||||
hl.window_rule({match = {title = ^([Pp]icture[-\s]?[Ii]n[-\s]?[Pp]icture)(.*)$ }, pin = true})
|
||||
|
||||
-- Screen sharing
|
||||
hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, float = true})
|
||||
hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, pin = true})
|
||||
hl.window_rule({match = {title = .*is sharing (a window|your screen).* }, move = {"(monitor_w*.5-window_w*.5)", "(monitor_h-window_h-12)"} })
|
||||
|
||||
-- --- Tearing ---
|
||||
hl.window_rule({match = {title = .*\.exe }, immediate = true})
|
||||
hl.window_rule({match = {title = .*minecraft.* }, immediate = true})
|
||||
hl.window_rule({match = {class = ^(steam_app).* }, immediate = true})
|
||||
|
||||
-- Fix Jetbrain IDEs focus/rerendering problem
|
||||
hl.window_rule({match = {class = ^jetbrains-.*$ }, {match = {float = 1 }, {match = {title = ^$|^\s$|^win\d+$ }, no_initial_focus = true})
|
||||
|
||||
-- No shadow for tiled windows (matches windows that are not floating).
|
||||
hl.window_rule({match = {float = 0 }, no_shadow = true})
|
||||
|
||||
-- ######## Workspace rules ########
|
||||
hl.workspace_rule({ workspace = "special:special", gapsout = 30 })
|
||||
|
||||
-- ######## Layer rules ########
|
||||
hl.layer_rule({ match = { namespace = .* }, xray = true})
|
||||
--hl.layer_rule({ match = { namespace = .* }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = walker }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = selection }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = overview }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = anyrun }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = indicator.* }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = osk }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = hyprpicker }, no_anim = true})
|
||||
|
||||
hl.layer_rule({ match = { namespace = noanim }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = gtk-layer-shell }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = gtk-layer-shell }, ignore_alpha = 0})
|
||||
hl.layer_rule({ match = { namespace = launcher }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = launcher }, ignore_alpha = 0.5})
|
||||
hl.layer_rule({ match = { namespace = notifications }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = notifications }, ignore_alpha = 0.69})
|
||||
hl.layer_rule({ match = { namespace = logout_dialog }, -- wlogout blur = true})
|
||||
|
||||
-- ags
|
||||
hl.layer_rule({ match = { namespace = sideleft.* }, animation = "slide left"})
|
||||
hl.layer_rule({ match = { namespace = sideright.* }, animation = "slide right"})
|
||||
hl.layer_rule({ match = { namespace = session[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = bar[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = bar[0-9]* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = barcorner.* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = barcorner.* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = dock[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = dock[0-9]* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = indicator.* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = indicator.* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = overview[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = overview[0-9]* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = cheatsheet[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = cheatsheet[0-9]* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = sideright[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = sideright[0-9]* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = sideleft[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = sideleft[0-9]* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = indicator.* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = indicator.* }, ignore_alpha = 0.6})
|
||||
hl.layer_rule({ match = { namespace = osk[0-9]* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = osk[0-9]* }, ignore_alpha = 0.6})
|
||||
|
||||
-- Quickshell
|
||||
-- Quickshell: illogical-impulse
|
||||
hl.layer_rule({ match = { namespace = quickshell:.* }, blur_popups = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:.* }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:.* }, ignore_alpha = 0.79})
|
||||
hl.layer_rule({ match = { namespace = quickshell:bar }, animation = "slide"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:actionCenter }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:cheatsheet }, animation = "slide bottom"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:dock }, animation = "slide bottom"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:screenCorners }, animation = "popin 120%"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:lockWindowPusher }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:notificationPopup }, animation fade
|
||||
hl.layer_rule({ match = { namespace = quickshell:overlay }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:overlay }, ignore_alpha = 1})
|
||||
hl.layer_rule({ match = { namespace = quickshell:overview }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:osk }, animation = "slide bottom"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:polkit }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:popup }, xray = false}) -- No weird color for bar tooltips (this in theory should suffice)
|
||||
hl.layer_rule({ match = { namespace = quickshell:popup }, ignore_alpha = 1}) -- No weird color for bar tooltips (but somehow this is necessary)
|
||||
hl.layer_rule({ match = { namespace = quickshell:mediaControls }, ignore_alpha = 1}) -- Same as above
|
||||
hl.layer_rule({ match = { namespace = quickshell:reloadPopup }, animation = "slide"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:regionSelector }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:screenshot }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:session }, blur = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:session }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:session }, ignore_alpha = 0})
|
||||
hl.layer_rule({ match = { namespace = quickshell:sidebarRight }, animation = "slide right"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:sidebarLeft }, animation = "slide left"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:verticalBar }, animation = "slide"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:osk }, order = -1})
|
||||
-- Quickshell: waffles
|
||||
hl.layer_rule({ match = { namespace = quickshell:wallpaperSelector }, animation = "slide top"})
|
||||
hl.layer_rule({ match = { namespace = quickshell:wNotificationCenter }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:wOnScreenDisplay }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:wStartMenu }, no_anim = true})
|
||||
hl.layer_rule({ match = { namespace = quickshell:wTaskView }, ignore_alpha = 0})
|
||||
hl.layer_rule({ match = { namespace = quickshell:wTaskView }, no_anim = true})
|
||||
|
||||
-- Launchers need to be FAST
|
||||
hl.layer_rule({ match = { namespace = gtk4-layer-shell }, no_anim = true})
|
||||
@@ -0,0 +1,23 @@
|
||||
-- Default variables
|
||||
-- Copy these to ~/.config/hypr/custom/variables.lua to make changes in a dotfiles-update-friendly manner
|
||||
|
||||
-- Apps
|
||||
-- PULL REQUESTS ADDING MORE WILL NOT BE ACCEPTED, CONFIG FOR YOURSELF
|
||||
local terminal = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kitty -1' 'foot' 'alacritty' 'wezterm' 'konsole' 'kgx' 'uxterm' 'xterm'"
|
||||
local fileManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'dolphin' 'nautilus' 'nemo' 'thunar' 'kitty -1 fish -c yazi'"
|
||||
local browser = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'"
|
||||
local codeEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'antigravity' 'code' 'codium' 'cursor' 'zed' 'zedit' 'zeditor' 'kate' 'gnome-text-editor' 'emacs' 'command -v nvim && kitty -1 nvim' 'command -v micro && kitty -1 micro'"
|
||||
local officeSoftware = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'wps' 'onlyoffice-desktopeditors' 'libreoffice'"
|
||||
local textEditor = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'kate' 'gnome-text-editor' 'emacs'"
|
||||
local volumeMixer = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'pavucontrol-qt' 'pavucontrol'"
|
||||
local settingsApp = "XDG_CURRENT_DESKTOP=gnome ~/.config/hypr/hyprland/scripts/launch_first_available.sh 'qs -p ~/.config/quickshell/" .. qsConfig .. "/settings.qml' 'systemsettings' 'gnome-control-center' 'better-control'"
|
||||
local taskManager = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'gnome-system-monitor' 'plasma-systemmonitor --page-name Processes' 'command -v btop && kitty -1 fish -c btop'"
|
||||
|
||||
-- The folder within ~/.config/quickshell containing the config
|
||||
local qsConfig = "ii"
|
||||
|
||||
-- Leave blank like this to load default config. Set to anything to not.
|
||||
local dontLoadDefaultExecs =
|
||||
local dontLoadDefaultGeneral =
|
||||
local dontLoadDefaultRules =
|
||||
local dontLoadDefaultKeybinds =
|
||||
Reference in New Issue
Block a user