diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 697a641..2910c31 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -207,6 +207,7 @@ exec --no-startup-id amixer set Master 0% mute exec --no-startup-id "~/.config/i3/run.sh wall" # Keyboard exec --no-startup-id xmodmap ~/.xmodmap +exec --no-startup-id xrdb ~/.Xresources #exec --no-startup-id ~/xmodmap.sh # Misc # Compositor diff --git a/i3/.config/i3/i3status.conf b/i3/.config/i3/i3status.conf index 9230d9a..38978f6 100644 --- a/i3/.config/i3/i3status.conf +++ b/i3/.config/i3/i3status.conf @@ -15,7 +15,7 @@ order += "cpu_usage" order += "ethernet tun0" order += "wireless wlo1" order += "volume master" -order += "battery 1" +order += "battery 0" order += "tztime local" ethernet tun0 { # if you use %speed, i3status requires root privileges @@ -41,10 +41,10 @@ volume master { mixer = "Master" mixer_idx = 0 } -battery 1 { +battery 0 { #format = "%status %remaining %emptytime" format = "%status %percentage" - path = "/sys/class/power_supply/BAT1/uevent" + path = "/sys/class/power_supply/BAT0/uevent" low_threshold = 20 } disk "/" { diff --git a/kak/.config/kak/kakrc b/kak/.config/kak/kakrc new file mode 100644 index 0000000..3fcad1e --- /dev/null +++ b/kak/.config/kak/kakrc @@ -0,0 +1,51 @@ +# Disable mouse +set global ui_options ncurses_enable_mouse=false + +colorscheme gruvbox + +# Word-wrap +add-highlighter global/ wrap +add-highlighter global/ number-lines + +# Tab complete and indent +hook global InsertCompletionShow .* %{ + try %{ + execute-keys -draft 'h\h' + map window insert + map window insert + } +} +hook global InsertCompletionHide .* %{ + unmap window insert + unmap window insert +} + +# Editorconfig +hook global BufOpenFile .* %{ editorconfig-load } +hook global BufNewFile .* %{ editorconfig-load } + +# Surround +map global user [ i[a]H +map global user { i{a}H +map global user ( i(a)H +map global user iaH +map global user \' i'a'H +map global user \" i"a"H + +# Plug +source "%val{config}/plugins/plug.kak/rc/plug.kak" + +# Plugins +plug "andreyorst/smarttab.kak" defer smarttab %{ + # when `backspace' is pressed, 4 spaces are deleted at once + set-option global softtabstop 4 +} config %{ + hook global WinSetOption filetype=(rust|markdown|kak|lisp|scheme|perl|c|cpp|java) expandtab + hook global WinSetOption filetype=(sh|makefile|gas) noexpandtab +} + +plug "andreyorst/fzf.kak" config %{ + map -docstring 'fzf mode' global normal '' ': fzf-mode' + + set-option global fzf_file_command 'rg' # 'ag', 'fd', or 'find' +} diff --git a/shell/.bashrc b/shell/.bashrc index 413f7cb..030c87e 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -5,3 +5,5 @@ export PATH="$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin: #} #trap 'export CESIUM_LAST_COMMAND_TIME="$(date +%s)"' DEBUG #PROMPT_COMMAND=prompt_cmd + +[ -f ~/.fzf.bash ] && source ~/.fzf.bash