You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.elv 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. conf = $E:XDG_CONFIG_HOME
  2. dot = $E:DOTS_DIR
  3. ntrtmp = $conf/ntr/templates
  4. fn select [@a]{
  5. fd . -L -t f $@a | sk --height=35% --layout=reverse -m
  6. }
  7. fn edit [&type='' @a]{
  8. settype = []
  9. if (not-eq $type '') {
  10. settype = ['-e' 'set buffer filetype '$type]
  11. }
  12. kak $@settype $@a
  13. }
  14. fn profile { edit $E:HOME/.profile }
  15. fn sx { edit &type=sh $conf/sx/sxrc }
  16. fn git { edit $conf/git/config }
  17. fn xbps-src { edit &type=sh $E:XBPS_DISTDIR/etc/conf }
  18. fn bspwm { edit &type=sh $conf/bspwm/bspwmrc }
  19. fn sxhkd { edit $conf/sxhkd/sxhkdrc; pkill -USR1 -x sxhkd }
  20. fn polybar { edit $ntrtmp/polybar }
  21. fn rofi { edit &type=css $conf/rofi/config.rasi }
  22. fn dunst { edit $ntrtmp/dunst }
  23. fn elvish { pwd=~/.elvish edit (select -e elv) }
  24. fn nim { edit $conf/nim/config.nims }
  25. fn min { edit $E:HOME/.minrc }
  26. fn ntr { pwd=$conf/ntr edit (select) }
  27. fn splug { edit $conf/splug/config.toml }
  28. fn kitty { edit &type=ini $conf/kitty/kitty.conf }
  29. fn kitty-diff { edit &type=ini $conf/kitty/diff.conf }
  30. fn kitty-colors { edit &type=ini $dot/ntr/templates/kitty-colors }
  31. fn ranger { edit $conf/ranger/rc.conf }
  32. fn rifle { edit $conf/ranger/rifle.conf }
  33. fn lc { edit $conf/lc/config }
  34. fn kak { edit $conf/kak/kakrc }
  35. fn pqiv { edit $conf/pqivrc }
  36. fn mpv { edit $conf/mpv/mpv.conf }
  37. fn mpwc { edit $conf/mpwc/(cat ~/sns/mpwname).mpsites }
  38. fn ncmpcpp { edit &type=ini $conf/ncmpcpp/config }
  39. fn bedrock { edit /bedrock/etc/bedrock.conf; sudo brl apply }
  40. fn homepage { edit $dot/firefox/homepage.nims; e:nim e -p:$E:HOME/sns/ $dot/firefox/homepage.nims >~/.mozilla/firefox/homepage.html }
  41. fn layout { edit $dot/layout.xkb; xkbcomp $dot/layout.xkb $E:DISPLAY }