Archived
1
0
Fork 0

scripts: Add mimeapps.list files for xdg-open

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-01-08 22:19:43 +01:00
parent 4ccf179467
commit dd56eee6e4
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF
3 changed files with 17 additions and 7 deletions

View file

@ -12,11 +12,11 @@ RSYNC="rsync --archive --info=name1"
$RSYNC latexmkrc $HOME/.latexmkrc
$RSYNC zshrc $HOME/.zshrc
DIRS="git nvim tmux"
ITEMS="git nvim tmux"
[ "$MODE" != --headless ] && DIRS+=" alacritty sway swaylock waybar waybar mako wofi"
[ "$MODE" != --headless ] && ITEMS+=" alacritty sway swaylock waybar waybar mako wofi mimeapps.list"
for d in $DIRS; do
mkdir -p $HOME/.config/$d
$RSYNC $d $HOME/.config/
for i in $ITEMS; do
[ -d $i ] && mkdir -p $HOME/.config/$i
$RSYNC $i $HOME/.config/
done

10
mimeapps.list Normal file
View file

@ -0,0 +1,10 @@
[Default Applications]
x-scheme-handler/http=org.mozilla.firefox.desktop;
x-scheme-handler/https=org.mozilla.firefox.desktop;
application/pdf=org.pwmt.zathura.desktop
image/png=imv.desktop
image/bmp=imv.desktop
image/tiff=imv.desktop
image/jpeg=imv.desktop
image/gif=imv.desktop
text/html=elinks.desktop

View file

@ -20,8 +20,8 @@ $RSYNC \
$HOME/.config/nvim .
if [ "$MODE" != --headless ]; then
for d in alacritty waybar mako wofi; do
$RSYNC $HOME/.config/$d .
for i in alacritty waybar mako wofi mimeapps.list; do
$RSYNC $HOME/.config/$i .
done
for d in sway swaylock; do