assorted: use Title Casing for .desktop desktopName entries

This commit is contained in:
2024-12-06 01:24:42 +00:00
parent 85675465f4
commit cc6be7a407
4 changed files with 9 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ let
}) })
(pkgs.makeDesktopItem { (pkgs.makeDesktopItem {
name = "${cfg.browser.libName}-stub-dns"; name = "${cfg.browser.libName}-stub-dns";
desktopName = "${cfg.browser.libName} (stub DNS)"; desktopName = "${cfg.browser.libName} (Stub DNS)";
genericName = "Web Browser"; genericName = "Web Browser";
# N.B.: --new-instance ensures we don't reuse an existing differently-namespaced instance. # N.B.: --new-instance ensures we don't reuse an existing differently-namespaced instance.
# OTOH, it may error about "only one instance can run at a time": close the other instance if you see that. # OTOH, it may error about "only one instance can run at a time": close the other instance if you see that.

View File

@@ -46,19 +46,19 @@ let
name = "rofi-filebrowser"; name = "rofi-filebrowser";
# alternatively: `rofi -modes filebrowser -show`, however this would require theme tweaking to look good # alternatively: `rofi -modes filebrowser -show`, however this would require theme tweaking to look good
exec = "rofi -combi-modes filebrowser -show"; exec = "rofi -combi-modes filebrowser -show";
desktopName = "rofi filebrowser"; desktopName = "Files (rofi)";
}) })
(pkgs.makeDesktopItem { (pkgs.makeDesktopItem {
name = "rofi-applications"; name = "rofi-applications";
exec = "rofi -combi-modes drun -show"; exec = "rofi -combi-modes drun -show";
desktopName = "rofi applications"; desktopName = "Applications (rofi)";
mimeTypes = [ "application/x-desktop" ]; mimeTypes = [ "application/x-desktop" ];
noDisplay = true; noDisplay = true;
}) })
(pkgs.makeDesktopItem { (pkgs.makeDesktopItem {
name = "close"; name = "cancel";
exec = "true"; exec = "true";
desktopName = "Close Menu"; desktopName = "Cancel";
mimeTypes = [ "application/x-desktop" ]; mimeTypes = [ "application/x-desktop" ];
}) })
]; ];
@@ -170,7 +170,8 @@ in
(pkgs.makeDesktopItem { (pkgs.makeDesktopItem {
name = "rofi-snippets"; name = "rofi-snippets";
exec = "rofi-snippets"; exec = "rofi-snippets";
desktopName = "rofi macro to insert common texts"; # rofi macro to insert common texts
desktopName = "Snippets";
}) })
]; ];
}; };

View File

@@ -25,7 +25,7 @@ in
# (pkgs.makeDesktopItem { # (pkgs.makeDesktopItem {
# name = "swaylock"; # name = "swaylock";
# exec = "swaylock --indicator-idle-visible --indicator-radius 100 --indicator-thickness 30"; # exec = "swaylock --indicator-idle-visible --indicator-radius 100 --indicator-thickness 30";
# desktopName = "Sway session locker"; # desktopName = "Lock Session";
# }) # })
# ]; # ];
# }); # });

View File

@@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
name = "schlock"; name = "schlock";
# exec = "schlock -p $HOME/.config/schlock/schlock.pin"; # exec = "schlock -p $HOME/.config/schlock/schlock.pin";
exec = ''/bin/sh -c "schlock -p \\$HOME/.config/schlock/schlock.pin"''; exec = ''/bin/sh -c "schlock -p \\$HOME/.config/schlock/schlock.pin"'';
desktopName = "mobile screen locker"; desktopName = "Lock Screen";
}) })
]; ];