Override qq to use wayland.
This commit is contained in:
parent
e77baa8fc2
commit
50d2805acb
5 changed files with 34 additions and 0 deletions
|
|
@ -507,6 +507,10 @@ in
|
||||||
app-id = "^org\\.telegram\\.desktop$";
|
app-id = "^org\\.telegram\\.desktop$";
|
||||||
title = "Media viewer";
|
title = "Media viewer";
|
||||||
})
|
})
|
||||||
|
(match {
|
||||||
|
app-id = "^QQ$";
|
||||||
|
title = "图片查看器";
|
||||||
|
})
|
||||||
(leaf "open-floating" true)
|
(leaf "open-floating" true)
|
||||||
(leaf "open-fullscreen" false)
|
(leaf "open-fullscreen" false)
|
||||||
])
|
])
|
||||||
|
|
|
||||||
5
overlays/modifications/QQ.nix
Normal file
5
overlays/modifications/QQ.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{outputs, ...}: final: prev: let
|
||||||
|
inherit (prev.stdenv.hostPlatform) system;
|
||||||
|
in {
|
||||||
|
qq = outputs.packages."${system}".QQ;
|
||||||
|
}
|
||||||
|
|
@ -8,6 +8,7 @@ in
|
||||||
./spotifyx.nix
|
./spotifyx.nix
|
||||||
./radicle-explorer.nix
|
./radicle-explorer.nix
|
||||||
./wshowkeys.nix
|
./wshowkeys.nix
|
||||||
|
./QQ.nix
|
||||||
]
|
]
|
||||||
|> map (file: import file args)
|
|> map (file: import file args)
|
||||||
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
||||||
|
|
|
||||||
23
pkgs/QQ.nix
Normal file
23
pkgs/QQ.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
symlinkJoin,
|
||||||
|
makeWrapper,
|
||||||
|
qq,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
symlinkJoin {
|
||||||
|
name = "QQ";
|
||||||
|
paths = [qq];
|
||||||
|
inherit (qq) meta;
|
||||||
|
buildInputs = [
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
postBuild = ''
|
||||||
|
rm $out/share/applications/qq.desktop
|
||||||
|
cp ${qq}/share/applications/qq.desktop $out/share/applications/qq.desktop
|
||||||
|
substituteInPlace $out/share/applications/qq.desktop \
|
||||||
|
--replace-fail "${qq}" $out
|
||||||
|
wrapProgram $out/bin/qq \
|
||||||
|
--set NIXOS_OZONE_WL 1 \
|
||||||
|
--add-flags '--wayland-text-input-version=3'
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -17,6 +17,7 @@ in
|
||||||
TrackersListCollection = callPackage ./TrackersListCollection.nix {};
|
TrackersListCollection = callPackage ./TrackersListCollection.nix {};
|
||||||
wshowkeys-mao = callPackage ./wshowkeys-mao.nix {};
|
wshowkeys-mao = callPackage ./wshowkeys-mao.nix {};
|
||||||
OuterWildsTextAdventure = callPackage ./OuterWildsTextAdventure.nix {};
|
OuterWildsTextAdventure = callPackage ./OuterWildsTextAdventure.nix {};
|
||||||
|
QQ = callPackage ./QQ.nix {};
|
||||||
|
|
||||||
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
||||||
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue