From d94ba3034ea44b6c1f5b8bc28c130ca1f298fa26 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 12 Apr 2020 22:25:16 +0100 Subject: [PATCH] Load ~/.Xresources on Fedora --- roles/home-gui/files/xrdb.desktop | 8 ++++++++ roles/home-gui/tasks/dotfiles.yml | 5 +++++ 2 files changed, 13 insertions(+) create mode 100755 roles/home-gui/files/xrdb.desktop diff --git a/roles/home-gui/files/xrdb.desktop b/roles/home-gui/files/xrdb.desktop new file mode 100755 index 0000000..762609a --- /dev/null +++ b/roles/home-gui/files/xrdb.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open + +[Desktop Entry] +Terminal=false +Name=Xresources +Exec=xrdb -merge .Xresources +Icon=xterm-color +Type=Application diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index e8582da..cb30610 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -26,3 +26,8 @@ dest: "{{ ansible_env.HOME }}/.xinitrc" state: link when: ansible_system == "NetBSD" +- name: Load ~/.Xresources on Fedora + copy: + src: "xrdb.desktop" + dest: "{{ ansible_env.HOME }}/.config/autostart/xrdb.desktop" + when: ansible_distribution == "Fedora"