feat(fuzze): goodbye rofi;

This commit is contained in:
Barrett Ruth 2026-02-14 15:43:41 -05:00
parent 996d81afb4
commit f1015c40c4
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
8 changed files with 18 additions and 30 deletions

View file

@ -1,14 +1,14 @@
include=~/.config/fuzzel/themes/theme.ini include=~/.config/fuzzel/themes/theme.ini
[main] [main]
font=SF Pro Display:size=15,Symbols Nerd Font:size=15 font=SF Pro Display:size=12,Symbols Nerd Font:size=12
prompt=> prompt="> "
width=45 width=50
lines=10 lines=10
horizontal-pad=24 horizontal-pad=24
vertical-pad=20 vertical-pad=20
inner-pad=12 inner-pad=12
line-height=28 line-height=24
letter-spacing=0 letter-spacing=0
icons-enabled=yes icons-enabled=yes
icon-theme=hicolor icon-theme=hicolor
@ -22,8 +22,8 @@ match-counter=no
[border] [border]
width=2 width=2
radius=12 radius=0
selection-radius=8 selection-radius=0
[dmenu] [dmenu]
mode=text mode=text

View file

@ -72,7 +72,7 @@ bindul = , XF86AudioMute, exec, hypr volume toggle
bindul = , XF86MonBrightnessUp, exec, hypr brightness up bindul = , XF86MonBrightnessUp, exec, hypr brightness up
bindul = , XF86MonBrightnessDown, exec, hypr brightness down bindul = , XF86MonBrightnessDown, exec, hypr brightness down
bind = ALT, SPACE, exec, rofi -show run bind = ALT, SPACE, exec, fuzzel
bind = ALT, TAB, workspace, previous bind = ALT, TAB, workspace, previous
bind = ALT, A, cyclenext bind = ALT, A, cyclenext
bind = ALT, B, exec, pkill -USR1 waybar || waybar bind = ALT, B, exec, pkill -USR1 waybar || waybar
@ -104,7 +104,7 @@ bind = , XF86Tools, submap, scripts
submap = scripts submap = scripts
bind = , A, exec, ctl audio out bind = , A, exec, ctl audio out
bind = , C, exec, sh -lc 'cliphist list | rofi -dmenu -p "copy to clipboard" --lines 15 | cliphist decode | wl-copy' bind = , C, exec, sh -lc 'cliphist list | fuzzel --dmenu --prompt="clip: " --lines=15 | cliphist decode | wl-copy'
bind = , K, exec, ctl keyboard toggle bind = , K, exec, ctl keyboard toggle
bind = , O, exec, ctl ocr bind = , O, exec, ctl ocr
bind = , P, exec, hypr pull bind = , P, exec, hypr pull

View file

@ -82,7 +82,7 @@ return {
enabled = true, enabled = true,
}, },
intra = { intra = {
enabled = true, enabled = false,
max_lines = 500, max_lines = 500,
}, },
}, },

View file

@ -108,7 +108,6 @@ in
${lib.optionalString hostConfig.isLinux '' ${lib.optionalString hostConfig.isLinux ''
$DRY_RUN_CMD ln -sf "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf" $DRY_RUN_CMD ln -sf "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf"
$DRY_RUN_CMD ln -sf "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css" $DRY_RUN_CMD ln -sf "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
$DRY_RUN_CMD ln -sf "$cfg/rofi/themes/$theme.rasi" "$cfg/rofi/themes/theme.rasi"
$DRY_RUN_CMD ln -sf "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini" $DRY_RUN_CMD ln -sf "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini"
''} ''}
$DRY_RUN_CMD ln -sf "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config" $DRY_RUN_CMD ln -sf "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"

View file

