fuzzle: add fuzzel

This commit is contained in:
lelgenio 2021-09-06 23:48:13 -03:00
parent be53f1b7d8
commit eee3921022
5 changed files with 31 additions and 8 deletions

View file

@ -15,7 +15,7 @@ depends=(
# Sway
sway swayidle swaylock waybar
# Menu
bemenu-wlroots j4-dmenu-desktop
fuzzel bemenu-wlroots j4-dmenu-desktop
# Utility
ruby-fusuma light mako kanshi udiskie redshift-wayland-git
wtype caffeinated

View file

@ -3,7 +3,7 @@
set -e
main(){
sym=$(bmenu | grep -o '^.' )
sym=$(wdmenu | grep -o '^.' )
wl-copy --trim-newline "$sym"
notify-send "Copied:" "\"$sym\""
}

17
dotfiles/scripts/fuzzel Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
exec /usr/bin/fuzzel \
--terminal=terminal \
--lines=30 \
--width=50 \
--font="{{@@ font.mono @@}}:size={{@@ font.size.medium * 1.6 @@}}" \
--icon-theme="{{@@ icon_theme @@}}" \
--border-radius=0 \
--border-width=2 \
--selection-color="{{@@ accent_color.replace('#','') @@}}ff" \
--selection-text-color="{{@@ accent_fg.replace('#','') @@}}ff" \
--background="{{@@ color.bg .replace('#','') @@}}ff" \
--text-color="{{@@ color.txt .replace('#','') @@}}ff" \
--match-color="{{@@ accent_color.replace('#','') @@}}ff" \
--border-color="{{@@ accent_color.replace('#','') @@}}ff" \
"$@"

View file

@ -1,6 +1,9 @@
#!/bin/sh
# {%@@ if launcher == "wofi" @@%} #
# {%@@ if launcher == "fuzzel" @@%} #
which fuzzel &> /dev/null &&
exec fuzzel
# {%@@ elif launcher == "wofi" @@%} #
which wofi &> /dev/null &&
exec wofi \
--show drun \
@ -8,7 +11,7 @@ which wofi &> /dev/null &&
--no-actions \
--prompt 'Iniciar: ' \
# {%@@ else @@%} #
# {%@@ elif launcher == "bmenu" @@%} #
which bmenu &> /dev/null &&
exec bmenu run
# {%@@ endif @@%} #

View file

@ -1,11 +1,14 @@
#!/bin/sh
# {%@@ if launcher == "wofi" @@%} #
# {%@@ if launcher == "fuzzel" @@%} #
command -v fuzzel > /dev/null &&
exec fuzzel --dmenu "$@"
# {%@@ elif launcher == "wofi" @@%} #
command -v wofi > /dev/null &&
exec wofi -d $@
# {%@@ else @@%} #
exec wofi -d "$@"
# {%@@ elif launcher == "bmenu" @@%} #
command -v bemenu > /dev/null &&
exec bmenu $@
exec bmenu "$@"
# {%@@ endif @@%} #
notify-send "Error" "Launcher program missing"