502 current 2024-04-28 21:34:01 24.05.20240428.30ddacc 6.8.6-zen1 *

This commit is contained in:
zackartz 2024-04-28 21:34:12 -04:00
parent 48e6592600
commit bfbb2316b3
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
9 changed files with 201 additions and 12 deletions

View file

@ -19,6 +19,7 @@ in {
../rice/kitty.nix
# ../rice/waybar
# ../rice/dunst.nix
../rice/anyrun
../rice/rio.nix
../rice/wofi.nix
../shell
@ -101,6 +102,17 @@ in {
git push origin main
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 = {

View file

@ -0,0 +1,5 @@
Config(
desktop_actions: false,
max_entries: 5,
terminal: Some("Kitty"),
)

View file

@ -0,0 +1,3 @@
Config(
prefix: ">",
)

View 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]
)

View 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]
)
'';
};
}

View file

@ -25,7 +25,7 @@ in {
[
''${mod},RETURN,exec,kitty''
"${mod},D,exec,wofi --show drun"
"${mod},D,exec,killall anyrun || anyrun"
"${mod},Q,killactive"
"${mod},M,exit"
"${mod},P,pseudo"

View file

@ -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 = {
swaybg = mkService {
Unit.Description = "Wallpaper chooser";
swww = mkService {
Unit.Description = "Wallpaper Daemon";
Service = {
ExecStart = "${lib.getExe pkgs.swaybg} -i ${theme.wallpaper}";
Restart = "always";
ExecStart = "${pkgs.swww}/bin/swww-daemon";
};
};
};