Skip to content

matyas7dub/sherlock

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

708 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sherlock Application Launcher for Linux

sherlock logo application screenshot

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..

Suggested packages

  • sherlock-wiki: allows you to search Wikipedia from within Sherlock using the bulk_text launcher.

🚨 Warning: This app is/was created on Arch Linux with the Hyprland tiling window manager in mind. It may cause errors or won't function at all on other system configurations.


Table of Contents




Features

πŸ”§ Style Customization

  • Fully customize the look and feel of the launcher.
  • Modify themes and visual elements to match your preferences

πŸ› οΈ Custom Commands

  • Define your own commands and extend the functionality of the launcher.
  • Add new features or workflows tailored to your specific needs.

πŸš€ Fallbacks

  • Configure fallback behaviours for various commands and operations.
  • Ensure a smooth experience even when certain commands fail or are unavailable.

πŸ–ΌοΈ Application Aliases and Customization

  • Assign aliases to your applications for better looks and quicker access.
  • Assign custom icons to your applications for a personalized touch.
  • Hide apps that you don't use and don't want to clutter up your launcher.

🌐 Async Widget

  • Use the async widget to send API requests and display their responses directly in the launcher.
  • Great for integrating live data or external tools into your workflow.

πŸ“… Teams Events Launcher

  • Use the Teams Event Launcher to easily join upcoming Microsoft Teams meetings

πŸ” Category-Based Search

  • Type the launcher alias and spacebar to only search within a specific category of commands.
  • Categories are fully configurable, allowing you to customize search scopes.

⌨️ Shortcuts

  • Use shortcuts like ctrl + 4 to quickly launch a command or app without having to scroll.



Getting Started

1. Dependencies

To run the Sherlock Launcher, ensure the following dependencies are installed:

Additionally, if you're building from source, you will need:

2. Installation

Arch Linux

If you're using Arch Linux, you can install the pre-built binary package with the following command:

yay -S sherlock-launcher-bin

From Source

To build Sherlock Launcher from source, follow these steps.
Make sure you have the necessary dependencies installed:

  1. Clone the repository:

    git clone https://github.com/skxxtz/sherlock.git
    cd sherlock
  2. Install necessary Rust dependencies:

    Build the project using the following command:

    cargo build --release
  3. Install the binary:

    After the build completes, install the binary to your system:

    sudo cp target/release/sherlock /usr/bin/

Build Debian Package

To build a .deb package directly from the source, follow these steps:
Make sure you have the following dependencies installed:

  1. Install the cargo-deb tool:

    First, you need to install the cargo-deb tool, which simplifies packaging Rust projects as Debian packages:

    cargo install cargo-deb
  2. Build 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.

  3. Install the generated .deb package:

    Once the package is built, you can install it using:

    sudo dpkg -i target/debian/sherlock-launcher_0.1.8_amd64.deb

    (Make sure to replace the filename if the version number is different.)

Nix Flake

Add sherlock.url = "github:Skxxtz/sherlock"; to the inputs of flake.nix. Sherlock can be installed either as a standalone package; or managed with home-manager, which both installs and generates configuration files.

To install the standalone package, add sherlock.packages.${pkgs.system}.default to environment.systemPackages. You will need to create the configuration files yourself, see below.

For home-manager enabled systems, use the sherlock.homeManagerModules.default output of the imported flake. An example can be found here.

3. Post Installation

Config Setup

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:

  1. config.toml: This file specifies the behavior and defaults of your launcher. Documentation here.
  2. fallback.json: This file specifies the features your launcher should have. Documentation here.
  3. sherlock_alias.json: This file specifies aliases for applications. Documentation here.
  4. sherlockignore: This file specifies which applications to exclude from your search. Documentation here.
mkdir -p ~/.config/sherlock/
touch ~/.config/sherlock/config.toml ~/.config/sherlock/sherlockignore
echo [] > ~/.config/sherlock/fallback.json
echo {} > ~/.config/sherlock/sherlock_alias.json



Alternatively, you can use curl -O in the ~/.config/sherlock/ directory to load the example configs. This is not good practice and not recommended, especially if you don't know the source, as you could end up downloading malware! Nevertheless, here's how you can do that, if you prefer to be a risk-taker:

🚨 Warning: Only use curl with trusted sources to avoid downloading malicious content!

mkdir -p ~/.config/sherlock/
cd ~/.config/sherlock/
curl -O https://raw.githubusercontent.com/skxxtz/sherlock/main/docs/examples/config.toml
curl -O https://raw.githubusercontent.com/skxxtz/sherlock/main/docs/examples/sherlockignore
curl -O https://raw.githubusercontent.com/skxxtz/sherlock/main/docs/examples/fallback.json
curl -O https://raw.githubusercontent.com/skxxtz/sherlock/main/docs/examples/sherlock_alias.json

Warnings after startup

If 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.

Keybind Setup

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:

  1. (Recommended) Bind the $menu variable to Sherlock:
$menu = sherlock
  1. Bind a key to execute $menu
bind = $mainMod, space, exec, $menu

About

A versatile application/command launcher for wayland. Built with rust and gtk4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 93.4%
  • CSS 3.8%
  • Nix 2.6%
  • Other 0.2%