feat: migrate to anyrun

This commit is contained in:
2023-12-15 01:30:05 +01:00
parent 812c2749c0
commit 45c7278dab
8 changed files with 135 additions and 101 deletions

View File

@@ -1,17 +0,0 @@
{
enable = true;
settings = {
shell = "fish";
font = {
family = "JetBrainsMono NerdFont";
size = 12;
};
window = {
padding = {
x = 16;
y = 16;
};
opacity = 0.8;
};
};
}

View File

@@ -1,25 +0,0 @@
{
enable = true;
settings = {
main = {
font = "Lexend";
terminal = "foot -e";
prompt = ">> ";
layer = "overlay";
};
colors = {
background = "191c1ecc";
text = "e1e2e5ff";
selection = "41484dff";
selection-text = "c0c7cdff";
border = "41484dff";
match = "79d0ffff";
selection-match = "79d0ffff";
};
border = {
radius = 17;
width = 2;
};
dmenu.exit-immediately-if-empty = "yes";
};
}

View File

@@ -51,8 +51,7 @@
bind = import ./keybinds.nix; bind = import ./keybinds.nix;
bindm = import ./mousebinds.nix; bindm = import ./mousebinds.nix;
bindr = [ bindr = [
"SUPER,SUPER_L,exec,ags -t overview" "SUPER,SUPER_L,exec,pkill anyrun || anyrun"
"SUPER,space,exec,(pkill fuzzel && hyprctl workspace previous) || (hyprctl workspace empty && fuzzel)"
]; ];
monitor = import ./monitors.nix; monitor = import ./monitors.nix;
workspace = [ workspace = [
@@ -93,9 +92,6 @@
"animation slide,class:^(gcr-prompter)$" "animation slide,class:^(gcr-prompter)$"
]; ];
layerrule = [ layerrule = [
"noanim, .*"
"xray 1, .*"
"noanim, noanim" "noanim, noanim"
"blur, noanim" "blur, noanim"
"blur, gtk-layer-shell" "blur, gtk-layer-shell"
@@ -104,6 +100,8 @@
"ignorealpha 0.3, launcher" "ignorealpha 0.3, launcher"
"blur, notifications" "blur, notifications"
"ignorealpha 0.3, notifications" "ignorealpha 0.3, notifications"
"blur, anyrun"
"ignorealpha 0.3, anyrun"
# ags # ags
"blur, bar" "blur, bar"
"ignorealpha 0.3, bar" "ignorealpha 0.3, bar"
@@ -151,9 +149,69 @@
enable = true; enable = true;
configDir = ./ags; configDir = ./ags;
}; };
programs.fuzzel = import ./fuzzel.nix;
programs.kitty = import ./kitty.nix {inherit pkgs;}; programs.kitty = import ./kitty.nix {inherit pkgs;};
programs.wofi = import ./wofi.nix; programs.anyrun = {
enable = true;
config = {
plugins = with pkgs.anyrunPlugins; [
applications
symbols
rink
dictionary
shell
];
y.fraction = 0.2;
showResultsImmediately = true;
closeOnClick = true;
};
extraCss =
/*
css
*/
''
* {
font-family: "Noto Sans NF";
}
window#window {
background: transparent;
}
entry#entry,
list#main {
background: rgba(48, 52, 70, 0.4);
box-shadow: 0 0 15px rgba(0, 0, 0, 0.29);
}
entry#entry,
list#main {
border-radius: 24px;
}
row#match {
border-radius: 8px;
padding: 0 4px;
}
row#plugin {
border-radius: 16px;
padding: 16px;
}
entry#entry {
padding: 8px 24px;
margin-bottom: 16px;
}
list#main {
padding: 8px;
}
list#plugin {
background: transparent;
}
'';
};
services.udiskie.enable = true; services.udiskie.enable = true;
services.udiskie.tray = "never"; services.udiskie.tray = "never";

View File

@@ -1,41 +0,0 @@
{
enable = true;
settings = {};
style = ''
window {
margin: 5px;
border: 2px solid red;
background-color: red;
}
#input {
margin: 5px;
border: 2px solid blue;
background-color: blue;
}
#inner-box {
margin: 5px;
border: 2px solid yellow;
background-color: yellow;
}
#outer-box {
margin: 5px;
border: 2px solid orange;
background-color: orange;
}
#scroll {
margin: 5px;
border: 2px solid orange;
background-color: orange;
}
#text {
margin: 5px;
border: 2px solid cyan;
background-color: cyan;
}
'';
}

49
flake.lock generated
View File

