gui(niri): Add swayimg as default image viewer

This commit is contained in:
ulic-youthlic 2025-07-11 01:38:30 +08:00
parent d69903d7d8
commit 871ac5871d
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 18 additions and 0 deletions

View file

@ -484,6 +484,11 @@ in
(match [{app-id = "^com\\.mitchellh\\.ghostty$";}])
(leaf "draw-border-with-background" [false])
])
(window-rule [
(match [{app-id = "^swayimg$";}])
(leaf "draw-border-with-background" [false])
(leaf "open-floating" [true])
])
(window-rule [
(match [{is-window-cast-target = true;}])
(plain "focus-ring" [

View file

@ -29,6 +29,7 @@ in {
kdePackages.polkit-kde-agent-1
wl-clipboard
cliphist
swayimg
])
++ [niri];
qt = {

View file

@ -66,6 +66,18 @@ in {
"firefox.desktop"
"chromium-browser.desktop"
];
"image/gif" = [
"swayimg.desktop"
];
"image/jpeg" = [
"swayimg.desktop"
];
"image/png" = [
"swayimg.desktop"
];
"image/webp" = [
"swayimg.desktop"
];
};
};
};