Add aura farming
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
11
hosts/himalia/hardware/scripts/farm-aura.sh
Executable file
11
hosts/himalia/hardware/scripts/farm-aura.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
SESSION_NAME="aura-farm-$$"
|
||||
|
||||
tmux new-session -d -s "$SESSION_NAME" "genact -s 25"
|
||||
tmux set-hook -t "$SESSION_NAME" pane-exited "run-shell 'tmux kill-session -t $SESSION_NAME'"
|
||||
|
||||
for _ in {1..4}; do
|
||||
tmux split-window -t "$SESSION_NAME" -h "genact -s 25"
|
||||
done
|
||||
|
||||
tmux select-layout -t "$SESSION_NAME" tiled
|
||||
tmux attach-session -t "$SESSION_NAME"
|
24
hosts/himalia/hardware/scripts/touchpad-helper.sh
Normal file
24
hosts/himalia/hardware/scripts/touchpad-helper.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
HYPRLAND_DEVICE="$1"
|
||||
export STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status"
|
||||
|
||||
enable_touchpad() {
|
||||
echo -n "true" >"$STATUS_FILE"
|
||||
hyprctl keyword "device[$HYPRLAND_DEVICE]:enabled" true
|
||||
}
|
||||
|
||||
disable_touchpad() {
|
||||
echo -n "false" >"$STATUS_FILE"
|
||||
hyprctl keyword "device[$HYPRLAND_DEVICE]:enabled" false
|
||||
}
|
||||
|
||||
if ! [ -f "$STATUS_FILE" ]; then
|
||||
disable_touchpad
|
||||
else
|
||||
if [ "$(<"$STATUS_FILE")" = "true" ]; then
|
||||
disable_touchpad
|
||||
elif [ "$(<"$STATUS_FILE")" = "false" ]; then
|
||||
enable_touchpad
|
||||
fi
|
||||
fi
|
Reference in New Issue
Block a user