to merge 2
This commit is contained in:
parent
e4793ab107
commit
dd2cccf48c
|
@ -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
|
||||
options:
|
||||
|
@ -87,3 +87,6 @@ git-annex.linux:
|
|||
sssg:
|
||||
-cp ~/git/sssg/sssg.sh ~/.local/bin/sssg
|
||||
-chmod +x ~/.local/bin/sssg
|
||||
|
||||
statusbar-polyfill:
|
||||
cp ~/dot_testing/builds/statusbar/termux-statusbar-polyfill ~/.local/bin
|
||||
|
|
|
@ -179,17 +179,22 @@ def main():
|
|||
os.mkdir("/home/usr/.cache/statusbar")
|
||||
except FileExistsError:
|
||||
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":
|
||||
hostname = gethostname()
|
||||
|
||||
print(hostname)
|
||||
if not hostname == "localhost": # if we're not the phone
|
||||
start_statusbars()
|
||||
else:
|
||||
# we are the phone
|
||||
os.system("st -c statusbar -p -g {}x{}+{}+{} -e statusbar {} & disown".format(
|
||||
1920, 100, 0, 980
|
||||
os.system("/data/data/com.termux/files/usr/bin/bash -c 'st -c statusbar -p -g {}x{}+{}+{} -e termux-statusbar-polyfill {} & disown'".format(
|
||||
1920, 50, 0, 980,
|
||||
"VNC-0"
|
||||
))
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
python3 ~/dot_testing/builds/statusbar/statusbar/statusbar.py $@
|
|
@ -183,6 +183,7 @@ case "$(hostname)" in
|
|||
bspc config top_padding 0
|
||||
bspc config bottom_padding 100
|
||||
mkdir -p ~/.cache/statusbar
|
||||
termux-statusbar-polyfill start_statusbars
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue