update configuration
This commit is contained in:
@@ -39,6 +39,7 @@ for i = 1, 10 do
|
||||
local workspace_name = i
|
||||
hl.bind("SUPER + " .. workspace_num, hl.dsp.focus({ workspace = workspace_name}), { description = "Focus Workspace "..workspace_name })
|
||||
end
|
||||
hl.bind("SUPER + minus", hl.dsp.workspace.toggle_special("scratchpad"), { description = "Toggle Scratchpad" })
|
||||
|
||||
hl.bind("SUPER + Page_Down", hl.dsp.focus({ workspace = "e+1" }), { description = "Focus Next Workspace" })
|
||||
hl.bind("SUPER + mouse_down", hl.dsp.focus({ workspace = "e+1" }), { description = "Focus Next Workspace" })
|
||||
@@ -110,6 +111,9 @@ for i = 1, 10 do
|
||||
hl.bind("SUPER + SHIFT + " .. workspace_num, hl.dsp.window.move({ workspace = workspace_name, follow = true}), { description = "Move Window to Workspace " .. workspace_name })
|
||||
hl.bind("SUPER + CTRL + SHIFT + " .. workspace_num, hl.dsp.window.move({ workspace = workspace_name, follow = false}), { description = "Move Window to Workspace " .. workspace_name .. " (silent)" })
|
||||
end
|
||||
hl.bind("SUPER + SHIFT + minus", hl.dsp.window.move({workspace = "special:scratchpad", follow = true}), { description = "Move Window to Scratchpad" })
|
||||
hl.bind("SUPER + CTRL + SHIFT + minus", hl.dsp.window.move({workspace = "special:scratchpad", follow = false}), { description = "Move Window to Scratchpad (silent)" })
|
||||
|
||||
|
||||
-- Resizing Submap
|
||||
local resizeSubmapName = "Resize Window: [hjkl]"
|
||||
@@ -127,6 +131,10 @@ end)
|
||||
local workspaceSubmapName = "Workspace: [hjkl]"
|
||||
hl.bind("SUPER + T", hl.dsp.submap(workspaceSubmapName), { description = "Workspace..." })
|
||||
hl.define_submap(workspaceSubmapName, function()
|
||||
hl.bind("h", hl.dsp.workspace.move({monitor="l"}), {description = "Move workspace left"})
|
||||
hl.bind("j", hl.dsp.workspace.move({monitor="d"}), {description = "Move workspace down"})
|
||||
hl.bind("k", hl.dsp.workspace.move({monitor="u"}), {description = "Move workspace up"})
|
||||
hl.bind("l", hl.dsp.workspace.move({monitor="r"}), {description = "Move workspace right"})
|
||||
hl.bind("escape", hl.dsp.submap("reset"))
|
||||
hl.bind("catchall", function() hl.dispatch(submap_toast) end)
|
||||
end)
|
||||
|
||||
@@ -158,7 +158,7 @@ return {
|
||||
}
|
||||
},
|
||||
master = {
|
||||
mfact = 0.7,
|
||||
mfact = 0.65,
|
||||
new_status = "slave",
|
||||
new_on_top = false,
|
||||
new_on_active = "none",
|
||||
|
||||
@@ -230,7 +230,7 @@ rule(
|
||||
{ float() }
|
||||
)
|
||||
rule(
|
||||
{ matches_class("^(firefox|librewolf)$"), matches_title("^.*(Youtube).*$") },
|
||||
{ matches_class("^(firefox|librewolf)$"), matches_title("^.*(YouTube).*$") },
|
||||
{ content(ContentType.VIDEO), no_dim(), no_blur() }
|
||||
)
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hl.workspace_rule({ workspace = "s[true]", gaps_out = 80})
|
||||
@@ -7,7 +7,7 @@ debug_flag = true
|
||||
-------------------
|
||||
function debug_notify(message)
|
||||
if debug_flag and message ~= nil then
|
||||
-- hl.notification.create({text = message, timeout = 30000})
|
||||
hl.notification.create({text = message, timeout = 30000})
|
||||
hl.exec_cmd("echo '" .. message .. "' >> /tmp/hyprland-notify.log")
|
||||
end
|
||||
end
|
||||
@@ -71,24 +71,6 @@ end
|
||||
hl.on("hyprland.start", on_start)
|
||||
hl.on("keybinds.submap", submap_toast)
|
||||
|
||||
------------------
|
||||
---- MONITORS ----
|
||||
------------------
|
||||
|
||||
-- By default, only the laptop screen is active and no other screen
|
||||
-- will be actived. Activation of different monitor layouts is deferred
|
||||
-- to other scripts, so to automate profile switching and provide some
|
||||
-- stable fallbacks
|
||||
--[[
|
||||
hl.monitor({
|
||||
output = "eDP-1",
|
||||
mode = "1920x1200@120",
|
||||
position = "0x0",
|
||||
scale = "1",
|
||||
disabled = false,
|
||||
})
|
||||
]]
|
||||
|
||||
---------------------
|
||||
---- MY PROGRAMS ----
|
||||
---------------------
|
||||
@@ -139,9 +121,27 @@ require("hyprland-windowrules")
|
||||
hl.layer_rule({ match = { namespace = "^(quickshell)$" }, no_anim = true })
|
||||
hl.layer_rule({ match = { namespace = "^dms:.*" }, no_anim = true })
|
||||
|
||||
-------------------------
|
||||
---- WORKSPACE RULES ----
|
||||
-------------------------
|
||||
require("hyprland-workspacerules")
|
||||
|
||||
------------------
|
||||
---- MONITORS ----
|
||||
------------------
|
||||
-- By default, only the laptop screen is active and no other screen
|
||||
-- will be actived. Activation of different monitor layouts is deferred
|
||||
-- to other scripts, so to automate profile switching and provide some
|
||||
-- stable fallbacks
|
||||
--[[
|
||||
hl.monitor({
|
||||
output = "eDP-1",
|
||||
mode = "1920x1200@120",
|
||||
position = "0x0",
|
||||
scale = "1",
|
||||
disabled = false,
|
||||
})
|
||||
]]
|
||||
require("hyprland-monitors")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user