migrate to lua
This commit is contained in:
parent
2908188146
commit
2985c5e95f
12 changed files with 82 additions and 346 deletions
|
|
@ -1,4 +1,6 @@
|
|||
require("hyprland.bindings")
|
||||
require("hyprland.env")
|
||||
require("hyprland.rules")
|
||||
local M = require("colors")
|
||||
|
||||
-- monitors https://wiki.hypr.land/Configuring/Basics/Monitors/
|
||||
|
|
@ -16,33 +18,30 @@ hl.monitor({
|
|||
scale = 1.20,
|
||||
})
|
||||
|
||||
-- environment
|
||||
hl.env("XDG_SESSION_TYPE", "wayland")
|
||||
hl.env("QT_QPA_PLATFORM", "wayland")
|
||||
hl.on("config.reloaded", function()
|
||||
hl.notification.create({ text = "Config Reloaded" })
|
||||
end)
|
||||
|
||||
hl.env("LIBVA_DRIVER_NAME", "nvidia")
|
||||
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||
hl.env("NVD_BACKEND", "direct")
|
||||
hl.env("GBM_BACKEND", "nvidia-drm")
|
||||
hl.env("__GL_VRR_ALLOWED", "1")
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("gnome-keyring-daemon --start --components=secrets")
|
||||
hl.exec_cmd("hypridle")
|
||||
hl.exec_cmd("swww-daemon")
|
||||
hl.exec_cmd("quickshell")
|
||||
hl.exec_cmd("xsetroot -cursor_name left_ptr")
|
||||
|
||||
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
|
||||
|
||||
hl.env("GTK_THEME", "WhiteSur-Dark")
|
||||
hl.env("ICON_THEME", "WhiteSur-Dark")
|
||||
hl.env("COLOR_SCHEME", "prefer-dark")
|
||||
|
||||
hl.env("XCURSOR_PATH", "/usr/share/icons/:$XDG_DATA_HOME/icons")
|
||||
hl.env("XCURSOR_THEME", "default")
|
||||
hl.env("XCURSOR_SIZE", 24)
|
||||
hl.env("HYPRCURSOR_THEME", "Volantes Cursors")
|
||||
hl.env("HYPRCURSOR_SIZE", 24)
|
||||
|
||||
hl.env("FONT_NAME", "JetBrainsMono Nerd Font 24")
|
||||
hl.env("DOCUMENT_FONT_NAME", "Cantarell 24")
|
||||
hl.env("MONOSPACE_FONT_NAME", "JetBrainsMono Nerd Font 24")
|
||||
hl.env("FONT_ANTIALIASING", "rgba")
|
||||
hl.env("FONT_HINTING", "full")
|
||||
hl.exec_cmd("thunderbird", { workspace = "1 silent" })
|
||||
hl.exec_cmd('proton-mail --password-store="gnome-libsecret"', { workspace = "1 silent" })
|
||||
hl.exec_cmd("discord --enable-features=UseOzonePlatform --ozone-platform=wayland", { workspace = "2 silent" })
|
||||
hl.exec_cmd('signal-desktop --password-store="gnome-libsecret"', { workspace = "2 silent" })
|
||||
hl.exec_cmd("zen-browser", { workspace = "3 silent" })
|
||||
hl.exec_cmd("alacritty", { workspace = "4 silent" })
|
||||
hl.exec_cmd("steam", { workspace = "5 silent" })
|
||||
hl.exec_cmd("alacritty", { workspace = "special:terminal silent" })
|
||||
hl.exec_cmd(
|
||||
"tidal-hifi --enable-features=UseOzonePlatform --ozone-platform=wayland",
|
||||
{ workspace = "special:music silent" }
|
||||
)
|
||||
end)
|
||||
|
||||
-- bindings
|
||||
|
||||
|
|
@ -57,31 +56,14 @@ hl.env("FONT_HINTING", "full")
|
|||
-- natural_scroll = "no",
|
||||
-- })
|
||||
|
||||
-- general https://wiki.hypr.land/Configuring/Basics/Variables/#general
|
||||
-- hl.general({
|
||||
-- gaps_in = 10,
|
||||
-- gaps_out = 10,
|
||||
-- border_size = 3,
|
||||
-- layout = "dwindle",
|
||||
-- allow_tearing = true,
|
||||
-- })
|
||||
|
||||
-- layout https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/
|
||||
hl.config({
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
})
|
||||
|
||||
-- animations https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/
|
||||
|
||||
-- colour
|
||||
-- hl.general.col.active_border = { colors = { color4, color13 }, angle = 45 }
|
||||
-- hl.general.col.inactive_border = { colors = { color0 } }
|
||||
|
||||
-- config https://wiki.hypr.land/Configuring/Basics/Variables
|
||||
hl.config({
|
||||
general = {
|
||||
gaps_in = 10,
|
||||
gaps_out = 10,
|
||||
border_size = 3,
|
||||
layout = "dwindle",
|
||||
allow_tearing = true,
|
||||
col = {
|
||||
active_border = { colors = { M.color4, M.color13 }, angle = 45 },
|
||||
inactive_border = { colors = { M.color0 } },
|
||||
|
|
@ -102,6 +84,9 @@ hl.config({
|
|||
color = "#1a1a1aee",
|
||||
},
|
||||
},
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
misc = {
|
||||
force_default_wallpaper = 0,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue