Compare commits

..

4 Commits

Author SHA1 Message Date
Henrik Bakken 93d36adea8 nvim better repeat-goto-next 2026-02-21 00:15:46 +01:00
Henrik Bakken c8e3d09a09 atuin preview multi-line commands 2026-02-21 00:15:21 +01:00
Henrik Bakken f2494ee53e sore thumb relief: dual alt keyboard 2026-02-21 00:13:04 +01:00
Henrik Bakken 8fb6d19af1 btop+tmux 2026-01-27 10:24:53 +01:00
6 changed files with 30 additions and 6 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ history_filter = [
## Configure the maximum height of the preview to show. ## Configure the maximum height of the preview to show.
## Useful when you have long scripts in your history that you want to distinguish ## Useful when you have long scripts in your history that you want to distinguish
## by more than the first few lines. ## by more than the first few lines.
# max_preview_height = 4 max_preview_height = 20
## Configure whether or not to show the help row, which includes the current Atuin ## Configure whether or not to show the help row, which includes the current Atuin
## version (and whether an update is available), a keymap hint, and the total ## version (and whether an update is available), a keymap hint, and the total
+6 -1
View File
@@ -213,7 +213,12 @@ map("n", "<leader><tab>p", "<cmd>tabprevious<cr>", { desc = "Previous Tab" })
-- other -- other
map("n", "<leader>cw", [[:cd %:p:h<cr>]], { desc = "Set Workspace To Buffer Path" }) map("n", "<leader>cw", [[:cd %:p:h<cr>]], { desc = "Set Workspace To Buffer Path" })
map("n", "<leader>o", "m`o<Esc>``", { desc = "Insert Newline" }) map("n", "<leader>o", "m`o<Esc>``", { desc = "Insert Newline" })
map("n", "\\", "n.", { noremap = true, silent = true, desc = "Repeat And Goto Next" }) map(
"n",
"\\",
function() vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("n.", true, true, true), "n", true) end,
{ noremap = true, silent = true, desc = "Repeat And Goto Next" }
)
map("n", "<F2>", "<cmd>Lazy<cr>", { desc = "Lazy" }) map("n", "<F2>", "<cmd>Lazy<cr>", { desc = "Lazy" })
map( map(
"n", "n",
+3 -3
View File
@@ -287,6 +287,7 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
# Idle configuration # Idle configuration
exec_always swayidle -w \ exec_always swayidle -w \
timeout 240 'brightnessctl set 1' resume 'brightnessctl -r' \
timeout 1200 'gtklock -d' \ timeout 1200 'gtklock -d' \
timeout 2400 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 2400 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'gtklock -d' \ before-sleep 'gtklock -d' \
@@ -375,9 +376,8 @@ input type:touchpad {
} }
input type:keyboard { input type:keyboard {
xkb_layout "us" xkb_layout "us,us_norwegian"
xkb_variant "altgr-weur" xkb_options "grp:shifts_toggle,caps:escape"
xkb_options "caps:escape"
} }
input type:mouse { input type:mouse {
+4
View File
@@ -80,6 +80,10 @@ bind D choose-client
bind : command-prompt bind : command-prompt
bind '~' show-messages bind '~' show-messages
# Fix Home and End keys
bind-key -n Home send-keys "\033[H"
bind-key -n End send-keys "\033[F"
# Copy mode # Copy mode
bind c copy-mode bind c copy-mode
+15
View File
@@ -0,0 +1,15 @@
partial alphanumeric_keys
xkb_symbols "basic" {
include "us(basic)"
name[Group1]= "US Custom Norwegian";
key <AD01> { [ q, Q, aring, Aring ] };
key <AD11> { [ bracketleft, braceleft, aring, Aring ] };
key <AD02> { [ w, W, ae, AE ] };
key <AC11> { [apostrophe, quotedbl, ae, AE ] };
key <AD05> { [ t, T, oslash, Oslash ] };
key <AC10> { [ semicolon, colon, oslash, Oslash ] };
key <AC03> { [ d, D, eacute, Eacute ] };
include "level3(ralt_switch)"
};
+1 -1
View File
@@ -6,7 +6,6 @@
# ] # ]
# /// # ///
# TODO # TODO
# fix btop colors
# pre-luks remote ssh # pre-luks remote ssh
# add ufw setup # add ufw setup
# - sudo ufw allow 22/tcp comment "ssh" # - sudo ufw allow 22/tcp comment "ssh"
@@ -404,6 +403,7 @@ def install_sway(overwrite: bool, reinstall: bool) -> None:
"nwg-drawer", "nwg-drawer",
"xdg-desktop-portal-wlr", "xdg-desktop-portal-wlr",
"foot", "foot",
"xkb/symbols",
]: ]:
helper_clone_foldercontents(CFG_SRC, CFG_TGT, sub, overwrite) helper_clone_foldercontents(CFG_SRC, CFG_TGT, sub, overwrite)
helper_maybe_copy(CFG_SRC, CFG_TGT, "xdg-terminals.list", overwrite, symlink=True) helper_maybe_copy(CFG_SRC, CFG_TGT, "xdg-terminals.list", overwrite, symlink=True)