File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed
Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -7,26 +7,26 @@ if ! type pip &> /dev/null; then
77 opkg update
88 opkg install python3-pip
99fi
10- pip install --force-reinstall /tmp/liboxide-0.0.1 -py3-none-any.whl
10+ pip install --force-reinstall /tmp/liboxide-0.1.0 -py3-none-any.whl
1111endef
1212export SCRIPT
1313
14- dist/liboxide-0.0.1 .tar.gz : $(shell find liboxide -type f)
14+ dist/liboxide-0.1.0 .tar.gz : $(shell find liboxide -type f)
1515 python -m build --sdist
1616
17- dist/liboxide-0.0.1 -py3-none-any.whl : $(shell find liboxide -type f)
17+ dist/liboxide-0.1.0 -py3-none-any.whl : $(shell find liboxide -type f)
1818 python -m build --wheel
1919
2020clean :
2121 git clean --force -dX
2222
23- deploy : dist/liboxide-0.0.1 -py3-none-any.whl
24- rsync dist/liboxide-0.
0.1 -py3-none-any.whl
[email protected] :/tmp
23+ deploy : dist/liboxide-0.1.0 -py3-none-any.whl
24+ rsync dist/liboxide-0.
1.0 -py3-none-any.whl
[email protected] :/tmp
2525
2626install : deploy
2727 echo -e
" $$ SCRIPT" | ssh
[email protected] bash -le
2828
2929test : install
30- cat test.py
| ssh
[email protected] /opt/bin/python
30+ cat test.py
| ssh
[email protected] /opt/bin/python
-u 3131
3232.PHONY : clean install test deploy
Original file line number Diff line number Diff line change @@ -21,4 +21,12 @@ liboxide.wifi.enable()
2121print (" Applications:" )
2222for name, app in liboxide.apps.applications.items():
2323 print (f " { name} : { app.bin} " )
24+
25+ autoLock = liboxide.settings.get(" autoLock" )
26+ print (" Automatically locking after {autoLock} minutes" )
27+
28+ print (f " Battery level: { liboxide.power.batteryLevel} " )
29+ while True :
30+ batteryLevel = liboxide.power.on.batteryLevelChanged()
31+ print (f " Battery level: { batteryLevel} " )
2432```
Original file line number Diff line number Diff line change 1818print (f"Lockscreen App: { app .displayName } " )
1919autoLock = liboxide .settings .get ("autoLock" )
2020print (f"Automatic lock: { autoLock } minutes" )
21- liboxide .wifi .scan (False )
22- bss = liboxide .wifi .on .bssFound ()
23- print (f"Found BSS for SSID: { bss .ssid } " )
21+ print (f"Battery level: { liboxide .power .batteryLevel } " )
22+ while True :
23+ batteryLevel = liboxide .power .on .batteryLevelChanged ()
24+ print (f"Battery level: { batteryLevel } " )
You can’t perform that action at this time.
0 commit comments