ufw+nvim+tmux

This commit is contained in:
Henrik Bakken
2023-07-21 21:11:20 +02:00
parent b571876e8b
commit 7f21e3457b
4 changed files with 17 additions and 7 deletions
+1
View File
@@ -1,3 +1,4 @@
export SYSTEMD_EDITOR=/usr/bin/nvim
export EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim
export TERMINAL=/usr/bin/kitty
+14
View File
@@ -5,11 +5,22 @@ sudo ufw allow 80/tcp comment "web"
sudo ufw allow 443/tcp comment "websecure"
sudo ufw allow 10000:10100/tcp comment "generic"
# keyboard fix
echo 'XKBMODEL="pc105"
XKBLAYOUT="no"
XKBVARIANT="nodeadkeys"
XKBOPTIONS="caps:escape"
BACKSPACE="guess"' | sudo tee /etc/default/keyboard
# general
sudo systemctl enable --now sshd.service
sudo systemctl enable --now fstrim.timer
yay plymouth tldextract go nodejs unzip exa
# nvidia
yay cuda nvidia-settings nvidia-docker
# python
yay python-pip pyenv ipython
@@ -29,6 +40,7 @@ yay syncthings rclone
sudo systemctl enable --now syncthing@hjalmarlucius.service
systemctl --user daemon-reload
systemctl --user enable --now rclone-gdrive.service
sudo ufw allow syncthing comment "Syncthing"
# docker incl non-root daemon
yay docker docker-compose dry-bin nvidia-docker docker-buildx
@@ -65,3 +77,5 @@ yay plex-media-server qbittorrent discord teamviewer steam qalculate cmus ncspot
sudo ufw allow 8010 comment "chromecast"
sudo ufw allow 27031,27036/udp comment "Steam Link"
sudo ufw allow 27036,27037/tcp comment "Steam Link"
sudo ufw allow to 224.0.0.1 comment "Multicast"
sudo ufw allow from 192.168.1.1 port 1900 to any proto udp comment "Multicast"
+2 -2
View File
@@ -416,7 +416,7 @@ require("lazy").setup({
sources = cmp.config.sources({
{
name = "path",
option = { trailing_slash = true },
option = { trailing_slash = false },
},
}, { { name = "cmdline" } }),
})
@@ -795,7 +795,7 @@ map("n", "q:", "", { noremap = true })
map({ "n", "v" }, "<Space>", "<Nop>", { silent = true })
map("n", "<leader>e", [[:vnew ~/dotfiles/nvim/init.lua<cr>]], { noremap = true })
map("n", "<leader>ww", [[:cd %:p:h<cN>]], { noremap = true })
map("n", "<leader>ww", [[:cd %:p:h<cr>]], { noremap = true })
map("n", "<esc><esc>", "<cmd>noh<cr>", { silent = true, noremap = true })
map("", "<F12>", "<esc>", { silent = true, noremap = true })
-5
View File
@@ -142,11 +142,6 @@ bind Q kill-pane
# clear selected pane
bind-key b send-keys -R \; clear-history \; send-keys Enter
# present a menu of URLs to open from the visible pane. sweet.
bind u capture-pane \;\
save-buffer /tmp/tmux-buffer \;\
split-window -l 10 "urlview /tmp/tmux-buffer"
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \