-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathlocal_hhd.sh
More file actions
executable file
·25 lines (22 loc) · 943 Bytes
/
local_hhd.sh
File metadata and controls
executable file
·25 lines (22 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/bash
# Runs a new handheld daemon version until reboot
sudo systemctl stop hhd@$(whoami)
sudo systemctl stop hhd_local@$(whoami)
sudo pkill hhd
rm -rf ~/.local/share/hhd-tmp
mkdir -p ~/.local/share/hhd-tmp
python -m venv --system-site-packages ~/.local/share/hhd-tmp/venv
~/.local/share/hhd-tmp/venv/bin/pip install git+https://github.com/hhd-dev/adjustor git+https://github.com/hhd-dev/hhd
FINAL_URL='https://api.github.com/repos/hhd-dev/hhd-ui/releases/latest'
curl -L $(curl -s "${FINAL_URL}" | grep "browser_download_url" | cut -d '"' -f 4) -o $HOME/.local/share/hhd-tmp/hhd-ui
chmod +x $HOME/.local/share/hhd-tmp/hhd-ui
nohup sudo \
HHD_ALLY_POWERSAVE=1 \
HHD_HORI_STEAM=1 \
HHD_PPD_MASK=1 \
HHD_HIDE_ALL=1 \
HHD_GS_STEAMUI_HALFHZ=1 \
HHD_GS_DPMS=1 \
HHD_GS_STANDBY=1 \
HHD_OVERLAY="$HOME/.local/share/hhd-tmp/hhd-ui" \
~/.local/share/hhd-tmp/venv/bin/hhd --user $(whoami) &> /dev/null &