mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2025-01-08 19:23:43 +01:00
move playtwitch to seperate dune project
This commit is contained in:
parent
47cda28e7e
commit
c70546c767
9 changed files with 36 additions and 30 deletions
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
|
|
||||||
paru -S --needed --noconfirm \
|
|
||||||
bash-language-server \
|
|
||||||
lua-language-server \
|
|
||||||
rust-analyzer \
|
|
||||||
taplo-lsp \
|
|
||||||
vscode-langservers-extracted \
|
|
||||||
yaml-language-server
|
|
|
@ -13,8 +13,9 @@ lspc.cssls.setup { capabilities = caps }
|
||||||
lspc.eslint.setup { capabilities = caps }
|
lspc.eslint.setup { capabilities = caps }
|
||||||
lspc.html.setup { capabilities = caps }
|
lspc.html.setup { capabilities = caps }
|
||||||
lspc.jsonls.setup { capabilities = caps }
|
lspc.jsonls.setup { capabilities = caps }
|
||||||
|
lspc.ocamllsp.setup { capabilities = caps }
|
||||||
lspc.rust_analyzer.setup { capabilities = caps }
|
lspc.rust_analyzer.setup { capabilities = caps }
|
||||||
lspc.sumneko_lua.setup { -- paru -S lua-language-server
|
lspc.sumneko_lua.setup {
|
||||||
capabilities = caps,
|
capabilities = caps,
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
|
|
33
justfile
33
justfile
|
@ -1,9 +1,32 @@
|
||||||
install-scripts target="$HOME/.local/bin":
|
lsps := "
|
||||||
#!/bin/sh
|
bash-language-server
|
||||||
zig build-exe \
|
lua-language-server
|
||||||
|
rust-analyzer
|
||||||
|
taplo-lsp
|
||||||
|
vscode-langservers-extracted
|
||||||
|
yaml-language-server
|
||||||
|
"
|
||||||
|
|
||||||
|
install-scripts target=(`echo $HOME` + "/.local/bin"):
|
||||||
|
cd scripts && zig build-exe \
|
||||||
-lc -lX11 -lXinerama \
|
-lc -lX11 -lXinerama \
|
||||||
scripts/randomwallpaper.zig \
|
randomwallpaper.zig \
|
||||||
-femit-bin={{target}}/randomwallpaper
|
-femit-bin={{target}}/randomwallpaper
|
||||||
|
|
||||||
|
opam install --yes clap
|
||||||
|
cd scripts/playtwitch && dune build
|
||||||
|
cp scripts/playtwitch/_build/default/playtwitch.exe {{target}}/playtwitch
|
||||||
|
|
||||||
ln -sf \
|
ln -sf \
|
||||||
`pwd`/scripts/{playtwitch,start-joshuto,withjava} \
|
`pwd`/scripts/{start-joshuto,withjava} \
|
||||||
{{target}}
|
{{target}}
|
||||||
|
|
||||||
|
install-lsps-paru:
|
||||||
|
#!/bin/sh
|
||||||
|
paru -S --needed --noconfirm {{replace(lsps, "\n", " ")}}
|
||||||
|
|
||||||
|
if which opam &> /dev/null; then
|
||||||
|
opam install --yes \
|
||||||
|
ocaml-lsp-server \
|
||||||
|
ocamlformat
|
||||||
|
fi
|
||||||
|
|
0
.gitignore → scripts/.gitignore
vendored
0
.gitignore → scripts/.gitignore
vendored
2
scripts/playtwitch/.gitignore
vendored
Normal file
2
scripts/playtwitch/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
_build/
|
||||||
|
*.exe
|
3
scripts/playtwitch/dune
Normal file
3
scripts/playtwitch/dune
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
(executable
|
||||||
|
(name playtwitch)
|
||||||
|
(libraries clap))
|
1
scripts/playtwitch/dune-project
Normal file
1
scripts/playtwitch/dune-project
Normal file
|
@ -0,0 +1 @@
|
||||||
|
(lang dune 2.9)
|
13
scripts/playtwitch → scripts/playtwitch/playtwitch.ml
Executable file → Normal file
13
scripts/playtwitch → scripts/playtwitch/playtwitch.ml
Executable file → Normal file
|
@ -1,16 +1,3 @@
|
||||||
#!/usr/bin/env scriptisto
|
|
||||||
|
|
||||||
(*
|
|
||||||
scriptisto-begin
|
|
||||||
script_src: playtwitch.ml
|
|
||||||
build_cmd: dune build playtwitch.exe
|
|
||||||
target_bin: ./_build/default/playtwitch.exe
|
|
||||||
files:
|
|
||||||
- path: dune
|
|
||||||
content: (executable (name playtwitch) (libraries clap))
|
|
||||||
scriptisto-end
|
|
||||||
*)
|
|
||||||
|
|
||||||
Clap.description "play a twitch stream using streamlink";
|
Clap.description "play a twitch stream using streamlink";
|
||||||
let stream_name = Clap.mandatory_string ~placeholder:"stream_name" () in
|
let stream_name = Clap.mandatory_string ~placeholder:"stream_name" () in
|
||||||
let quality = Clap.default_string ~placeholder:"quality" "best" in
|
let quality = Clap.default_string ~placeholder:"quality" "best" in
|
|
@ -1,4 +1,3 @@
|
||||||
// zig build-exe -lc -lX11 -lXinerama randomwallpaper.zig -femit-bin=$HOME/.local/bin/randomwallpaper
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const mem = std.mem;
|
const mem = std.mem;
|
||||||
const c = @cImport({
|
const c = @cImport({
|
||||||
|
|
Loading…
Reference in a new issue