mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
Add hyprland
This commit is contained in:
2
playbooks/roles/desktop_dunst/defaults/main.yml
Normal file
2
playbooks/roles/desktop_dunst/defaults/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
install_with_root: true
|
||||
desktop_dunst_pkgs: []
|
||||
3
playbooks/roles/desktop_dunst/meta/main.yml
Normal file
3
playbooks/roles/desktop_dunst/meta/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: base_info
|
||||
44
playbooks/roles/desktop_dunst/tasks/main.yml
Normal file
44
playbooks/roles/desktop_dunst/tasks/main.yml
Normal 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'
|
||||
55
playbooks/roles/desktop_dunst/templates/dunstrc
Normal file
55
playbooks/roles/desktop_dunst/templates/dunstrc
Normal 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"
|
||||
3
playbooks/roles/desktop_dunst/vars/default.yml
Normal file
3
playbooks/roles/desktop_dunst/vars/default.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
desktop_hyprland_pkgs:
|
||||
- dunst
|
||||
Reference in New Issue
Block a user