Compare commits

..

2 commits

Author SHA1 Message Date
7ede21e362
When using flatpak. Add open function to CLI.
Will open Junction (Flatpak) to select applications
2021-11-25 13:40:26 +02:00
bada246014
Update: vim->vimx, alacritty theme, added junction flatpak 2021-11-25 12:07:13 +02:00
2 changed files with 21 additions and 3 deletions

View file

@ -19,4 +19,19 @@
- com.github.unrud.VideoDownloader
- fyi.zoey.Boop-GTK
- nl.hjdskes.gcolor3
- re.sonny.Junction
- org.gnome.DejaDup
state: present
- name: Check if open function is set
shell: grep -c "^function open" ~/.shellconfig/functions.sh || true
register: open_test
- name: "Adding 'open' shell function"
ansible.builtin.lineinfile:
name: ~/.shellconfig/functions.sh
line: |
# Open files from CLI via Junction flatpak
function open() { if [[ -f $@ || -d $@ ]]; then flatpak run re.sonny.Junction $@ &>/dev/null; else echo "❌No such file or directory '$@'"; false; fi}
state: present
when: open_test.stdout|int == 0

View file

@ -1,14 +1,17 @@
- name: Install vim (RHEL based)
become: true
package:
name: vim-X11
state: present
name:
- vim-X11
- vim-common
- vim-minimal
state: latest
when: ansible_facts['os_family'] == "RedHat"
- name: Install vim (Debian based)
become: true
package:
name: vim-gnome
name: vim-gtk
state: present
when: ansible_facts['os_family'] == "Debian"