aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/fzf-launcher
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-25 16:10:12 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-25 16:12:23 +0530
commitbf223080a34ef243f317938fd39e785dc5576f26 (patch)
tree51428463c7eeac9e791f17bba1be0254ce87f689 /modules/scripts/fzf-launcher
parent47a4bf5c092a70095a250eed0372835221905067 (diff)
downloadhome-manager-config-bf223080a34ef243f317938fd39e785dc5576f26.tar.gz
home-manager-config-bf223080a34ef243f317938fd39e785dc5576f26.zip
feat(rofi): add rofi launcher module, drop polybar and fzf-launcher, add private configs
- Add rofi module with base16-themed .rasi template and drun mode - Remove polybar module (replaced by waybar in prior commits) - Remove fzf-launcher script (replaced by rofi) - Update hyprland window rules, keybinding, and cursor size - Add private email and git config modules - Switch pinentry from gtk2 to rofi - Tweak waybar #window margin
Diffstat (limited to 'modules/scripts/fzf-launcher')
-rw-r--r--modules/scripts/fzf-launcher/assertions.nix7
-rw-r--r--modules/scripts/fzf-launcher/default.nix26
-rw-r--r--modules/scripts/fzf-launcher/script.sh48
3 files changed, 0 insertions, 81 deletions
diff --git a/modules/scripts/fzf-launcher/assertions.nix b/modules/scripts/fzf-launcher/assertions.nix
deleted file mode 100644
index 308a818..0000000
--- a/modules/scripts/fzf-launcher/assertions.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{ config, ... }:
-[
- {
- assertion = !config.scripts.fzf-launcher.enable || config.terminal.fzf.enable;
- message = "scripts.fzf-launcher is enabled but requires `terminal.fzf.enable`.";
- }
-]
diff --git a/modules/scripts/fzf-launcher/default.nix b/modules/scripts/fzf-launcher/default.nix
deleted file mode 100644
index e9c065d..0000000
--- a/modules/scripts/fzf-launcher/default.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-let
- inherit ((import ../lib.nix { inherit lib pkgs; })) mkScriptModule;
- base = mkScriptModule {
- name = "fzf-launcher";
- path = ./script.sh;
- description = "Fzf-launcher - FZF-based application launcher (scans .desktop files)";
- deps = [
- config.terminal.fzf.package
- pkgs.dex
- pkgs.util-linux
- ];
- inherit config;
- };
-in
-{
- options = base.options;
- config = base.moduleConfig // {
- assertions = base.moduleConfig.assertions ++ (import ./assertions.nix { inherit config lib; });
- };
-}
diff --git a/modules/scripts/fzf-launcher/script.sh b/modules/scripts/fzf-launcher/script.sh
deleted file mode 100644
index 2fce83a..0000000
--- a/modules/scripts/fzf-launcher/script.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-DIRS=(
- /run/current-system/sw/share/applications
- "$HOME/.nix-profile/share/applications"
- "$HOME/.local/share/applications"
-)
-
-shopt -s nullglob
-
-entries=""
-for dir in "${DIRS[@]}"; do
- [[ -d "$dir" ]] || continue
- for f in "$dir"/*.desktop; do
- [[ -f "$f" ]] || continue
-
- grep -q "^NoDisplay=true" "$f" && continue
- grep -q "^Hidden=true" "$f" && continue
- grep -q "^Type=Application" "$f" || continue
- grep -q "^Terminal=true" "$f" && continue
-
- categories=$(grep -m1 "^Categories=" "$f" | cut -d= -f2-)
- if [[ -n "$categories" ]]; then
- echo "$categories" | grep -qE "(Settings|Screensaver|DesktopSettings)" && continue
- fi
-
- name=$(grep -m1 "^Name=" "$f" | cut -d= -f2-)
- if [[ -z "$name" ]]; then
- name=$(grep -m1 -E "^Name\[.*\]=" "$f" | cut -d= -f2-)
- fi
- [[ -z "$name" ]] && continue
-
- entries+="$name"$'\t'"$f"$'\n'
- done
-done
-
-entries=$(printf '%s' "$entries" | sort -fu -t$'\t' -k1,1)
-
-chosen=$(printf '%s' "$entries" | fzf \
- --prompt='Launch: ' \
- --layout=reverse \
- --info=inline \
- --delimiter=$'\t' \
- --with-nth=1)
-
-[[ -z "$chosen" ]] && exit 0
-
-desktop_file=$(printf '%s' "$chosen" | cut -d$'\t' -f2-)
-
-setsid -f dex "$desktop_file" </dev/null >/dev/null 2>&1