feat(fuzze): goodbye rofi;
This commit is contained in:
parent
996d81afb4
commit
f1015c40c4
8 changed files with 18 additions and 30 deletions
|
|
@ -20,8 +20,9 @@ else
|
|||
case "$(uname)" in
|
||||
Linux)
|
||||
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
|
||||
require rofi
|
||||
theme="$(printf "%s\n" "$themes" | rofi -dmenu -p 'theme')"
|
||||
require fuzzel
|
||||
count="$(printf "%s\n" "$themes" | wc -l)"
|
||||
theme="$(printf "%s\n" "$themes" | fuzzel --dmenu --prompt="theme: " --lines="$count")"
|
||||
else
|
||||
require dmenu
|
||||
theme="$(printf "%s\n" "$themes" | dmenu -p 'select theme: ')"
|
||||
|
|
@ -75,10 +76,6 @@ Linux)
|
|||
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"
|
||||
[ -f "$hypr_themes/$theme.conf" ] && {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue