Adding wrappers for various programs

This commit is contained in:
Siina Mashek 2024-04-04 06:35:00 +03:00
parent b96369be23
commit 9388a66727
4 changed files with 15 additions and 20 deletions

4
apsalar/heroic-run Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
/usr/bin/heroic-run --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto

6
apsalar/nc-sync Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
NC_DIR="$HOME/Nextcloud"
NC_URL="https://cloud.criminallycute.fi"
nextcloudcmd -u $NC_USER -p $NC_PASS $NC_DIR $NC_URL

4
apsalar/profanity-autostart Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Wrapper for launching profanity via bemenu
# `--class` sets wayland `app_id`
kitty --class profanity profanity

View File

@ -1,23 +1,4 @@
#!/bin/sh
arRPCdir="$HOME/.local/lib/arRPC"
# check if arRPC is installed and autoinstall if necessary
install_arRPC () {
git clone https://github.com/OpenAsar/arRPC "$arRPCdir"
cd "$arRPCdir" && npm install
}
if [ ! -d "$arRPCdir" ]; then
install_arRPC
fi
# start arRPC
cd "$arRPCdir" && node src &
arRPCPID=$(pgrep -f 'node src')
# start Vesktop
/usr/local/bin/vesktop
# exit arRPC when Vesktop closes
pkill -9 $arRPCPID
$HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto