SOLVED - What font used

…for the rofi_run -l symbols?

Thanks!

EDIT - FontAwesome

It is rofi show not run. run is for dmenu.

rofi -show drun

In your config-rasi file you have option to turn on or off icons. If this is what you are referring too.

configuration
{
	display-drun:					"Activate";
	display-run:					"Execute";
	show-icons:						true;
    click-to-exit:                  false;
}

rofi_run -l is a script in AL, .local/bin

What font is used?

Blockquote

#!/bin/bash

NAME="${0##*/}"
VER=“0.8”
OPTS=(
-padding 50
-line-padding 4
-hide-scrollbar
)

usage()
{
cat <<EOF

USAGE: $NAME [OPTIONS]

OPTIONS:

 -h,--help          Display this message

 -v,--version       Display script version

 -r,--run           Run launcher

 -d,--drun          Desktop application launcher

 -w,--window        Switch between windows

 -l,--logout        System logout dialog

 -b,--browser       Browser search by keyword (requires surfraw)

 -q,--qalculate     Persistant calculator dialog (requires libqalculate)

 -c,--clipboard     Select previous clipboard entries (requires greenclip)

Without any options the run dialog will be opened.

EOF
}

if (( $# == 0 )); then
rofi -show run -columns 2 “${OPTS[@]}”
else
for arg in “$@”; do
case $arg in
-h|–help)
usage
exit 0
;;
-v|–version)
echo -e “$NAME – Version $VER”
exit 0
;;
-d|–drun)
rofi -modi drun -show drun -columns 2 “${OPTS[@]}” -show-icons -drun-icon-theme “ArchLabs-Dark”
;;
-r|–run)
rofi -show run -columns 2 “${OPTS[@]}”
;;
-w|–window)
rofi -show window “${OPTS[@]}”
;;
-q|–qalculate)
hash qalc >/dev/null 2>&1 || { echo “Requires ‘libqalculate’ installed”; exit 1; }
rofi -modi “calc:qalc +u8 -nocurrencies” -show “calc:qalc +u8 -nocurrencies” “${OPTS[@]}”
;;
-c|–clipboard)
hash greenclip >/dev/null 2>&1 || { echo “Requires ‘greenclip’ installed”; exit 1; }
rofi -modi “clipboard:greenclip print” -show “clipboard:greenclip print” “${OPTS[@]}”
;;
-b|–browser)
hash surfraw >/dev/null 2>&1 || { echo “Requires ‘surfraw’ installed”; exit 1; }
surfraw -browser="$BROWSER" “$(sr -elvi | awk -F’-’ ‘{print $1}’ | sed ‘/:/d’ | awk ‘{$1=$1};1’ |
rofi -hide-scrollbar -kb-row-select ‘Tab’ -kb-row-tab ‘Control+space’
-dmenu -mesg ‘Tab for Autocomplete’ -i -p ‘Web Search’)”
;;
-l|–logout)
case “$(rofi -sep “|” -dmenu -i -p ‘System’ -width 20 -hide-scrollbar
-line-padding 4 -padding 20 -lines 4 <<< “ Lock| Logout| Reboot| Shutdown”)” in
*Lock) xflock4 ;;
*Reboot) xfce4-session-logout --reboot ;;
*Shutdown) xfce4-session-logout --halt ;;
*Logout) xfce4-session-logout --logout ;;
esac
;;
*)
printf “\nOption does not exist: %s\n\n” “$arg”
exit 2
esac
done
fi

exit 0

Try using rofi -show drun or window

This looks like options used within rofi.

This is my config-rasi file.

/*
* Edit By KoO 03/09/2021 (Using ArchLabs i3-gaps)
* Rofi Config v1.7.1
*/


configuration
{
	display-drun:					"Activate";
	display-run:					"Execute";
	show-icons:						true;
    click-to-exit:                  false;
}


* {

   font:							"Fira Sans Medium 10";
	foreground:						#f8f8f2ff;
	background:						#282a3680;
	foreground-alt:					#f8f8f255;
	background-alt:					#282a3655;
	active-background:				#444A58aa;
	urgent-background:				#ff2222aa;
	selected-background:			@active-background;
	selected-urgent-background:		@urgent-background;
	selected-active-background:		@active-background;
	separatorcolor:					@active-background;
	bordercolor:					@active-background;
}

