diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-08 15:27:13 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-08 15:27:13 +0100 |
| commit | 5b7a3dc5370772ffbfdc52b2b145e35d1061caa8 (patch) | |
| tree | 2b450334838f195b50b8eb1a799a6df7f4408089 /roles/syshud | |
| parent | 639bc16016f175f49174d8e763f96497b9110bc1 (diff) | |
Add the basic syshud role for OSD w/Hyprtheming extension
Diffstat (limited to 'roles/syshud')
| -rw-r--r-- | roles/syshud/meta/argument_specs.yml | 6 | ||||
| -rw-r--r-- | roles/syshud/meta/main.yml | 12 | ||||
| -rw-r--r-- | roles/syshud/tasks/main.yml | 20 | ||||
| -rw-r--r-- | roles/syshud/templates/config.conf.j2 | 13 | ||||
| -rw-r--r-- | roles/syshud/templates/style.css.j2 | 60 |
5 files changed, 111 insertions, 0 deletions
diff --git a/roles/syshud/meta/argument_specs.yml b/roles/syshud/meta/argument_specs.yml new file mode 100644 index 00000000..1958a029 --- /dev/null +++ b/roles/syshud/meta/argument_specs.yml @@ -0,0 +1,6 @@ +--- +argument_specs: + main: + short_description: "Install syshud" + description: "Install syshud" + options: {} diff --git a/roles/syshud/meta/main.yml b/roles/syshud/meta/main.yml new file mode 100644 index 00000000..45b1fd50 --- /dev/null +++ b/roles/syshud/meta/main.yml @@ -0,0 +1,12 @@ +--- +dependencies: + - role: "yay" +galaxy_info: + author: "a14m" + description: "Install syshud" + license: "MIT" + min_ansible_version: "2.18" + platforms: + - name: "ArchLinux" + versions: + - "all" diff --git a/roles/syshud/tasks/main.yml b/roles/syshud/tasks/main.yml new file mode 100644 index 00000000..05983848 --- /dev/null +++ b/roles/syshud/tasks/main.yml @@ -0,0 +1,20 @@ +--- +- name: "Ensure syshud is installed" + become: true + become_user: "aur_builder" + kewlfft.aur.aur: + name: "syshud" + state: "present" + use: "yay" + +- name: "Configure system defaults" + become: true + ansible.builtin.template: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + mode: "0644" + loop: + - src: "config.conf.j2" + dest: "/usr/share/sys64/hud/config.conf" + - src: "style.css.j2" + dest: "/usr/share/sys64/hud/style.css" diff --git a/roles/syshud/templates/config.conf.j2 b/roles/syshud/templates/config.conf.j2 new file mode 100644 index 00000000..19765ae1 --- /dev/null +++ b/roles/syshud/templates/config.conf.j2 @@ -0,0 +1,13 @@ +[main] +position=top-right +orientation=h +width=300 +height=50 +icon-size=18 +show-percentage=true +margins=0 0 0 0 +timeout=3 +transition-time=0 +listeners=audio_in,audio_out,backlight +backlight-path= +keyboard-path= diff --git a/roles/syshud/templates/style.css.j2 b/roles/syshud/templates/style.css.j2 new file mode 100644 index 00000000..cfaa6533 --- /dev/null +++ b/roles/syshud/templates/style.css.j2 @@ -0,0 +1,60 @@ +/* vim: set filetype=css.ansible : */ +@import "{{ ansible_facts['env']['HOME'] }}/.config/hyprtheme/current/syshud.css"; + +#syshud { + background: transparent; + color: @theme_fg_color; +} + +#syshud .box_layout { + background: @theme_bg_color; + border-radius: 5px; + border: 2px solid @borders; + margin: 10px; +} + +#syshud scale { + margin: 0px; + padding: 0px; +} +#syshud label { + color: @theme_fg_color; +} + +/* Scale */ +#syshud scale { + padding: 0px; + min-height: 5px; + min-width: 5px; +} +#syshud scale trough { + border-radius: 0px; + background: alpha(currentColor, 0.1); + min-height: 5px; + min-width: 5px; + padding: 0px; +} +#syshud scale.horizontal highlight { + border-radius: 0px; + min-height: 5px; + min-width: 1px; + background: alpha(@theme_fg_color, 0.75); + margin: 0px; +} +#syshud scale slider { + background: transparent; + outline-color: transparent; + border-color: transparent; + color: transparent; + box-shadow: none; +} + +/* Levels */ +#syshud .muted { +} +#syshud .low { +} +#syshud .medium { +} +#syshud .high { +} |
