Remove all org files using a new script to more config over, The old org file configuaration were great but required org. This new version only requires the scripts that is included in the repo. The configuration are all done but have not ported the theming system yet. Signed-off-by: Steve Beaulac <steve@sagacity.ca> Change-Id: I14cd7fe058a71c8ba9d6d35397dc8d7e6a6a6964
51 lines
1.6 KiB
Bash
Executable File
51 lines
1.6 KiB
Bash
Executable File
#!/bin/sh -e
|
|
|
|
if [[ ! -x "$(command -v paru)" ]]; then
|
|
sudo pacman -S --noconfirm --needed paru || exit 1
|
|
fi
|
|
|
|
if [[ -x "$(command -v xdg-mine)" ]]; then
|
|
paru -Sy --noconfirm xdg-utils || exit 1
|
|
fi
|
|
|
|
if [[ -x "$(command -v update-desktop-database)" ]]; then
|
|
paru -Sy --noconfirm desktop-file-utils || exit 1
|
|
fi
|
|
|
|
if [[ -d "~/.local/share/applications" ]]; then
|
|
update-desktop-database ~/.local/share/applications
|
|
fi
|
|
|
|
# Open all images with imv
|
|
xdg-mime default imv.desktop image/png
|
|
xdg-mime default imv.desktop image/jpeg
|
|
xdg-mime default imv.desktop image/gif
|
|
xdg-mime default imv.desktop image/webp
|
|
xdg-mime default imv.desktop image/bmp
|
|
xdg-mime default imv.desktop image/tiff
|
|
|
|
# Open PDFs with the Document Viewer
|
|
xdg-mime default org.pwmt.zathura.desktop application/pdf
|
|
|
|
# Use Chromium as the default browser
|
|
xdg-settings set default-web-browser firefox.desktop
|
|
xdg-mime default firefox.desktop x-scheme-handler/http
|
|
xdg-mime default firefox.desktop x-scheme-handler/https
|
|
|
|
# Open video files with mpv
|
|
xdg-mime default mpv.desktop video/mp4
|
|
xdg-mime default mpv.desktop video/x-msvideo
|
|
xdg-mime default mpv.desktop video/x-matroska
|
|
xdg-mime default mpv.desktop video/x-flv
|
|
xdg-mime default mpv.desktop video/x-ms-wmv
|
|
xdg-mime default mpv.desktop video/mpeg
|
|
xdg-mime default mpv.desktop video/ogg
|
|
xdg-mime default mpv.desktop video/webm
|
|
xdg-mime default mpv.desktop video/quicktime
|
|
xdg-mime default mpv.desktop video/3gpp
|
|
xdg-mime default mpv.desktop video/3gpp2
|
|
xdg-mime default mpv.desktop video/x-ms-asf
|
|
xdg-mime default mpv.desktop video/x-ogm+ogg
|
|
xdg-mime default mpv.desktop video/x-theora+ogg
|
|
xdg-mime default mpv.desktop application/ogg
|