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
3 changed files with 45 additions and 11 deletions

View file

@ -159,13 +159,21 @@ schemes:
# Bright colors # Bright colors
bright: bright:
black: '0x969896' black: '0x969896'
red: '0xde935f' red: '0xcc6666'
green: '0x282a2e' green: '0xb5bd68'
yellow: '0x373b41' yellow: '0xf0c674'
blue: '0xb4b7b4' blue: '0x81a2be'
magenta: '0xe0e0e0' magenta: '0xb294bb'
cyan: '0xa3685a' cyan: '0x8abeb7'
white: '0xffffff' white: '0xffffff'
indexed_colors:
- { index: 16, color: '0xde935f' }
- { index: 17, color: '0xa3685a' }
- { index: 18, color: '0x282a2e' }
- { index: 19, color: '0x373b41' }
- { index: 20, color: '0xb4b7b4' }
- { index: 21, color: '0xe0e0e0' }
# Base16 Dracula 256 - alacritty color config # Base16 Dracula 256 - alacritty color config
# Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula) # Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula)
dracula: &drakula dracula: &drakula

View file

@ -19,4 +19,19 @@
- com.github.unrud.VideoDownloader - com.github.unrud.VideoDownloader
- fyi.zoey.Boop-GTK - fyi.zoey.Boop-GTK
- nl.hjdskes.gcolor3 - nl.hjdskes.gcolor3
- re.sonny.Junction
- org.gnome.DejaDup
state: present 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,8 +1,19 @@
- name: Install vim - name: Install vim (RHEL based)
become: true become: true
package: package:
name: vim name:
- vim-X11
- vim-common
- vim-minimal
state: latest state: latest
when: ansible_facts['os_family'] == "RedHat"
- name: Install vim (Debian based)
become: true
package:
name: vim-gtk
state: present
when: ansible_facts['os_family'] == "Debian"
- name: Prepare vim... - name: Prepare vim...
file: file: