init
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- This file will not be overwritten across dots-hyprland updates.
|
||||
-- The file name is for the sake of organization and does not matter
|
||||
-- See the corresponding files in ~/.config/hypr/hyprland for examples
|
||||
@@ -0,0 +1,3 @@
|
||||
-- This file will not be overwritten across dots-hyprland updates.
|
||||
-- The file name is for the sake of organization and does not matter
|
||||
-- See the corresponding files in ~/.config/hypr/hyprland for examples
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
-- This file will not be overwritten across dots-hyprland updates.
|
||||
-- The file name is for the sake of organization and does not matter
|
||||
-- See the corresponding files in ~/.config/hypr/hyprland for examples
|
||||
if is_file_exists(HOME .. "/.config/hypr/monitors.lua") then
|
||||
require("monitors")
|
||||
end
|
||||
|
||||
hl.config({
|
||||
input = {
|
||||
kb_layout = "de",
|
||||
numlock_by_default = true,
|
||||
repeat_delay = 250,
|
||||
repeat_rate = 35,
|
||||
|
||||
follow_mouse = 1,
|
||||
off_window_axis_events = 2,
|
||||
|
||||
accel_profile = "flat",
|
||||
|
||||
touchpad = {
|
||||
natural_scroll = true,
|
||||
disable_while_typing = true,
|
||||
clickfinger_behavior = true,
|
||||
scroll_factor = 0.5
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,54 @@
|
||||
-- This file will not be overwritten across dots-hyprland updates.
|
||||
-- The file name is for the sake of organization and does not matter
|
||||
-- See the corresponding files in ~/.config/hypr/hyprland for examples
|
||||
hl.unbind("Super + Slash")
|
||||
hl.bind("SUPER + Space", hl.dsp.global("quickshell:cheatsheetToggle"), { description = "Shell: Toggle cheatsheet" })
|
||||
|
||||
hl.unbind("Super + mouse:272")
|
||||
hl.unbind("Super + mouse:273")
|
||||
hl.unbind("Super + mouse:274")
|
||||
|
||||
hl.bind("ALT + mouse:272", hl.dsp.window.drag(), { mouse = true, description = "Window: Move" })
|
||||
hl.bind("ALT + mouse:273", hl.dsp.window.resize(), { mouse = true, description = "Window: Resize" })
|
||||
hl.bind("ALT + mouse:274", hl.dsp.window.drag(), { mouse = true })
|
||||
|
||||
for i = 1, 4 do
|
||||
local arrowkey = { "Left", "Right", "Up", "Down" }
|
||||
local focusdir = { "l", "r", "u", "d" }
|
||||
hl.unbind("SUPER + " .. arrowkey[i])
|
||||
hl.unbind("SUPER + SHIFT + " .. arrowkey[i])
|
||||
hl.bind("SUPER + SHIFT + " .. arrowkey[i], hl.dsp.focus({ direction = focusdir[i] }),
|
||||
{ description = "Window: Focus " .. arrowkey[i] })
|
||||
hl.bind("SUPER + " .. arrowkey[i], hl.dsp.window.move({ direction = focusdir[i] }),
|
||||
{ description = "Window: Move " .. arrowkey[i] })
|
||||
end
|
||||
|
||||
hl.unbind("Super + Q")
|
||||
hl.unbind("ALT + F4")
|
||||
hl.bind("ALT + F4", hl.dsp.window.close(), { description = "Window: Close" })
|
||||
|
||||
for i = 1, 10 do
|
||||
hl.unbind("SUPER + ALT + code:" .. i + 9)
|
||||
hl.unbind("SUPER + ALT + code:" .. i + 86)
|
||||
hl.bind("SUPER + code:" .. i + 9, function()
|
||||
hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = false }))
|
||||
end)
|
||||
hl.bind("SUPER + code:" .. i + 86, function()
|
||||
hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = false }))
|
||||
end)
|
||||
end
|
||||
|
||||
for i = 1, 2 do
|
||||
local keydirs = { "Up", "Down" }
|
||||
local prefix = { "r-", "r+" }
|
||||
local descdir = { "left", "right" }
|
||||
hl.unbind("SUPER + SHIFT + Page_" .. keydirs[i])
|
||||
hl.bind("SUPER + Page_" .. keydirs[i], hl.dsp.window.move({ workspace = prefix[i] .. "1" }), {description = "Window: Send to workspace " .. descdir[i]})
|
||||
end
|
||||
|
||||
hl.unbind("Super + W")
|
||||
hl.unbind("Super + C")
|
||||
hl.unbind("Super + X")
|
||||
hl.bind("SUPER + X", hl.dsp.exec_cmd(codeEditor), { description = "App: Code editor" })
|
||||
hl.bind("SUPER + C", hl.dsp.exec_cmd(codeEditor), { description = "App: Code editor" })
|
||||
hl.bind("SUPER + W", hl.dsp.exec_cmd(browser), { description = "App: Browser" })
|
||||
@@ -0,0 +1,3 @@
|
||||
-- This file will not be overwritten across dots-hyprland updates.
|
||||
-- The file name is for the sake of organization and does not matter
|
||||
-- See the corresponding files in ~/.config/hypr/hyprland for examples
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
# The content of this script will be generated by switchwall.sh - Don't modify it by yourself.
|
||||
@@ -0,0 +1,5 @@
|
||||
-- This file will not be overwritten across dots-hyprland updates.
|
||||
-- The file name is for the sake of organization and does not matter
|
||||
-- See the corresponding files in ~/.config/hypr/hyprland for examples
|
||||
|
||||
browser = "~/.config/hypr/hyprland/scripts/launch_first_available.sh 'google-chrome-stable' 'zen-browser' 'firefox -P' 'brave' 'chromium' 'microsoft-edge-stable' 'opera' 'librewolf'"
|
||||
Reference in New Issue
Block a user