Compare commits
2 Commits
wip
...
1dc6af8d37
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dc6af8d37 | |||
| d740ab9621 |
@@ -60,8 +60,6 @@ map global -docstring 'Options' user 'o' ': enter-user-mode options-mode<ret>'
|
||||
|
||||
map global -docstring 'Five Dark mode' options-mode 'd' ': colorscheme five-colors-dark<ret>'
|
||||
map global -docstring 'Five Light mode' options-mode 'l' ': colorscheme five-colors-light<ret>'
|
||||
map global -docstring 'Light mode' options-mode 'L' ': colorscheme one-light<ret>'
|
||||
map global -docstring 'Dark mode' options-mode 'D' ': colorscheme one-darker<ret>'
|
||||
|
||||
declare-user-mode make-mode
|
||||
map global -docstring 'Make' user 'k' ': enter-user-mode make-mode<ret>'
|
||||
@@ -205,19 +203,7 @@ map global lsp p '<esc>: lsp-find-error --previous error<ret>' -docstring 'fin
|
||||
source "%val{config}/bundle/kak-bundle/rc/kak-bundle.kak"
|
||||
bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle
|
||||
|
||||
# COLORSCHEME
|
||||
|
||||
bundle-theme kak-one 'https://codeberg.org/raiguard/kak-one'
|
||||
|
||||
bundle-theme kakoune-themes 'https://codeberg.org/anhsirk0/kakoune-themes'
|
||||
|
||||
# FZF
|
||||
|
||||
bundle fzf.kak 'https://github.com/andreyorst/fzf.kak' %{
|
||||
map global -docstring 'FZF menu' user 'f' ': fzf-mode<ret>'
|
||||
require-module fzf
|
||||
set-option global fzf_highlight_command "bat"
|
||||
}
|
||||
# RECENT
|
||||
|
||||
hook global BufCreate [^*].* %{
|
||||
nop %sh{
|
||||
@@ -248,42 +234,6 @@ bundle kak-harpoon 'https://codeberg.org/raiguard/kak-harpoon' %{
|
||||
harpoon-add-bindings
|
||||
}
|
||||
|
||||
# PENEIRA
|
||||
|
||||
bundle 'luar' 'https://github.com/gustavo-hms/luar' %{
|
||||
require-module luar
|
||||
}
|
||||
|
||||
bundle 'peneira' 'https://github.com/gustavo-hms/peneira' %{
|
||||
require-module peneira
|
||||
|
||||
define-command buffers %{
|
||||
peneira 'buffers: ' %{ eval "printf '%s\n' $kak_quoted_buflist" } %{
|
||||
buffer %arg{1}
|
||||
}
|
||||
}
|
||||
define-command peneira-git-files %{
|
||||
peneira 'git files: ' %{ git ls-files } %{ edit -- %arg{1} }
|
||||
}
|
||||
define-command peneira-files-with-hidden %{
|
||||
peneira 'git files: ' %{ fd -t f -H } %{ edit -- %arg{1} }
|
||||
}
|
||||
define-command peneira-recent-files %{
|
||||
peneira 'mru files: ' %{ cat ~/.cache/kak-mru } %{ edit -- %arg{1} }
|
||||
}
|
||||
|
||||
map global -docstring 'Buffer' user ' ' ': buffers<ret>'
|
||||
|
||||
map global -docstring 'Git files' file-mode 'a' ': peneira-git-files<ret>'
|
||||
map global -docstring 'Buffers' file-mode 'b' ': buffers<ret>'
|
||||
map global -docstring 'Files' file-mode 'f' ': peneira-files<ret>'
|
||||
map global -docstring 'Files' file-mode 'F' ': peneira-local-files<ret>'
|
||||
map global -docstring 'Files (with hidden)' file-mode 'h' ': peneira-files-with-hidden<ret>'
|
||||
map global -docstring 'Lines' file-mode 'l' ': peneira-lines<ret>'
|
||||
map global -docstring 'Symbols' file-mode 's' ': peneira-symbols<ret>'
|
||||
map global -docstring 'Recent files' file-mode 'r' ': peneira-recent-files<ret>'
|
||||
}
|
||||
|
||||
# LOCAL
|
||||
|
||||
define-command set-dark-or-light-colorscheme %{
|
||||
|
||||
@@ -40,12 +40,22 @@ export GOBIN=~/.local/bin
|
||||
|
||||
# start X or Hyprland at login
|
||||
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
|
||||
if which niri > /dev/null; then
|
||||
if which /usr/bin/sx > /dev/null; then
|
||||
exec /usr/bin/sx ~/.xsession
|
||||
elif which /usr/bin/startx > /dev/null; then
|
||||
exec /usr/bin/startx ~/.xsession
|
||||
elif which niri > /dev/null; then
|
||||
exec niri
|
||||
if which river argen > /dev/null; then
|
||||
export XKB_DEFAULT_LAYOUT=pl
|
||||
exec river -c 'argen'
|
||||
elif 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
|
||||
elif which river rill > /dev/null; then
|
||||
export XKB_DEFAULT_LAYOUT=pl
|
||||
exec river -c rill
|
||||
if which /usr/bin/sx > /dev/null; then
|
||||
exec /usr/bin/sx ~/.xsession
|
||||
elif which /usr/bin/startx > /dev/null; then
|
||||
exec /usr/bin/startx ~/.xsession
|
||||
|
||||
@@ -30,16 +30,16 @@ xsetroot -cursor_name left_ptr
|
||||
|
||||
picom -b -I 1 -O 1 -e 1 --no-fading-openclose --backend glx || compton -b --no-fading-openclose
|
||||
|
||||
if which awesome > /dev/null; then
|
||||
exec awesome
|
||||
fi
|
||||
|
||||
if which dwm > /dev/null; then
|
||||
dunst &
|
||||
lupan-clock &
|
||||
exec dwm
|
||||
fi
|
||||
|
||||
if which awesome > /dev/null; then
|
||||
exec awesome
|
||||
fi
|
||||
|
||||
if which dk > /dev/null; then
|
||||
for m in $(polybar --list-monitors | cut -d: -f1); do
|
||||
MONITOR=$m polybar --reload bar &
|
||||
|
||||
Reference in New Issue
Block a user