feat: updates to make it work
This commit is contained in:
@@ -16,7 +16,7 @@ if read_docked then
|
||||
end
|
||||
|
||||
-- Core
|
||||
require("colors")
|
||||
require("hyprland.colors")
|
||||
require("hyprland.core.general")
|
||||
require("hyprland.core.input")(laptop_config)
|
||||
require("hyprland.core.group")
|
||||
@@ -24,10 +24,10 @@ require("hyprland.core.misc")
|
||||
require("hyprland.core.style")
|
||||
|
||||
-- Binds
|
||||
require("hyprland.binds.main")
|
||||
require("hyprland.binds.device")
|
||||
require("hyprland.binds.groups")
|
||||
require("hyprland.binds.launch")
|
||||
require("hyprland.binds.main")
|
||||
require("hyprland.binds.notifications")
|
||||
require("hyprland.binds.screenshot")
|
||||
require("hyprland.binds.window")
|
||||
|
||||
@@ -9,7 +9,7 @@ hl.define_submap("device", function()
|
||||
end)
|
||||
|
||||
-- Touchpad
|
||||
hl.bind("Shift + T", function()
|
||||
hl.bind("SHIFT + T", function()
|
||||
hl.device({
|
||||
name = "pnp0c50:00-093a:0255-touchpad",
|
||||
enabled = false,
|
||||
|
||||
@@ -2,8 +2,6 @@ local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.bind("Super + Q", hl.dsp.exit())
|
||||
|
||||
hl.define_submap("groups", function()
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.group.toggle())
|
||||
@@ -20,18 +18,18 @@ hl.define_submap("groups", function()
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Ctrl + L", function()
|
||||
hl.bind("CTRL + L", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Group locking toggled' --app-name='Hyprtclt'"))
|
||||
hl.dispatch(hl.dsp.group.lock_active())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + L", function()
|
||||
hl.bind("SHIFT + L", function()
|
||||
hl.dispatch(hl.dsp.window.move({ into_or_create_group = "r" }))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + H", function()
|
||||
hl.bind("SHIFT + H", function()
|
||||
hl.dispatch(hl.dsp.window.move({ into_or_create_group = "l" }))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
@@ -9,6 +9,8 @@ local function launcher(program)
|
||||
end
|
||||
end
|
||||
|
||||
hl.bind("SUPER + Return", launcher("kitty"))
|
||||
|
||||
hl.define_submap("launch", function()
|
||||
-- Librewolf
|
||||
hl.bind("l", launcher("librewolf"))
|
||||
@@ -33,7 +35,7 @@ hl.define_submap("launch", function()
|
||||
hl.bind("z", launcher("zathura"))
|
||||
|
||||
-- Brave
|
||||
hl.bind("Shift + B", launcher("brave"))
|
||||
hl.bind("SHIFT + B", launcher("brave"))
|
||||
|
||||
-- bsmanager
|
||||
hl.bind("b", launcher("/opt/bs-manager/bs-manager"))
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
hl.bind("Super + X", hl.dsp.submap("launch"))
|
||||
hl.bind("Super + D", hl.dsp.submap("device"))
|
||||
hl.bind("Super + C", hl.dsp.submap("notifications"))
|
||||
hl.bind("Super + G", hl.dsp.submap("groups"))
|
||||
hl.bind("Super + S", hl.dsp.submap("screenshot"))
|
||||
hl.bind("Super + W", hl.dsp.submap("window"))
|
||||
hl.bind("Super + A", hl.dsp.submap("workspace"))
|
||||
hl.bind("SUPER + X", hl.dsp.submap("launch"))
|
||||
hl.bind("SUPER + D", hl.dsp.submap("device"))
|
||||
hl.bind("SUPER + C", hl.dsp.submap("notifications"))
|
||||
hl.bind("SUPER + G", hl.dsp.submap("groups"))
|
||||
hl.bind("SUPER + S", hl.dsp.submap("screenshot"))
|
||||
hl.bind("SUPER + W", hl.dsp.submap("window"))
|
||||
hl.bind("SUPER + A", hl.dsp.submap("workspace"))
|
||||
hl.bind("SUPER + Q", hl.dsp.window.close())
|
||||
|
||||
hl.bind("Super + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle"))
|
||||
hl.bind("Super + Escape", hl.dsp.exec_cmd("dms ipc call powermenu open"))
|
||||
hl.bind("Super + I", hl.dsp.exec_cmd("dms ipc call control-center open"))
|
||||
hl.bind("Super + ?", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland"))
|
||||
hl.bind("SUPER + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle"))
|
||||
hl.bind("SUPER + Escape", hl.dsp.exec_cmd("dms ipc call powermenu open"))
|
||||
hl.bind("SUPER + I", hl.dsp.exec_cmd("dms ipc call control-center open"))
|
||||
hl.bind("SUPER + CTRL + H", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland"))
|
||||
|
||||
@@ -18,17 +18,17 @@ hl.define_submap("screenshot", function()
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + y", function()
|
||||
hl.bind("SHIFT + y", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-file"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + c", function()
|
||||
hl.bind("SHIFT + c", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + s", function()
|
||||
hl.bind("SHIFT + s", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-copy"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
@@ -2,7 +2,7 @@ local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.bind("Super + Q", hl.dsp.exit())
|
||||
hl.bind("SUPER + Q", hl.dsp.exit())
|
||||
|
||||
hl.define_submap("window", function()
|
||||
hl.bind("x", function()
|
||||
@@ -30,7 +30,7 @@ hl.define_submap("window", function()
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + K", function()
|
||||
hl.bind("SHIFT + K", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Insta-Kill activated' --app-name='Hyprtclt'"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("hyprctl kill"))
|
||||
exit_submap()
|
||||
|
||||
@@ -3,22 +3,22 @@ local function exit_submap()
|
||||
end
|
||||
|
||||
for i = 1, 10, 1 do
|
||||
hl.bind("Super + " .. tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) }))
|
||||
hl.bind("Super + Shift + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
|
||||
hl.bind("SUPER + " .. tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) }))
|
||||
hl.bind("SUPER + SHIFT + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
|
||||
end
|
||||
|
||||
hl.bind("Super + h", hl.dsp.focus({ direction = "l" }))
|
||||
hl.bind("Super + l", hl.dsp.focus({ direction = "r" }))
|
||||
hl.bind("Super + j", hl.dsp.focus({ direction = "d" }))
|
||||
hl.bind("Super + k", hl.dsp.focus({ direction = "u" }))
|
||||
hl.bind("SUPER + h", hl.dsp.focus({ direction = "l" }))
|
||||
hl.bind("SUPER + l", hl.dsp.focus({ direction = "r" }))
|
||||
hl.bind("SUPER + j", hl.dsp.focus({ direction = "d" }))
|
||||
hl.bind("SUPER + k", hl.dsp.focus({ direction = "u" }))
|
||||
|
||||
hl.bind("Super + M", hl.dsp.workspace.toggle_special("main"))
|
||||
hl.bind("Super + Shift + M", hl.dsp.window.move({ workspace = "special:main" }))
|
||||
hl.bind("SUPER + M", hl.dsp.workspace.toggle_special("main"))
|
||||
hl.bind("SUPER + SHIFT + M", hl.dsp.window.move({ workspace = "special:main" }))
|
||||
|
||||
hl.define_submap("notifications", function()
|
||||
for i = 1, 10, 1 do
|
||||
hl.bind(tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) }))
|
||||
hl.bind("Shift + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
|
||||
hl.bind("SHIFT + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))
|
||||
end
|
||||
|
||||
hl.bind("h", hl.dsp.focus({ direction = "l" }))
|
||||
@@ -26,11 +26,11 @@ hl.define_submap("notifications", function()
|
||||
hl.bind("j", hl.dsp.focus({ direction = "d" }))
|
||||
hl.bind("k", hl.dsp.focus({ direction = "u" }))
|
||||
|
||||
hl.bind("Shift + l", hl.dsp.window.move({ workspace = "+1", follow = 1 }))
|
||||
hl.bind("Shift + h", hl.dsp.window.move({ workspace = "-1", follow = 1 }))
|
||||
hl.bind("SHIFT + l", hl.dsp.window.move({ workspace = "+1", follow = 1 }))
|
||||
hl.bind("SHIFT + h", hl.dsp.window.move({ workspace = "-1", follow = 1 }))
|
||||
|
||||
hl.bind("M", hl.dsp.workspace.toggle_special("main"))
|
||||
hl.bind("Shift + M", hl.dsp.window.move({ workspace = "special:main" }))
|
||||
hl.bind("SHIFT + M", hl.dsp.window.move({ workspace = "special:main" }))
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
hl.config({
|
||||
general = {
|
||||
col = {
|
||||
active_border = "rgba(ffaabbcc) rgba(ffaabbcc) rgba(ffaabbcc) 45deg",
|
||||
inactive_border = "rgba(ffaabb33)",
|
||||
},
|
||||
},
|
||||
group = {
|
||||
col = {
|
||||
active_border = "rgba(ffaabb77)",
|
||||
inactive_border = "rgba(ffaabb33)",
|
||||
},
|
||||
},
|
||||
decoration = {
|
||||
shadow = {
|
||||
color = "rgba(ffffff20)",
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
match = { pin = 1 },
|
||||
border_color = "rgba(ffffffaa) rgba(ffffff77)",
|
||||
})
|
||||
@@ -1,11 +1,11 @@
|
||||
--- @param swap_escape boolean
|
||||
return function(swap_escape)
|
||||
hl.config({
|
||||
inputs = {
|
||||
kb_options = swap_escape and "caps:swapescape" or "",
|
||||
input = {
|
||||
-- kb_options = swap_escape and "caps:swapescape" or "",
|
||||
kb_layout = "us",
|
||||
kb_variant = "altgr-intl",
|
||||
natural_scroll = "true",
|
||||
natural_scroll = true,
|
||||
|
||||
numlock_by_default = true,
|
||||
repeat_delay = 400,
|
||||
|
||||
@@ -9,7 +9,6 @@ hl.config({
|
||||
allow_session_lock_restore = true,
|
||||
},
|
||||
dwindle = {
|
||||
pseudotile = true,
|
||||
force_split = 2,
|
||||
preserve_split = true,
|
||||
},
|
||||
|
||||
@@ -48,23 +48,27 @@ hl.animation({
|
||||
hl.animation({
|
||||
leaf = "border",
|
||||
enabled = true,
|
||||
bezier = "default",
|
||||
speed = 8,
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "fade",
|
||||
enabled = true,
|
||||
bezier = "default",
|
||||
speed = 3,
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "workspace",
|
||||
leaf = "workspaces",
|
||||
enabled = true,
|
||||
bezier = "default",
|
||||
speed = 1,
|
||||
})
|
||||
|
||||
hl.animation({
|
||||
leaf = "specialWorkspace",
|
||||
enabled = true,
|
||||
bezier = "default",
|
||||
speed = 1,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user