summaryrefslogtreecommitdiffstats
path: root/roles/mako
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-12-22 22:50:35 +0100
committerAhmed AbdelHalim <[email protected]>2025-12-22 22:50:35 +0100
commitf2a2fe15bee53600e7eeb7ac23896f9cedf02b5c (patch)
tree3186bd157bd09c283eb46733ed8a90493f42da4f /roles/mako
parente2c1a1b1800cee42eef57647ed206de8c6d39014 (diff)
Refactor hyprland/mako
This follows a more clean setup (inspired by omarchy) with the difference that the user files are delegated to the user dotfile (and are calling the system defaults first). This is to insure clarity and don't depend on hidden behaviour in the default system configurations
Diffstat (limited to 'roles/mako')
-rw-r--r--roles/mako/meta/argument_specs.yml6
-rw-r--r--roles/mako/meta/main.yml11
-rw-r--r--roles/mako/tasks/main.yml22
-rw-r--r--roles/mako/templates/mako/config.j236
4 files changed, 75 insertions, 0 deletions
diff --git a/roles/mako/meta/argument_specs.yml b/roles/mako/meta/argument_specs.yml
new file mode 100644
index 00000000..b6b69a07
--- /dev/null
+++ b/roles/mako/meta/argument_specs.yml
@@ -0,0 +1,6 @@
+---
+argument_specs:
+ main:
+ short_description: "Install mako on Arch Linux"
+ description: "Install mako on Arch Linux"
+ options: {}
diff --git a/roles/mako/meta/main.yml b/roles/mako/meta/main.yml
new file mode 100644
index 00000000..bb71080a
--- /dev/null
+++ b/roles/mako/meta/main.yml
@@ -0,0 +1,11 @@
+---
+dependencies: []
+galaxy_info:
+ author: "a14m"
+ description: "Install mako on Arch Linux"
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"
diff --git a/roles/mako/tasks/main.yml b/roles/mako/tasks/main.yml
new file mode 100644
index 00000000..3303969f
--- /dev/null
+++ b/roles/mako/tasks/main.yml
@@ -0,0 +1,22 @@
+---
+- name: "Ensure mako is installed"
+ become: true
+ ansible.builtin.package:
+ name:
+ - "libnotify"
+ - "mako"
+ state: "present"
+
+- name: "Create system config directory"
+ become: true
+ ansible.builtin.file:
+ path: "/etc/xdg/mako"
+ state: "directory"
+ mode: "0755"
+
+- name: "Configure system defaults"
+ become: true
+ ansible.builtin.template:
+ src: "mako/config.j2"
+ dest: "/etc/xdg/mako/config"
+ mode: "0644"
diff --git a/roles/mako/templates/mako/config.j2 b/roles/mako/templates/mako/config.j2
new file mode 100644
index 00000000..83be3e1a
--- /dev/null
+++ b/roles/mako/templates/mako/config.j2
@@ -0,0 +1,36 @@
+sort=-time
+layer=overlay
+background-color=#2e3440
+width=300
+height=110
+border-size=2
+border-color=#f1c40f
+border-radius=5
+icons=1
+max-icon-size=32
+default-timeout=5000
+ignore-timeout=1
+history=1
+actions=1
+font=sans-serif 14px
+
+[mode=do-not-disturb]
+invisible=true
+
+[mode=do-not-disturb app-name=notify-send]
+invisible=false
+
+# [urgency=low]
+# border-color=#41cfff
+
+# [urgency=normal]
+# border-color=#41cfff
+
+[urgency=critical]
+border-color=#e74c3c
+default-timeout=0
+layer=overlay
+
+[category=mpd]
+default-timeout=2000
+group-by=category