feat: add mimeapps and sxiv
This commit is contained in:
parent
45599120bb
commit
c824b94392
28
roles/xmonad/files/mimeapps_qwerty.list
Normal file
28
roles/xmonad/files/mimeapps_qwerty.list
Normal file
@ -0,0 +1,28 @@
|
||||
[Default Applications]
|
||||
application/pdf=org.pwmt.zathura.desktop;
|
||||
audio/flac=mpv.desktop;
|
||||
audio/mpeg=mpv.desktop;
|
||||
video/mp4=mpv.desktop;
|
||||
video/mpeg=mpv.desktop;
|
||||
video/x-matroska=mpv.desktop;
|
||||
image/gif=feh.desktop;
|
||||
image/jpeg=feh.desktop;
|
||||
image/png=feh.desktop;
|
||||
image/tiff=feh.desktop;
|
||||
image/svg+xml=feh.desktop;
|
||||
text/plain=nvim.desktop;
|
||||
text/markdown=nvim.desktop;
|
||||
text/html=librewolf.desktop
|
||||
x-scheme-handler/http=librewolf.desktop
|
||||
x-scheme-handler/https=librewolf.desktop
|
||||
x-scheme-handler/about=librewolf.desktop
|
||||
x-scheme-handler/unknown=librewolf.desktop
|
||||
x-scheme-handler/nxm=vortex-downloads-handler.desktop
|
||||
x-scheme-handler/nxm-protocol=vortex-downloads-handler.desktop
|
||||
x-scheme-handler/chrome=librewolf.desktop
|
||||
application/x-extension-htm=librewolf.desktop
|
||||
application/x-extension-html=librewolf.desktop
|
||||
application/x-extension-shtml=librewolf.desktop
|
||||
application/xhtml+xml=librewolf.desktop
|
||||
application/x-extension-xhtml=librewolf.desktop
|
||||
application/x-extension-xht=librewolf.desktop
|
7
roles/xmonad/files/nsxiv_key_handler
Normal file
7
roles/xmonad/files/nsxiv_key_handler
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case "$1" in
|
||||
"n") xclip -in -filter | tr '\n' ' ' | xclip -in -selection clipboard ;;
|
||||
"c") while read file; do xclip -selection clipboard -target image/png "$file"; done ;;
|
||||
"h") while read file; do mkdir -p ~/nsxiv_images; cp "$file" ~/nsxiv_images/; done ;;
|
||||
esac
|
@ -17,6 +17,9 @@
|
||||
- zip
|
||||
- unzip
|
||||
- unrar
|
||||
- feh
|
||||
- mpv
|
||||
- nsxiv
|
||||
state: present
|
||||
become: true
|
||||
tags: [pc, setup]
|
||||
@ -69,29 +72,10 @@
|
||||
- ~/.config/dunst
|
||||
- ~/.config/cmus
|
||||
- ~/.config/redshift
|
||||
- ~/.confix/nsxiv
|
||||
- ~/.confix/nsxiv/exec
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Copy over alacritty config
|
||||
ansible.builtin.copy:
|
||||
src: alacritty.yml
|
||||
dest: ~/.config/alacritty.yml
|
||||
mode: '0644'
|
||||
tags: pc
|
||||
|
||||
- name: Copy over dunst config
|
||||
ansible.builtin.copy:
|
||||
src: dunstrc
|
||||
dest: ~/.config/dunst/dunstrc
|
||||
mode: '0644'
|
||||
tags: pc
|
||||
|
||||
- name: Copy over dircolours
|
||||
ansible.builtin.copy:
|
||||
src: dircolours
|
||||
dest: ~/.config/dircolours
|
||||
mode: '0644'
|
||||
tags: pc
|
||||
|
||||
- name: Copy over cmus config
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
@ -100,13 +84,6 @@
|
||||
with_fileglob: "cmus/*"
|
||||
tags: pc
|
||||
|
||||
- name: Copy over redshiftrc
|
||||
ansible.builtin.copy:
|
||||
src: redshiftrc
|
||||
dest: ~/.config/redshift/redshiftrc
|
||||
mode: '0644'
|
||||
tags: pc
|
||||
|
||||
- name: Create nnn config directory
|
||||
ansible.builtin.file:
|
||||
path: "~/.config/nnn"
|
||||
@ -129,6 +106,25 @@
|
||||
mode: '0755'
|
||||
tags: [pc, setup]
|
||||
|
||||
- name: Copy over common config files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "~/.config/{{ item.dest }}"
|
||||
mode: '0644'
|
||||
tags: pc
|
||||
loop:
|
||||
- { src: alacritty.yml, dest: alacritty.yml }
|
||||
- { src: dunstrc, dest: dunst/dunstrc }
|
||||
- { src: dircolours, dest: dircolours }
|
||||
- { src: redshiftrc, dest: redshift/redshiftrc }
|
||||
|
||||
- name: Copy over nsixv key handler script
|
||||
ansible.builtin.copy:
|
||||
src: nsxiv_key_handler
|
||||
dest: ~/.config/nsxiv/exec/key-handler
|
||||
mode: '0755'
|
||||
tags: pc
|
||||
|
||||
- name: Copy over T460p config files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
@ -151,6 +147,7 @@
|
||||
- { src: xmobarrc_qwerty, dest: ~/.config/xmobar/xmobarrc }
|
||||
- { src: bashrc_qwerty, dest: ~/.bashrc }
|
||||
- { src: profile_qwerty, dest: ~/.profile }
|
||||
- { src: mimeapps_qwerty.list, dest: ~/.config/mimeapps.list }
|
||||
tags: qwerty
|
||||
|
||||
- name: Enable Lightdm
|
||||
|
Loading…
Reference in New Issue
Block a user