kakoune: use bat, set bat theme, kwm: key for toggling theme and keymap pl

This commit is contained in:
2026-05-11 23:41:09 +02:00
parent b6f9d9c9b5
commit 9a77b3730e
6 changed files with 20 additions and 6 deletions

View File

@@ -8,10 +8,10 @@ TERM = "xterm-256color"
size = 10
[font.bold]
family = "Fira Code Nerd Font"
family = "HurmitNerdFont"
[font.normal]
family = "Fira Code Nerd Font"
family = "HurmitNerdFont"
[general]
import = ["~/.config/alacritty/dark.toml"]

View File

@@ -26,7 +26,7 @@ declare-option str selectionalpha "80"
set-face global value "rgb:%opt{mint}"
set-face global type "rgb:%opt{darkmint}"
set-face global variable "rgb:%opt{yellow}"
set-face global variable "rgb:%opt{purple}"
set-face global module "rgb:%opt{blue}"
set-face global function "rgb:%opt{yellow}"
set-face global string "rgb:%opt{brick}"

View File

@@ -9,7 +9,7 @@ add-highlighter global/ number-lines -relative
nop %sh{
mkdir -p "$kak_config/autoload"
ln -s "$kak_runtime/autoload" "$kak_config/autoload/stdlib"
[ -e "$kak_config/autoload/stdlib" ] || ln -s "$kak_runtime/autoload" "$kak_config/autoload/stdlib"
}
colorscheme %sh{
@@ -121,6 +121,8 @@ bundle-theme kakoune-themes "https://codeberg.org/anhsirk0/kakoune-themes"
bundle fzf.kak "https://github.com/andreyorst/fzf.kak" %{
map global -docstring 'FZF menu' user s ': fzf-mode<ret>'
require-module fzf
set-option global fzf_highlight_command "bat"
}
hook global BufCreate [^*].* %{

View File

@@ -1013,6 +1013,17 @@
},
},
},
.{
.keysym = "t",
.modifiers = .{ .mod4 = true, .shift = true },
.event = .{
.click = .{
.pressed = .{
.spawn = .{ .argv = .{ "lupan-set-theme", "toggle" } },
},
},
},
},
},
// list of pointer bindings

View File

@@ -13,6 +13,8 @@ export LANG=pl_PL.UTF-8
export EDITOR=kak
export VISUAL=kak
export BAT_THEME='Catppuccin Frappe'
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
@@ -39,6 +41,7 @@ export GOBIN=~/.local/bin
# start X or Hyprland at login
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
if which river kwm stdout-clock > /dev/null; then
export XKB_DEFAULT_LAYOUT=pl
exec river -c 'stdout-clock | kwm'
elif which /usr/bin/sx > /dev/null; then
exec /usr/bin/sx ~/.xsession

View File

@@ -4,8 +4,6 @@
export FZF_DEFAULT_OPTS='--color=bg+:#808080'
zstyle ':fzf-tab:*' fzf-flags $FZF_DEFAULT_OPTS
export BAT_THEME=ansi
[ -f "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" ] && source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
plug "jeffreytse/zsh-vi-mode"