window {

	location:						center;
	anchor:							center;
	height:							705px;
	width:							1024px;
	padding:						0.5em;
    border:                         0px;
	background-color:				@background-alt;
    text-color:						@foreground-alt;
	children:						[ mainbox ];
    background-image: url("/home/koo/.config/rofi/arch-labs-nature-black-rofi.jpg");
}

mainbox {
	background-color:				@background-alt;
	text-color:						@foreground-alt;
	expand:							true;
	children:						[ inputbar ,wrapper-mode-switcher ,listview ];
}

listview {
	background-color:				@background-alt;
	text-color:						@foreground-alt;
    layout:							vertical;
	dynamic:						true;
	cycle:							false;
	padding:						10;
    spacing:						10;
    columns:						5;
}

inputbar {
	background-color:				@background;
	text-color:						@foreground;
	children:						[ entry ,overlay ,case-indicator ];
}

entry {
	background-color:				@background;
	text-color:						@foreground;
	padding:						10px;
}

wrapper-mode-switcher {
    orientation: horizontal;
    expand:     false;
    spacing:    0;
    line-padding: 10;
    children: [  mode-switcher ];
}

scrollbar {
    width:        0px ;
    border:       0;
    handle-color: #00000000;
    handle-width: -10px ;
    padding:      0;
}

mode-switcher {
    border:  1px;
    spacing: 5px;
    border-color: #444A58aa;
    expand: true;
}
button {
    text-color: white;
    border:       1px 1px 1px ;
    border-color: #444A58aa;
    border-radius:    0px 0px 0 0;
    background-image: linear-gradient(to bottom, darkgray/50%, black/70%);
}
button selected.normal {
    text-color: white;
    margin: 0px;
padding: 0px;

    border:       1px 1px 1px ;
    border-color: #444A58aa;
    border-radius:    0px 0px 0 0;
    background-image: linear-gradient(to bottom, darkgray, black/70%);
}

element {
	background-color:				@background;
	text-color:						@foreground;
    orientation:					vertical;
	padding:						25px;
}

element-icon {
    size:							40px;
}

element-text {
    horizontal-align:               0.5;
    vertical-align:                 0.5;

}

element.normal.normal {
	background-color:				@background;
	text-color:						@foreground;
}

element.normal.urgent {
	background-color:				@urgent-background;
	text-color:						@urgent-foreground;
}

element.normal.active {
	background-color:				@active-background;
	text-color:						@foreground;
}

element.selected.normal {
	background-color:				@selected-background;
	text-color:						@foreground;
}

element.selected.urgent {
	background-color:				@selected-urgent-background;
	text-color:						@foreground;
}

element.selected.active {
	background-color:				@selected-active-background;
	text-color:						@foreground;
}

element.alternate.normal {
	background-color:				@background;
	text-color:						@foreground;
}

element.alternate.urgent {
	background-color:				@urgent-background;
	text-color:						@foreground;
}

element.alternate.active {
	background-color:				@active-background;
	text-color:						@foreground;
}

You’re trying but not even close to what I am asking for. Thanks anyways…

“ Lock| Logout| Reboot| Shutdown"

The square boxes are the missing font…

If not configured, it probably uses monospace. You could configure it in ~/.config/rofi/rofi.rasi or ~/.Xresources.

For example,

configuration {
 modi: "window,drun,ssh,combi";
 font: "hack 10";
 combi-modi: "window,drun,ssh";
 }
@theme "solarized"

See Rofi - ArchWiki for more info.

1 Like

All I needed was to install FontAwesome, fixed.

Screenshot_2022-02-04_22-30-59

On my system with i3 as fonts are different.
As I use font pango: Source Code Pro Bold 11, NotoSansMono Nerd Font 11

Sorry I confused you.

1 Like

Sorry for the late reply, yes either ttf-font-awesome, archlabs-fonts, or one of the nerd-fonts. You should already have the archlabs fonts installed which includes ubuntu mono nerd font and another called icomoon for glyphs.

1 Like

No worries Nate, thanks.