From 10a7f5b2f1dbdcd25042a06840a26e193a38a590 Mon Sep 17 00:00:00 2001 From: Anthony Rose Date: Mon, 11 Nov 2024 09:29:56 +0000 Subject: [PATCH] Add nvimw and mc launcher --- roles/home-gui/files/mc.desktop | 8 ++++++++ roles/home-gui/files/nvimw | 2 ++ roles/home-gui/tasks/dotfiles.yml | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 roles/home-gui/files/mc.desktop create mode 100755 roles/home-gui/files/nvimw diff --git a/roles/home-gui/files/mc.desktop b/roles/home-gui/files/mc.desktop new file mode 100644 index 0000000..a6e657b --- /dev/null +++ b/roles/home-gui/files/mc.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Midnight Commander (mc) +TryExec=mc +Exec=env LANG=en_GB.UTF-8 EDITOR=nvimw mc +Type=Application +Icon=mc +StartupNotify=true +Terminal=true diff --git a/roles/home-gui/files/nvimw b/roles/home-gui/files/nvimw new file mode 100755 index 0000000..b688399 --- /dev/null +++ b/roles/home-gui/files/nvimw @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/gnome-terminal -- /usr/bin/nvim $* diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index e21dd68..de8345d 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -91,3 +91,11 @@ ansible.builtin.copy: src: "konsole/" dest: "{{ ansible_env.XDG_DATA_HOME }}/konsole" +- name: Create $XDG_DATA_HOME/applications/mc.desktop + ansible.builtin.copy: + src: "mc.desktop" + dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/mc.desktop" +- name: Create $HOME/.local/bin/nvimw + ansible.builtin.copy: + src: "nvimw" + dest: "{{ ansible_env.HOME }}/.local/bin/nvimw"