@ -53,7 +53,6 @@ in
nerd-fonts.symbols-only nerd-fonts.symbols-only
psmisc psmisc
fuzzel fuzzel
rofi
wl-clipboard wl-clipboard
cliphist cliphist
grim grim
@ -227,13 +226,6 @@ in
''; '';
}; };
xdg.configFile."rofi/config.rasi".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/rofi/config.rasi";
xdg.configFile."rofi/themes/midnight.rasi".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/rofi/themes/midnight.rasi";
xdg.configFile."rofi/themes/daylight.rasi".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.config/nix/config/rofi/themes/daylight.rasi";
services.dunst = { services.dunst = {
enable = true; enable = true;
settings = { settings = {

View file

@ -80,7 +80,7 @@ audio)
if [ "$XDG_SESSION_TYPE" = x11 ]; then if [ "$XDG_SESSION_TYPE" = x11 ]; then
choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | dmenu -i -p "select sink:" | cut -d: -f1)" choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | dmenu -i -p "select sink:" | cut -d: -f1)"
else else
choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | rofi -dmenu -i -p "select sink" | cut -d: -f1)" choice="$(printf "%s\n" "$sinks" | awk -F'\t' '{print $1": "$2}' | fuzzel --dmenu --prompt="sink: " | cut -d: -f1)"
fi fi
[ "$choice" ] && wpctl set-default "$choice" [ "$choice" ] && wpctl set-default "$choice"
;; ;;
@ -90,7 +90,7 @@ audio)
if [ "$XDG_SESSION_TYPE" = x11 ]; then if [ "$XDG_SESSION_TYPE" = x11 ]; then
choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | dmenu -i -p "select source:" | cut -d: -f1)" choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | dmenu -i -p "select source:" | cut -d: -f1)"
else else
choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | rofi -dmenu -i -p "select source" | cut -d: -f1)" choice="$(printf "%s\n" "$sources" | awk -F'\t' '{print $1": "$2}' | fuzzel --dmenu --prompt="source: " | cut -d: -f1)"
fi fi
[ "$choice" ] && wpctl set-default "$choice" [ "$choice" ] && wpctl set-default "$choice"
;; ;;

View file

@ -95,7 +95,7 @@ volume)
fi fi
;; ;;
pull) pull)
require hyprctl jq rofi require hyprctl jq fuzzel
APP="$1" APP="$1"
case "$APP" in case "$APP" in
google-chrome | google-chrome-stable) CLASS="google-chrome" ;; google-chrome | google-chrome-stable) CLASS="google-chrome" ;;
@ -147,7 +147,7 @@ pull)
[ -z "$ROFI_LINES" ] && exit 0 [ -z "$ROFI_LINES" ] && exit 0
SELECTED=$(echo "$ROFI_LINES" | rofi -dmenu -i -p "pull window") SELECTED=$(echo "$ROFI_LINES" | fuzzel --dmenu --prompt="pull: ")
[ -z "$SELECTED" ] && exit 0 [ -z "$SELECTED" ] && exit 0
@ -160,7 +160,7 @@ pull)
hyprctl dispatch focuswindow "address:${WIN_ADDR}" hyprctl dispatch focuswindow "address:${WIN_ADDR}"
;; ;;
spawnfocus) spawnfocus)
require hyprctl jq rofi socat require hyprctl jq fuzzel socat
WS="" WS=""
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in
@ -222,7 +222,7 @@ spawnfocus)
elif [ "$WIN_COUNT" -eq 1 ]; then elif [ "$WIN_COUNT" -eq 1 ]; then
WIN_ADDR=$(echo "$WIN_ADDRS" | awk -F'\t' '{print $3}') WIN_ADDR=$(echo "$WIN_ADDRS" | awk -F'\t' '{print $3}')
elif [ "$WIN_COUNT" -gt 1 ]; then elif [ "$WIN_COUNT" -gt 1 ]; then
SELECTED=$(echo "$WIN_ADDRS" | awk -F'\t' '{print $1 ": " $2 "\t" $3}' | rofi -dmenu -i -p "select window") SELECTED=$(echo "$WIN_ADDRS" | awk -F'\t' '{print $1 ": " $2 "\t" $3}' | fuzzel --dmenu --prompt="window: ")
if [ -z "$SELECTED" ]; then if [ -z "$SELECTED" ]; then
exit 0 exit 0

View file

@ -20,8 +20,9 @@ else
case "$(uname)" in case "$(uname)" in
Linux) Linux)
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
require rofi require fuzzel
theme="$(printf "%s\n" "$themes" | rofi -dmenu -p 'theme')" count="$(printf "%s\n" "$themes" | wc -l)"
theme="$(printf "%s\n" "$themes" | fuzzel --dmenu --prompt="theme: " --lines="$count")"
else else
require dmenu require dmenu
theme="$(printf "%s\n" "$themes" | dmenu -p 'select theme: ')" theme="$(printf "%s\n" "$themes" | dmenu -p 'select theme: ')"
@ -75,10 +76,6 @@ Linux)
pkill -USR2 waybar pkill -USR2 waybar
} }
rofi_themes="$cfg/rofi/themes"
[ -f "$rofi_themes/$theme.rasi" ] && {
ln -sf "$rofi_themes/$theme.rasi" "$rofi_themes/theme.rasi"
}
hypr_themes="$cfg/hypr/themes" hypr_themes="$cfg/hypr/themes"
[ -f "$hypr_themes/$theme.conf" ] && { [ -f "$hypr_themes/$theme.conf" ] && {