Compare commits

..

2 Commits

Author SHA1 Message Date
7125760454 chore(hyprland, regreet): comply with (not so) recent changes 2026-05-31 15:16:12 +02:00
László Párkányi
90aa0c5868 fix(nvim): elegant fold configuration 2026-01-06 15:09:17 +01:00
6 changed files with 39 additions and 27 deletions

View File

@@ -8,7 +8,7 @@
# exec-once = waybar & hyprpaper & firefox
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
#exec-once = uwsm app hyprpaper
#exec-once = uwsm app waybar
#exec-once = uwsm app swaync

View File

@@ -27,8 +27,13 @@ source=./macchiato.conf
# Window rules
windowrulev2 = center, class:^(Rofi)$
windowrulev2 = stayfocused, class:^(Rofi)$
windowrule {
name = windowrule-1
center = on
stay_focused = on
match:class = ^(Rofi)$
}
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
@@ -98,7 +103,7 @@ animations {
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
#pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
@@ -109,9 +114,9 @@ master {
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = on
workspace_swipe_fingers = 3
workspace_swipe_invert = false
# workspace_swipe = on
# workspace_swipe_fingers = 3
# workspace_swipe_invert = false
}
xwayland {
@@ -126,18 +131,6 @@ misc {
#force_hypr_chan = true # there is suddenly an anime girl on the background :D
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
# device:epic-mouse-v1 {
# sensitivity = -0.5
# }
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
source=./keybinds.conf
debug:disable_logs = false

View File

@@ -1,6 +1,7 @@
preload = /home/ha5pls/.local/share/backgrounds/eKxlw8.jpg
wallpaper = ,/home/ha5pls/.local/share/backgrounds/eKxlw8.jpg
wallpaper {
monitor =
path = /home/ha5pls/.local/share/backgrounds/eKxlw8.jpg
}
splash = false

View File

@@ -13,7 +13,7 @@ bind = $mainMod SHIFT, Y, workspaceopt, allfloat
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod SHIFT, P, pin
bind = $mainMod SHIFT, P, workspaceopt, allpseudo
bind = $mainMod, O, togglesplit, # dwindle
#bind = $mainMod, O, togglesplit, # dwindle
bind = $mainMod, E, fullscreen, 1
bind = $mainMod SHIFT, E, fullscreen, 0
# bind = $mainMod CTRL, E, fakefullscreen

View File

@@ -6,10 +6,29 @@ local autocmd = vim.api.nvim_create_autocmd
-- command = "tabdo wincmd =",
-- })
-- Auto unfold all when entering a buffer
-- autocmd("BufWinEnter", { pattern = "*", command = "silent! :%foldopen!" })
autocmd({ "FileType" }, {
callback = function()
-- Hyrplang filetype
-- check if treesitter has parser
if require("nvim-treesitter.parsers").has_parser() then
-- use treesitter folding
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
else
-- use alternative foldmethod
vim.opt.foldmethod = "syntax"
end
end,
})
-- disable folding on startup
vim.opt.foldenable = false
-- disable folding on loading
vim.opt.foldlevel = 20
-- Hyrplang filetype
vim.filetype.add({
pattern = { [".*/hypr/.*%.conf"] = "hyprlang" },
})

View File

@@ -5,5 +5,4 @@ input {
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
disable_hyprland_qtutils_check = true
}