From 743b1e553867adecdc714685537f1593cf940535 Mon Sep 17 00:00:00 2001 From: Jimmy Charnley Kromann Date: Sat, 9 Nov 2024 10:35:33 +0100 Subject: [PATCH] Local laptop changes --- Makefile | 3 +++ bin.deb.x/fix_keyboard_capslock | 5 ++++- dot/neovim/lua/maps.lua | 3 +++ fonts/setup_xkcd.sh | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e50f9f4..d8bdffd 100644 --- a/Makefile +++ b/Makefile @@ -187,6 +187,9 @@ install_apt_x: install_fonts: bash ./fonts/setup_mononoki.sh +install_fonts_post_deb: + fc-cache -f -v + symlink_clean: # TODO if there and is symlink, rm. For example, if symlink points to dotfiles, but is deprecated diff --git a/bin.deb.x/fix_keyboard_capslock b/bin.deb.x/fix_keyboard_capslock index 7b6d892..9919d7a 100755 --- a/bin.deb.x/fix_keyboard_capslock +++ b/bin.deb.x/fix_keyboard_capslock @@ -1,4 +1,7 @@ #!/bin/bash -setxkbmap -option caps:hyper +set -e +set -u +set -x +setxkbmap -option caps:hyper diff --git a/dot/neovim/lua/maps.lua b/dot/neovim/lua/maps.lua index b813bc3..4138444 100644 --- a/dot/neovim/lua/maps.lua +++ b/dot/neovim/lua/maps.lua @@ -163,3 +163,6 @@ vim.api.nvim_set_keymap('n', 'lup', 'lua vim.lsp.diagnostic.goto_ne vim.api.nvim_exec([[ map ,e :e =expand("%:p:h") . "/" ]], false) + +-- Surround text with html tag +-- TODO vim.api.nvim_set_keymap('n', 'ns', '?>p', {noremap = true, desc='Surround text with html tag'}) diff --git a/fonts/setup_xkcd.sh b/fonts/setup_xkcd.sh index c8888c6..160dafa 100644 --- a/fonts/setup_xkcd.sh +++ b/fonts/setup_xkcd.sh @@ -20,3 +20,5 @@ else cp $src/xkcd-script/font/*.ttf ${HOME}/Library/Fonts/ cp $src/xkcd/build/* ${HOME}/Library/Fonts/ fi + +rm -fr $src