Compare commits

..

No commits in common. "585b87d3f3dc012fc61738db83a5334d310ba01d" and "c5d3289635e134d5133afd6e288fb29837eff65b" have entirely different histories.

5 changed files with 13 additions and 83 deletions

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1717525419, "lastModified": 1714679908,
"narHash": "sha256-5z2422pzWnPXHgq2ms8lcCfttM0dz+hg+x1pCcNkAws=", "narHash": "sha256-KzcXzDvDJjX34en8f3Zimm396x6idbt+cu4tWDVS2FI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a7117efb3725e6197dd95424136f79147aa35e5b", "rev": "9036fe9ef8e15a819fa76f47a8b1f287903fb848",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +22,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717602782, "lastModified": 1714253743,
"narHash": "sha256-pL9jeus5QpX5R+9rsp3hhZ+uplVHscNJh8n8VpqscM0=", "narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e8057b67ebf307f01bdcc8fba94d94f75039d1f6", "rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -115,7 +115,7 @@ in {
filezilla filezilla
bitwarden bitwarden
] ++ # Personalized selection of graphical apps ] ++ # Personalized selection of graphical apps
[ mons shticker-book-unwritten ] ++ # Games [ mons ] ++ # Games
[ swaybg bemenu j4-dmenu-desktop ] ++ # Sway- and Wayland-related packages [ swaybg bemenu j4-dmenu-desktop ] ++ # Sway- and Wayland-related packages
[ [
noto-fonts noto-fonts

View file

@ -8,29 +8,13 @@
enable = true; enable = true;
highlightCursor = true; highlightCursor = true;
}; };
indentWidth = 2; hooks = [{
hooks = [ # When the filetype=latex option is set in a buffer context (automatically), add a new hook to build the latex file on write
{ name = "BufSetOption";
# When the filetype=latex option is set in a buffer context (automatically), add a new hook to build the latex file on write option = "filetype=latex";
name = "BufSetOption"; commands = "hook buffer BufWritePost .* %{ texlab-build }";
option = "filetype=latex"; }];
commands = "hook buffer BufWritePost .* %{ texlab-build }";
}
{
# When the filetype=markdown option is set (automatically), set word wrap on
name = "BufSetOption";
option = "filetype=markdown";
commands = "add-highlighter buffer wrap -word";
}
];
keyMappings = [ keyMappings = [
# Define select all
{
key = "a";
mode = "user";
effect = "*%s<ret>";
docstring = "Select all";
}
# Define usermode yank/copy and paste # Define usermode yank/copy and paste
{ {
key = "y"; key = "y";
@ -55,9 +39,6 @@
# don't remove trailing indent # don't remove trailing indent
set global disabled_hooks .*-trim-indent set global disabled_hooks .*-trim-indent
source ${pkgs.writeText "kakoune-divider.kak" (builtins.readFile ./kakoune/divider.kak)}
set-option global divider_face LineNumbers
divider-on 80
eval %sh{kak-lsp --kakoune -s $kak_session} eval %sh{kak-lsp --kakoune -s $kak_session}
lsp-enable lsp-enable

View file

@ -1,46 +0,0 @@
# A script for long-line coloring.
# We use almr's looping techniques, as described in:
# https://discuss.kakoune.com/t/kakscript-has-loop-catch-this-head-tail-shift-int-0-streq-etc/1885
# https://gitlab.com/kstr0k/sel-editor.kak/-/snippets/2178452
declare-option -docstring 'divider pane coloring' \
str divider_face 'default,rgb:dae3e6'
declare-option -hidden int divider_column
define-command -params 1 -docstring 'divider-on <column>: colorize right side starting from column' \
divider-on %{
add-highlighter -override window/divider group
set-option window divider_column %arg(1)
divider-do-256 divider-colorize
} -override
define-command -docstring 'divider-off: remove right-side coloring' \
divider-off %{
remove-highlighter window/divider
} -override
define-command -hidden -params .. divider-do-2 %{
%arg(@)
%arg(@)
} -override
define-command -hidden -params .. divider-do-4 %{
divider-do-2 divider-do-2 %arg(@)
} -override
define-command -hidden -params .. divider-do-16 %{
divider-do-4 divider-do-4 %arg(@)
} -override
define-command -hidden -params .. divider-do-256 %{
divider-do-16 divider-do-16 %arg(@)
} -override
define-command -hidden divider-colorize %{
add-highlighter "window/divider/%opt(divider_column)" column %opt(divider_column) %opt(divider_face)
set-option -add window divider_column 1
} -override

View file

@ -102,10 +102,5 @@ in {
'' ''
focus_on_window_activation focus focus_on_window_activation focus
'' + # Focus on window activation lol '' + # Focus on window activation lol
''
set $laptop eDP-1
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
'' + # Clamshell mode
""; "";
} }