summaryrefslogtreecommitdiff
path: root/arch/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'arch/scripts')
-rwxr-xr-xarch/scripts/.local/bin/Haifufubin0 -> 21888 bytes
-rw-r--r--arch/scripts/.local/bin/seshc.sh19
-rw-r--r--arch/scripts/.local/bin/tmux-restore.sh8
-rwxr-xr-xarch/scripts/.local/bin/vesktop3
4 files changed, 30 insertions, 0 deletions
diff --git a/arch/scripts/.local/bin/Haifufu b/arch/scripts/.local/bin/Haifufu
new file mode 100755
index 0000000..18674bd
--- /dev/null
+++ b/arch/scripts/.local/bin/Haifufu
Binary files differ
diff --git a/arch/scripts/.local/bin/seshc.sh b/arch/scripts/.local/bin/seshc.sh
new file mode 100644
index 0000000..0c659d6
--- /dev/null
+++ b/arch/scripts/.local/bin/seshc.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+query="${1:-}"
+
+sessions=$(sesh list -j -t)
+
+if [[ -z "$query" ]]; then
+ name=$(jq -r '.[0].Name' <<<"$sessions")
+else
+ name=$(jq -r '.[].Name' <<<"$sessions" | fzf --filter "$query" | head -n1)
+fi
+
+if [[ -z "${name:-}" ]]; then
+ echo "${0:-}: no session matched '$query'" >&2
+ exit 1
+fi
+
+exec sesh connect "$name"
diff --git a/arch/scripts/.local/bin/tmux-restore.sh b/arch/scripts/.local/bin/tmux-restore.sh
new file mode 100644
index 0000000..2788c51
--- /dev/null
+++ b/arch/scripts/.local/bin/tmux-restore.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+tmux start-server
+tmux has-session -t main 2>/dev/null || tmux new-session -d -s main
+sleep 0.3
+tmux send-keys -t main C-Space
+sleep 0.1
+tmux send-keys -t main C-r
diff --git a/arch/scripts/.local/bin/vesktop b/arch/scripts/.local/bin/vesktop
new file mode 100755
index 0000000..6f96421
--- /dev/null
+++ b/arch/scripts/.local/bin/vesktop
@@ -0,0 +1,3 @@
+#!/bin/bash
+export PULSE_SINK=discord_sink
+exec /usr/sbin/vesktop "$@"