Skip to content

Commit ae48cef

Browse files
authored
Merge pull request #198 from oskarsh/beta
v3.3
2 parents fabf76e + e21836e commit ae48cef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+942
-468
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ __pycache__
33
build-test*
44
build-ui-*
55
.vscode
6-
src/build.py
6+
yin_yang/build.py
77
setup.py
88

99
.idea/

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Yin-Yang can be downloaded from AUR as [yin-yang](https://aur.archlinux.org/pack
4545

4646

4747
### Source
48-
Yin-Yang depends on `python-systemd` and `pyside6` from pypi. `python-systemd` requires you have installed the systemd-headers from your package manager.
48+
Yin-Yang depends on `python-systemd` and `pyside6` from pypi. `python-systemd` requires you have installed the systemd-headers from your package manager. You also need python development headers (e.g. `python3-devel`).
4949

5050
For CentOS, RHEL, and Fedora:
5151
```bash
@@ -68,21 +68,20 @@ Then you can install Yin-Yang in a python virtual environment:
6868
```bash
6969
# bash is necessary to run the source command
7070
bash
71-
# Removes any already present Yin-Yang code
72-
rm -rf Yin-Yang
7371
# Clones the code to your local machine
7472
git clone https://github.com/oskarsh/Yin-Yang.git
75-
# Enters the directory containing Yin-Yang's code
76-
if pwd != "Yin-Yang"; then cd Yin-Yang; fi
77-
## Creates a virtual environment for pypi (pip) packages
78-
python3 -m venv .venv
79-
source .venv/bin/activate
80-
# Installs pip requirements specified in repository
81-
pip3 install -r requirements.txt
73+
cd Yin-Yang
8274
# Installs Yin-Yang
8375
./scripts/install.sh
8476
```
8577

78+
For development, skip the install and instead create a venv in your home directory:
79+
```bash
80+
python -m venv .venv
81+
source .venv/bin/activate # this is for bash, there are similar scripts in the that directory for other shells like fish
82+
pip install -r requirements.txt
83+
```
84+
8685
## Documentation
8786

8887
Want to help out? Check out the wiki to learn how to contribute translations, plugins and more!

designer/main_window.ui

Lines changed: 79 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</size>
4444
</property>
4545
<property name="currentIndex">
46-
<number>1</number>
46+
<number>0</number>
4747
</property>
4848
<widget class="QWidget" name="settings">
4949
<attribute name="title">
@@ -276,6 +276,26 @@
276276
</layout>
277277
</widget>
278278
</item>
279+
<item>
280+
<widget class="QWidget" name="manual_buttons" native="true">
281+
<layout class="QHBoxLayout" name="horizontalLayout_3">
282+
<item>
283+
<widget class="QPushButton" name="button_light">
284+
<property name="text">
285+
<string>Light</string>
286+
</property>
287+
</widget>
288+
</item>
289+
<item>
290+
<widget class="QPushButton" name="button_dark">
291+
<property name="text">
292+
<string>Dark</string>
293+
</property>
294+
</widget>
295+
</item>
296+
</layout>
297+
</widget>
298+
</item>
279299
<item>
280300
<widget class="QCheckBox" name="toggle_sound">
281301
<property name="text">
@@ -290,6 +310,30 @@
290310
</property>
291311
</widget>
292312
</item>
313+
<item>
314+
<layout class="QFormLayout" name="bootOffsetSettings">
315+
<item row="0" column="0">
316+
<widget class="QLabel" name="bootOffsetLabel">
317+
<property name="toolTip">
318+
<string>Time to wait until the system finished booting. Default value is 10 seconds.</string>
319+
</property>
320+
<property name="text">
321+
<string>Delay after boot:</string>
322+
</property>
323+
</widget>
324+
</item>
325+
<item row="0" column="1">
326+
<widget class="QSpinBox" name="bootOffset">
327+
<property name="suffix">
328+
<string>s</string>
329+
</property>
330+
<property name="value">
331+
<number>10</number>
332+
</property>
333+
</widget>
334+
</item>
335+
</layout>
336+
</item>
293337
<item>
294338
<widget class="QLabel" name="label_active">
295339
<property name="text">
@@ -330,8 +374,8 @@
330374
<rect>
331375
<x>0</x>
332376
<y>0</y>
333-
<width>523</width>
334-
<height>663</height>
377+
<width>518</width>
378+
<height>88</height>
335379
</rect>
336380
</property>
337381
<layout class="QVBoxLayout" name="plugins_scroll_content_layout">
@@ -340,16 +384,19 @@
340384
<item>
341385
<widget class="QGroupBox" name="samplePluginGroupBox">
342386
<property name="title">
343-
<string>Sample Plugin</string>
387+
<string notr="true">Sample Plugin</string>
344388
</property>
345389
<layout class="QHBoxLayout" name="horizontalLayout_2">
346390
<item>
347391
<widget class="QComboBox" name="comboBox">
392+
<property name="currentText">
393+
<string notr="true"/>
394+
</property>
348395
<property name="sizeAdjustPolicy">
349396
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
350397
</property>
351398
<property name="placeholderText">
352-
<string>firefox-compact-light@mozilla.org</string>
399+
<string notr="true">firefox-compact-light@mozilla.org</string>
353400
</property>
354401
</widget>
355402
</item>
@@ -362,7 +409,7 @@
362409
<enum>QComboBox::AdjustToContentsOnFirstShow</enum>
363410
</property>
364411
<property name="placeholderText">
365-
<string>firefox-compact-dark@mozilla.org</string>
412+
<string notr="true">firefox-compact-dark@mozilla.org</string>
366413
</property>
367414
</widget>
368415
</item>
@@ -402,12 +449,12 @@
402449
<slot>setVisible(bool)</slot>
403450
<hints>
404451
<hint type="sourcelabel">
405-
<x>273</x>
406-
<y>308</y>
452+
<x>289</x>
453+
<y>225</y>
407454
</hint>
408455
<hint type="destinationlabel">
409-
<x>254</x>
410-
<y>379</y>
456+
<x>270</x>
457+
<y>353</y>
411458
</hint>
412459
</hints>
413460
</connection>
@@ -418,12 +465,12 @@
418465
<slot>setVisible(bool)</slot>
419466
<hints>
420467
<hint type="sourcelabel">
421-
<x>114</x>
422-
<y>192</y>
468+
<x>130</x>
469+
<y>109</y>
423470
</hint>
424471
<hint type="destinationlabel">
425-
<x>219</x>
426-
<y>280</y>
472+
<x>235</x>
473+
<y>197</y>
427474
</hint>
428475
</hints>
429476
</connection>
@@ -434,14 +481,30 @@
434481
<slot>setVisible(bool)</slot>
435482
<hints>
436483
<hint type="sourcelabel">
437-
<x>188</x>
438-
<y>153</y>
484+
<x>198</x>
485+
<y>66</y>
439486
</hint>
440487
<hint type="destinationlabel">
441488
<x>188</x>
442489
<y>318</y>
443490
</hint>
444491
</hints>
445492
</connection>
493+
<connection>
494+
<sender>btn_enable</sender>
495+
<signal>toggled(bool)</signal>
496+
<receiver>manual_buttons</receiver>
497+
<slot>setHidden(bool)</slot>
498+
<hints>
499+
<hint type="sourcelabel">
500+
<x>109</x>
501+
<y>58</y>
502+
</hint>
503+
<hint type="destinationlabel">
504+
<x>274</x>
505+
<y>398</y>
506+
</hint>
507+
</hints>
508+
</connection>
446509
</connections>
447510
</ui>

main.py

Lines changed: 0 additions & 107 deletions
This file was deleted.

requirements.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
numpy==1.23.5
2-
psutil==5.9.4
3-
PySide6==6.4.1
4-
PySide6-Addons==6.4.1
5-
PySide6-Essentials==6.4.1
6-
python-dateutil==2.8.2
7-
shiboken6==6.4.1
8-
six==1.16.0
1+
psutil==5.9.5
2+
PySide6==6.5.3
3+
PySide6-Addons==6.5.3
94
suntime==1.2.5
10-
systemd-python==234
5+
systemd-python==235
6+
requests~=2.28.2
3 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)