Browse Source

misc

master
SolitudeSF 10 months ago
parent
commit
4ec481167c
No known key found for this signature in database
22 changed files with 132 additions and 115 deletions
  1. 1
    1
      bedrock.conf
  2. 4
    2
      bin/elvmv
  3. 1
    1
      bin/mpvwall
  4. 4
    4
      bin/mpw-get
  5. 3
    6
      bspwm
  6. 35
    15
      elvish/lib/completers.elv
  7. 3
    3
      elvish/lib/git.elv
  8. 2
    2
      elvish/lib/util.elv
  9. 0
    3
      elvish/rc.elv
  10. 11
    7
      firefox/homepage.nims
  11. 8
    7
      kak/autoload/git-branch.kak
  12. 40
    28
      kak/kakrc
  13. 2
    2
      mpd
  14. 1
    0
      mpv/input.conf
  15. 1
    1
      mpv/mpv.conf
  16. 5
    1
      nim.nim
  17. 0
    7
      pulse/daemon.conf
  18. 0
    9
      pulse/default.pa
  19. 0
    4
      setup
  20. 8
    5
      splug.toml
  21. 2
    6
      sx.sh
  22. 1
    1
      sxhkd

+ 1
- 1
bedrock.conf View File

@@ -12,7 +12,7 @@ modules = usbhid, hid, hid_generic
[global]
share = /boot, /dev, /home, /lib/modules, /media, /mnt, /proc, /root, /run, /sys, /tmp
bind = /bedrock, /bedrock/cross, /bedrock/run, /bedrock/strata/bedrock
etc = adjtime, crypttab, default/grub, fstab, group, group-, group.org, gshadow, gshadow-, gshadow.org, hostname, hosts, login.defs, machine-id, modprobe.d/blacklist.conf, passwd, passwd-, passwd.org, rc.local, resolv.conf, resolvconf/run, shadow, shadow-, shadow.org, sudoers
etc = adjtime, crypttab, default/grub, fstab, group, group+, group-, group.OLD, group.org, gshadow, gshadow+, gshadow-, gshadow.OLD, gshadow.org, hostname, hosts, login.defs, machine-id, modprobe.d/blacklist.conf, passwd, passwd+, passwd-, passwd.OLD, passwd.org, rc.local, resolv.conf, resolvconf/run, shadow, shadow+, shadow-, shadow.OLD, shadow.org, sudoers

[symlinks]
#

+ 4
- 2
bin/elvmv View File

@@ -1,7 +1,9 @@
#!/usr/bin/env elvish

use path

