diff --git a/home/desktop/default.nix b/home/desktop/default.nix index d2b85be..ad54e8f 100755 --- a/home/desktop/default.nix +++ b/home/desktop/default.nix @@ -11,14 +11,15 @@ in { imports = [ ## Import common desktop configs - ./hyprcursor.nix - ./hyprlock.nix - ./wlogout.nix - ./waybar.nix - ./dunst.nix - ./wofi.nix - ./sway.nix - ../scripts + ./xdg-mime.nix # file associations + ./hyprcursor.nix # mouse cursor + ./hyprlock.nix # screen locker + ./wlogout.nix # logout prompt + ./waybar.nix # statusbar + ./dunst.nix # notifier + ./wofi.nix # app menu + ./sway.nix # desktop + ../scripts # scripts ]; diff --git a/home/desktop/xdg-mime.nix b/home/desktop/xdg-mime.nix index c0989be..3d9e8b1 100755 --- a/home/desktop/xdg-mime.nix +++ b/home/desktop/xdg-mime.nix @@ -2,31 +2,46 @@ { xdg.mimeApps = { defaultApplications = { - "text/markdown" = "nvim.desktop"; + + ## Basic Text "text/plain" = "nvim.desktop"; - "text/x-shellscript" = "nvim.desktop"; - "text/x-python" = "nvim.desktop"; - "text/x-go" = "nvim.desktop"; - "text/css" = "nvim.desktop"; - "text/javascript" = "nvim.desktop"; - "text/x-c" = "nvim.desktop"; - "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"; + "text/markdown" = "nvim.desktop"; + "application/pdf" = "firefox.desktop"; + + ## Images + "image/gif" = "swayimg"; + "image/png" = "swayimg"; "image/jpg" = "swayimg.desktop"; + "image/jpeg" = "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/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"; + }; }; }