summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-31 16:55:33 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-31 16:55:33 +0100
commitf3f837ad12172713a60b22cb2b11aa4a8523686d (patch)
treeb80faace9b175dc262d8f432378414de6bdc3ba8 /roles
parentbeb210e741099036a8bbbefd4c57b62f9f01ebe5 (diff)
Adding the clipse xdg configs while figuring out how to connect it
The clipse doesn't fully follow the xdg standard, therefore I added the configuration that I use, while I figure out how it can be configured in dotfiles without conflicting or adding duplicate configurations
Diffstat (limited to 'roles')
-rw-r--r--roles/clipse/files/config.json38
-rw-r--r--roles/clipse/tasks/main.yml9
2 files changed, 46 insertions, 1 deletions
diff --git a/roles/clipse/files/config.json b/roles/clipse/files/config.json
new file mode 100644
index 00000000..74676f08
--- /dev/null
+++ b/roles/clipse/files/config.json
@@ -0,0 +1,38 @@
+{
+ "allowDuplicates": false,
+ "historyFile": "clipse_history.json",
+ "maxHistory": 50,
+ "deleteAfter": 0,
+ "logFile": "clipse.log",
+ "maxEntryLength": 95,
+ "themeFile": "~/.config/hyprtheme/current/clipse.json",
+ "tempDir": "tmp_files",
+ "keyBindings": {
+ "choose": "enter",
+ "quit": "q",
+ "forceQuit": "Q",
+
+ "down": "j",
+ "up": "k",
+ "nextPage": "l",
+ "prevPage": "h",
+
+ "home": "g",
+ "end": "G",
+
+ "remove": "backspace",
+ "togglePin": "p",
+ "togglePinned": "tab",
+
+ "selectSingle": "",
+ "clearSelected": "",
+ "selectDown": "",
+ "selectUp": "",
+ "filter": "/",
+ "more": "?",
+ "preview": " ",
+ "yankFilter": ""
+ },
+ "enableMouse": false,
+ "enableDescription": false
+}
diff --git a/roles/clipse/tasks/main.yml b/roles/clipse/tasks/main.yml
index 8bbc567f..4eb97072 100644
--- a/roles/clipse/tasks/main.yml
+++ b/roles/clipse/tasks/main.yml
@@ -13,9 +13,16 @@
state: "present"
use: "yay"
+- name: "Create system config directory"
+ become: true
+ ansible.builtin.file:
+ path: "/etc/xdg/clipse"
+ state: "directory"
+ mode: "0755"
+
- name: "Configure system defaults"
become: true
- ansible.builtin.template:
+ ansible.builtin.copy:
src: "config.json"
dest: "/etc/xdg/clipse/config.json"
mode: "0644"