Add files via upload

This commit is contained in:
Linuxius
2026-05-07 11:19:53 +02:00
committed by GitHub
parent fb3ec1fdfc
commit c3147dc7ff
3 changed files with 168 additions and 154 deletions
+1 -1
View File
@@ -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")
+1 -1
View File
@@ -168,7 +168,7 @@ hl.config({
},
cursor = {
--zoom_factor = 1,
zoom_factor = 1,
zoom_rigid = false,
zoom_disable_aa = true,
hotspot_padding = 1,
+59 -45
View File
@@ -6,9 +6,9 @@
-- hl.dsp.exec_cmd("hyprctl dispatch submap global" ) -- not needed anymore?
-- This is required for catchall to work
--hl.define_submap("global", function( ) -- can't seem to get it to work when adding SUPER either function in qml stopped working or you need to find new workaround
-- hl.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)
-- end)
local qsScripts = "$HOME/.config/quickshell/$qsConfig/scripts"
local hyprScripts = "$HOME/.config/hypr/hyprland/scripts"
@@ -23,9 +23,11 @@ hl.bind("SUPER + SUPER_R", hl.dsp.global("quickshell:se
hl.bind("SUPER + SUPER_L", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback)
hl.bind("SUPER + SUPER_R", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || pkill fuzzel || fuzzel") ) -- # [hidden] Launcher (fallback)
for i = 1, 10 do
local keycombos = {"CTRL + SUPER_L", "CTRL + SUPER_R", "SUPER + mouse:272", "SUPER + mouse:273", "SUPER + mouse:274", "SUPER + mouse:275", "SUPER + mouse:276", "SUPER + mouse:277", "SUPER + mouse_up", "SUPER + mouse_down"}
hl.bind(keycombos[i], hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden]
hl.bind("CTRL + SUPER_L", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden]
hl.bind("CTRL + SUPER_R", hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden]
for i = 1, 8 do
local keycombos = {":272", ":273", ":274", ":275", ":276", ":277", "_up", "_down"}
hl.bind("SUPER + mouse"..keycombos[i], hl.dsp.global("quickshell:searchToggleReleaseInterrupt") )-- # [hidden]
end
hl.bind("SUPER_L", hl.dsp.global("quickshell:workspaceNumber"), {ignore_mods = true, transparent = true} ) -- # [hidden]
@@ -137,30 +139,32 @@ hl.bind("SUPER + P", hl.dsp.window.pin()
--#/# bind = SUPER+ALT, Hash,, -- Send to workspace -- (1, 2, 3,...)
--# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev`
for i = 1, 10 do
local numberkeys = {10,11,12,13,14,15,16,17,18,19}
hl.bind("SUPER + ALT + code:"..numberkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh movetoworkspacesilent "..i) ) -- # [hidden]
local numberkey = {10,11,12,13,14,15,16,17,18,19}
hl.bind("SUPER + ALT + code:"..numberkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) -- # [hidden]
end
--# keypad numbers
for i = 1, 10 do
local numpadkeys = {87,88,89,83,84,85,79,80,81,90}
hl.bind("SUPER + ALT + code:"..numpadkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh movetoworkspacesilent "..i) ) -- # [hidden]
local numpadkey = {87,88,89,83,84,85,79,80,81,90}
hl.bind("SUPER + ALT + code:"..numpadkey[i], hl.dsp.window.move({ workspace = i, follow = false}) ) -- # [hidden]
end
--# #/# bind = SUPER+SHIFT, Scroll ↑/↓,, -- Send to workspace left/right
hl.bind("SUPER + SHIFT + mouse_down", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden]
hl.bind("SUPER + SHIFT + mouse_up", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden]
hl.bind("SUPER + ALT + mouse_down", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden]
hl.bind("SUPER + ALT + mouse_up", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden]
for i = 1, 4 do
local key = {"SUPER + SHIFT + mouse_", "SUPER + ALT + mouse_"}
local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up"}
local prefix = {"r-","r+","-","+"}
hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden]
end
--#/# bind = SUPER+SHIFT, Page_↑/↓,, -- Send to workspace left/right
hl.bind("SUPER + ALT + Page_down", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden]
hl.bind("SUPER + ALT + Page_up", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden]
hl.bind("SUPER + SHIFT + Page_down", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden]
hl.bind("SUPER + SHIFT + Page_up", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + SHIFT + Right", hl.dsp.window.move({workspace = "r+1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + SHIFT + Left", hl.dsp.window.move({workspace = "r-1"}) ) -- # [hidden]
for i = 1, 6 do
local key = {"SUPER + ALT + Page_", "SUPER + SHIFT + Page_", "CTRL + SUPER + SHIFT + "}
local keycombos = {key[1].."down", key[1].."up", key[2].."down", key[2].."up", key[3].."Right", key[3].."Left"}
local prefix = {"+","-","r+","r-","r+","r-"}
hl.bind(keycombos[i], hl.dsp.window.move({workspace = prefix[i].."1"}) ) -- # [hidden]
end
hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", silent = true}) ) -- Send to scratchpad
hl.bind("SUPER + ALT + S", hl.dsp.window.move({workspace = "special:special", follow = false}) ) -- Send to scratchpad
hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- # [hidden]
@@ -169,38 +173,45 @@ hl.bind("CTRL + SUPER + S", hl.dsp.workspace.toggle_spec
--#/# bind = SUPER, Hash,, -- Focus workspace -- (1, 2, 3,...)
--# We use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev`
for i = 1, 10 do
local numberkeys = {10,11,12,13,14,15,16,17,18,19}
hl.bind("SUPER + code:"..numberkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh workspace "..i) ) -- # [hidden]
local numberkey = {10,11,12,13,14,15,16,17,18,19}
hl.bind("SUPER + code:"..numberkey[i], hl.dsp.focus({ workspace = i}) ) -- # [hidden]
end
--# keypad numbers
for i = 1, 10 do
local numpadkeys = {87,88,89,83,84,85,79,80,81,90}
hl.bind("SUPER + code:"..numpadkeys[i], hl.dsp.exec_cmd(hyprScripts.."/workspace_action.sh workspace "..i) ) -- # [hidden]
local numpadkey = {87,88,89,83,84,85,79,80,81,90}
hl.bind("SUPER + code:"..numpadkey[i], hl.dsp.focus({ workspace = i}) ) -- # [hidden]
end
--#/# bind = CTRL+SUPER, ←/→,, -- Focus left/right
hl.bind("CTRL + SUPER + Right", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + Left", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden]
--#/# bind = CTRL+SUPER+ALT, ←/→,, -- # [hidden] Focus busy left/right
hl.bind("CTRL + SUPER + ALT + Right", hl.dsp.focus({workspace = "m+1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + ALT + Left", hl.dsp.focus({workspace = "m-1"}) ) -- # [hidden]
for i = 1, 4 do
local key = {"CTRL + SUPER + ", "CTRL + SUPER + ALT + "}
local keycombos = {key[1].."Right", key[1].."Left", key[2].."Right", key[2].."Left"}
local prefix = {"r+","r-","m+","m-"}
hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden]
end
--#/# bind = SUPER, Page_↑/↓,, -- Focus left/right
hl.bind("SUPER + Page_Down", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden]
hl.bind("SUPER + Page_Up", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + Page_Down", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + Page_Up", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden]
for i = 1, 4 do
local key = {"SUPER + Page_Down", "SUPER + Page_Up"}
local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]}
local prefix = {"+","-","r+","r-"}
hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden]
end
--#/# bind = SUPER, Scroll ↑/↓,, -- Focus left/right
hl.bind("SUPER + mouse_up", hl.dsp.focus({workspace = "+1"}) ) -- # [hidden]
hl.bind("SUPER + mouse_down", hl.dsp.focus({workspace = "-1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + mouse_up", hl.dsp.focus({workspace = "r+1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + mouse_down", hl.dsp.focus({workspace = "r-1"}) ) -- # [hidden]
for i = 1, 4 do
local key = {"SUPER + mouse_up", "SUPER + mouse_down"}
local keycombos = {key[1], key[2], "CTRL + "..key[1], "CTRL + "..key[2]}
local prefix = {"+","-","r+","r-"}
hl.bind(keycombos[i], hl.dsp.focus({workspace = prefix[i].."1"}) ) -- # [hidden]
end
--## Special
hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("special") ) -- Toggle scratchpad
hl.bind("SUPER + mouse:275", hl.dsp.workspace.toggle_special("special") ) -- # [hidden]
hl.bind("CTRL + SUPER + BracketLeft", hl.dsp.window.move({workspace = "-1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + BracketRight", hl.dsp.window.move({workspace = "+1"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + Up", hl.dsp.window.move({workspace = "r-5"}) ) -- # [hidden]
hl.bind("CTRL + SUPER + Down", hl.dsp.window.move({workspace = "r+5"}) ) -- # [hidden]
for i = 1, 4 do
local key = {"BracketLeft","BracketRight","Up","Down"}
local prefix = {"-1","+1","r-5","r+5"}
hl.bind("CTRL + SUPER + "..key[i], hl.dsp.window.move({workspace = prefix[i]}) ) -- # [hidden]
end
--##! Virtual machines
hl.define_submap("virtual-machine", function()
@@ -228,7 +239,7 @@ hl.bind("SUPER + ALT + Equal", hl.dsp.exec_cmd("notify-send
--##! 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("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
@@ -249,10 +260,13 @@ hl.bind("SUPER + Minus", function() zoomfunction(-0.3
hl.bind("SUPER + Equal", function() zoomfunction(0.3) end, {repeating = true} ) -- Zoom in
--# Zoom with keypad
hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out
hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in
hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out
hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in
hl.bind("SUPER + code:82", function() zoomfunction(-0.1) end, {repeating = true} ) -- # [hidden] Zoom out
hl.bind("SUPER + code:86", function() zoomfunction(0.1) end, {repeating = true} ) -- # [hidden] Zoom in
-- Don't know why these use different functions to zoom but for now I replaced them with the same as above
-- hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomOut"), {repeating = true} ) -- # [hidden] Zoom out
-- hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." zoom zoomIn"), {repeating = true} ) -- # [hidden] Zoom in
-- hl.bind("SUPER + code:82", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh decrease 0.1"), {repeating = true} ) -- # [hidden] Zoom out
-- hl.bind("SUPER + code:86", hl.dsp.exec_cmd(qsIPCcall.." TEST_ALIVE || "..hyprScripts.."/zoom.sh increase 0.1"), {repeating = true} ) -- # [hidden] Zoom in
--##! Media
local mediacommand = "playerctl next || playerctl position `bc <<< '100 * $(playerctl metadata mpris:length) / 1000000 / 100'`"