This commit is contained in:
2026-02-22 22:53:27 +01:00
parent d8c8ae18c3
commit d74b3a5109
3 changed files with 59 additions and 7 deletions

View File

@@ -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 ===

31
modules/desktop.nix Normal file
View File

@@ -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";
};
};
};
}

12
modules/xdg.nix Normal file
View File

@@ -0,0 +1,12 @@
{ ... }:
{
xdg.portal.config = {
common = {
default = [
"hyprland"
"gtk"
];
};
};
}