Nerdfont icons finder, folder arch..

This commit is contained in:
Hadi 2024-03-20 22:38:49 +01:00
parent cb98842775
commit e97e2705b5
11 changed files with 37357 additions and 4 deletions

View File

@ -136,6 +136,18 @@ Blue light filter, using wlsunset
</details> </details>
### Nerdfont FZF
<details>
<summary>Click to expand</summary>
Nerdfont fzf is a quick way to search for nerdfont icons locally.
It will copy the selected icon to the clipboard.
- `nerdfont-fzf`
</details>
## Installation ## Installation
```sh ```sh

View File

@ -3,7 +3,6 @@
imports = [ imports = [
./hyprland ./hyprland
./nvim ./nvim
./homepage
./waybar ./waybar
./kitty ./kitty
./dunst ./dunst
@ -16,7 +15,7 @@
./scripts ./scripts
./neofetch ./neofetch
./spicetify ./spicetify
./variables/theme ./theme
./wallpapers ./wallpapers
./lf ./lf
./sops # REMOVE ./sops # REMOVE

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ config, ... }: { { config, ... }: {
imports = [ ./duckduckgo-colorscheme.nix ]; imports = [ ./duckduckgo-colorscheme.nix ./homepage/default.nix ];
programs.qutebrowser = { programs.qutebrowser = {
enable = true; enable = true;

View File

@ -10,6 +10,7 @@ let
{text: "Nixvim", url: "https://nix-community.github.io/nixvim/", icon: ""}, {text: "Nixvim", url: "https://nix-community.github.io/nixvim/", icon: ""},
{text: "Hyprland Wiki", url: "https://wiki.hyprland.org/", icon: "󰖬"}, {text: "Hyprland Wiki", url: "https://wiki.hyprland.org/", icon: "󰖬"},
{text: "Nerdfont", url: "https://www.nerdfonts.com/cheat-sheet", icon: ""}, {text: "Nerdfont", url: "https://www.nerdfonts.com/cheat-sheet", icon: ""},
{text: "Youtube", url: "https://youtube.com", icon: "󰗃"},
], ],
Home: [ Home: [
{text: "Casa", url: "http://192.168.2.16:8081/#/", icon: "󰋜"}, {text: "Casa", url: "http://192.168.2.16:8081/#/", icon: "󰋜"},

View File

@ -9,5 +9,6 @@
./night-shift.nix ./night-shift.nix
./screenshot.nix ./screenshot.nix
./startup.nix ./startup.nix
./nerdfont_fzf.nix
]; ];
} }

View File

@ -23,4 +23,8 @@ let
nmcli connection import type wireguard file "$1" nmcli connection import type wireguard file "$1"
''; '';
in { home.packages = with pkgs; [ menu wireguard-import powermenu ]; } vault = pkgs.writeShellScriptBin "vault" ''
nvim $HOME/Nextcloud/obsidian
'';
in { home.packages = with pkgs; [ menu wireguard-import powermenu vault ]; }

View File

@ -0,0 +1,26 @@
{ pkgs, config, ... }:
let
homedir = config.home.homeDirectory;
nerdfont-fzf = pkgs.writeShellScriptBin "nerdfont-fzf" ''
# Dependencies: jq, fzf, wl-copy, wget
icons=$(jq -r 'to_entries[] | "\(.key):\(.value.char)"' "${homedir}/.config/nerdfont_glyphnames.json" | awk -F: '{print "\033[95m"$2"\033[0m "$1}')
fzf_result=$(echo "$icons" | fzf --ansi | awk '{print $1}') || exit 1
echo "Copied to clipboard: \033[95m$fzf_result\033[0m"
printf "$fzf_result" | wl-copy
'';
nerdfont-fzf-fetch = pkgs.writeShellScriptBin "nerdfont-fzf-fetch" ''
wget "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/glyphnames.json" -O "glyphnames.json" || exit 1
jq 'del(.METADATA)' "glyphnames.json"
'';
in {
home.packages = with pkgs; [ nerdfont-fzf nerdfont-fzf-fetch ];
xdg.configFile."nerdfont_glyphnames.json" = {
source = ../misc/nerdfont_glyphnames.json;
};
}