Add hyprland

This commit is contained in:
Morten Olsen
2024-10-09 14:30:41 +02:00
parent f62c1d7d25
commit f8c6ffee46
22 changed files with 515 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
install_with_root: true
desktop_dunst_pkgs: []

View File

@@ -0,0 +1,3 @@
---
dependencies:
- role: base_info

View File

@@ -0,0 +1,44 @@
---
- name: "Load vars"
ansible.builtin.include_vars: "{{ item }}"
tags:
- install
with_first_found:
- files:
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- default.yml
paths: ../vars
skip: true
- name: "Install dependencies"
tags:
- install
when: desktop_dunst_pkgs
become: "{{ install_with_root }}"
ansible.builtin.package:
name: "{{ desktop_dunst_pkgs }}"
- name: "Ensure dir"
tags:
- config
ansible.builtin.file:
path: "{{ home }}/.config/dunst"
state: directory
mode: "0700"
owner: "{{ username }}"
- name: "Copy templates"
tags:
- config
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ home }}/.config/dunst/{{ item.path | regex_replace('\\.j2$', '') }}"
mode: "{{ item.mode }}"
owner: "{{ username }}"
with_community.general.filetree:
- ../templates
loop_control:
label: "{{ item.path }}"
when: item.state == 'file'

View File

@@ -0,0 +1,55 @@
[global]
follow = mouse
indicate_hidden = yes
offset = 10x10
notification_height = 0
separator_height = 2
padding = 8
horizontal_padding = 8
text_icon_padding = 0
frame_width = 2
frame_color = "#f5c2e7"
separator_color = frame
sort = yes
idle_threshold = 120
font = monospace 10
line_height = 0
markup = full
alignment = left
vertical_alignment = center
show_age_threshold = 60
word_wrap = yes
stack_duplicates = true
hide_duplicate_count = false
show_indicators = yes
min_icon_size = 0
max_icon_size = 64
icon_path = /usr/share/icons/Papirus-Dark/16x16/status/:/usr/share/icons/Papirus-Dark/16x16/devices/:/usr/share/icons/Papirus-Dark/16x16/actions/:/usr/share/icons/Papirus-Dark/16x16/animations/:/usr/share/icons/Papirus-Dark/16x16/apps/:/usr/share/icons/Papirus-Dark/16x16/categories/:/usr/share/icons/Papirus-Dark/16x16/emblems/:/usr/share/icons/Papirus-Dark/16x16/emotes/:/usr/share/icons/Papirus-Dark/16x16/devices/mimetypes:/usr/share/icons/Papirus-Dark/16x16/panel/:/usr/share/icons/Papirus-Dark/16x16/places/
dmenu = /usr/bin/wofi -p dunst:
browser = /usr/bin/firefox --new-tab
title = Dunst
class = Dunst
corner_radius = 10
timeout = 5
[urgency_low]
background = "#1E1E2E"
foreground = "#CDD6F4"
[urgency_normal]
background = "#1E1E2E"
foreground = "#CDD6F4"
[urgency_critical]
background = "#1E1E2E"
foreground = "#CDD6F4"
frame_color = "#FAB387"

View File

@@ -0,0 +1,3 @@
---
desktop_hyprland_pkgs:
- dunst