bluer-objects 6.173.1__py3-none-any.whl → 6.175.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bluer-objects might be problematic. Click here for more details.
- bluer_objects/__init__.py +1 -1
- bluer_objects/graphics/screen.py +9 -8
- {bluer_objects-6.173.1.dist-info → bluer_objects-6.175.1.dist-info}/METADATA +2 -2
- {bluer_objects-6.173.1.dist-info → bluer_objects-6.175.1.dist-info}/RECORD +7 -7
- {bluer_objects-6.173.1.dist-info → bluer_objects-6.175.1.dist-info}/WHEEL +0 -0
- {bluer_objects-6.173.1.dist-info → bluer_objects-6.175.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_objects-6.173.1.dist-info → bluer_objects-6.175.1.dist-info}/top_level.txt +0 -0
bluer_objects/__init__.py
CHANGED
bluer_objects/graphics/screen.py
CHANGED
|
@@ -24,14 +24,15 @@ def get_size() -> Tuple[int, int]:
|
|
|
24
24
|
screen_height = 480
|
|
25
25
|
screen_width = 640
|
|
26
26
|
|
|
27
|
-
if is_rpi()
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
if is_rpi():
|
|
28
|
+
if not is_headless():
|
|
29
|
+
try:
|
|
30
|
+
# https://stackoverflow.com/a/14124257
|
|
31
|
+
screen = os.popen("xrandr -q -d :0").readlines()[0]
|
|
32
|
+
screen_width = int(screen.split()[7])
|
|
33
|
+
screen_height = int(screen.split()[9][:-1])
|
|
34
|
+
except Exception as e:
|
|
35
|
+
logger.error(f"{NAME}: Failed: {e}.")
|
|
35
36
|
elif is_mac():
|
|
36
37
|
success, output = shell(
|
|
37
38
|
"system_profiler SPDisplaysDataType | grep Resolution",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.175.1
|
|
4
4
|
Summary: 🌀 Object management in Bash.
|
|
5
5
|
Home-page: https://github.com/kamangir/bluer-objects
|
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
|
@@ -64,6 +64,6 @@ pip install bluer-objects
|
|
|
64
64
|
|
|
65
65
|
[](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [](https://pypi.org/project/bluer-objects/) [](https://pypistats.org/packages/bluer-objects)
|
|
66
66
|
|
|
67
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
67
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.175.1`](https://github.com/kamangir/bluer-objects).
|
|
68
68
|
|
|
69
69
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bluer_objects/__init__.py,sha256=
|
|
1
|
+
bluer_objects/__init__.py,sha256=6gVB8kZmeOPmYrSyWuk7xz1PChKg2N6bauiQcEnurzg,315
|
|
2
2
|
bluer_objects/__main__.py,sha256=Yqfov833_hJuRne19WrGhT5DWAPtdffpoMxeSXS7EGw,359
|
|
3
3
|
bluer_objects/config.env,sha256=cpmtTuKHIBvVjX30MpAImFgwM0g24qTHwoO-lCJRInA,175
|
|
4
4
|
bluer_objects/env.py,sha256=aImjtNh8NKaua2rpQVFXWp86QF7nY87fDuMOO14O58E,1956
|
|
@@ -78,7 +78,7 @@ bluer_objects/graphics/__init__.py,sha256=Dd0kQqN7Ldvp1N9oyIirPZ6W3IdUtfPj2u21Bf
|
|
|
78
78
|
bluer_objects/graphics/__main__.py,sha256=A221gpkUDYd_S2eYz8i6KwaPumg8myaR7L5j464wC54,1909
|
|
79
79
|
bluer_objects/graphics/frame.py,sha256=WcSn-0oqDw48Akmn_bwcjDC9U_kKqRYRoGWYPoKyFvY,321
|
|
80
80
|
bluer_objects/graphics/gif.py,sha256=V939DovUl2lNf-Yjwn-xa1VYYy8ALfQJHCJSvuEIQh0,2003
|
|
81
|
-
bluer_objects/graphics/screen.py,sha256=
|
|
81
|
+
bluer_objects/graphics/screen.py,sha256=HF1EqjIsPTLEK4KR-8Rlb2lAVgbHuQNhnu-VL8macOg,1825
|
|
82
82
|
bluer_objects/graphics/signature.py,sha256=JLml1OR3b4uotZyaAjyrOJworUXuPhp8nDHxHXET_Xo,2295
|
|
83
83
|
bluer_objects/graphics/text.py,sha256=nnJrLUD4LIurBntSeUFwBOsbhzALXrzHzfDnBVEcFKA,4382
|
|
84
84
|
bluer_objects/help/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -156,8 +156,8 @@ bluer_objects/tests/test_storage_webdav_request.py,sha256=h2b8PeIx0-hQ2d6PmQcJZy
|
|
|
156
156
|
bluer_objects/tests/test_storage_webdav_zip.py,sha256=C19qxhkcHyTwVFzW35vL85SOcXJPkqXXaWUNll0Uyqc,1017
|
|
157
157
|
bluer_objects/tests/test_testing.py,sha256=d2NH435yqJBl9wmfMqGGd-f0Y0jsL2QhHUXkty9AwPA,235
|
|
158
158
|
bluer_objects/tests/test_version.py,sha256=Lyf3PMcA22e17BNRk_2VgPrtao6dWEgVoXo68Uds8SE,75
|
|
159
|
-
bluer_objects-6.
|
|
160
|
-
bluer_objects-6.
|
|
161
|
-
bluer_objects-6.
|
|
162
|
-
bluer_objects-6.
|
|
163
|
-
bluer_objects-6.
|
|
159
|
+
bluer_objects-6.175.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
160
|
+
bluer_objects-6.175.1.dist-info/METADATA,sha256=vyAEE05U7u6-0heCnWZI9Kz2WiFoKsD17rM-Y3yj05U,3678
|
|
161
|
+
bluer_objects-6.175.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
162
|
+
bluer_objects-6.175.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
|
|
163
|
+
bluer_objects-6.175.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|