updated xdg-mime.nix
This commit is contained in:
parent
bf7f357033
commit
d32c29cd3e
2 changed files with 44 additions and 28 deletions
|
|
@ -11,14 +11,15 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
||||||
## Import common desktop configs
|
## Import common desktop configs
|
||||||
./hyprcursor.nix
|
./xdg-mime.nix # file associations
|
||||||
./hyprlock.nix
|
./hyprcursor.nix # mouse cursor
|
||||||
./wlogout.nix
|
./hyprlock.nix # screen locker
|
||||||
./waybar.nix
|
./wlogout.nix # logout prompt
|
||||||
./dunst.nix
|
./waybar.nix # statusbar
|
||||||
./wofi.nix
|
./dunst.nix # notifier
|
||||||
./sway.nix
|
./wofi.nix # app menu
|
||||||
../scripts
|
./sway.nix # desktop
|
||||||
|
../scripts # scripts
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,31 +2,46 @@
|
||||||
{
|
{
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"text/markdown" = "nvim.desktop";
|
|
||||||
|
## Basic Text
|
||||||
"text/plain" = "nvim.desktop";
|
"text/plain" = "nvim.desktop";
|
||||||
"text/x-shellscript" = "nvim.desktop";
|
"text/markdown" = "nvim.desktop";
|
||||||
"text/x-python" = "nvim.desktop";
|
"application/pdf" = "firefox.desktop";
|
||||||
"text/x-go" = "nvim.desktop";
|
|
||||||
"text/css" = "nvim.desktop";
|
## Images
|
||||||
"text/javascript" = "nvim.desktop";
|
"image/gif" = "swayimg";
|
||||||
"text/x-c" = "nvim.desktop";
|
"image/png" = "swayimg";
|
||||||
"text/x-c++" = "nvim.desktop";
|
|
||||||
"text/x-java" = "nvim.desktop";
|
|
||||||
"text/x-rust" = "nvim.desktop";
|
|
||||||
"text/x-yaml" = "nvim.desktop";
|
|
||||||
"text/x-toml" = "nvim.desktop";
|
|
||||||
"text/x-dockerfile" = "nvim.desktop";
|
|
||||||
"text/x-xml" = "nvim.desktop";
|
|
||||||
"text/x-php" = "nvim.desktop";
|
|
||||||
"image/png" = "swayimg.desktop";
|
|
||||||
"image/jpeg" = "swayimg.desktop";
|
|
||||||
"image/jpg" = "swayimg.desktop";
|
"image/jpg" = "swayimg.desktop";
|
||||||
|
"image/jpeg" = "swayimg.desktop";
|
||||||
"image/webp" = "swayimg.desktop";
|
"image/webp" = "swayimg.desktop";
|
||||||
"image/gif" = "swayimg.desktop";
|
|
||||||
|
## Videos
|
||||||
|
"video/mp4" = "vlc.desktop";
|
||||||
|
"video/mpeg" = "vlc.desktop";
|
||||||
|
"video/webm" = "vlc.desktop";
|
||||||
|
"video/quicktime" = "vlc.desktop";
|
||||||
|
"video/x-matroska" = "vlc.desktop";
|
||||||
|
|
||||||
|
|
||||||
|
## Music
|
||||||
|
|
||||||
|
## Gaming
|
||||||
|
|
||||||
|
## Web
|
||||||
|
"text/css" = "nvim.desktop";
|
||||||
|
"text/html" = "nvim.desktop";
|
||||||
"x-scheme-handler/http" = "firefox.desktop";
|
"x-scheme-handler/http" = "firefox.desktop";
|
||||||
"x-scheme-handler/https" = "firefox.desktop";
|
"x-scheme-handler/https" = "firefox.desktop";
|
||||||
"text/html" = "firefox.desktop";
|
|
||||||
"application/pdf" = "firefox.desktop";
|
## Code
|
||||||
|
"text/x-shellscript" = "nvim.desktop";
|
||||||
|
"text/x-xml" = "nvim.desktop";
|
||||||
|
"text/x-yaml" = "nvim.desktop";
|
||||||
|
"text/x-toml" = "nvim.desktop";
|
||||||
|
"text/x-nix" = "nvim.desktop";
|
||||||
|
"text/x-rust" = "nvim.desktop";
|
||||||
|
"text/x-python" = "nvim.desktop";
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue