2023-12-04 10:05:25 -05:00
|
|
|
{pkgs, ...}: {
|
2023-11-22 15:33:16 -05:00
|
|
|
home.packages =
|
|
|
|
(with pkgs.python311Packages; [
|
|
|
|
python
|
|
|
|
pyclip
|
|
|
|
])
|
|
|
|
++ (with pkgs; [
|
|
|
|
# Misc CLI
|
|
|
|
acpi
|
2023-10-03 15:25:34 -04:00
|
|
|
|
2023-11-22 15:33:16 -05:00
|
|
|
(writeShellScriptBin "Gparted" ''
|
|
|
|
(
|
|
|
|
sleep 1.5
|
|
|
|
while killall -r -0 ksshaskpass > /dev/null 2>&1
|
|
|
|
do
|
|
|
|
sleep 0.1
|
|
|
|
if [[ $(hyprctl activewindow | grep Ksshaskpass) == "" ]]; then
|
|
|
|
killall -r ksshaskpass
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
) &
|
|
|
|
exec env SUDO_ASKPASS=${pkgs.plasma5Packages.ksshaskpass}/bin/${pkgs.plasma5Packages.ksshaskpass.pname} sudo -k -EA "${gparted}/bin/${gparted.pname}" "$@"
|
|
|
|
'')
|
|
|
|
]);
|
2023-10-03 15:25:34 -04:00
|
|
|
|
|
|
|
xdg.desktopEntries.gparted = {
|
|
|
|
name = "GParted";
|
|
|
|
genericName = "Partition Editor";
|
|
|
|
comment = "Create, reorganize, and delete partitions";
|
|
|
|
exec = "Gparted";
|
|
|
|
icon = "gparted";
|
|
|
|
terminal = false;
|
|
|
|
type = "Application";
|
2023-11-22 15:33:16 -05:00
|
|
|
categories = ["GNOME" "System" "Filesystem"];
|
2023-10-03 15:25:34 -04:00
|
|
|
startupNotify = true;
|
|
|
|
settings = {
|
|
|
|
Keywords = "Partition";
|
|
|
|
X-GNOME-FullName = "GParted Partition Editor";
|
|
|
|
};
|
|
|
|
};
|
2023-06-26 17:29:17 -04:00
|
|
|
}
|