@@ -18,6 +18,27 @@
"type": "github" "type": "github"
} }
}, },
"anyrun": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1701453400,
"narHash": "sha256-hI9+KBShsSfvWX7bmRa/1VI20WGat3lDXmbceMZzMS4=",
"owner": "Kirottu",
"repo": "anyrun",
"rev": "e14da6c37337ffa3ee1bc66965d58ef64c1590e5",
"type": "github"
},
"original": {
"owner": "Kirottu",
"repo": "anyrun",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -34,6 +55,27 @@
"type": "github" "type": "github"
} }
}, },
"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-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@@ -146,11 +188,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1701718080, "lastModified": 1702312524,
"narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=", "narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2c7f3c0fb7c08a0814627611d9d7d45ab6d75335", "rev": "a9bf124c46ef298113270b1f84a164865987a91c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -210,6 +252,7 @@
"root": { "root": {
"inputs": { "inputs": {
"ags": "ags", "ags": "ags",
"anyrun": "anyrun",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixvim": "nixvim" "nixvim": "nixvim"

View File

@@ -15,6 +15,11 @@
url = "github:nix-community/nixvim"; url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
anyrun = {
url = "github:Kirottu/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
@@ -22,6 +27,7 @@
home-manager, home-manager,
ags, ags,
nixvim, nixvim,
anyrun,
... ...
}: let }: let
username = "theaninova"; username = "theaninova";
@@ -31,6 +37,9 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [
(final: prev: {anyrunPlugins = anyrun.packages.${prev.system};})
];
}; };
homeDirPrefix = homeDirPrefix =
@@ -48,8 +57,9 @@
modules = [ modules = [
ags.homeManagerModules.default ags.homeManagerModules.default
home
nixvim.homeManagerModules.nixvim nixvim.homeManagerModules.nixvim
anyrun.homeManagerModules.default
home
]; ];
}; };
}; };

View File

@@ -14,7 +14,7 @@ with pkgs; [
# media # media
jellyfin-media-player jellyfin-media-player
youtube-music # youtube-music.override {electron = pkgs.electron_28;})
vlc vlc
makemkv makemkv
handbrake handbrake
@@ -27,7 +27,8 @@ with pkgs; [
withOpenASAR = true; withOpenASAR = true;
withVencord = false; withVencord = false;
}) })
element-desktop (vesktop.override {electron = pkgs.electron_28;})
(element-desktop.override {electron = pkgs.electron_28;})
slack slack
# office # office
@@ -66,4 +67,6 @@ with pkgs; [
lazydocker lazydocker
libqalculate libqalculate
ripgrep ripgrep
jq
httpie
] ]

View File

@@ -5,7 +5,8 @@
nodejs = pkgs.nodejs_18; nodejs = pkgs.nodejs_18;
}) })
."@angular/language-server"; ."@angular/language-server";
tree-sitter-angular = pkgs.tree-sitter.buildGrammar { /*
*tree-sitter-angular = pkgs.tree-sitter.buildGrammar {
language = "angular"; language = "angular";
version = "624ff10"; version = "624ff10";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
@@ -15,6 +16,7 @@
hash = "sha256-wAbkrJ0MmNhE3qb34DQiju/mFIb7YCTyBUgVmP+iWQs="; hash = "sha256-wAbkrJ0MmNhE3qb34DQiju/mFIb7YCTyBUgVmP+iWQs=";
}; };
}; };
*/
darkman = pkgs.vimUtils.buildVimPlugin { darkman = pkgs.vimUtils.buildVimPlugin {
name = "darkman"; name = "darkman";
src = pkgs.buildGoModule rec { src = pkgs.buildGoModule rec {
@@ -164,6 +166,7 @@ in {
extraConfigLua = '' extraConfigLua = ''
require("darkman").setup() require("darkman").setup()
require("cmp-npm").setup({}) require("cmp-npm").setup({})
require("rest-nvim").setup({})
local signs = { local signs = {
{ name = "DiagnosticSignError", text = "" }, { name = "DiagnosticSignError", text = "" },
@@ -406,9 +409,7 @@ in {
treesitter = { treesitter = {
enable = true; enable = true;
indent = true; indent = true;
grammarPackages = grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
pkgs.vimPlugins.nvim-treesitter.allGrammars
++ [tree-sitter-angular];
nixvimInjections = true; nixvimInjections = true;
}; };
@@ -568,11 +569,13 @@ in {
nix.enable = true; nix.enable = true;
}; };
extraPackages = [angular-ls pkgs.nodePackages.typescript-language-server pkgs.nodePackages.stylelint]; extraPackages = [angular-ls pkgs.nodePackages.typescript-language-server pkgs.nodePackages.stylelint pkgs.jq pkgs.html-tidy];
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [
vim-startuptime vim-startuptime
vim-mergetool vim-mergetool
lualine-so-fancy lualine-so-fancy
darkman darkman
rest-nvim
plenary-nvim
]; ];
} }