From fe7ae76bdb335556dae3ef41a4ab32bc177ed127 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Wed, 22 Mar 2023 23:27:24 +0530 Subject: [PATCH] hide some desktop entries --- home/default.nix | 4 ++++ home/media.nix | 12 +++++++++++- home/nvim.nix | 4 ++++ home/sway/rofi/default.nix | 12 +++++++++++- home/terminal.nix | 5 +++++ 5 files changed, 35 insertions(+), 2 deletions(-) diff --git a/home/default.nix b/home/default.nix index b7529b5..710a906 100644 --- a/home/default.nix +++ b/home/default.nix @@ -72,6 +72,10 @@ in xdg.mimeApps.enable = true; xdg.userDirs.enable = true; + xdg.desktopEntries."nixos-manual".name = "NixOS Manual"; + xdg.desktopEntries."nixos-manual".exec = "nixos-help"; + xdg.desktopEntries."nixos-manual".noDisplay = true; + home.stateVersion = "23.05"; }; } diff --git a/home/media.nix b/home/media.nix index 69df9e2..89d39da 100644 --- a/home/media.nix +++ b/home/media.nix @@ -1,4 +1,14 @@ -{ pkgs, ... }: { +{ pkgs, ... }: + +{ + xdg.desktopEntries."mpv".name = "mpv Media Player"; + xdg.desktopEntries."mpv".exec = "mpv --player-operation-mode=pseudo-gui -- %U"; + xdg.desktopEntries."mpv".noDisplay = true; + + xdg.desktopEntries."umpv".name = "umpv Media Player"; + xdg.desktopEntries."umpv".exec = "umpv --player-operation-mode=pseudo-gui -- %U"; + xdg.desktopEntries."umpv".noDisplay = true; + home.packages = with pkgs; [ celluloid spotify-tui diff --git a/home/nvim.nix b/home/nvim.nix index 8acedac..71de167 100644 --- a/home/nvim.nix +++ b/home/nvim.nix @@ -1,6 +1,10 @@ { pkgs, ... }: { + xdg.desktopEntries."nvim".name = "Neovim wrapper"; + xdg.desktopEntries."nvim".exec = "nvim %F"; + xdg.desktopEntries."nvim".noDisplay = true; + programs.neovim = { enable = true; viAlias = true; diff --git a/home/sway/rofi/default.nix b/home/sway/rofi/default.nix index bcfbc98..d66ad8d 100644 --- a/home/sway/rofi/default.nix +++ b/home/sway/rofi/default.nix @@ -1,4 +1,14 @@ -{ pkgs, ... }: { +{ pkgs, ... }: + +{ + xdg.desktopEntries."rofi".name = "Rofi"; + xdg.desktopEntries."rofi".exec = "rofi -show"; + xdg.desktopEntries."rofi".noDisplay = true; + + xdg.desktopEntries."rofi-theme-selector".name = "Rofi Theme Selector"; + xdg.desktopEntries."rofi-theme-selector".exec = "rofi-theme-selector"; + xdg.desktopEntries."rofi-theme-selector".noDisplay = true; + programs.rofi = { enable = true; cycle = false; diff --git a/home/terminal.nix b/home/terminal.nix index 409701b..f42ea6f 100644 --- a/home/terminal.nix +++ b/home/terminal.nix @@ -6,6 +6,11 @@ ./tmux.nix ]; + + xdg.desktopEntries."btop".name = "btop++"; + xdg.desktopEntries."btop".exec = "btop"; + xdg.desktopEntries."btop".noDisplay = true; + programs = { atuin.enable = true; bat = {