From 8ea5079091c3ccc028e31c607613b168450fa0f5 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 6 Jun 2023 22:32:45 +0200 Subject: [PATCH] Override dmenu_run with GTK_THEME --- roles/dwm/files/usr/bin/dmenu_run | 6 ++++++ roles/dwm/tasks/setup.yml | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100755 roles/dwm/files/usr/bin/dmenu_run diff --git a/roles/dwm/files/usr/bin/dmenu_run b/roles/dwm/files/usr/bin/dmenu_run new file mode 100755 index 0000000..5095e74 --- /dev/null +++ b/roles/dwm/files/usr/bin/dmenu_run @@ -0,0 +1,6 @@ +#!/bin/sh + +export GTK_THEME='Yaru-blue-dark' + +dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} + diff --git a/roles/dwm/tasks/setup.yml b/roles/dwm/tasks/setup.yml index 66a3176..bd03143 100644 --- a/roles/dwm/tasks/setup.yml +++ b/roles/dwm/tasks/setup.yml @@ -11,6 +11,12 @@ - arandr - fonts-font-awesome +- name: override dmenu_run + copy: + src: usr/bin/dmenu_run + dest: /usr/bin/dmenu_run + mode: '0755' + - name: install necessary software when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "23.04" become: yes