This commit is contained in:
nora 2025-09-07 02:05:53 +02:00
parent fbce93b927
commit 09f26d6d40
3 changed files with 20 additions and 5 deletions

17
default.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> { } }: pkgs.rustPlatform.buildRustPackage {
name = "clippyboard";
src = pkgs.lib.cleanSource ./.;
buildInputs = with pkgs; [
libGL
libxkbcommon
wayland
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
];
cargoLock.lockFile = ./Cargo.lock;
}

View file

@ -8,10 +8,6 @@ pkgs.mkShell rec {
freetype.dev
libGL
pkg-config
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
wayland
libxkbcommon
];

View file

@ -135,7 +135,9 @@ pub fn main(socket_path: &Path) -> eyre::Result<()> {
})?;
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default().with_inner_size([500.0, 500.0]),
viewport: egui::ViewportBuilder::default()
.with_inner_size([500.0, 500.0])
.with_app_id("clippyboard"),
..Default::default()
};
eframe::run_native(