mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:18:44 +08:00
users.chn.plasma.autostart: add element
This commit is contained in:
parent
02981d242f
commit
40f4d35b62
@ -4,13 +4,30 @@ inputs:
|
||||
{
|
||||
home-manager.users.chn.config.home.file =
|
||||
let
|
||||
programs =
|
||||
{
|
||||
nheko = "${inputs.pkgs.nheko}/share/applications/nheko.desktop";
|
||||
kclockd = "${inputs.pkgs.plasma5Packages.kdeGear.kclock}/etc/xdg/autostart/org.kde.kclockd-autostart.desktop";
|
||||
yakuake = "${inputs.pkgs.yakuake}/share/applications/org.kde.yakuake.desktop";
|
||||
telegram = ./org.telegram.desktop.desktop;
|
||||
element =
|
||||
let
|
||||
drv = inputs.pkgs.writeTextDir "element-desktop.desktop" (builtins.replaceStrings
|
||||
[ "Exec=element-desktop %u" ] [ "Exec=element-desktop --hide" ]
|
||||
(builtins.readFile "${inputs.pkgs.element-desktop.desktopItem}/share/applications/element-desktop.desktop"));
|
||||
in builtins.trace "${drv}" "${drv}/element-desktop.desktop";
|
||||
};
|
||||
devices =
|
||||
{
|
||||
pc = [ "nheko" "kclockd" "yakuake" "telegram" ];
|
||||
surface = [ "kclockd" "yakuake" "telegram" ];
|
||||
pc = [ "nheko" "kclockd" "yakuake" "telegram" "element" ];
|
||||
surface = [ "kclockd" "yakuake" "telegram" "element" ];
|
||||
};
|
||||
in builtins.listToAttrs (builtins.map
|
||||
(file: { name = ".config/autostart/${file}.desktop"; value.source = ./. + "/${file}.desktop"; })
|
||||
(file:
|
||||
{
|
||||
name = ".config/autostart/${builtins.baseNameOf "programs.${file}"}";
|
||||
value.source = programs.${file};
|
||||
})
|
||||
(devices.${inputs.config.nixos.system.networking.hostname}));
|
||||
environment.persistence =
|
||||
let impermanence = inputs.config.nixos.system.impermanence;
|
||||
|
@ -1,6 +0,0 @@
|
||||
[Desktop Entry]
|
||||
DBusActivatable=true
|
||||
Exec=kclockd
|
||||
Name=org.kde.kclockd-autostart
|
||||
Type=Application
|
||||
X-Flatpak=org.kde.kclockd-autostart
|
@ -1,15 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Categories=Network;InstantMessaging;Qt;
|
||||
Comment=Desktop client for Matrix
|
||||
Exec=nheko %u
|
||||
Icon=nheko
|
||||
Keywords=Matrix;matrix.org;chat;irc;communications;talk;riot;element;fractal;voip;
|
||||
MimeType=x-scheme-handler/matrix;
|
||||
Name=nheko
|
||||
StartupWMClass=nheko
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Version=1.0
|
||||
X-GNOME-UsesNotifications=true
|
||||
X-KDE-Keywords=Matrix,matrix.org,chat,irc,communications,talk,riot,element,fractal,voip,
|
||||
X-Purism-FormFactor=Workstation;Mobile;
|
@ -2,7 +2,7 @@
|
||||
Name=Telegram Desktop
|
||||
Comment=Official desktop version of Telegram messaging app
|
||||
TryExec=telegram-desktop
|
||||
Exec=telegram-desktop -autostart
|
||||
Exec=bash -c "sleep 5 && telegram-desktop -autostart"
|
||||
Icon=telegram
|
||||
Terminal=false
|
||||
StartupWMClass=TelegramDesktop
|
@ -1,16 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Categories=Qt;KDE;System;TerminalEmulator;
|
||||
Comment[zh_CN]=一个基于KDE Konsole 技术的下拉式终端仿真器。
|
||||
Comment=A drop-down terminal emulator based on KDE Konsole technology.
|
||||
DBusActivatable=true
|
||||
Exec=yakuake
|
||||
GenericName[zh_CN]=下拉式终端
|
||||
GenericName=Drop-down Terminal
|
||||
Icon=yakuake
|
||||
Name[zh_CN]=Yakuake
|
||||
Name=Yakuake
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-DBUS-ServiceName=org.kde.yakuake
|
||||
X-DBUS-StartupType=Unique
|
||||
X-KDE-StartupNotify=false
|
Loading…
Reference in New Issue
Block a user