update
This commit is contained in:
parent
5cb1b9302f
commit
719edc78e6
|
@ -16,7 +16,7 @@ listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 300 # 5min
|
timeout = 420 # 7min
|
||||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
autogenerated = 0 # remove this line to remove the warning
|
autogenerated = 0 # remove this line to remove the warning
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=eDP-1,1920x1080@60,auto,1.333333
|
# monitor=eDP-1,1920x1080@60,auto,1.333333
|
||||||
# monitor=eDP-1,1920x1080@60,auto,1
|
monitor=eDP-1,1920x1080@60,auto,1
|
||||||
# monitor=eDP-1,disable
|
# monitor=eDP-1,disable
|
||||||
monitor=HDMI-A-1,2560x1440@144,auto,1
|
monitor=HDMI-A-1,2560x1440@144,auto,1
|
||||||
# monitor=HDMI-A-1,1920x1080@60,auto,1
|
# monitor=HDMI-A-1,1920x1080@60,auto,1
|
||||||
|
@ -25,6 +25,7 @@ $fileManager = nemo
|
||||||
$menu = wofi --show drun
|
$menu = wofi --show drun
|
||||||
$screenlock = hyprlock
|
$screenlock = hyprlock
|
||||||
$hide_waybar = killall -SIGUSR1 waybar
|
$hide_waybar = killall -SIGUSR1 waybar
|
||||||
|
$sleep = systemctl suspend
|
||||||
|
|
||||||
# Some default env vars.
|
# Some default env vars.
|
||||||
env = XCURSOR_SIZE,24
|
env = XCURSOR_SIZE,24
|
||||||
|
@ -207,6 +208,8 @@ bind = CTRL ALT, right, workspace, e+1
|
||||||
bind = CTRL ALT, left, workspace, e-1
|
bind = CTRL ALT, left, workspace, e-1
|
||||||
# screenlock
|
# screenlock
|
||||||
bind = $mainMod, L, exec, $screenlock
|
bind = $mainMod, L, exec, $screenlock
|
||||||
|
# sleep
|
||||||
|
bind = $mainMod SHIFT, L, exec, $sleep
|
||||||
# tab workspaces
|
# tab workspaces
|
||||||
bind = $mainMod, TAB, workspace, e+1
|
bind = $mainMod, TAB, workspace, e+1
|
||||||
# Fullscreen mode
|
# Fullscreen mode
|
||||||
|
|
|
@ -9,7 +9,7 @@ widget_name {
|
||||||
|
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/Pictures/wallpapers/flowers3.jpg
|
path = ~/Pictures/wallpapers/carter-obasohan-5WhZV-CvJZw-unsplash.jpg
|
||||||
# color = rgba(25, 20, 20, 1.0)
|
# color = rgba(25, 20, 20, 1.0)
|
||||||
|
|
||||||
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
|
||||||
|
@ -68,7 +68,8 @@ input-field {
|
||||||
label {
|
label {
|
||||||
monitor =
|
monitor =
|
||||||
text = [$TIME]
|
text = [$TIME]
|
||||||
color = rgba(200, 200, 200, 1.0)
|
# color = rgba(200, 200, 200, 1.0)
|
||||||
|
color = rgba(6, 19, 54, 1.0)
|
||||||
font_size = 46
|
font_size = 46
|
||||||
font_family = Noto Sans
|
font_family = Noto Sans
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# preload = /usr/share/backgrounds/manjaro/beehive4k-d.png
|
#preload = /home/yash/Pictures/wallpapers/flowers3.jpg
|
||||||
preload = /home/yash/Pictures/wallpapers/flowers3.jpg
|
preload = /home/yash/Pictures/wallpapers/carter-obasohan-5WhZV-CvJZw-unsplash.jpg
|
||||||
|
|
||||||
wallpaper = eDP-1,/home/yash/Pictures/wallpapers/flowers3.jpg
|
wallpaper = eDP-1,/home/yash/Pictures/wallpapers/carter-obasohan-5WhZV-CvJZw-unsplash.jpg
|
||||||
wallpaper = HDMI-A-1,/home/yash/Pictures/wallpapers/flowers3.jpg
|
wallpaper = HDMI-A-1,/home/yash/Pictures/wallpapers/carter-obasohan-5WhZV-CvJZw-unsplash.jpg
|
||||||
|
|
||||||
splash = false
|
splash = false
|
||||||
|
|
||||||
|
|
|
@ -18,4 +18,13 @@ M.ui = {
|
||||||
-- },
|
-- },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- M.mason.pkgs = {
|
||||||
|
-- "lua-language-server",
|
||||||
|
-- "clangd",
|
||||||
|
-- "clang-format",
|
||||||
|
-- "stylua",
|
||||||
|
-- "gopls",
|
||||||
|
-- "golangci-lint",
|
||||||
|
-- }
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -5,33 +5,6 @@ local capabilities = require("nvchad.configs.lspconfig").capabilities
|
||||||
|
|
||||||
local lspconfig = require "lspconfig"
|
local lspconfig = require "lspconfig"
|
||||||
|
|
||||||
|
|
||||||
-- local servers = { "gopls" }
|
|
||||||
|
|
||||||
-- lsps with default config
|
|
||||||
-- for _, lsp in ipairs(servers) do
|
|
||||||
-- lspconfig[lsp].setup {
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- on_init = on_init,
|
|
||||||
-- capabilities = capabilities,
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
|
|
||||||
|
|
||||||
-- local gopls_on_attach = function(client, bufnr)
|
|
||||||
-- if client.supports_method("textDocument/inlayHint") then
|
|
||||||
-- vim.lsp.inlay_hint.enable(true, {
|
|
||||||
-- assignVariableTypes = true,
|
|
||||||
-- compositeLiteralFields = true,
|
|
||||||
-- compositeLiteralTypes = true,
|
|
||||||
-- constantValues = true,
|
|
||||||
-- functionTypeParameters = true,
|
|
||||||
-- parameterNames = true,
|
|
||||||
-- rangeVariableTypes = true,
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
|
|
||||||
lspconfig.gopls.setup({
|
lspconfig.gopls.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
on_init = on_init,
|
on_init = on_init,
|
||||||
|
@ -49,53 +22,6 @@ lspconfig.gopls.setup({
|
||||||
|
|
||||||
lspconfig.clangd.setup{}
|
lspconfig.clangd.setup{}
|
||||||
|
|
||||||
|
lspconfig.lua_ls.setup{}
|
||||||
|
|
||||||
-- lspconfig.pyright.setup{}
|
-- lspconfig.pyright.setup{}
|
||||||
|
|
||||||
-- lspconfig.html.setup({
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- capabilities = capabilities,
|
|
||||||
-- filetypes = { "html", "templ" },
|
|
||||||
-- })
|
|
||||||
|
|
||||||
-- lspconfig.htmx.setup({
|
|
||||||
-- on_attach = on_attach,
|
|
||||||
-- capabilities = capabilities,
|
|
||||||
-- filetypes = { "html", "templ" },
|
|
||||||
-- })
|
|
||||||
|
|
||||||
lspconfig.templ.setup({
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
filetypes = { "templ" },
|
|
||||||
})
|
|
||||||
|
|
||||||
lspconfig.tailwindcss.setup({
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
filetypes = { "templ" },
|
|
||||||
settings = {
|
|
||||||
tailwindCSS = {
|
|
||||||
includeLanguages = {
|
|
||||||
templ = "html",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
local templ_format = function()
|
|
||||||
local bufnr = vim.api.nvim_get_current_buf()
|
|
||||||
local filename = vim.api.nvim_buf_get_name(bufnr)
|
|
||||||
local cmd = "templ fmt " .. vim.fn.shellescape(filename)
|
|
||||||
|
|
||||||
vim.fn.jobstart(cmd, {
|
|
||||||
on_exit = function()
|
|
||||||
-- Reload the buffer only if it's still the current buffer
|
|
||||||
if vim.api.nvim_get_current_buf() == bufnr then
|
|
||||||
vim.cmd('e!')
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, { pattern = { "*.templ" }, callback = templ_format })
|
|
||||||
|
|
|
@ -45,14 +45,14 @@ return {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
-- ensure_installed = {
|
||||||
"lua-language-server",
|
-- "lua-language-server",
|
||||||
"clangd",
|
-- "clangd",
|
||||||
"clang-format",
|
-- "clang-format",
|
||||||
"stylua",
|
-- "stylua",
|
||||||
"gopls",
|
-- "gopls",
|
||||||
"golangci-lint",
|
-- "golangci-lint",
|
||||||
},
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue