hiii
This commit is contained in:
parent
ad6ce14fed
commit
6661e8d095
@ -8,7 +8,7 @@
|
||||
# title=foot
|
||||
# locked-title=no
|
||||
|
||||
font=IosevkaNerdFontMono:size=14
|
||||
font=IosevkaNerdFontMono:size=16
|
||||
# font-bold=<bold variant of regular font>
|
||||
# font-italic=<italic variant of regular font>
|
||||
# font-bold-italic=<bold+italic variant of regular font>
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
# monitor=,2256x1504@60,0x0,1.33333
|
||||
monitor=,2256x1504@60,0x0,1
|
||||
|
||||
###################
|
||||
@ -12,9 +11,8 @@ monitor=,2256x1504@60,0x0,1
|
||||
###################
|
||||
$terminal = foot
|
||||
$fileManager = nautilus
|
||||
$menu = wofi --show drun --prompt Search --insensitive
|
||||
$menu = wofi -S drun -p Search -I -i -b
|
||||
|
||||
# set $menu wofi -S drun -p Search -I -b -i
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
@ -31,7 +29,7 @@ exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
||||
exec-once = gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
|
||||
exec-once = swayidle -w timeout 300 'swaylock -f' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f'
|
||||
exec-once = swayidle -w
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
@ -54,19 +52,19 @@ general {
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 10
|
||||
rounding = 5
|
||||
active_opacity = 1.0
|
||||
inactive_opacity = 0.9
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
enabled = false
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
enabled = false
|
||||
size = 3
|
||||
passes = 1
|
||||
vibrancy = 0.1696
|
||||
@ -208,6 +206,7 @@ bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
|
||||
# Screenshots
|
||||
bind = , Print, exec, grimshot copy output
|
||||
bind = $mainMod, Print, exec, grimshot copy area
|
||||
@ -229,3 +228,20 @@ windowrule = float, class:^(pavucontrol)$
|
||||
windowrule = size 60% 50%, class:^(pavucontrol)$
|
||||
windowrule = float, title:^(Picture-in-Picture)$
|
||||
windowrule = pin, title:^(Picture-in-Picture)$
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$laptop = eDP-1
|
||||
# Quando il coperchio viene chiuso:
|
||||
# bindl=,switch:lid:on,exec,bash -c "if [[ $(hyprctl monitors | grep -c 'Monitor') == 1 ]]; then systemctl suspend; fi"
|
||||
bindl=,switch:on:Lid,exec,bash -c "if [[ $(hyprctl monitors | grep -c 'Monitor') == 1 ]]; then systemctl suspend; fi"
|
||||
# Quando il coperchio viene aperto:
|
||||
# bindl=,switch:lid:off,exec,hyprctl keyword output "$laptop, enable"
|
||||
bindl=,switch:off:Lid,exec,hyprctl keyword output "$laptop, enable"
|
||||
|
||||
# # lid closed
|
||||
# bindl = , switch:on:Lid Switch, exec, hyprctl dispatch dpms off
|
||||
# bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on
|
||||
|
||||
|
||||
@ -1,42 +1,45 @@
|
||||
-- options.lua
|
||||
|
||||
-- Leader key for all the keymaps
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- General settings
|
||||
--------------------------------------------------------------------------------
|
||||
-- -- GENERAL EDITOR BEHAVIOR
|
||||
--------------------------------------------------------------------------------
|
||||
vim.opt.clipboard = "unnamedplus" -- Use system clipboard
|
||||
vim.opt.writebackup = false -- Disable backup files
|
||||
vim.opt.undofile = true -- Enable persistent undo
|
||||
vim.opt.wrap = false -- Do not wrap lines
|
||||
vim.opt.conceallevel = 2 -- Hide markdown syntax, etc.
|
||||
vim.opt.signcolumn = "yes" -- Always show the sign column to avoid resizing
|
||||
vim.opt.timeoutlen = 300 -- Time to wait for a mapped sequence to complete
|
||||
vim.opt.updatetime = 250 -- Faster completion and CursorHold updates
|
||||
|
||||
-- line numbers
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
-- Disable unused built-in providers for faster startup
|
||||
vim.g.loaded_perl_provider = 0
|
||||
vim.g.loaded_ruby_provider = 0
|
||||
vim.g.loaded_netrw = 0 -- Disable netrw, as you likely use a plugin like nvim-tree
|
||||
|
||||
-- Case INSENSITIVE search uncless using capital
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
--------------------------------------------------------------------------------
|
||||
-- -- UI AND APPEARANCE
|
||||
--------------------------------------------------------------------------------
|
||||
vim.opt.number = true -- Show line numbers
|
||||
vim.opt.relativenumber = true -- Show relative line numbers
|
||||
vim.opt.cursorline = true -- Highlight the current line
|
||||
vim.opt.scrolloff = 10 -- Keep 10 lines of context around the cursor
|
||||
vim.opt.termguicolors = true -- Enable 24-bit RGB color in the TUI
|
||||
vim.o.foldlevel = 0 -- Start with all folds closed
|
||||
|
||||
-- keep sign column on by default
|
||||
vim.opt.signcolumn = "yes"
|
||||
--------------------------------------------------------------------------------
|
||||
-- -- SEARCHING
|
||||
--------------------------------------------------------------------------------
|
||||
vim.opt.ignorecase = true -- Case-insensitive searching
|
||||
vim.opt.smartcase = true -- ...unless the query contains a capital letter
|
||||
|
||||
|
||||
-- reduced update time
|
||||
vim.opt.updatetime = 250
|
||||
vim.opt.timeoutlen = 300
|
||||
|
||||
-- Show which line your cursor is on
|
||||
vim.opt.cursorline = true
|
||||
|
||||
-- Minimal number of screen lines to keep above and below the cursor.
|
||||
vim.opt.scrolloff = 10
|
||||
|
||||
vim.termguicolor = true -- True color support
|
||||
|
||||
vim.opt.writebackup = false -- disable backup
|
||||
vim.opt.updatetime = 300 -- faster completion
|
||||
vim.opt.undofile = true -- persistent undo
|
||||
|
||||
vim.opt.wrap = false -- don't wrap lines
|
||||
vim.opt.conceallevel = 2
|
||||
|
||||
-- lang spell cheecking for italian and english
|
||||
--------------------------------------------------------------------------------
|
||||
-- -- SPELL CHECKING (currently disabled)
|
||||
--------------------------------------------------------------------------------
|
||||
-- vim.opt.spell = true
|
||||
-- vim.opt.spelllang = "en,it"
|
||||
-- local spell_dir = vim.fn.stdpath("data") .. "/spell"
|
||||
@ -47,12 +50,53 @@ vim.opt.conceallevel = 2
|
||||
-- "~/.config/nvim/spell/it.proj.spl",
|
||||
-- }
|
||||
|
||||
-- disable un used stuff
|
||||
vim.g.loaded_perl_provider = 0
|
||||
vim.g.loaded_ruby_provider = 0
|
||||
vim.g.loaded_netrw = 0
|
||||
--------------------------------------------------------------------------------
|
||||
-- -- FILETYPE-SPECIFIC SETTINGS (AUTOCOMMANDS)
|
||||
--------------------------------------------------------------------------------
|
||||
-- Create an autocommand group to prevent duplicate autocommands on reload
|
||||
local ft_augroup = vim.api.nvim_create_augroup("FileTypeSettings", { clear = true })
|
||||
|
||||
-- C, C++, etc: 4-space indentation
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
group = ft_augroup,
|
||||
pattern = { "c", "cpp", "objc", "objcpp" },
|
||||
callback = function()
|
||||
-- Use vim.bo for buffer-local options
|
||||
vim.bo.tabstop = 2
|
||||
vim.bo.shiftwidth = 2
|
||||
vim.bo.expandtab = true -- Use spaces instead of tabs
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
||||
vim.o.foldlevel = 0
|
||||
-- -- Web dev, scripting, etc: 2-space indentation
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- group = ft_augroup,
|
||||
-- pattern = {
|
||||
-- "lua",
|
||||
-- "python",
|
||||
-- "javascript",
|
||||
-- "typescript",
|
||||
-- "html",
|
||||
-- "css",
|
||||
-- "json",
|
||||
-- "yaml",
|
||||
-- "toml",
|
||||
-- "markdown",
|
||||
-- },
|
||||
-- callback = function()
|
||||
-- vim.bo.tabstop = 2
|
||||
-- vim.bo.shiftwidth = 2
|
||||
-- vim.bo.expandtab = true
|
||||
-- end,
|
||||
-- })
|
||||
--
|
||||
-- -- LaTeX: 2-space indentation (example)
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- group = ft_augroup,
|
||||
-- pattern = { "tex" },
|
||||
-- callback = function()
|
||||
-- vim.bo.tabstop = 2
|
||||
-- vim.bo.shiftwidth = 2
|
||||
-- vim.bo.expandtab = true
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
@ -7,7 +7,8 @@ local lsp_servers = {
|
||||
"dockerls",
|
||||
"tailwindcss",
|
||||
"cssls",
|
||||
"pylsp"
|
||||
"pylsp",
|
||||
"clangd",
|
||||
}
|
||||
|
||||
local tools = {
|
||||
@ -27,10 +28,11 @@ local on_attach = function(_, bufnr)
|
||||
map("<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", "[R]ename Symbol")
|
||||
map("<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", "[C]ode [A]ction")
|
||||
map("K", "<cmd>lua vim.lsp.buf.hover()<CR>", "[K] Hover")
|
||||
map("<leader>e", "<cmd>lua vim.diagnostic.open_float()<CR>", "[E]xplain Diagnostic")
|
||||
map("gd", telescope.lsp_definitions, "[G]o [D]efinition")
|
||||
map("gr", telescope.lsp_references, "[G]o [R]eferences")
|
||||
map("gI", telescope.lsp_implementations, "[G]o [I]mplementations")
|
||||
map("gD", telescope.diagnostics, "Diagnostics")
|
||||
-- map("gD", telescope.diagnostics, "Diagnostics")
|
||||
end
|
||||
|
||||
return {
|
||||
|
||||
@ -37,11 +37,7 @@ bindswitch --reload --locked lid:on output $laptop disable
|
||||
bindswitch --reload --locked lid:off output $laptop enable
|
||||
|
||||
# Configurazione dell'inattività: lock e DPMS
|
||||
exec swayidle -w \
|
||||
timeout 300 "swaylock -f -i $wallpaper" \
|
||||
timeout 600 "swaymsg 'output * dpms off'" \
|
||||
resume "swaymsg 'output * dpms on'" \
|
||||
before-sleep "swaylock -f -i $wallpaper"
|
||||
exec swayidle -w
|
||||
|
||||
input type:touchpad {
|
||||
dwt enabled # Disable while typing
|
||||
|
||||
4
swayidle/config
Normal file
4
swayidle/config
Normal file
@ -0,0 +1,4 @@
|
||||
timeout 300 "swaylock -f -i ~/Nextcloud/wallpapers/laptop/hiroishi_nagasai.png" \
|
||||
timeout 600 "swaymsg 'output * dpms off'" \
|
||||
resume "swaymsg 'output * dpms on'" \
|
||||
before-sleep "swaylock -f -i ~/Nextcloud/wallpapers/laptop/hiroishi_nagasai.png"
|
||||
Loading…
x
Reference in New Issue
Block a user