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.4KB

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