feat: hyprland done, testing needed, add wlogout config
This commit is contained in:
@@ -28,6 +28,21 @@ return function(is_laptop)
|
||||
end)
|
||||
end
|
||||
|
||||
hl.bind("Shift + T", function ()
|
||||
hl.device({
|
||||
name = "pnp0c50:00-093a:0255-touchpad",
|
||||
enabled = false
|
||||
})
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Disabled Trackpad' --app-name='Hyprctl'"))
|
||||
end)
|
||||
hl.bind("T", function ()
|
||||
hl.device({
|
||||
name = "pnp0c50:00-093a:0255-touchpad",
|
||||
enabled = true
|
||||
})
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Enabled Trackpad' --app-name='Hyprctl'"))
|
||||
end)
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
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 + Space", hl.dsp.exec_cmd("hyprlauncher"))
|
||||
hl.bind("Super + Escape", hl.dsp.exec_cmd("wlogout"))
|
||||
@@ -1,4 +1,3 @@
|
||||
-- TODO: colours
|
||||
hl.config({
|
||||
group = {
|
||||
auto_group = false,
|
||||
|
||||
@@ -4,6 +4,8 @@ hl.on("hyprland.start", function()
|
||||
-- hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
|
||||
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||
hl.exec_cmd("hypridle")
|
||||
hl.exec_cmd("hyprpaper")
|
||||
hl.exec_cmd("hyprlauncher -d")
|
||||
hl.exec_cmd("nm-applet")
|
||||
hl.exec_cmd("nextcloud --background")
|
||||
hl.exec_cmd("quickshell")
|
||||
|
||||
Reference in New Issue
Block a user