Home

dotnix @5451e121efa3d571cfcb3df291eb7af06d863fbb - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / apps / gui / sherlock.nix
- raw -
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
{
  programs.sherlock = {
    enable = true;
    settings = {
      status_bar.enable = false;
    };
    launchers = [
      {
        actions = [
          {
            exit = false;
            icon = "media-seek-forward";
            method = "inner.next";
            name = "Skip";
          }
          {
            exit = false;
            icon = "media-seek-backward";
            method = "inner.previous";
            name = "Previous";
          }
        ];
        args = { };
        async = true;
        binds = [
          {
            bind = "Return";
            callback = "playpause";
            exit = false;
          }
          {
            bind = "l";
            callback = "next";
            exit = false;
          }
          {
            bind = "h";
            callback = "previous";
            exit = false;
          }
        ];
        exit = true;
        home = "OnlyHome";
        name = "Spotify";
        priority = 1;
        shortcut = true;
        spawn_focus = false;
        type = "audio_sink";
      }
      {
        args = {
          capabilities = [
            "calc.math"
            "calc.units"
          ];
        };
        async = false;
        exit = true;
        home = "Search";
        name = "Calculator";
        on_return = "copy";
        priority = 1;
        shortcut = true;
        spawn_focus = true;
        type = "calculation";
      }
      {
        alias = "app";
        args = { };
        async = false;
        exit = true;
        home = "Home";
        name = "App Launcher";
        priority = 3;
        shortcut = true;
        spawn_focus = true;
        type = "app_launcher";
      }
      {
        alias = "kill";
        async = false;
        exit = true;
        home = "Search";
        name = "Kill Process";
        priority = 0;
        shortcut = true;
        spawn_focus = true;
        type = "process";
      }
      {
        alias = "kagi";
        args = {
          icon = "firefox";
          search_engine = "https://kagi.com/search?q={keyword}";
        };
        display_name = "Kagi";
        name = "Web Search";
        priority = 100;
        tag_start = "{keyword}";
        type = "web_launcher";
      }
    ];
    # causes issues with inheriting env etc
    systemd.enable = false;
  };
}