Add nvimw and mc launcher

This commit is contained in:
Anthony Rose 2024-11-11 09:29:56 +00:00
parent c5ecca989d
commit 10a7f5b2f1
3 changed files with 18 additions and 0 deletions

View file

@ -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

2
roles/home-gui/files/nvimw Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
/usr/bin/gnome-terminal -- /usr/bin/nvim $*

View file

@ -91,3 +91,11 @@
ansible.builtin.copy: ansible.builtin.copy:
src: "konsole/" src: "konsole/"
dest: "{{ ansible_env.XDG_DATA_HOME }}/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"