Update dotfiles (2026-07-14 00:59:56)
This commit is contained in:
@@ -21,6 +21,27 @@ local function zoom(offset)
|
||||
hl.config({ cursor = { zoom_factor = current } })
|
||||
end
|
||||
|
||||
-- FOR TESTING PURPOSES DON'T FORGET OR DELETE
|
||||
-- hl.notification.create({
|
||||
-- text = "Found: " .. win.title,
|
||||
-- timeout = 3000,
|
||||
-- })
|
||||
|
||||
local function appSearch(appName)
|
||||
local lookupName = {
|
||||
["spotify-launcher"] = "Spotify",
|
||||
}
|
||||
local name = lookupName[appName] or appName
|
||||
local app = hl.get_window("title:" .. name) or hl.get_window("class:" .. name)
|
||||
|
||||
if app then
|
||||
hl.dispatch(hl.dsp.focus({ workspace = app.workspace.id }))
|
||||
hl.dispatch(hl.dsp.focus({ window = app }))
|
||||
else
|
||||
hl.dispatch(hl.dsp.exec_cmd(prefix .. appName))
|
||||
end
|
||||
end
|
||||
|
||||
-- Zooming
|
||||
hl.bind(mainMod .. " + GRAVE", zoom)
|
||||
hl.bind(mainMod .. " + mouse_down", function()
|
||||
@@ -39,10 +60,12 @@ hl.bind(mainMod .. " + SHIFT + S", hl.dsp.global("zshell:screenshot"))
|
||||
hl.bind(mainMod .. " + CTRL + S", hl.dsp.global("zshell:screenshotFreeze"))
|
||||
hl.bind(mainMod .. " + L", hl.dsp.global("zshell:lock"))
|
||||
hl.bind(mainMod .. " + I", hl.dsp.global("zshell:toggle-settings"))
|
||||
hl.bind(mainMod .. " + SHIFT + C", hl.dsp.global("zshell:toggle-clipboard"))
|
||||
hl.bind(
|
||||
mainMod .. " + CTRL + SHIFT + R",
|
||||
hl.dsp.exec_cmd("zshell-cli shell kill; sleep 0.5; " .. prefix .. "zshell-cli shell start")
|
||||
)
|
||||
hl.bind(mainMod .. " + CTRL + SHIFT + K", hl.dsp.exec_cmd("zshell-cli shell kill"))
|
||||
|
||||
-- QML
|
||||
hl.bind("CTRL + mouse:274", hl.dsp.exec_cmd("ideskpet toggle-region"))
|
||||
@@ -50,10 +73,16 @@ hl.bind("SHIFT + mouse:274", hl.dsp.exec_cmd("ideskpet toggle-layer"))
|
||||
hl.bind(mainMod .. " + Z", hl.dsp.exec_cmd("ideskpet cycle-zindex"))
|
||||
|
||||
-- Apps
|
||||
hl.bind(mainMod .. " + C", hl.dsp.exec_cmd(prefix .. "Telegram"))
|
||||
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd(prefix .. "discord"))
|
||||
hl.bind(mainMod .. " + V", function()
|
||||
appSearch("discord")
|
||||
end)
|
||||
hl.bind(mainMod .. " + C", function()
|
||||
appSearch("Telegram")
|
||||
end)
|
||||
hl.bind(mainMod .. " + S", function()
|
||||
appSearch("spotify-launcher")
|
||||
end)
|
||||
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd(prefix .. "librewolf"))
|
||||
hl.bind(mainMod .. " + S", hl.dsp.exec_cmd(prefix .. "spotify-launcher"))
|
||||
hl.bind(mainMod .. " + X", hl.dsp.exec_cmd("SDL_VIDEODRIVER='x11' " .. prefix .. "osu-lazer"))
|
||||
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager))
|
||||
|
||||
@@ -62,6 +91,7 @@ hl.bind(mainMod .. " + F1", hl.dsp.exec_cmd("playerctl play-pause"))
|
||||
hl.bind(mainMod .. " + F2", hl.dsp.exec_cmd("playerctl previous"))
|
||||
hl.bind(mainMod .. " + F3", hl.dsp.exec_cmd("playerctl next"))
|
||||
hl.bind("PRINT", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
|
||||
hl.bind(mainMod .. " + PRINT", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 0.32"))
|
||||
hl.bind("code:172", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
|
||||
hl.bind("code:121", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"))
|
||||
hl.bind("code:122", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.02-"))
|
||||
|
||||
Reference in New Issue
Block a user