From a57c48edbaf1f6727d582f520d98c9f8a2194117 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 9 Nov 2023 17:21:09 -0500 Subject: [PATCH] fix(binto): add wl clipboard and fix jelly player bug --- devices/binto/default.nix | 2 ++ devices/binto/home/packages.nix | 33 +++++++++++++++++++++++++++++++ devices/binto/modules/desktop.nix | 3 ++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 devices/binto/home/packages.nix diff --git a/devices/binto/default.nix b/devices/binto/default.nix index f9b11921..e2abf49f 100644 --- a/devices/binto/default.nix +++ b/devices/binto/default.nix @@ -36,6 +36,8 @@ ../../home/alacritty.nix ../../home/dconf.nix ../../home/firefox + + ./home/packages.nix ]; # No touchy diff --git a/devices/binto/home/packages.nix b/devices/binto/home/packages.nix new file mode 100644 index 00000000..3529329c --- /dev/null +++ b/devices/binto/home/packages.nix @@ -0,0 +1,33 @@ +{ ... }: { + xdg.desktopEntries."com.github.iwalton3.jellyfin-media-player" = { + name = "Jellyfin Media Player"; + comment = "Desktop client for Jellyfin"; + exec = "jellyfinmediaplayer --platform xcb"; + icon = "com.github.iwalton3.jellyfin-media-player"; + terminal = false; + type = "Application"; + categories = [ "AudioVideo" "Video" "Player" "TV" ]; + settings = { + Version = "1.0"; + StartupWMClass = "jellyfin-media-player"; + }; + actions = { + "DesktopF" = { + name = "Desktop [Fullscreen]"; + exec = "jellyfinmediaplayer --fullscreen --desktop --platform xcb"; + }; + "DesktopW" = { + name = "Desktop [Windowed]"; + exec = "jellyfinmediaplayer --windowed --desktop --platform xcb"; + }; + "TVF" = { + name = "TV [Fullscreen]"; + exec = "jellyfinmediaplayer --fullscreen --tv --platform xcb"; + }; + "TVW" = { + name = "TV [Windowed]"; + exec = "jellyfinmediaplayer --windowed --tv --platform xcb"; + }; + }; + }; +} diff --git a/devices/binto/modules/desktop.nix b/devices/binto/modules/desktop.nix index 81068f9d..15bda0b7 100644 --- a/devices/binto/modules/desktop.nix +++ b/devices/binto/modules/desktop.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, lib, ... }: { programs.dconf.enable = true; services = { @@ -17,6 +17,7 @@ environment.systemPackages = with pkgs; [ p7zip # for reshade xclip + wl-clipboard flat-remix-icon-theme nextcloud-client libreoffice-qt