Restart script for plasma added

This commit is contained in:
Lillian Violet 2024-03-14 17:03:05 +01:00
parent 8d8ed9f7b0
commit 0ca3787a1e
3 changed files with 20 additions and 0 deletions

View file

@ -30,6 +30,7 @@
dvd
dvt
servo
restart
# System tools
aha

View file

@ -10,4 +10,5 @@ pkgs: {
install-nix = pkgs.callPackage ./install-nix {};
update = pkgs.callPackage ./update {};
upgrade = pkgs.callPackage ./upgrade {};
restart = pkgs.callPackage ./restart {};
}

18
pkgs/restart/default.nix Normal file
View file

@ -0,0 +1,18 @@
{
lib,
stdenv,
writeShellApplication,
}:
writeShellApplication
{
name = "restart";
runtimeInputs = [killall];
text = ''
# Restart script for kde
killall plasmashell
kstart plasmashell
'';
}