A versatile application/command launcher for wayland. Built with rust and gtk4
A versatile application/command launcher for wayland. Built with rust and gtk4
Sherlock is a lightweight and efficient application launcher built with Rust and GTK4. It allows you to quickly launch your favorite applications with a user-friendly interface, providing a fast and highly-configurable way to search, launch, and track application usage.
bulk_text launcher.[!CAUTION] This app is/was developed on Arch Linux with the Hyprland tiling window manager in mind. It may cause errors or won't function on your system. If so, please let me know in the issues, I will try my best to resolve it.
--sub-menu flag to only search within a category.modkey + number shortcuts to quickly launch a command or app without having to scroll.sherlock_alias.json file or create custom ones for your commandsTo run the Sherlock Launcher, ensure the following dependencies are installed:
gtk4 - Gtk4 Documentationgtk-4-layer-shell - Gtk4 Layer Shelldbus - (Used to get currently playing song)openssl - (Used for retrieving Spotify album art)libssl-devlibsqlite3-devAdditionally, if you're building from source, you will need:
rust - How to install rustgit - How to install gitIf you're using Arch Linux, you can install the pre-built binary package with the following command:
yay -S sherlock-launcher-binOr install the community-maintained git build with the following command:
yay -S sherlock-launcher-gitTo build Sherlock Launcher from source, follow these steps.
Make sure you have the necessary dependencies installed:
rust - How to install rustgit - How to install gitgtk4 - Gtk4 Documentationgtk-4-layer-shell - Gtk4 Layer Shelldbus - (Used to get currently playing song)libsqlite3-devlibrsvggdk-pixbuf2Clone the repository:
git clone https://github.com/skxxtz/sherlock.git
cd sherlockInstall necessary Rust dependencies:
Build the project using the following command:
cargo build --releaseInstall the binary:
After the build completes, install the binary to your system:
sudo cp target/release/sherlock /usr/local/bin/(Optional) Remove the build directory:
You can optionally remove the source code directory.
rm -rf /path/to/sherlockTo build a .deb package directly from the source, follow these steps:
Make sure you have the following dependencies installed:
rust - How to install rustgit - How to install gitgtk4 - Gtk4 Documentationgtk-4-layer-shell - Gtk4 Layer ShellInstall the cargo-deb tool:
First, you need to install the cargo-deb tool, which simplifies packaging Rust projects as Debian packages:
cargo install cargo-debBuild the Debian package:
After installing cargo-deb, run the following command to build the .deb package:
cargo deb This will create a .deb package in the target/debian directory.
Install the generated .deb package:
Once the package is built, you can install it using:
sudo dpkg -i target/debian/sherlock-launcher_*_amd64.debYou can use tab-completion to auto complete the exact file name.
Sherlock is available in nixpkgs/unstable as sherlock-launcher. If you're installing it as a standalone package you'll need to do the config setup yourself.
A module for Sherlock is available in home manager. You can find it's configuration here. If you want to use the latest updates and module options, follow the steps below.
Home-Manager Example ConfigurationAdd the following your inputs of flake.nix if you want to use the latest upstream version of sherlock.
sherlock = {
url = "github:Skxxtz/sherlock";
inputs.nixpkgs.follows = "nixpkgs";
};Home-Manager config:
…To install the standalone package, add sherlock.packages.${pkgs.system}.default to environment.systemPackages/home.packages. You will need to create the configuration files yourself, see below.
After the installation is completed, you can set up your configuration files. The location for them is ~/.config/sherlock/. Depending on your needs, you should add the following files:
As of version 0.1.11, Sherlock comes with the init subcommand to automatically create your config. It will create versions of the files above, populated with the default values. Additionally, it will create the icons/, scripts/, and themes/ subdirectories. All you have to do is run the following command:
sherlock initIf you're getting warnings after startup, you can press return to access the main application. Alternatively, you can set the try_suppress_warnings key in the config file to true. This will prevent any warnings to be shown. The same thing can be done for errors. However, if you suppress errors, the application might not work as expected.
To launch Sherlock, you can either type sherlock into the command line or bind it to a key. The latter is recommended.
The setup steps vary by display manager. The setup for Hyprland is outlined here:
$menu variable to Sherlock:$menu = sherlock$menubind = $mainMod, space, exec, $menu`--help` "For more help" link is broken
on nixos, it launcher app success, but with core dump at log,
`pkill` graceful alternative to keep daemon
Sherlock not updating theme
"Failed to load weather" even after reinitializing everything
Ability to search files
Nested commands don't launch
Sherlock freezes if i "spam" open it.
Sherlock not launching under `hyprctl dispatch exec sherlock`
Prefer frequently-launched applications