502 current 2024-04-28 21:34:01 24.05.20240428.30ddacc 6.8.6-zen1 *
This commit is contained in:
parent
48e6592600
commit
bfbb2316b3
9 changed files with 201 additions and 12 deletions
57
flake.lock
generated
57
flake.lock
generated
|
|
@ -18,6 +18,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"anyrun": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713259062,
|
||||||
|
"narHash": "sha256-WTO84hUL8IlNuHDK2yOCeJ38EewFzGt5E0kzBjNWxa8=",
|
||||||
|
"owner": "Kirottu",
|
||||||
|
"repo": "anyrun",
|
||||||
|
"rev": "f9d30e34fa4ccb2797c6becec37e8bcff6585d39",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Kirottu",
|
||||||
|
"repo": "anyrun",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"catppuccin": {
|
"catppuccin": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713895615,
|
"lastModified": 1713895615,
|
||||||
|
|
@ -115,6 +136,27 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"anyrun",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696343447,
|
||||||
|
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"lanzaboote",
|
"lanzaboote",
|
||||||
|
|
@ -135,7 +177,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_2": {
|
"flake-parts_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"neovim-nightly-overlay",
|
"neovim-nightly-overlay",
|
||||||
|
|
@ -156,7 +198,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_3": {
|
"flake-parts_4": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"neovim-nightly-overlay",
|
"neovim-nightly-overlay",
|
||||||
|
|
@ -177,7 +219,7 @@
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_4": {
|
"flake-parts_5": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
|
|
@ -309,7 +351,7 @@
|
||||||
},
|
},
|
||||||
"hercules-ci-effects": {
|
"hercules-ci-effects": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_3",
|
"flake-parts": "flake-parts_4",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"neovim-nightly-overlay",
|
"neovim-nightly-overlay",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
|
@ -555,7 +597,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts_2",
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
|
@ -605,7 +647,7 @@
|
||||||
"neovim-nightly-overlay": {
|
"neovim-nightly-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_3",
|
||||||
"hercules-ci-effects": "hercules-ci-effects",
|
"hercules-ci-effects": "hercules-ci-effects",
|
||||||
"neovim-flake": "neovim-flake",
|
"neovim-flake": "neovim-flake",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -793,7 +835,7 @@
|
||||||
},
|
},
|
||||||
"rio-term": {
|
"rio-term": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_4",
|
"flake-parts": "flake-parts_5",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
|
|
@ -817,6 +859,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"ags": "ags",
|
"ags": "ags",
|
||||||
|
"anyrun": "anyrun",
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprcontrib": "hyprcontrib",
|
"hyprcontrib": "hyprcontrib",
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
anyrun.url = "github:Kirottu/anyrun";
|
||||||
|
anyrun.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
ags.url = "github:Aylur/ags";
|
ags.url = "github:Aylur/ags";
|
||||||
|
|
||||||
nixos-generators = {
|
nixos-generators = {
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ in {
|
||||||
../rice/kitty.nix
|
../rice/kitty.nix
|
||||||
# ../rice/waybar
|
# ../rice/waybar
|
||||||
# ../rice/dunst.nix
|
# ../rice/dunst.nix
|
||||||
|
../rice/anyrun
|
||||||
../rice/rio.nix
|
../rice/rio.nix
|
||||||
../rice/wofi.nix
|
../rice/wofi.nix
|
||||||
../shell
|
../shell
|
||||||
|
|
@ -101,6 +102,17 @@ in {
|
||||||
git push origin main
|
git push origin main
|
||||||
popd
|
popd
|
||||||
'')
|
'')
|
||||||
|
(pkgs.writeShellScriptBin "powermenu" ''
|
||||||
|
chosen=$(printf " Power Off\n Restart\n Suspend\n Lock\n Log Out" | anyrun --plugins libstdin.so --show-results-immediately true)
|
||||||
|
|
||||||
|
case "$chosen" in
|
||||||
|
" Power Off") systemctl poweroff;;
|
||||||
|
" Restart") systemctl reboot;;
|
||||||
|
" Lock") swaylock;;
|
||||||
|
" Log Out") hyprctl dispatch exit;;
|
||||||
|
*) exit 1 ;;
|
||||||
|
esac
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|
|
||||||
5
modules/rice/anyrun/cfg/applications.ron
Normal file
5
modules/rice/anyrun/cfg/applications.ron
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Config(
|
||||||
|
desktop_actions: false,
|
||||||
|
max_entries: 5,
|
||||||
|
terminal: Some("Kitty"),
|
||||||
|
)
|
||||||
3
modules/rice/anyrun/cfg/shell.ron
Normal file
3
modules/rice/anyrun/cfg/shell.ron
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
Config(
|
||||||
|
prefix: ">",
|
||||||
|
)
|
||||||
13
modules/rice/anyrun/cfg/websearch.ron
Normal file
13
modules/rice/anyrun/cfg/websearch.ron
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
Config(
|
||||||
|
prefix: "",
|
||||||
|
// Options: Google, Ecosia, Bing, DuckDuckGo, Custom
|
||||||
|
//
|
||||||
|
// Custom engines can be defined as such:
|
||||||
|
// Custom(
|
||||||
|
// name: "Searx",
|
||||||
|
// url: "searx.be/?q={}",
|
||||||
|
// )
|
||||||
|
//
|
||||||
|
// NOTE: `{}` is replaced by the search query and `https://` is automatically added in front.
|
||||||
|
engines: [DuckDuckGo]
|
||||||
|
)
|
||||||
102
modules/rice/anyrun/default.nix
Normal file
102
modules/rice/anyrun/default.nix
Normal file
|
|
@ -0,0 +1,102 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [inputs.anyrun.homeManagerModules.default];
|
||||||
|
|
||||||
|
programs.anyrun = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
plugins = [
|
||||||
|
inputs.anyrun.packages.${pkgs.system}.applications
|
||||||
|
inputs.anyrun.packages.${pkgs.system}.shell
|
||||||
|
inputs.anyrun.packages.${pkgs.system}.websearch
|
||||||
|
inputs.anyrun.packages.${pkgs.system}.rink
|
||||||
|
inputs.anyrun.packages.${pkgs.system}.stdin
|
||||||
|
];
|
||||||
|
x = {fraction = 0.5;};
|
||||||
|
y = {absolute = 0;};
|
||||||
|
hideIcons = false;
|
||||||
|
ignoreExclusiveZones = false;
|
||||||
|
layer = "overlay";
|
||||||
|
hidePluginInfo = true;
|
||||||
|
closeOnClick = true;
|
||||||
|
showResultsImmediately = false;
|
||||||
|
maxEntries = null;
|
||||||
|
};
|
||||||
|
extraCss = ''
|
||||||
|
*{
|
||||||
|
all: unset;
|
||||||
|
color: #cdd6f4;
|
||||||
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
#window{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
#entry{
|
||||||
|
background-color: #1e1e2e;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 3px solid #11111b;
|
||||||
|
font-size: 16px;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding: 1px 15px;
|
||||||
|
}
|
||||||
|
#match {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
margin-top: 2px;
|
||||||
|
padding: 1px 15px;
|
||||||
|
}
|
||||||
|
#match-desc{
|
||||||
|
color: #bac2de;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
#match:selected {
|
||||||
|
background: #313244;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
|
#plugin{
|
||||||
|
background-color: #1e1e2e;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 3px solid #11111b;
|
||||||
|
margin-top:10px;
|
||||||
|
padding: 10px 1px;
|
||||||
|
}
|
||||||
|
#plugin > *{
|
||||||
|
all:unset;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
extraConfigFiles."applications.ron".text = ''
|
||||||
|
Config(
|
||||||
|
desktop_actions: false,
|
||||||
|
max_entries: 5,
|
||||||
|
terminal: Some("Kitty"),
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
extraConfigFiles."shell.ron".text = ''
|
||||||
|
Config(
|
||||||
|
prefix: ">",
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
extraConfigFiles."websearch.ron".text = ''
|
||||||
|
Config(
|
||||||
|
prefix: "",
|
||||||
|
// Options: Google, Ecosia, Bing, DuckDuckGo, Custom
|
||||||
|
//
|
||||||
|
// Custom engines can be defined as such:
|
||||||
|
// Custom(
|
||||||
|
// name: "Searx",
|
||||||
|
// url: "searx.be/?q={}",
|
||||||
|
// )
|
||||||
|
//
|
||||||
|
// NOTE: `{}` is replaced by the search query and `https://` is automatically added in front.
|
||||||
|
engines: [DuckDuckGo]
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -25,7 +25,7 @@ in {
|
||||||
[
|
[
|
||||||
''${mod},RETURN,exec,kitty''
|
''${mod},RETURN,exec,kitty''
|
||||||
|
|
||||||
"${mod},D,exec,wofi --show drun"
|
"${mod},D,exec,killall anyrun || anyrun"
|
||||||
"${mod},Q,killactive"
|
"${mod},Q,killactive"
|
||||||
"${mod},M,exit"
|
"${mod},M,exit"
|
||||||
"${mod},P,pseudo"
|
"${mod},P,pseudo"
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,21 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# systemd.user.services = {
|
||||||
|
# swaybg = mkService {
|
||||||
|
# Unit.Description = "Wallpaper chooser";
|
||||||
|
# Service = {
|
||||||
|
# ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}";
|
||||||
|
# Restart = "always";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
systemd.user.services = {
|
systemd.user.services = {
|
||||||
swaybg = mkService {
|
swww = mkService {
|
||||||
Unit.Description = "Wallpaper chooser";
|
Unit.Description = "Wallpaper Daemon";
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}";
|
ExecStart = "${pkgs.swww}/bin/swww-daemon";
|
||||||
Restart = "always";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue