to merge 2

This commit is contained in:
stupidcomputer 2024-11-04 00:39:11 -06:00
parent e4793ab107
commit dd2cccf48c
4 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
termux: termux-pkgs termux-dots utils-sh rebuild-sh st pip-pkgs git-annex.linux sssg termux: termux-pkgs termux-dots utils-sh rebuild-sh st pip-pkgs git-annex.linux sssg statusbar-polyfill
list: options # alias list: options # alias
options: options:
@ -87,3 +87,6 @@ git-annex.linux:
sssg: sssg:
-cp ~/git/sssg/sssg.sh ~/.local/bin/sssg -cp ~/git/sssg/sssg.sh ~/.local/bin/sssg
-chmod +x ~/.local/bin/sssg -chmod +x ~/.local/bin/sssg
statusbar-polyfill:
cp ~/dot_testing/builds/statusbar/termux-statusbar-polyfill ~/.local/bin

View File

@ -179,17 +179,22 @@ def main():
os.mkdir("/home/usr/.cache/statusbar") os.mkdir("/home/usr/.cache/statusbar")
except FileExistsError: except FileExistsError:
pass pass
except FileNotFoundError:
# we're on the phone
try:
os.mkdir("/data/data/com.termux/files/home/.cache/statusbar")
except FileExistsError:
pass
if argv[1] == "start_statusbars": if argv[1] == "start_statusbars":
hostname = gethostname() hostname = gethostname()
print(hostname)
if not hostname == "localhost": # if we're not the phone if not hostname == "localhost": # if we're not the phone
start_statusbars() start_statusbars()
else: else:
# we are the phone # we are the phone
os.system("st -c statusbar -p -g {}x{}+{}+{} -e statusbar {} & disown".format( os.system("/data/data/com.termux/files/usr/bin/bash -c 'st -c statusbar -p -g {}x{}+{}+{} -e termux-statusbar-polyfill {} & disown'".format(
1920, 100, 0, 980 1920, 50, 0, 980,
"VNC-0" "VNC-0"
)) ))

View File

@ -0,0 +1,3 @@
#!/bin/sh
python3 ~/dot_testing/builds/statusbar/statusbar/statusbar.py $@

View File

@ -183,6 +183,7 @@ case "$(hostname)" in
bspc config top_padding 0 bspc config top_padding 0
bspc config bottom_padding 100 bspc config bottom_padding 100
mkdir -p ~/.cache/statusbar mkdir -p ~/.cache/statusbar
termux-statusbar-polyfill start_statusbars
;; ;;
esac esac