anyrun stuff, no more minesweeper, hoogle search
This commit is contained in:
parent
78d0f94f1e
commit
30f0ea7eb5
|
@ -20,7 +20,7 @@ let
|
|||
};
|
||||
satellite = {
|
||||
transparency.value = 0.6;
|
||||
rounding.radius = 8;
|
||||
rounding.radius = 8.0;
|
||||
};
|
||||
};
|
||||
# }}}
|
||||
|
|
|
@ -60,7 +60,7 @@ in
|
|||
search.engines =
|
||||
let
|
||||
# {{{ Search engine creation helpers
|
||||
mkBasicSearchEngine = { aliases, url, param }: {
|
||||
mkBasicSearchEngine = { aliases, url, param, icon ? null }: {
|
||||
urls = [{
|
||||
template = url;
|
||||
params = [
|
||||
|
@ -69,17 +69,14 @@ in
|
|||
}];
|
||||
|
||||
definedAliases = aliases;
|
||||
};
|
||||
} // (if icon == null then { } else { inherit icon; });
|
||||
|
||||
mkNixPackagesEngine = { aliases, type }:
|
||||
let basicEngine = mkBasicSearchEngine
|
||||
mkBasicSearchEngine
|
||||
{
|
||||
aliases = aliases;
|
||||
url = "https://search.nixos.org/${type}";
|
||||
param = "query";
|
||||
};
|
||||
in
|
||||
basicEngine // {
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
};
|
||||
# }}}
|
||||
|
@ -102,6 +99,13 @@ in
|
|||
aliases = [ "@ps" "@pursuit" ];
|
||||
};
|
||||
|
||||
"Hoogle" = mkBasicSearchEngine {
|
||||
url = "https://hoogle.haskell.org";
|
||||
param = "hoogle";
|
||||
aliases = [ "@hg" "@hoogle" ];
|
||||
|
||||
};
|
||||
|
||||
"Wikipedia" = mkBasicSearchEngine {
|
||||
url = "https://en.wikipedia.org/wiki/Special:Search";
|
||||
param = "search";
|
||||
|
|
|
@ -45,13 +45,13 @@
|
|||
list#main,
|
||||
row#match:selected {
|
||||
box-shadow: 0.5px 0.5px 1.5px 1.5px rgba(0, 0, 0, 0.5);
|
||||
border-radius: ${config.theming.rounding.radius}px;
|
||||
border-radius: ${toString config.satellite.theming.rounding.radius}px;
|
||||
}
|
||||
|
||||
#entry,
|
||||
list#main {
|
||||
margin: 1rem;
|
||||
background: rgba(${config.theming.colors.rgba "base00"});
|
||||
background: rgba(${config.satellite.theming.colors.rgba "base00"});
|
||||
min-height: 1rem;
|
||||
}
|
||||
/* }}} */
|
|
@ -4,7 +4,7 @@
|
|||
./dunst.nix
|
||||
./wlsunset.nix
|
||||
./wlogout.nix
|
||||
./anyrun
|
||||
./anyrun.nix
|
||||
../desktop/wezterm # Default hyprland terminal
|
||||
../desktop/batsignal.nix
|
||||
../desktop/eww
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{ lib, ... }: {
|
||||
imports = [
|
||||
../common/global
|
||||
../common/users/adrielus.nix
|
||||
|
@ -39,9 +39,13 @@
|
|||
stylix.targets.gtk.enable = true;
|
||||
# }}}
|
||||
# {{{ Some ad-hoc site blocking
|
||||
networking.extraHosts = ''
|
||||
127.0.0.1 twitter.com
|
||||
'';
|
||||
# 127.0.0.1 www.reddit.com
|
||||
networking.extraHosts =
|
||||
let
|
||||
blacklisted = [ "twitter.com" "minesweeper.online" ];
|
||||
blacklist = lib.concatStringsSep "\n" (lib.forEach blacklisted (host: "127.0.0.1 ${host}"));
|
||||
in
|
||||
blacklist;
|
||||
# }}}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue