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"