Browse Source

file dance

master
Alison Watson 1 year ago
parent
commit
27b266450b
36 changed files with 21 additions and 25 deletions
  1. +1
    -1
      .gitignore
  2. +4
    -8
      applications/fish
  3. +0
    -0
      build-system/rebuild-pkgs.rkt
  4. +8
    -8
      build-system/rebuild.rkt
  5. +0
    -0
      fish/bindings
  6. +0
    -0
      fish/build-hosts
  7. +0
    -0
      fish/cheat
  8. +0
    -0
      fish/crtolf
  9. +0
    -0
      fish/find-no-album-artist
  10. +0
    -0
      fish/find-stereo
  11. +0
    -0
      fish/flac2mp3
  12. +0
    -0
      fish/generate-grub
  13. +0
    -0
      fish/homebrew
  14. +0
    -0
      fish/makepkg
  15. +0
    -0
      fish/megadl
  16. +1
    -1
      fish/prompt
  17. +0
    -0
      fish/ql
  18. +1
    -1
      fish/rebuild
  19. +0
    -0
      fish/show-colors
  20. +0
    -0
      fish/transfer
  21. +0
    -0
      fish/update-vim-plugins
  22. +0
    -0
      fish/vm-macemu
  23. +1
    -1
      fish/vm-nextemu
  24. +1
    -1
      fish/vm-qemu
  25. +0
    -0
      fish/vnc
  26. +0
    -0
      sshot/sharenix
  27. +1
    -1
      sshot/sharenix-cw
  28. +1
    -1
      sshot/sharenix-fs
  29. +1
    -1
      sshot/sharenix-sel
  30. +0
    -0
      system/services/hourly
  31. +1
    -1
      system/services/marrub.service
  32. +0
    -0
      text/merge-ini
  33. +0
    -0
      text/mid.awk
  34. +0
    -0
      text/newcomments.sed
  35. +0
    -0
      text/newcomments2.sed
  36. +0
    -0
      text/oldcomments.sed

+ 1
- 1
.gitignore View File

@@ -1 +1 @@
scripts/fish/priv
fish/priv

+ 4
- 8
applications/fish View File

@@ -7,10 +7,9 @@ end

# bootstrapping information
# required universal variables:
# - _agw_dir_bin = volatile binary storage
# - _agw_dir_rc = the directory holding this repository
# - _agw_dir_scripts = the directory for user-facing scripts
# - _agw_dir_src = non-volatile source code storage
# - _agw_dir_bin = volatile binary storage
# - _agw_dir_rc = the directory holding this repository
# - _agw_dir_src = non-volatile source code storage
switch (uname)
case Linux
set -gx CC clang
@@ -19,7 +18,6 @@ switch (uname)
set -gx RIPGREP_CONFIG_PATH ~/.config/ripgreprc
set -Ux _agw_dir_bin ~/bin
set -Ux _agw_dir_rc ~/rc
set -Ux _agw_dir_scripts ~/rc/scripts
set -Ux _agw_dir_src ~/src
case Darwin
set -gx CMAKE_PREFIX_PATH /usr/local/opt/qt/
@@ -29,7 +27,6 @@ switch (uname)
set -gx fish_user_paths "/usr/local/opt/ruby/bin" $fish_user_paths
set -Ux _agw_dir_bin ~/Binaries
set -Ux _agw_dir_rc ~/Sources/scripts
set -Ux _agw_dir_scripts ~/Scripts
set -Ux _agw_dir_src ~/Sources
case NetBSD
# Yes, these are *actually* needed.
@@ -50,7 +47,6 @@ switch (uname)
set -gx PKG_PATH "http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/"(uname -p)"/"(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)"/All"
set -Ux _agw_dir_bin ~/bin
set -Ux _agw_dir_rc ~/rc
set -Ux _agw_dir_scripts ~/rc/scripts
set -Ux _agw_dir_src ~/src
case \*
echo (set_color red)"This platform is not configured!"
@@ -61,7 +57,7 @@ if test -f ~/.cargo/env
source ~/.cargo/env
end

for f in (find $_agw_dir_scripts/fish -type f)
for f in (find $_agw_dir_rc/fish -type f)
source $f
end



scripts/rebuild-pkgs.rkt → build-system/rebuild-pkgs.rkt View File


scripts/rebuild.rkt → build-system/rebuild.rkt View File

@@ -67,8 +67,8 @@
(define (resume-from-pkg input-pkg [pkg-list all-packages])
(let ([package (car pkg-list)])
(if (equal? package input-pkg)
pkg-list
(resume-from-pkg input-pkg (cdr pkg-list)))))
pkg-list
(resume-from-pkg input-pkg (cdr pkg-list)))))

