Gaming shit
This commit is contained in:
@@ -52,27 +52,27 @@ hl.animation({
|
|||||||
hl.animation({
|
hl.animation({
|
||||||
leaf = "layersIn",
|
leaf = "layersIn",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
speed = 5,
|
speed = 2,
|
||||||
bezier = "linear",
|
bezier = "linear",
|
||||||
style = "fade"
|
style = "fade"
|
||||||
})
|
})
|
||||||
hl.animation({
|
hl.animation({
|
||||||
leaf = "layersOut",
|
leaf = "layersOut",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
speed = 5,
|
speed = 2,
|
||||||
bezier = "linear",
|
bezier = "linear",
|
||||||
style = "fade"
|
style = "fade"
|
||||||
})
|
})
|
||||||
hl.animation({
|
hl.animation({
|
||||||
leaf = "fadeLayersIn",
|
leaf = "fadeLayersIn",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
speed = 5,
|
speed = 2,
|
||||||
bezier = "linear"
|
bezier = "linear"
|
||||||
})
|
})
|
||||||
hl.animation({
|
hl.animation({
|
||||||
leaf = "fadeLayersOut",
|
leaf = "fadeLayersOut",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
speed = 5,
|
speed = 2,
|
||||||
bezier = "linear"
|
bezier = "linear"
|
||||||
})
|
})
|
||||||
hl.animation({
|
hl.animation({
|
||||||
|
|||||||
@@ -201,6 +201,10 @@ bind("SUPER + SUPER_R", hl.dsp.workspace.toggle_special(), {device = {inclusive
|
|||||||
bind('ALT + SLASH', hl.dsp.send_shortcut({mods = 'ALT', key = 'LEFT'}))
|
bind('ALT + SLASH', hl.dsp.send_shortcut({mods = 'ALT', key = 'LEFT'}))
|
||||||
bind('ALT + EQUAL', hl.dsp.send_shortcut({mods = 'ALT', key = 'RIGHT'}))
|
bind('ALT + EQUAL', hl.dsp.send_shortcut({mods = 'ALT', key = 'RIGHT'}))
|
||||||
|
|
||||||
|
-- Discord mute/deafen
|
||||||
|
bind('KP_UP', hl.dsp.send_shortcut({mods = 'CTRL SHIFT', key = 'M', window = 'class:vesktop'}))
|
||||||
|
bind('KP_PRIOR', hl.dsp.send_shortcut({mods = 'CTRL SHIFT', key = 'D', window = 'class:vesktop'}))
|
||||||
|
|
||||||
-- Switch keyboard layouts
|
-- Switch keyboard layouts
|
||||||
bind('SUPER + RETURN', function()
|
bind('SUPER + RETURN', function()
|
||||||
if hl.get_config('input.kb_variant') == 'dvorak' then
|
if hl.get_config('input.kb_variant') == 'dvorak' then
|
||||||
|
|||||||
+13
-4
@@ -37,6 +37,10 @@ map_monitors()
|
|||||||
hl.on('monitor.added', map_monitors)
|
hl.on('monitor.added', map_monitors)
|
||||||
hl.on('monitor.removed', map_monitors)
|
hl.on('monitor.removed', map_monitors)
|
||||||
|
|
||||||
|
hl.monitor({
|
||||||
|
output = 'HDMI-A-1',
|
||||||
|
})
|
||||||
|
|
||||||
-- Special workspace
|
-- Special workspace
|
||||||
hl.workspace_rule({ workspace = "s[true]", gaps_out = 64, gaps_in = 12})
|
hl.workspace_rule({ workspace = "s[true]", gaps_out = 64, gaps_in = 12})
|
||||||
|
|
||||||
@@ -102,10 +106,15 @@ hl.window_rule({
|
|||||||
})
|
})
|
||||||
hl.window_rule({
|
hl.window_rule({
|
||||||
match = {
|
match = {
|
||||||
title = '.*\'s Stream'
|
title = 'Discord Popout',
|
||||||
},
|
},
|
||||||
pin = true,
|
float = true,
|
||||||
float = true
|
pin = true
|
||||||
|
})
|
||||||
|
hl.window_rule({
|
||||||
|
match = { title = '.*\'s Stream', float = true },
|
||||||
|
opacity = 0.9,
|
||||||
|
no_blur = true,
|
||||||
})
|
})
|
||||||
hl.layer_rule({
|
hl.layer_rule({
|
||||||
match = { namespace = "quickshell" },
|
match = { namespace = "quickshell" },
|
||||||
@@ -125,7 +134,7 @@ hl.on("window.active", function(window, active)
|
|||||||
end
|
end
|
||||||
if window.class:find("zen") == 1 then
|
if window.class:find("zen") == 1 then
|
||||||
hl.dispatch(hl.dsp.submap("zen"))
|
hl.dispatch(hl.dsp.submap("zen"))
|
||||||
elseif window.class:find("Minecraft") == 1 then
|
elseif window.class:find("Minecraft") == 1 or window.class:find("com.mojang.minecraft") == 1 then
|
||||||
hl.dispatch(hl.dsp.submap("mcsr"))
|
hl.dispatch(hl.dsp.submap("mcsr"))
|
||||||
else
|
else
|
||||||
hl.dispatch(hl.dsp.submap("reset"))
|
hl.dispatch(hl.dsp.submap("reset"))
|
||||||
|
|||||||
Reference in New Issue
Block a user