fn list-items [a]{
if (-is-dir $a) { put $a/* } else { put $a }
if (path:is-dir $a) { put $a/* } else { put $a }
}

items = []
@@ -49,7 +51,7 @@ cat $file | each [l]{
if (eq $l '') {
rm $items[$i]
} elif (not-eq $l $items[$i]) {
mkdir -p (path-dir $l)
mkdir -p (path:dir $l)
mv $items[$i] $l
}
i = (+ $i 1)

+ 1
- 1
bin/mpvwall View File

@@ -1,5 +1,5 @@
#!/bin/sh
pkill xwinwrap
exec xwinwrap -ni -fs -s -nf -b -un -argb -fdt -- \
mpv --wid WID --no-terminal --no-audio --no-config --no-border \
mpv --wid=WID --no-terminal --no-audio --no-config --no-border \
--x11-bypass-compositor=no --keepaspect=no --loop "$@"

+ 4
- 4
bin/mpw-get View File

@@ -1,10 +1,10 @@
#!/usr/bin/env elvish
name = (cat ~/sns/mpwname)
t=""
t = ""
if (eq 0 (count $args)) {
@sites=(cat $E:XDG_CONFIG_HOME/mpwc/$name.mpsites)
t=(echo &sep="\n" $@sites | rofi -dmenu -p 'Enter site: ' -width 20 -columns 1)
@sites = (cat $E:XDG_CONFIG_HOME/mpwc/$name.mpsites)
t = (echo &sep="\n" $@sites | rofi -dmenu -p 'Enter site: ' -width 20 -columns 1)
} else {
t=$args[0]
t = $args[0]
}
gpg2 -d -q ~/sns/password.gpg | mpwc -S -k max -n $name -s $t 2>/dev/null | xclip -sel c -r -l 1

+ 3
- 6
bspwm View File

@@ -16,10 +16,7 @@ bspc rule -a Firefox desktop=^2
bspc rule -a mpv state=floating
bspc rule -a Peek state=floating
bspc rule -a kittyfloat state=floating
bspc rule -a TelegramDesktop desktop=^3
bspc rule -a Hexchat desktop=^3
bspc rule -a discord desktop=^13
bspc rule -a Ripcord desktop=^13
bspc rule -a Element desktop=^13
bspc rule -a mirage desktop=^13
bspc rule -a Steam desktop=^4 state=floating

disown polybar -q main &
disown polybar -q secondary &

+ 35
- 15
elvish/lib/completers.elv View File

@@ -1,5 +1,6 @@
use re
use str
use path
use util

use github.com/xiaq/edit.elv/compl/git
@@ -12,6 +13,10 @@ fn overlap-at [a b]{
put $false
}

fn at-command [cmd]{
== (count $cmd) 2
}

fn prefix-completer [p a]{
edit:completion:arg-completer[$p] = [@cmd]{
if (eq (count $cmd) 2) {
@@ -25,14 +30,14 @@ fn prefix-completer [p a]{
}

fn complete-directory [a]{
dir = (path-dir $a)/
if (has-prefix $a $dir) {
dir = (path:dir $a)/
if (str:has-prefix $a $dir) {
a = (str:replace &max=1 $dir '' $a)
} else {
dir = ''
}
for x [$dir*[match-hidden][nomatch-ok]$a*[match-hidden][nomatch-ok]] {
if (-is-dir $x) { edit:complex-candidate &code-suffix=/ &style='blue;bold' $x }
if (path:is-dir $x) { edit:complex-candidate &code-suffix=/ $x }
}
}

@@ -44,7 +49,7 @@ edit:completion:arg-completer[cd] = [@cmd]{

edit:completion:arg-completer[kak] = [@cmd]{
if (eq $cmd[-2] -c) {
kak -l
kak -l | each [x]{ if (not-eq $x[-1] ')') { put $x } }
} else {
edit:complete-filename $cmd[-1]
}
@@ -69,7 +74,7 @@ kitty-kittens = $nil
edit:completion:arg-completer[kitty] = [@cmd]{
if (not $kitty-cmds) {
@kitty-cmds = (kitty @ --help | peach [x]{ if (re:match '^ \w' $x) { put $x[2..] } })
@kitty-kittens = (pwd=/usr/lib/kitty/kittens fd main.py | peach [x]{ path-dir $x })
@kitty-kittens = (pwd=/usr/lib/kitty/kittens fd main.py | peach [x]{ path:dir $x })
}
if (has-value [kitten '+kitten'] $cmd[-2]) {
all $kitty-kittens
@@ -91,7 +96,7 @@ edit:completion:arg-completer[sv] = [@cmd]{

edit:completion:arg-completer[man] = [@cmd]{
pwd=/bedrock/cross/man put man*/* | each [a]{
re:replace &literal=$true '(\.\dp?)?(\.gz)?$' '' (path-base $a)
re:replace &literal=$true '(\.\dp?)?(\.gz)?$' '' (path:base $a)
}
}

@@ -144,7 +149,7 @@ neofetch-opts = $nil
edit:completion:arg-completer[neofetch] = [@cmd]{
if (not $neofetch-opts) {
neofetch-opts = [(_ = ?(neofetch --help | each [x]{
if (has-prefix $x ' --') {
if (str:has-prefix $x ' --') {
put $x | eawk [_ a @_]{ put $a }
}
})) --logo -L -v -vv]
@@ -167,7 +172,7 @@ edit:completion:arg-completer[bspc] = [@cmd]{
}

edit:completion:arg-completer[ntr] = [@cmd]{
if (not (has-prefix $cmd[-1] '-')) {
if (not (str:has-prefix $cmd[-1] '-')) {
pwd=$E:XDG_CONFIG_HOME/ntr/contexts put **
}
}
@@ -187,13 +192,12 @@ edit:completion:arg-completer[mpv] = [@cmd]{
}

edit:completion:arg-completer[update] = [@cmd]{
update | each [x]{ if (has-prefix $x " ") { put $x[4..] } }
update | each [x]{ if (str:has-prefix $x " ") { put $x[4..] } }
}

edit:completion:arg-completer[xr] = [@cmd]{
xpkg -m
xpkg -O | peach [x]{ edit:complex-candidate $x }
# xpkg -O | peach [x]{ edit:complex-candidate &style='red;inverse' $x }
}

edit:completion:arg-completer[xi] = [@cmd]{
@@ -225,7 +229,7 @@ edit:completion:arg-completer[strat] = [@cmd]{
if (not $has-strat) {
all $strata
} else {
edit:complete-sudo (all $cmd[(put $has-strat):])
edit:complete-sudo (all $cmd[$has-strat..])
}
}

@@ -233,10 +237,9 @@ brl-cmds = $nil

edit:completion:arg-completer[brl] = [@cmd]{
if (not $brl-cmds) {
@brl-cmds = (brl -h | take 36 | drop 5 | each [x]{ put (re:find &max=1 '^ \w+' $x)[text][2:] })
@brl-cmds = (brl -h | take 36 | drop 5 | each [x]{ put (re:find &max=1 '^ \w+' $x)[text][2..] })
}
len = (count $cmd)
if (== $len 2) {
if (at-command $cmd) {
all $brl-cmds
} else {
c = $cmd[1]
@@ -249,7 +252,7 @@ edit:completion:arg-completer[brl] = [@cmd]{
}

edit:completion:arg-completer[tam] = [@cmd]{
if (== (count $cmd) 2) {
if (at-command $cmd) {
put install uninstall enable disable update list query search
} else {
c = $cmd[1]
@@ -265,6 +268,23 @@ edit:completion:arg-completer[tam] = [@cmd]{
}
}

edit:completion:arg-completer[handlr] = [@cmd]{
if (at-command $cmd) {
put get set add unset launch open list
} elif (and (== (count $cmd) 3) (has-value [get set add unset launch] $cmd[-2])) {
handlr autocomplete -m
} elif (and (== (count $cmd) 4) (has-value [set add] $cmd[-3])) {
handlr autocomplete -d | each [x]{
desktop name = (str:split "\t" $x)
edit:complex-candidate $desktop &display=$desktop' '$name
}
} else {
edit:complete-filename $@cmd
}
}



edit:completion:arg-completer[promotescript] = [@cmd]{
pwd=~/.local/bin fd -t f
}

+ 3
- 3
elvish/lib/git.elv View File

@@ -19,18 +19,18 @@ fn refresh-status {
@data = (git --no-optional-locks status --ignore-submodules --porcelain=v2 -b 2>&-)
branch = [(str:split ' ' $data[1])][2]

if (and (> (count $data) 3) (has-prefix $data[3] '# branch.ab')) {
if (and (> (count $data) 3) (str:has-prefix $data[3] '# branch.ab')) {
ahead behind = (all [(str:split ' ' $data[3])][2..])[1..]
}

for i $data {
if (or (has-prefix $i 1) (has-prefix $i 2)) {
if (or (str:has-prefix $i 1) (str:has-prefix $i 2)) {
if (eq $i[2] '.') {
dirty = (+ $dirty 1)
} else {
staged = (+ $staged 1)
}
} elif (has-prefix $i '?') {
} elif (str:has-prefix $i '?') {
untracked = (+ $untracked 1)
}
}

+ 2
- 2
elvish/lib/util.elv View File

@@ -44,7 +44,7 @@ fn pad [a b &with=' ' &left=$true]{
fn add-before-readline [@hooks]{
for hook $hooks {
if (not (has-value $edit:before-readline $hook)) {
edit:before-readline=[ $@edit:before-readline $hook ]
edit:before-readline = [ $@edit:before-readline $hook ]
}
}
}
@@ -52,7 +52,7 @@ fn add-before-readline [@hooks]{
fn add-after-readline [@hooks]{
for hook $hooks {
if (not (has-value $edit:after-readline $hook)) {
edit:after-readline=[ $@edit:after-readline $hook ]
edit:after-readline = [ $@edit:after-readline $hook ]
}
}
}

+ 0
- 3
elvish/rc.elv View File

@@ -36,9 +36,7 @@ edit:abbr = [
use github.com/xiaq/edit.elv/smart-matcher
use theme
use completers
use autopairs
smart-matcher:apply
autopairs:enable
util:add-before-readline {
util:set-title (tilde-abbr $pwd)
}
@@ -50,4 +48,3 @@ edit:abbr = [

-override-wcwidth 🦀 2
E:GPG_TTY = (tty)
E:NIMPH_TOKEN = (cat ~/sns/github.key)

+ 11
- 7
firefox/homepage.nims View File

@@ -1,7 +1,11 @@
import karax/[karaxdsl, vdom]
import homepageData

func homepage: VNode =
type
Link = tuple[url, label: string]
Category = tuple[name: string, items: seq[Link]]

func homepage(categories: openArray[Category]): VNode =
result = buildHtml(html(lang = "en")):
head:
meta(charset = "UTF-8")
@@ -12,13 +16,13 @@ func homepage: VNode =
link(rel = "stylesheet", `type` = "text/css", href = "homepage.css")
body:
main:
for (category, items) in links:
for (name, items) in categories:
section:
header:
text category
for (l, t) in items:
text name
for (url, label) in items:
tdiv(class = "item"):
a(href = l):
text t
a(href = url):
text label

echo "<!DOCTYPE html>\n", homepage()
echo "<!DOCTYPE html>\n", homepage(links)

+ 8
- 7
kak/autoload/git-branch.kak View File

@@ -1,8 +1,9 @@
declare-option -docstring "git branch holding the current buffer" str git_branch
decl -docstring "git branch holding the current buffer" str git_branch
decl -docstring "modeline string with git branch" -hidden str git_branch_str

hook global WinCreate .* %{
hook window NormalIdle .* %{ evaluate-commands %sh{
branch=$(cd "$(dirname "${kak_buffile}")" && git rev-parse --abbrev-ref HEAD 2>/dev/null)
[ -n "${branch}" ] && printf 'set window git_branch %%{%s}' "${branch}"
} }
}
def refresh-git-branch %{ eval %sh{
branch=$(cd "$(dirname "${kak_buffile}")" && git rev-parse --abbrev-ref HEAD 2>/dev/null)
if [ -n "${branch}" ]; then
printf "set window git_branch %%{${branch}}\nset window git_branch_str %%{${branch} }"
fi
} }

+ 40
- 28
kak/kakrc View File

@@ -7,7 +7,6 @@ eval %sh{

# Initialization

require-module prelude
require-module search-highlighter
require-module word-select
require-module replace-mode
@@ -17,7 +16,7 @@ set global ui_options ncurses_assistant=none
set global scrolloff 7,7
set global autoreload yes
set global grepcmd 'rg -iHL --column'
set global modelinefmt '%opt{git_branch} %val{bufname}
set global modelinefmt '%opt{git_branch_str}%val{bufname}
%val{cursor_line}:%val{cursor_char_column} {{mode_info}}
{{context_info}}◂%val{client}⊙%val{session}▸'

@@ -28,13 +27,6 @@ alias global g grep

face global LineNumbersWrapped black

addhl global/number-lines number-lines -hlcursor -separator ' '
addhl global/ruler column 100 default,rgb:303030
addhl global/trailing-whitespace regex '\h+$' 0:default,red
addhl global/todo regex \b(TODO|FIXME|XXX|NOTE)\b 0:default+rb
addhl global/matching-brackets show-matching
addhl global/wrap wrap -word -indent -marker ''

# Keybinds

map global normal <space> ,
@@ -44,8 +36,8 @@ map global normal -docstring 'comment line' '#' ': comment-line<ret>'
map global normal -docstring 'comment block' '<a-#>' ': comment-block<ret>'
map global normal -docstring 'delete to end of line' D <a-l>d
map global normal -docstring 'yank to end of line' Y <a-l>
map global user -docstring 'replay macro' . q
map global user -docstring 'record macro' <a-.> Q
map global normal -docstring 'replay macro' , q
map global normal -docstring 'record macro' <a-,> Q

map global normal w ': word-select-next-word<ret>'
map global normal <a-w> ': word-select-next-big-word<ret>'
@@ -54,16 +46,15 @@ map global normal <a-q> ': word-select-previous-big-word<ret>'
map global normal Q B
map global normal <a-Q> <a-B>

map global user -docstring 'replace mode' r ': enter-replace-mode<ret>'

map global user -docstring 'change directory' c ': enter-user-mode cd<ret>'
map global user -docstring 'replace mode' <a-r> ': enter-replace-mode<ret>'
map global user -docstring 'change directory' <a-c> ': enter-user-mode cd<ret>'

map global user -docstring 'expand selection' e ': expand<ret>'
map global user -docstring 'expand repeat' E ': expand-repeat<ret>'

map global normal -docstring 'buffers…' b ': enter-buffers-mode<ret>'
map global normal -docstring 'buffers (lock)…' B ': enter-user-mode -lock buffers<ret>'
map global normal -docstring 'select buffer' <a-b> ': explore-buffers<ret>'
map global normal -docstring 'buffers (lock)…' <a-b> ': enter-user-mode -lock buffers<ret>'
map global normal -docstring 'buffer switcher' B ': buffer-switcher<ret>'

declare-user-mode anchor
map global normal ';' ': enter-user-mode anchor<ret>'
@@ -74,14 +65,12 @@ map global anchor -docstring 'reduce to anchor' a '<a-;>;'
map global anchor -docstring 'reduce to cursor' c ';'
map global anchor -docstring 'select cursor and anchor' s '<a-S>'

declare-user-mode clipboard
map global normal ',' ': enter-user-mode clipboard<ret>'
map global clipboard -docstring 'clip-paste after' p '<a-!>xsel -b -o<ret>'
map global clipboard -docstring 'clip-paste before' P '!xsel -b -o<ret>'
map global clipboard -docstring 'clip-paste replace' R '|xsel -b -o<ret>'
map global clipboard -docstring 'clip-yank' y '<a-|>xclip -i -f -sel c<ret>'
map global clipboard -docstring 'clip-cut' d '<a-|>xclip -i -f -sel c<ret><a-d>'
map global clipboard -docstring 'clip-cut -> insert mode' c '<a-|>xclip -i -f -sel c<ret><a-c>'
map global user -docstring 'clip-paste after' p '<a-!>xsel -b -o<ret>'
map global user -docstring 'clip-paste before' P '!xsel -b -o<ret>'
map global user -docstring 'clip-paste replace' R '|xsel -b -o<ret>'
map global user -docstring 'clip-yank' y '<a-|>xclip -i -f -sel c<ret>'
map global user -docstring 'clip-cut' d '<a-|>xclip -i -f -sel c<ret><a-d>'
map global user -docstring 'clip-cut -> insert mode' c '<a-|>xclip -i -f -sel c<ret><a-c>'

# Functions

@@ -91,14 +80,14 @@ def type -params 1 -docstring 'Set buffer filetype' %{

def lint-engage -docstring 'Enable linting' %{
lint-enable
map global user -docstring "next error" l ': lint-next-error<ret>'
map global user -docstring "previous error" L ': lint-previous-error<ret>'
map buffer user -docstring "next error" l ': lint-next-error<ret>'
map buffer user -docstring "previous error" L ': lint-previous-error<ret>'
}

def lsp-engage -docstring 'Enable language server' %{
lsp-enable
lsp-auto-hover-enable
map global user -docstring 'Enter lsp user mode' <a-l> ': enter-user-mode lsp<ret>'
map buffer user -docstring 'Enter lsp user mode' <a-l> ': enter-user-mode lsp<ret>'
}

def lsp-semantic-highlighting -docstring 'Enable semantic highlighting' %{
@@ -134,14 +123,33 @@ def clean-trailing-whitespace -docstring 'Remove trailing whitespace' %{
try %{ exec -draft '%s\h+$<ret>d' }
}

def -hidden -docstring \
'select a word under cursor, or add cursor on next occurrence of current selection' \
select-or-add-cursor %{
try %{
exec "<a-k>\A.\z<ret>"
exec -save-regs '' "_<a-i>w*"
} catch %{
exec -save-regs '' "_*<s-n>"
} catch nop
}

# Hooks

hook global WinCreate .* %{
addhl buffer/number-lines number-lines -hlcursor -separator ' '
addhl buffer/ruler column 100 default,rgb:303030
addhl buffer/trailing-whitespace regex '\h+$' 0:default,red
addhl buffer/todo regex \b(TODO|FIXME|XXX|NOTE)\b 0:default+rb
addhl buffer/matching-brackets show-matching
addhl buffer/wrap wrap -word -indent -marker ''

smarttab
readline-enable
colorcol-enable
colorcol-refresh-continuous
search-highlighter-enable

hook window NormalIdle .* refresh-git-branch
}

hook global KakBegin .* %{
@@ -186,6 +194,10 @@ hook global BufCreate .*\.sccprofile %{ set buffer filetype json }

# Filetype settings

hook global WinSetOption filetype=kak %{
no-tabs 2
}

hook global WinSetOption filetype=sh %{
set buffer lintcmd 'shellcheck --norc -x -f gcc'
lint-on-write

+ 2
- 2
mpd View File

@@ -13,8 +13,8 @@ bind_to_address "127.0.0.1"
bind_to_address "~/.local/share/mpd/socket"
port "6600"
auto_update "yes"
replaygain "album"
replaygain_preamp "0"
# replaygain "album"
# replaygain_preamp "0"
# volume_normalization "no"
# audio_buffer_size "2048"
# buffer_before_play "10%"

+ 1
- 0
mpv/input.conf View File

@@ -8,3 +8,4 @@ Ctrl+Alt+6 change-list glsl-shaders toggle "~~/shaders/denoise_bilateral_mode.gl
Ctrl+Alt+8 change-list glsl-shaders toggle "~~/shaders/darklines_hq.glsl"
Ctrl+Alt+9 change-list glsl-shaders toggle "~~/shaders/thinlines_hq.glsl"
Alt+i cycle interpolation
ctrl+r cycle_values video-rotate "90" "180" "270" "0"

+ 1
- 1
mpv/mpv.conf View File

@@ -6,7 +6,7 @@ autofit-larger=100%x100%
autofit-smaller=40%x40%

# Video
profile=gpu-hq
vo=gpu
gpu-api=vulkan

scale=ewa_lanczossharp

+ 5
- 1
nim.nim View File

@@ -6,6 +6,8 @@ var cross = block:
const cross {.booldefine.} = false
cross

const strip {.booldefine.} = true

proc setCompiler(s: string, compiler = gcc, cpp = false) {.used.} =
let c = findExe s
let cpp = (if cpp: ".cpp" else: "")
@@ -56,7 +58,8 @@ if defined(release) or defined(danger):
switch "passC", "-flto"
switch "passL", "-flto"
switch "passL", "-fuse-linker-plugin"
switch "passL", "-s"
if strip:
switch "passL", "-s"

if defined(danger):
switch "panics", "on"
@@ -70,5 +73,6 @@ elif defined(release):
else:
switch "nimcache", "/tmp/nim/" & projectName()

switch "spellsuggest"
switch "styleCheck", "hint"
switch "hint", "Dependency:on"

+ 0
- 7
pulse/daemon.conf View File

@@ -1,7 +0,0 @@
allow-module-loading = no
use-pid-file = no
log-level = error
default-sample-format = s24le
default-sample-rate = 44100
alternate-sample-rate = 48000
flat-volumes = no

+ 0
- 9
pulse/default.pa View File

@@ -1,9 +0,0 @@
#!/usr/bin/pulseaudio -nF

.fail
load-module module-alsa-sink
load-module module-alsa-source
load-module module-null-sink
load-module module-always-sink
load-module module-native-protocol-unix auth-cookie-enabled=0
load-module module-suspend-on-idle

+ 0
- 4
setup View File

@@ -34,7 +34,6 @@ zathura
neofetch
gtk
user-dirs
pulse
fontconfig'
}

@@ -132,9 +131,6 @@ for arg; do
_install gtk/settings.ini "$CONF/gtk-3.0/settings.ini";;
user-dirs)
_install user-dirs "$CONF/user-dirs.dirs";;
pulse)
_install pulse/default.pa "$CONF/pulse/default.pa"
_install pulse/daemon.conf "$CONF/pulse/daemon.conf";;
fontconfig)
_install fontconfig "$CONF/fontconfig/fonts.conf";;
xonotic)

+ 8
- 5
splug.toml View File

@@ -1,8 +1,5 @@
# Kakoune plugins

["https://github.com/alexherbo2/prelude.kak"]
files = ["rc/prelude.kak", "rc/prelude.sh"]

["https://github.com/alexherbo2/search-highlighter.kak"]
files = ["rc/search-highlighter.kak"]

@@ -30,6 +27,9 @@ files = ["sudo-write.kak"]
["https://github.com/occivink/kakoune-find"]
files = ["find.kak"]

["https://github.com/occivink/kakoune-buffer-switcher"]
files = ["buffer-switcher.kak"]

["https://github.com/occivink/kakoune-gdb"]
files = ["gdb.kak", "gdb-output-handler.perl"]

@@ -39,8 +39,8 @@ files = ["vertical-selection.kak"]
["https://github.com/occivink/kakoune-sort-selections"]
files = ["sort-selections.kak"]

["https://gitlab.com/notramo/elvish.kak"]
files = ["elvish.kak"]
# ["https://gitlab.com/notramo/elvish.kak"]
# files = ["elvish.kak"]

["https://github.com/andreyorst/smarttab.kak"]
files = ["rc/smarttab.kak"]
@@ -51,6 +51,9 @@ files = ["readline.kak"]
["https://gitlab.com/Screwtapello/kakoune-state-save"]
files = ["state-save.kak"]

["https://gitlab.com/Screwtapello/kakoune-repl-buffer"]
files = ["repl-buffer.kak", "repl-buffer-input"]

["https://github.com/kakoune-editor/kakoune-extra-filetypes"]
files = ["rc/glsl.kak"]


+ 2
- 6
sx.sh View File

@@ -2,6 +2,7 @@ xrdb -nocpp "$HOME/.Xresources" &
dbus-update-activation-environment DISPLAY XAUTHORITY
xsetroot -cursor_name left_ptr &
xkbcomp "$DOTS_DIR/layout.xkb" "$DISPLAY" &
disown pipewire &
wlp &
mpd &
perWindowLayoutD &
@@ -9,10 +10,5 @@ disown sxhkd &
disown unclutter &
disown /usr/libexec/xfce-polkit &
disown syncthing -no-browser &
disown polybar -q main &
disown polybar -q secondary &
disown devmon -s \
--exec-on-drive 'notify-send -a udevil -i media-removable "$l" "$f mounted at $d"' \
--exec-on-unmount 'notify-send -a udevil -i media-removable "$l" "$f unmounted from $d"' \
--exec-on-remove 'notify-send -a udevil -i media-removable "$l" "$f removed from $d"' &
disown devmon -s &
exec bspwm

+ 1
- 1
sxhkd View File

@@ -27,7 +27,7 @@ super + Return
exec kitty -1

super + shift + {m,v}
exec {mpv "$(xclip -sel c -o)",pavucontrol-qt}
exec {mpv "$(xclip -sel c -o)",pavucontrol}

super + shift + {n,p}
exec kitty -1 --class=kittyfloat -o initial_window_width=900 -o initial_window_height=900 \

Loading…
Cancel
Save