From d74b3a51094df9de5a5dcbc6c7580118995aeca8 Mon Sep 17 00:00:00 2001 From: Szymon P Date: Sun, 22 Feb 2026 22:53:27 +0100 Subject: [PATCH] xd --- home.nix | 23 ++++++++++++++++------- modules/desktop.nix | 31 +++++++++++++++++++++++++++++++ modules/xdg.nix | 12 ++++++++++++ 3 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 modules/desktop.nix create mode 100644 modules/xdg.nix diff --git a/home.nix b/home.nix index 5dce6e4..d00d82f 100644 --- a/home.nix +++ b/home.nix @@ -49,6 +49,9 @@ ./modules/hypr/hypridle.nix ./modules/hypr/hyprlock.nix ./modules/hypr/hyprsunset.nix + # other stuff + ./modules/xdg.nix + ./modules/desktop.nix ]; # === DOTFILES IMPORT === @@ -64,13 +67,19 @@ }; # XDG - xdg.portal.config = { - common = { - default = [ - "hyprland" - "gtk" - ]; - }; + + xdg.desktopEntries.x = { + name = "X"; + genericName = "Social Media Client"; + comment = "Open X (twitter)"; + exec = "uwsm app -- chromium --app=https://x.com"; + icon = "twitter"; + terminal = false; + categories = [ + "Network" + "WebBrowser" + "X-Social" + ]; }; # === VARS === diff --git a/modules/desktop.nix b/modules/desktop.nix new file mode 100644 index 0000000..158fedf --- /dev/null +++ b/modules/desktop.nix @@ -0,0 +1,31 @@ +{ ... }: + +{ + xdg.desktopEntries = { + x = { + name = "X"; + genericName = "Social Media Client"; + comment = "Open X (twitter)"; + exec = "uwsm app -- chromium --app=https://x.com"; + icon = "twitter"; + terminal = false; + categories = [ + "Network" + "WebBrowser" + "X-Social" + ]; + }; + + proton-mail = { + name = "Proton mail"; + genericName = "Proton mail"; + comment = "Open Proton Mail"; + exec = "uwsm app -- chromium --app=https://mail.proton.me/u/0/inbox.com"; + terminal = false; + categories = [ "Email" ]; + settings = { + StartupWMClass = "proton-mail.com"; + }; + }; + }; +} diff --git a/modules/xdg.nix b/modules/xdg.nix new file mode 100644 index 0000000..5f1348b --- /dev/null +++ b/modules/xdg.nix @@ -0,0 +1,12 @@ +{ ... }: + +{ + xdg.portal.config = { + common = { + default = [ + "hyprland" + "gtk" + ]; + }; + }; +}