|
|
@ -3,6 +3,7 @@ local task_e = TaskE or '' |
|
|
|
|
|
|
|
|
local utils = require('land.utils') |
|
|
local utils = require('land.utils') |
|
|
local dropdown = require('land.tools.dropdown') |
|
|
local dropdown = require('land.tools.dropdown') |
|
|
|
|
|
local deskentry = require('land.tools.deskentry') |
|
|
|
|
|
|
|
|
------------- |
|
|
------------- |
|
|
-- Hyprland |
|
|
-- Hyprland |
|
|
@ -10,35 +11,10 @@ local dropdown = require('land.tools.dropdown') |
|
|
-- |
|
|
-- |
|
|
-- base |
|
|
-- base |
|
|
-- |
|
|
-- |
|
|
hl.bind(main_mod .. ' + H', utils.layout_bind { |
|
|
hl.bind(main_mod .. ' + R', hl.dsp.reload_config()) |
|
|
monocle = hl.dsp.layout('cycleprev'), |
|
|
|
|
|
default = hl.dsp.focus { direction = 'l' }, |
|
|
|
|
|
}) |
|
|
|
|
|
hl.bind(main_mod .. ' + L', utils.layout_bind { |
|
|
|
|
|
monocle = hl.dsp.layout('cyclenext'), |
|
|
|
|
|
default = hl.dsp.focus { direction = 'r' } |
|
|
|
|
|
}) |
|
|
|
|
|
hl.bind(main_mod .. ' + J', hl.dsp.focus { direction = 'd' }) |
|
|
|
|
|
hl.bind(main_mod .. ' + K', hl.dsp.focus { direction = 'u' }) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind('ALT + H', hl.dsp.focus {monitor = 'l'}) |
|
|
|
|
|
hl.bind('ALT + L', hl.dsp.focus {monitor = 'r'}) |
|
|
|
|
|
hl.bind('ALT + J', hl.dsp.focus {monitor = 'd'}) |
|
|
|
|
|
hl.bind('ALT + K', hl.dsp.focus {monitor = 'u'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + H', hl.dsp.focus {monitor = 'l'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + L', hl.dsp.focus {monitor = 'r'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + J', hl.dsp.focus {monitor = 'd'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + K', hl.dsp.focus {monitor = 'u'}) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + TAB', hl.dsp.focus { monitor = '+1' }) |
|
|
|
|
|
hl.bind('ALT + TAB', hl.dsp.focus { monitor = '+1' }) |
|
|
|
|
|
|
|
|
|
|
|
for i = 1, 9 do |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + ' .. i, hl.dsp.dpms { action = 'toggle', monitor = 'DP-' .. i }) -- toggle monitors on/off(not physically, as in idle-screensaver.) |
|
|
|
|
|
end |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + 0', hl.dsp.dpms()) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + SHIFT + E', hl.dsp.exec_raw('tofi-power --height=240')) |
|
|
hl.bind(main_mod .. ' + SHIFT + E', hl.dsp.exec_raw('tofi-power --height=240')) |
|
|
|
|
|
--hl.bind(main_mod .. ' + SHIFT + E', tofipower.dsp.run()) |
|
|
|
|
|
|
|
|
-- |
|
|
-- |
|
|
-- window |
|
|
-- window |
|
|
@ -55,18 +31,31 @@ hl.bind(main_mod .. ' + mouse:272', hl.dsp.window.drag(), { mouse = true }) |
|
|
hl.bind(main_mod .. ' + mouse:273', hl.dsp.window.resize(), { mouse = true }) |
|
|
hl.bind(main_mod .. ' + mouse:273', hl.dsp.window.resize(), { mouse = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + mouse:273', hl.dsp.window.resize { keep_aspect_ratio = true }, { mouse = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + mouse:273', hl.dsp.window.resize { keep_aspect_ratio = true }, { mouse = true }) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + H', utils.layout_bind { |
|
|
|
|
|
monocle = hl.dsp.layout('cycleprev'), |
|
|
|
|
|
default = hl.dsp.focus { direction = 'l' }, |
|
|
|
|
|
}) |
|
|
|
|
|
hl.bind(main_mod .. ' + L', utils.layout_bind { |
|
|
|
|
|
monocle = hl.dsp.layout('cyclenext'), |
|
|
|
|
|
default = hl.dsp.focus { direction = 'r' } |
|
|
|
|
|
}) |
|
|
|
|
|
hl.bind(main_mod .. ' + J', hl.dsp.focus { direction = 'd' }) |
|
|
|
|
|
hl.bind(main_mod .. ' + K', hl.dsp.focus { direction = 'u' }) |
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + SHIFT + H', utils.layout_bind { |
|
|
hl.bind(main_mod .. ' + SHIFT + H', utils.layout_bind { |
|
|
|
|
|
scrolling = hl.dsp.window.swap { direction = 'l' }, |
|
|
default = hl.dsp.window.move { direction = 'l' }, |
|
|
default = hl.dsp.window.move { direction = 'l' }, |
|
|
}) |
|
|
}) |
|
|
|
|
|
hl.bind(main_mod .. ' + SHIFT + H', hl.dsp.window.move { direction = 'l' }, { long_press = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + L', utils.layout_bind { |
|
|
hl.bind(main_mod .. ' + SHIFT + L', utils.layout_bind { |
|
|
|
|
|
scrolling = hl.dsp.window.swap { direction = 'r' }, |
|
|
default = hl.dsp.window.move { direction = 'r' }, |
|
|
default = hl.dsp.window.move { direction = 'r' }, |
|
|
}) |
|
|
}) |
|
|
|
|
|
hl.bind(main_mod .. ' + SHIFT + L', hl.dsp.window.move { direction = 'r' }, { long_press = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + J', utils.layout_bind { |
|
|
hl.bind(main_mod .. ' + SHIFT + J', utils.layout_bind { |
|
|
scrolling = hl.dsp.window.move { monitor = 'd' }, |
|
|
|
|
|
default = hl.dsp.window.move { direction = 'd' }, |
|
|
default = hl.dsp.window.move { direction = 'd' }, |
|
|
}) |
|
|
}) |
|
|
hl.bind(main_mod .. ' + SHIFT + K', utils.layout_bind { |
|
|
hl.bind(main_mod .. ' + SHIFT + K', utils.layout_bind { |
|
|
scrolling = hl.dsp.window.move { monitor = 'u' }, |
|
|
|
|
|
default = hl.dsp.window.move { direction = 'u' }, |
|
|
default = hl.dsp.window.move { direction = 'u' }, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
@ -91,6 +80,36 @@ hl.bind(main_mod .. ' + period', hl.dsp.focus { workspace = 'm+1' }) |
|
|
hl.bind(main_mod .. ' + N', hl.dsp.workspace.toggle_special()) |
|
|
hl.bind(main_mod .. ' + N', hl.dsp.workspace.toggle_special()) |
|
|
hl.bind(main_mod .. ' + M', hl.dsp.window.move { workspace = 'special' }) |
|
|
hl.bind(main_mod .. ' + M', hl.dsp.window.move { workspace = 'special' }) |
|
|
|
|
|
|
|
|
|
|
|
----------- |
|
|
|
|
|
-- Layout |
|
|
|
|
|
----------- |
|
|
|
|
|
hl.bind(main_mod .. ' + minus', hl.dsp.layout('colresize -conf')) |
|
|
|
|
|
hl.bind(main_mod .. ' + equal', hl.dsp.layout('colresize +conf')) |
|
|
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
|
-- monitor |
|
|
|
|
|
-- |
|
|
|
|
|
hl.bind('ALT + H', hl.dsp.focus {monitor = 'l'}) |
|
|
|
|
|
hl.bind('ALT + L', hl.dsp.focus {monitor = 'r'}) |
|
|
|
|
|
hl.bind('ALT + J', hl.dsp.focus {monitor = 'd'}) |
|
|
|
|
|
hl.bind('ALT + K', hl.dsp.focus {monitor = 'u'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + H', hl.dsp.focus {monitor = 'l'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + L', hl.dsp.focus {monitor = 'r'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + J', hl.dsp.focus {monitor = 'd'}) |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + K', hl.dsp.focus {monitor = 'u'}) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + TAB', hl.dsp.focus { monitor = '+1' }) |
|
|
|
|
|
hl.bind('ALT + TAB', hl.dsp.focus { monitor = '+1' }) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + F1', hl.dsp.window.move { monitor = 'DP-1' }) |
|
|
|
|
|
hl.bind(main_mod .. ' + F2', hl.dsp.window.move { monitor = 'DP-2' }) |
|
|
|
|
|
hl.bind(main_mod .. ' + F4', hl.dsp.window.move { monitor = 'DP-4' }) |
|
|
|
|
|
|
|
|
|
|
|
for i = 1, 9 do |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + ' .. i, hl.dsp.dpms { action = 'toggle', monitor = 'DP-' .. i }) -- toggle monitors on/off(not physically, as in idle-screensaver.) |
|
|
|
|
|
end |
|
|
|
|
|
hl.bind(main_mod .. ' + CTRL + 0', hl.dsp.dpms()) |
|
|
|
|
|
|
|
|
-- |
|
|
-- |
|
|
-- group |
|
|
-- group |
|
|
-- |
|
|
-- |
|
|
@ -99,12 +118,6 @@ hl.bind(main_mod .. ' + M', hl.dsp.window.move { workspace = 'special' }) |
|
|
-- cursor |
|
|
-- cursor |
|
|
-- |
|
|
-- |
|
|
|
|
|
|
|
|
----------- |
|
|
|
|
|
-- Layout |
|
|
|
|
|
----------- |
|
|
|
|
|
hl.bind(main_mod .. ' + minus', hl.dsp.layout('colresize -conf')) |
|
|
|
|
|
hl.bind(main_mod .. ' + equal', hl.dsp.layout('colresize +conf')) |
|
|
|
|
|
|
|
|
|
|
|
--------- |
|
|
--------- |
|
|
-- Apps |
|
|
-- Apps |
|
|
--------- |
|
|
--------- |
|
|
@ -125,21 +138,19 @@ hl.bind(main_mod .. ' + bracketright', hl.dsp.exec_raw('playerctl next')) |
|
|
hl.bind(main_mod .. ' + SHIFT + bracketleft', hl.dsp.exec_raw('playerctl position 5-'), { repeating = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + bracketleft', hl.dsp.exec_raw('playerctl position 5-'), { repeating = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + bracketright', hl.dsp.exec_raw('playerctl position 5+'), { repeating = true }) |
|
|
hl.bind(main_mod .. ' + SHIFT + bracketright', hl.dsp.exec_raw('playerctl position 5+'), { repeating = true }) |
|
|
|
|
|
|
|
|
-- screenshot |
|
|
|
|
|
hl.bind('Print', hl.plugin.hyprcapture.open) |
|
|
|
|
|
hl.bind(main_mod .. ' + S', hl.plugin.hyprcapture.open) |
|
|
|
|
|
|
|
|
|
|
|
-- waybar |
|
|
-- waybar |
|
|
hl.bind(main_mod .. ' + T', hl.dsp.exec_raw('killall waybar || waybar')) |
|
|
hl.bind(main_mod .. ' + T', hl.dsp.exec_raw('pkill -USR1 waybar')) |
|
|
|
|
|
|
|
|
-- terminal |
|
|
-- terminal |
|
|
hl.bind(main_mod .. ' + Return', hl.dsp.exec_raw(task_e .. 'kitty')) |
|
|
hl.bind(main_mod .. ' + Return', hl.dsp.exec_raw(task_e .. 'kitty')) |
|
|
hl.bind(main_mod .. ' + SHIFT + Return', hl.dsp.exec_cmd(task_e .. 'kitty', { float = true, center = true, size = {1200, 800} })) |
|
|
hl.bind(main_mod .. ' + SHIFT + Return', hl.dsp.exec_cmd(task_e .. 'kitty', { float = true, center = true, size = {1200, 800} })) |
|
|
|
|
|
hl.bind('XF86AudioMute', dropdown.dsp.toggle(task_e .. 'kitty --class kitty-musicfox musicfox')) |
|
|
hl.bind(main_mod .. ' + F9', dropdown.dsp.toggle(task_e .. 'kitty --class kitty-musicfox musicfox')) |
|
|
hl.bind(main_mod .. ' + F9', dropdown.dsp.toggle(task_e .. 'kitty --class kitty-musicfox musicfox')) |
|
|
|
|
|
|
|
|
-- browser |
|
|
-- browser |
|
|
|
|
|
--hl.bind(main_mod .. ' + B', hl.dsp.exec_cmd('dex /var/lib/flatpak/exports/share/applications/app.zen_browser.zen.desktop', { workspace = 3 })) |
|
|
|
|
|
hl.bind(main_mod .. ' + B', deskentry.dsp.exec('/var/lib/flatpak/exports/share/applications/app.zen_browser.zen.desktop', nil, { workspace = 3 })) |
|
|
hl.bind(main_mod .. ' + SHIFT + B', hl.dsp.exec_cmd('chromany', { workspace = 3 })) |
|
|
hl.bind(main_mod .. ' + SHIFT + B', hl.dsp.exec_cmd('chromany', { workspace = 3 })) |
|
|
hl.bind(main_mod .. ' + B', hl.dsp.exec_cmd('dex /var/lib/flatpak/exports/share/applications/app.zen_browser.zen.desktop', { workspace = 3 })) |
|
|
|
|
|
|
|
|
|
|
|
hl.bind(main_mod .. ' + Y', function () |
|
|
hl.bind(main_mod .. ' + Y', function () |
|
|
if hl.get_window('') then |
|
|
if hl.get_window('') then |
|
|
|