feat: add mimeapps

This commit is contained in:
Klesh Wong 2022-09-08 21:51:57 +08:00
parent 6b6e1f76ee
commit d508cb5d8f
2 changed files with 14 additions and 0 deletions

View File

@ -105,6 +105,7 @@ lnsf "$DIR/autorandr/postswitch" "$XDG_CONFIG_HOME/autorandr/postswitch"
lnsf "$DIR/thunar/uca.xml" "$XDG_CONFIG_HOME/Thunar/uca.xml" lnsf "$DIR/thunar/uca.xml" "$XDG_CONFIG_HOME/Thunar/uca.xml"
lnsf "$DIR/alacritty/alacritty.yml" "$XDG_CONFIG_HOME/alacritty/alacritty.yml" lnsf "$DIR/alacritty/alacritty.yml" "$XDG_CONFIG_HOME/alacritty/alacritty.yml"
lnsf "$DIR/pulse/default.pa" "$XDG_CONFIG_HOME/pulse/default.pa" lnsf "$DIR/pulse/default.pa" "$XDG_CONFIG_HOME/pulse/default.pa"
lnsf "$DIR/x11/mimeapps.list" "$XDG_CONFIG_HOME/mimeapps.list"
if is_laptop; then if is_laptop; then
echo for non-root user to change backlight, add following rule to /etc/udev/rules.d/backlight.rules echo for non-root user to change backlight, add following rule to /etc/udev/rules.d/backlight.rules

13
gui/x11/mimeapps.list Normal file
View File

@ -0,0 +1,13 @@
[Default Applications]
x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop
image/svg+xml=drawio.desktop
text/html=chromium.desktop
x-scheme-handler/http=chromium.desktop
x-scheme-handler/https=chromium.desktop
x-scheme-handler/about=chromium.desktop
x-scheme-handler/unknown=chromium.desktop
application/pdf=org.pwmt.zathura.desktop
image/jpeg=sxiv.desktop
[Added Associations]
image/svg+xml=vim.desktop;drawio.desktop;