(let* ([resume-from (make-parameter '())]
[cmdline-pkgs (command-line
@@ -78,12 +78,12 @@
(resume-from pkg)]
#:args pkgs (map string->symbol pkgs))]
[pkgs (if (null? cmdline-pkgs)
(let ([input-package (resume-from)])
(if (null? input-package)
all-packages
(resume-from-pkg (string->symbol input-package))))
cmdline-pkgs)])
(let ([input-package (resume-from)])
(if (null? input-package)
all-packages
(resume-from-pkg (string->symbol input-package))))
cmdline-pkgs)])
(for ([package pkgs])
(build-pkg package (hash-ref package-options package (hash)))))
(build-pkg package (hash-ref package-options package (hash)))))

;; EOF

scripts/fish/bindings → fish/bindings View File


scripts/fish/build-hosts → fish/build-hosts View File


scripts/fish/cheat → fish/cheat View File


scripts/fish/crtolf → fish/crtolf View File


scripts/fish/find-no-album-artist → fish/find-no-album-artist View File


scripts/fish/find-stereo → fish/find-stereo View File


scripts/fish/flac2mp3 → fish/flac2mp3 View File


scripts/fish/generate-grub → fish/generate-grub View File


scripts/fish/homebrew → fish/homebrew View File


scripts/fish/makepkg → fish/makepkg View File


scripts/fish/megadl → fish/megadl View File


scripts/fish/prompt → fish/prompt View File

@@ -23,7 +23,7 @@ function fish_greeting
set_color c50ed2

echo "Word of the moment: "(shuf -n1 /usr/share/dict/words) |
awk -f $_agw_dir_scripts/text/mid.awk col=$COLUMNS
awk -f $_agw_dir_rc/text/mid.awk col=$COLUMNS

set_color normal
end

scripts/fish/ql → fish/ql View File


scripts/fish/rebuild → fish/rebuild View File

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

function rebuild -d 'Builds an AUR package'
$_agw_dir_scripts/rebuild.rkt $argv
$_agw_dir_rc/build-system/rebuild.rkt $argv
end

## EOF

scripts/fish/show-colors → fish/show-colors View File


scripts/fish/transfer → fish/transfer View File


scripts/fish/update-vim-plugins → fish/update-vim-plugins View File


scripts/fish/vm-macemu → fish/vm-macemu View File


scripts/fish/vm-nextemu → fish/vm-nextemu View File

@@ -6,7 +6,7 @@ function vm-nextemu -d "Frontend to Previous" -a cfg
touch $config
chmod u+w $config

$_agw_dir_scripts/merge-ini \
$_agw_dir_rc/text/merge-ini \
$_agw_dir_rc/virtual-machines/NeXT/common \
$_agw_dir_rc/virtual-machines/NeXT/$cfg \
$config

scripts/fish/vm-qemu → fish/vm-qemu View File

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

function vm-qemu -d "Frontend to QEMU"
$_agw_dir_rc/virtual-machines/qemu-setup $argv
$_agw_dir_rc/virtual-machines/QEMU/vm-qemu.rkt $argv
end

complete -c vm-qemu -xa "(ls $_agw_dir_rc/virtual-machines)"

scripts/fish/vnc → fish/vnc View File


scripts/sharenix → sshot/sharenix View File


scripts/sharenix-cw → sshot/sharenix-cw View File

@@ -1,4 +1,4 @@
#!/usr/bin/env fish

source "$_agw_dir_scripts/sharenix"
source "$_agw_dir_rc/sshot/sharenix"
run_spectacle -a

scripts/sharenix-fs → sshot/sharenix-fs View File

@@ -1,4 +1,4 @@
#!/usr/bin/env fish

source "$_agw_dir_scripts/sharenix"
source "$_agw_dir_rc/sshot/sharenix"
run_spectacle -m

scripts/sharenix-sel → sshot/sharenix-sel View File

@@ -1,4 +1,4 @@
#!/usr/bin/env fish

source "$_agw_dir_scripts/sharenix"
source "$_agw_dir_rc/sshot/sharenix"
run_spectacle -r

scripts/hourly → system/services/hourly View File


+ 1
- 1
system/services/marrub.service View File

@@ -2,7 +2,7 @@
Description=Run some crap

[Service]
ExecStart=/usr/bin/env fish --command='$_agw_dir_scripts/hourly'
ExecStart=/usr/bin/env fish --command='$_agw_dir_rc/system/services/hourly'

[Install]
WantedBy=basic.target

scripts/merge-ini → text/merge-ini View File


scripts/text/mid.awk → text/mid.awk View File


scripts/text/newcomments.sed → text/newcomments.sed View File


scripts/text/newcomments2.sed → text/newcomments2.sed View File


scripts/text/oldcomments.sed → text/oldcomments.sed View File


Loading…
Cancel
Save