dev: automated commit - 2025-07-16 19:26:06
This commit is contained in:
parent
fb87c567f6
commit
94487551fc
30 changed files with 173 additions and 157 deletions
|
|
@ -4,7 +4,7 @@ Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Name=Leapp
|
Name=Leapp
|
||||||
GenericName=AWS Profile Manager
|
GenericName=AWS Profile Manager
|
||||||
Exec=/home/forbi/.bin/leapp.sh
|
Exec=/home/forbi/.local/bin/leapp.sh
|
||||||
Categories=IDE;Development
|
Categories=IDE;Development
|
||||||
StartupWMClass=Leapp
|
StartupWMClass=Leapp
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Name=Lens
|
||||||
GenericName=Kubernetes IDE
|
GenericName=Kubernetes IDE
|
||||||
Comment=The Kubernetes IDE
|
Comment=The Kubernetes IDE
|
||||||
Icon=/home/forbi/.local/share/applications/custom/lens.png
|
Icon=/home/forbi/.local/share/applications/custom/lens.png
|
||||||
Exec=/home/forbi/.bin/openlens %U
|
Exec=/home/forbi/.local/bin/openlens.sh %U
|
||||||
Categories=System;
|
Categories=System;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
StartupWMClass=Lens
|
StartupWMClass=Lens
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=NoSQL Booster
|
Name=NoSQL Booster
|
||||||
Exec=/home/forbi/.bin/nosql.sh
|
Exec=/home/forbi/.local/bin/nosql.sh
|
||||||
Icon=~/.local/share/applications/custom/mongo.png
|
Icon=~/.local/share/applications/custom/mongo.png
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Name=Screen Recorder
|
Name=Screen Recorder
|
||||||
GenericName=Screen Recorder
|
GenericName=Screen Recorder
|
||||||
Exec= /home/forbi/.bin/wlrecord.sh -s
|
Exec= /home/forbi/.local/bin/wlrecord.sh -s
|
||||||
Categories=Utility;Application;
|
Categories=Utility;Application;
|
||||||
StartupWMClass=Screen Recorder
|
StartupWMClass=Screen Recorder
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Name=Redis
|
Name=Redis
|
||||||
GenericName=Redis Viewer
|
GenericName=Redis Viewer
|
||||||
Exec=/home/forbi/.bin/redis.sh
|
Exec=/home/forbi/.local/bin/redis.sh
|
||||||
Categories=IDE;Development
|
Categories=IDE;Development
|
||||||
StartupWMClass=Redis
|
StartupWMClass=Redis
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
bin=~/.bin/leapp
|
|
||||||
latest_version_url="https://api.github.com/repos/noovolari/leapp/releases/latest"
|
|
||||||
|
|
||||||
# Function to compare version numbers
|
|
||||||
function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
|
|
||||||
|
|
||||||
# If leapp binary is not found or if there is a newer version, download it
|
|
||||||
if [ ! -f $bin ] || version_gt "$(curl -s $latest_version_url | grep -oP '"tag_name": "\K(.*)(?=")')" "$(basename $bin | grep -oP '\d+\.\d+\.\d+')"; then
|
|
||||||
notify-send -u normal "⏬ Leapp" "Checking for updates..."
|
|
||||||
url="https://asset.noovolari.com/latest/Leapp-appImage.zip"
|
|
||||||
wget -q -O /tmp/leapp.AppImage "$url"
|
|
||||||
unzip /tmp/leapp.AppImage -d /tmp
|
|
||||||
mv /tmp/release/Leapp* $bin
|
|
||||||
chmod +x $bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Execute leapp
|
|
||||||
$bin -f -i $1 -o $2
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
bin=$HOME/.bin/nosql
|
|
||||||
|
|
||||||
# if nosql binary is not found, download it
|
|
||||||
if [ ! -f $bin ]; then
|
|
||||||
echo "Downloading NoSql binary..."
|
|
||||||
url="https://s3.nosqlbooster.com/download/releasesv7/nosqlbooster4mongo-7.1.17.AppImage"
|
|
||||||
wget -q -O $bin $url
|
|
||||||
chmod +x $bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# execute leapp
|
|
||||||
$bin
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
bin=~/.bin/openlens
|
|
||||||
|
|
||||||
repo=MuhammedKalkan/OpenLens
|
|
||||||
# if redis binary is not found, download it
|
|
||||||
if [ ! -f $bin ]; then
|
|
||||||
echo "Downloading openlens binary..."
|
|
||||||
filename=$(curl -s https://api.github.com/repos/$repo/releases/latest | jq -r '.assets[].name' | grep "x86_64.AppImage$")
|
|
||||||
fileurl=$(curl -s https://api.github.com/repos/$repo/releases/latest | jq -r --arg filename $filename '.assets[] | select(.name == $filename) | .browser_download_url')
|
|
||||||
wget -q -O $bin $fileurl
|
|
||||||
chmod +x $bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# execute leapp
|
|
||||||
$bin -f -i $1 -o $2
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Define paths
|
|
||||||
bin_dir=~/.bin
|
|
||||||
bin_file="${bin_dir}/redis"
|
|
||||||
|
|
||||||
# Create directory if it doesn't exist
|
|
||||||
mkdir -p "${bin_dir}"
|
|
||||||
|
|
||||||
# Set current working directory
|
|
||||||
cd "${bin_dir}"
|
|
||||||
|
|
||||||
if [ ! -f "${bin_file}" ]; then
|
|
||||||
notify-send -u normal "⏬ Redis Desktop Manager" "Downloading..."
|
|
||||||
|
|
||||||
# Get latest release info and parse with proper JSON handling
|
|
||||||
release_info=$(curl -s https://api.github.com/repos/qishibo/AnotherRedisDesktopManager/releases/latest)
|
|
||||||
|
|
||||||
# Determine system architecture
|
|
||||||
arch=$(uname -m)
|
|
||||||
if [ "${arch}" = "x86_64" ]; then
|
|
||||||
arch_pattern="x86_64"
|
|
||||||
elif [ "${arch}" = "aarch64" ]; then
|
|
||||||
arch_pattern="arm64"
|
|
||||||
else
|
|
||||||
echo "Unsupported architecture: ${arch}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Find appropriate AppImage for this architecture
|
|
||||||
filename=$(echo "${release_info}" | jq -r ".assets[].name" | grep "AppImage" | grep "${arch_pattern}")
|
|
||||||
echo "Selected filename: ${filename}"
|
|
||||||
|
|
||||||
# Get download URL
|
|
||||||
fileurl=$(echo "${release_info}" | jq -r --arg filename "${filename}" '.assets[] | select(.name == $filename) | .browser_download_url')
|
|
||||||
echo "Download URL: ${fileurl}"
|
|
||||||
|
|
||||||
# Download and make executable
|
|
||||||
if [ -n "${fileurl}" ] && [ "${fileurl}" != "null" ]; then
|
|
||||||
wget -q --show-progress -O "${bin_file}" "${fileurl}"
|
|
||||||
chmod +x "${bin_file}"
|
|
||||||
echo "Successfully downloaded Redis Desktop Manager"
|
|
||||||
else
|
|
||||||
echo "Failed to find download URL for architecture: ${arch}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Execute with parameters if provided
|
|
||||||
"${bin_file}" -f ${1:+"-i"} ${1:+"$1"} ${2:+"-o"} ${2:+"$2"}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
URL=$(curl https://www.sublimemerge.com/download_thanks?target=x64-tar#direct-downloads | grep -oP 'https://download.sublimetext.com/sublime_merge_build_\d+_x64.tar.xz' | head -n 1)
|
|
||||||
VERSION=$(echo $URL | grep -oP '\d+' | head -n 1)
|
|
||||||
FILENAME=sublime_merge_build_"$VERSION"_x64.tar.xz
|
|
||||||
bin=~/.bin/sm
|
|
||||||
|
|
||||||
# set current working directory to ~/.bin
|
|
||||||
cd ~/.bin
|
|
||||||
|
|
||||||
# if FILENAME exists, then exit
|
|
||||||
if [ ! -f $FILENAME ]; then
|
|
||||||
notify-send -u normal "⏬ Sublime Merge" "Updating to version $VERSION"
|
|
||||||
# wget only if file does not exist
|
|
||||||
wget -nc $URL
|
|
||||||
tar -xvf $FILENAME
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f $bin ]; then
|
|
||||||
ln -fs $PWD/sublime_merge/sublime_merge $bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# run sm
|
|
||||||
$bin
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MODULE_URL="mzunino.com.uy/go/code"
|
MODULE_URL="mzunino.com.uy/go/code"
|
||||||
BINARY_NAME="code"
|
BINARY_NAME="code"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
|
||||||
TARGET_DIR="$HOME/.bin"
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
CODE_PATH="$TARGET_DIR/$BINARY_NAME"
|
notify-send "📦 Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
||||||
if [ ! -x "$CODE_PATH" ]; then
|
|
||||||
notify-send "Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
|
||||||
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
||||||
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
fi
|
fi
|
||||||
exec "$CODE_PATH" "$@"
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MODULE_URL="github.com/marianozunino/goq"
|
MODULE_URL="github.com/marianozunino/goq"
|
||||||
BINARY_NAME="goq"
|
BINARY_NAME="goq"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
|
||||||
TARGET_DIR="$HOME/.bin"
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
CODE_PATH="$TARGET_DIR/$BINARY_NAME"
|
notify-send "📦 Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
||||||
if [ ! -x "$CODE_PATH" ]; then
|
|
||||||
notify-send "Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
|
||||||
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
||||||
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
fi
|
fi
|
||||||
exec "$CODE_PATH" "$@"
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
27
local-bin/.local/bin/leapp.sh
Executable file
27
local-bin/.local/bin/leapp.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
REPO="noovolari/leapp"
|
||||||
|
BINARY_NAME="leapp"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
DOWNLOAD_URL="https://asset.noovolari.com/latest/Leapp-appImage.zip"
|
||||||
|
|
||||||
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
|
notify-send "📦 Installing $BINARY_NAME" "Downloading from $REPO..."
|
||||||
|
|
||||||
|
mkdir -p "$TARGET_DIR"
|
||||||
|
|
||||||
|
wget -q -O /tmp/leapp.zip "$DOWNLOAD_URL" || {
|
||||||
|
notify-send -u critical "Installation Failed" "Failed to download $BINARY_NAME from $REPO"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
unzip -q /tmp/leapp.zip -d /tmp/leapp_extract
|
||||||
|
find /tmp/leapp_extract -name "Leapp*" -type f | head -1 | xargs -I {} mv {} "$BINARY_PATH"
|
||||||
|
chmod +x "$BINARY_PATH"
|
||||||
|
|
||||||
|
rm -rf /tmp/leapp.zip /tmp/leapp_extract
|
||||||
|
|
||||||
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
22
local-bin/.local/bin/nosql.sh
Executable file
22
local-bin/.local/bin/nosql.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
BINARY_NAME="nosql"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
DOWNLOAD_URL="https://s3.nosqlbooster.com/download/releasesv7/nosqlbooster4mongo-7.1.17.AppImage"
|
||||||
|
|
||||||
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
|
notify-send "📦 Installing $BINARY_NAME" "Downloading NoSQL Booster..."
|
||||||
|
|
||||||
|
mkdir -p "$TARGET_DIR"
|
||||||
|
|
||||||
|
wget -q -O "$BINARY_PATH" "$DOWNLOAD_URL" || {
|
||||||
|
notify-send -u critical "Installation Failed" "Failed to download $BINARY_NAME"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
chmod +x "$BINARY_PATH"
|
||||||
|
|
||||||
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
26
local-bin/.local/bin/openlens.sh
Executable file
26
local-bin/.local/bin/openlens.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
REPO="MuhammedKalkan/OpenLens"
|
||||||
|
BINARY_NAME="openlens"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
|
||||||
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
|
notify-send "📦 Installing $BINARY_NAME" "Downloading from GitHub repository $REPO..."
|
||||||
|
|
||||||
|
mkdir -p "$TARGET_DIR"
|
||||||
|
|
||||||
|
arch=$(uname -m)
|
||||||
|
filename=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.assets[].name' | grep "${arch}.AppImage$")
|
||||||
|
fileurl=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r --arg filename "$filename" '.assets[] | select(.name == $filename) | .browser_download_url')
|
||||||
|
|
||||||
|
wget -q -O "$BINARY_PATH" "$fileurl" || {
|
||||||
|
notify-send -u critical "Installation Failed" "Failed to download $BINARY_NAME from $REPO"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
chmod +x "$BINARY_PATH"
|
||||||
|
|
||||||
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
26
local-bin/.local/bin/redis.sh
Executable file
26
local-bin/.local/bin/redis.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
REPO="qishibo/AnotherRedisDesktopManager"
|
||||||
|
BINARY_NAME="redis"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
|
||||||
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
|
notify-send "📦 Installing $BINARY_NAME" "Downloading from GitHub repository $REPO..."
|
||||||
|
|
||||||
|
mkdir -p "$TARGET_DIR"
|
||||||
|
|
||||||
|
arch=$(uname -m)
|
||||||
|
filename=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.assets[].name' | grep "AppImage" | grep "$arch")
|
||||||
|
fileurl=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r --arg filename "$filename" '.assets[] | select(.name == $filename) | .browser_download_url')
|
||||||
|
|
||||||
|
wget -q -O "$BINARY_PATH" "$fileurl" || {
|
||||||
|
notify-send -u critical "Installation Failed" "Failed to download $BINARY_NAME from $REPO"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
chmod +x "$BINARY_PATH"
|
||||||
|
|
||||||
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
GO_PACKAGE="github.com/marianozunino/rop"
|
MODULE_URL="github.com/marianozunino/rop"
|
||||||
BINARY_NAME="rop"
|
BINARY_NAME="rop"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
|
||||||
TARGET_DIR="$HOME/.bin"
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
CODE_PATH="$TARGET_DIR/$BINARY_NAME"
|
notify-send "📦 Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
||||||
if [ ! -x "$CODE_PATH" ]; then
|
|
||||||
notify-send "Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
|
||||||
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
||||||
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
fi
|
fi
|
||||||
exec "$CODE_PATH" "$@"
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MODULE_URL="github.com/marianozunino/sdm-ui"
|
MODULE_URL="github.com/marianozunino/sdm-ui"
|
||||||
BINARY_NAME="sdm-ui"
|
BINARY_NAME="sdm-ui"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
|
||||||
TARGET_DIR="$HOME/.bin"
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
CODE_PATH="$TARGET_DIR/$BINARY_NAME"
|
notify-send "📦 Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
||||||
if [ ! -x "$CODE_PATH" ]; then
|
|
||||||
notify-send "Installing $BINARY_NAME" "Installing from $MODULE_URL..."
|
|
||||||
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
GO111MODULE=on GOBIN="$TARGET_DIR" go install "$MODULE_URL@latest" || {
|
||||||
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
notify-send -u critical "Installation Failed" "Failed to install $BINARY_NAME from $MODULE_URL"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
fi
|
fi
|
||||||
exec "$CODE_PATH" "$@"
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
34
local-bin/.local/bin/sm.sh
Executable file
34
local-bin/.local/bin/sm.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
BINARY_NAME="sm"
|
||||||
|
TARGET_DIR="$HOME/.local/bin"
|
||||||
|
BINARY_PATH="$TARGET_DIR/$BINARY_NAME"
|
||||||
|
SUBLIME_DIR="$TARGET_DIR/sublime_merge"
|
||||||
|
|
||||||
|
if [ ! -x "$BINARY_PATH" ]; then
|
||||||
|
notify-send "📦 Installing $BINARY_NAME" "Downloading Sublime Merge..."
|
||||||
|
|
||||||
|
mkdir -p "$TARGET_DIR"
|
||||||
|
|
||||||
|
URL=$(curl -s "https://www.sublimemerge.com/download_thanks?target=x64-tar" | grep -oP 'https://download.sublimetext.com/sublime_merge_build_\d+_x64.tar.xz' | head -n 1)
|
||||||
|
VERSION=$(echo "$URL" | grep -oP '\d+' | head -n 1)
|
||||||
|
FILENAME="sublime_merge_build_${VERSION}_x64.tar.xz"
|
||||||
|
|
||||||
|
cd "$TARGET_DIR"
|
||||||
|
|
||||||
|
if [ ! -f "$FILENAME" ]; then
|
||||||
|
wget -q "$URL" || {
|
||||||
|
notify-send -u critical "Installation Failed" "Failed to download $BINARY_NAME"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
tar -xf "$FILENAME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$BINARY_PATH" ]; then
|
||||||
|
ln -s "$SUBLIME_DIR/sublime_merge" "$BINARY_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
notify-send "Installation Complete" "$BINARY_NAME has been installed successfully"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$BINARY_PATH" "$@"
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
bindsym {
|
bindsym {
|
||||||
$mod+Shift+r exec swaymsg reload && notify-send "Reloaded sway config"
|
$mod+Shift+r exec swaymsg reload && notify-send "Reloaded sway config"
|
||||||
$mod+Shift+e exec --no-startup-id wlogout
|
$mod+Shift+e exec --no-startup-id wlogout
|
||||||
$mod+Escape exec ~/.bin/lock.sh
|
$mod+Escape exec ~/.local/bin/lock.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
# Gestures
|
# Gestures
|
||||||
|
|
@ -16,9 +16,9 @@ bindgesture swipe:down workspace prev
|
||||||
bindsym {
|
bindsym {
|
||||||
$mod+Return exec $term
|
$mod+Return exec $term
|
||||||
$mod+d exec rofi -show combi -combi-modi "window,drun" -modi combi
|
$mod+d exec rofi -show combi -combi-modi "window,drun" -modi combi
|
||||||
$mod+t exec ~/.bin/code.sh -s ~/.bin/fuzzel.lua
|
$mod+t exec ~/.local/bin/code.sh -s ~/.bin/fuzzel.lua
|
||||||
$mod+shift+t exec ~/.bin/present
|
$mod+shift+t exec ~/.local/bin/present
|
||||||
$mod+n exec ~/.bin/sdm-ui.sh dmenu
|
$mod+n exec ~/.local/bin/sdm-ui.sh dmenu
|
||||||
$mod+o exec ~/.local/bin/launch-or-focus obsidian "cd /home/forbi/Documents/Vault && $term --class obsidian nvim"
|
$mod+o exec ~/.local/bin/launch-or-focus obsidian "cd /home/forbi/Documents/Vault && $term --class obsidian nvim"
|
||||||
$mod+e exec nemo
|
$mod+e exec nemo
|
||||||
}
|
}
|
||||||
|
|
@ -96,10 +96,10 @@ bindsym {
|
||||||
# Special Functions
|
# Special Functions
|
||||||
bindsym {
|
bindsym {
|
||||||
F4 exec switch-windows
|
F4 exec switch-windows
|
||||||
$mod+r exec --no-startup-id ~/.bin/wlrecord.sh
|
$mod+r exec --no-startup-id ~/.local/bin/wlrecord.sh
|
||||||
$mod+p exec --no-startup-id grim -g "$(slurp -d)" - | swappy -f -
|
$mod+p exec --no-startup-id grim -g "$(slurp -d)" - | swappy -f -
|
||||||
$mod+shift+p exec --no-startup-id ~/.bin/screenshot-upload
|
$mod+shift+p exec --no-startup-id ~/.local/bin/screenshot-upload
|
||||||
$mod+F5 exec --no-startup-id ~/.bin/pause-notifications
|
$mod+F5 exec --no-startup-id ~/.local/bin/pause-notifications
|
||||||
$mod+shift+d exec ~/.local/bin/satty-window
|
$mod+shift+d exec ~/.local/bin/satty-window
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue