mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-07-23 10:51:02 +10:00
Update hyprland config
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- 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.env("XCURSOR_THEME", "Catppuccin Macchiato Dark")
|
||||
hl.env("XCURSOR_SIZE", "24")
|
||||
hl.env("HYPRCURSOR_THEME", "Catppuccin Macchiato Dark")
|
||||
hl.env("HYPRCURSOR_SIZE", "24")
|
||||
hl.env("WEBKIT_DISABLE_DMABUF_RENDERER", "1")
|
||||
@@ -0,0 +1,16 @@
|
||||
-- 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.on("hyprland.start", function()
|
||||
hl.exec_cmd("hyprctl setcursor 'Catppuccin Macchiato Dark' 24")
|
||||
hl.exec_cmd("kdeconnectd &")
|
||||
hl.exec_cmd("zen-browser &")
|
||||
hl.exec_cmd("sleep 5 && syncthingtray-qt6 --wait &")
|
||||
hl.exec_cmd("mages &")
|
||||
hl.exec_cmd("sleep 30 && trayscale --hide-window &")
|
||||
hl.exec_cmd("rclone mount SchoolGdrive: /mnt/SchoolGdrive --dir-cache-time 10s --poll-interval 10s --attr-timeout 10s --size-only")
|
||||
hl.exec_cmd("rclone mount PersonalGdrive: /mnt/PersonalGdrive --dir-cache-time 10s --poll-interval 10s --attr-timeout 10s --size-only")
|
||||
hl.exec_cmd("rclone mount gcrypt: /mnt/gcrypt --dir-cache-time 10s --poll-interval 10s --attr-timeout 10s --size-only")
|
||||
hl.exec_cmd("trayscale --hide-window")
|
||||
end)
|
||||
@@ -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,63 @@
|
||||
-- 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
|
||||
|
||||
--##! Overrides
|
||||
--# Unbind upstream binds we want to replace
|
||||
hl.unbind("SUPER + B") -- sidebar toggle -> we use this for browser
|
||||
hl.unbind("SUPER + T") -- terminal (we don't want this combo)
|
||||
hl.unbind("CTRL + ALT + T") -- terminal (we don't want this combo)
|
||||
hl.unbind("SUPER + W") -- browser (we use B instead)
|
||||
hl.unbind("SUPER + ALT + Page_Up")
|
||||
hl.unbind("SUPER + ALT + Page_Down")
|
||||
hl.unbind("SUPER + SHIFT + Page_Up")
|
||||
hl.unbind("SUPER + SHIFT + Page_Down")
|
||||
hl.unbind("SUPER + O")
|
||||
|
||||
--# Unbind workspace focus with named keys (we use code: keys)
|
||||
for i = 0, 9 do
|
||||
hl.unbind("SUPER + " .. i)
|
||||
end
|
||||
|
||||
--# Rebind browser on B (previously sidebar toggle)
|
||||
hl.bind("SUPER + B", hl.dsp.exec_cmd(browser), { description = "App: Browser" })
|
||||
|
||||
--##! Workspace
|
||||
--# Switching with raw keycodes (layout-independent)
|
||||
for i = 1, 10 do
|
||||
local numberkey = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
|
||||
hl.bind("SUPER + code:" .. numberkey[i], function()
|
||||
hl.dispatch(hl.dsp.focus({ workspace = workspace_in_group(i) }))
|
||||
end)
|
||||
end
|
||||
--# keypad numbers
|
||||
for i = 1, 10 do
|
||||
local numpadkey = { 87, 88, 89, 83, 84, 85, 79, 80, 81, 90 }
|
||||
hl.bind("SUPER + code:" .. numpadkey[i], function()
|
||||
hl.dispatch(hl.dsp.focus({ workspace = workspace_in_group(i) }))
|
||||
end)
|
||||
end
|
||||
|
||||
--#/# bind = SUPER+CTRL, code:,, -- Send to workspace & switch
|
||||
for i = 1, 10 do
|
||||
local numberkey = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
|
||||
hl.bind("SUPER + CTRL + code:" .. numberkey[i], function()
|
||||
hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = true }))
|
||||
end)
|
||||
end
|
||||
--# keypad numbers
|
||||
for i = 1, 10 do
|
||||
local numpadkey = { 87, 88, 89, 83, 84, 85, 79, 80, 81, 90 }
|
||||
hl.bind("SUPER + CTRL + code:" .. numpadkey[i], function()
|
||||
hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = true }))
|
||||
end)
|
||||
end
|
||||
|
||||
--#/# bind = SUPER+ALT+SHIFT, Page_↑/↓,, -- Send to workspace left/right
|
||||
for i = 1, 6 do
|
||||
local key = { "SUPER + ALT + Page_", "SUPER + SHIFT + Page_", "CTRL + SUPER + SHIFT + " }
|
||||
local keycombos =
|
||||
{ key[1] .. "down", key[1] .. "up", key[2] .. "down", key[2] .. "up", key[3] .. "Right", key[3] .. "Left" }
|
||||
local prefix = { "+", "-", "r+", "r-", "r+", "r-" }
|
||||
hl.bind(keycombos[i], hl.dsp.window.move({ workspace = prefix[i] .. "1" })) -- # [hidden]
|
||||
end
|
||||
@@ -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,8 @@
|
||||
-- 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
|
||||
|
||||
terminal = "kitty"
|
||||
browser = "zen-browser"
|
||||
codeEditor = "nvim"
|
||||
textEditor = "obsidian"
|
||||
Reference in New Issue
Block a user