Updated scripts

This commit is contained in:
Christoffer Martinsson 2025-09-11 10:11:43 +02:00
parent d517992c8d
commit 9fa71efe70
4 changed files with 22 additions and 7 deletions

View File

@ -0,0 +1,11 @@
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 300
on-timeout = python ~/linuxbox/black.py
}

View File

@ -13,10 +13,6 @@ vim.opt.relativenumber = true
vim.opt.termguicolors = true
vim.opt.undofile = true
vim.opt.signcolumn = "yes"
vim.g.netrw_banner = 0 -- gets rid of the annoying banner for netrw
vim.g.netrw_browse_split = 4 -- open in prior window
vim.g.netrw_altv = 1 -- change from left splitting to right splitting
vim.g.netrw_liststyle = 3 -- tree style view in netrw
-------------------------------------------------------------------
-- Autocommands
@ -103,6 +99,7 @@ vim.pack.add({
{ src = "https://github.com/saghen/blink.cmp" },
{ src = "https://github.com/stevearc/conform.nvim" },
{ src = "https://github.com/prichrd/netrw.nvim" },
{ src = "https://github.com/nvim-tree/nvim-tree.lua" },
})
-------------------------------------------------------------------
@ -186,6 +183,7 @@ require("blink.cmp").setup({
},
fuzzy = { implementation = "lua" },
})
require("nvim-tree").setup()
-------------------------------------------------------------------
-- LSP config
@ -246,7 +244,8 @@ map("n", "N", "Nzzzv", { noremap = true, silent = true })
map("n", "<leader>g", ":LazyGitCurrentFile<CR>", { noremap = true, silent = true })
-- File browser
map("n", "<leader>e", ":25Lex<CR>", { noremap = true, silent = true })
-- map("n", "<leader>e", ":25Lex<CR>", { noremap = true, silent = true })
map("n", "<leader>e", ":NvimTreeToggle<CR>", { noremap = true, silent = true })
map("n", "<leader>f", ":Pick files<CR>", { noremap = true, silent = true })
map("n", "<leader>h", ":Pick help<CR>", { noremap = true, silent = true })

View File

@ -61,4 +61,4 @@ set-window-option -g window-status-current-format '#[bg=#303030,fg=#c6c6c6] #I '
set -g window-style 'bg=default,fg=#c6c6c6'
set -g window-active-style 'bg=default,fg=#c6c6c6'
set -g pane-border-style 'bg=#262626,fg=#000000'
set -g pane-active-border-style 'bg=#262626,fg=#000000'
set -g pane-active-border-style 'bg=#262626,fg=#555555'

View File

@ -188,9 +188,14 @@ if [ "${ROLES[HYPERLAND]}" == "yes" ]; then
touch ~/.config/hypr/hyprland_extra.conf
fi
if [ -f ~/linuxbox/config/hypr/hypridle_$HOSTNAME.conf ]; then
ln -sf ~/linuxbox/config/hypr/hypridle_$HOSTNAME.conf ~/.config/hypr/hypridle.conf
else
ln -sf ~/linuxbox/config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf
fi
ln -sf ~/linuxbox/config/hypr/hyprland.conf ~/.config/hypr/hyprland.conf
ln -sf ~/linuxbox/wrappedhl ~/.local/bin/wrappedhl
ln -sf ~/linuxbox/config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf
ln -sf ~/linuxbox/config/hypr/hyprpaper.conf ~/.config/hypr/hyprpaper.conf
ln -sf ~/linuxbox/config/gtk-3.0 ~/.config
ln -sf ~/linuxbox/config/qt5ct ~/.config