fixed font size

This commit is contained in:
Clay Gomera 2023-05-26 02:52:32 -04:00
parent 3a975688ae
commit 34e06fcc7f
10 changed files with 13 additions and 14 deletions

View file

@ -5,7 +5,7 @@ static int topbar = 1; /* -b option; if 0, dmenu appears a
static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"mononoki Nerd Font Mono:size=10"
"mononoki Nerd Font Mono:size=12"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {

View file

@ -304,7 +304,7 @@ original_args=("$@")
# dmenu command to pipe into. Extra arguments to dmenu-bluetooth are passed through to dmenu. This
# allows the user to set fonts, sizes, colours, etc.
run_dmenu() {
dmenu "${original_args[@]}" -b -l 5 -i -p "$1"
dmenu "${original_args[@]}" -l 5 -i -p "$1"
}
case "$1" in

View file

@ -6,7 +6,6 @@
prompt="-p launch:"
colors="-nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7"
font="-fn 'mononoki Nerd Font-10'"
DMENU="dmenu -i -l 10 $font $colors $prompt"
DMENU="dmenu -i -l 10 $colors $prompt"
j4-dmenu-desktop --dmenu "$DMENU" --no-generic

View file

@ -21,7 +21,7 @@ case "$1" in
fi
;;
"")
bash $0 list | dmenu -b -i -l 10 -p 'Emoji: ' | bash $0 copy
bash $0 list | dmenu -i -l 10 -p 'Emoji: ' | bash $0 copy
;;
esac

View file

@ -26,7 +26,7 @@ pwr4="cancel"
pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
## MAIN ACTION COMMAND ##
action=$(echo -e "$options" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "power options:")
action=$(echo -e "$options" | dmenu -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "power options:")
case "$action" in
$option1*)
pkill X;;

View file

@ -22,7 +22,7 @@ del3="10 sec delay"
dels="$del1\n$del2\n$del3"
## MAIN ACTION ##
choice=$(echo -e "$chos" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "Select: ")
choice=$(echo -e "$chos" | dmenu -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "Select: ")
case $choice in
$cho1)
scrot && notify-send "screenshot saved";;

View file

@ -10,7 +10,7 @@ cd "$walldir" || exit
## SELECT PICTURE FUNCTION ##
selectpic() {
wallpaper=$(fd -p "$walldir" | dmenu -i -l 10 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select a wallpaper:")
wallpaper=$(fd -p "$walldir" | dmenu -i -l 10 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select a wallpaper:")
if [ "$wallpaper" ]; then
chosenwall=$wallpaper
else
@ -28,7 +28,7 @@ option5="scale"
options="$option1\n$option2\n$option3\n$option4\n$option5"
## MAIN ACTION ##
action=$(echo -e "$options" | dmenu -i -l 5 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "chose the format:")
action=$(echo -e "$options" | dmenu -i -l 5 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "chose the format:")
case "$action" in
$option1*)
feh --bg-fill "$chosenwall";;

View file

@ -40,12 +40,12 @@ disconnect() {
connect() {
notify-send "Scannig networks, please wait"
sleep 1
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -i -l 10 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select wifi:" | cut -d' ' -f1)
bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -i -l 10 -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select wifi:" | cut -d' ' -f1)
}
## SELECT PASSWORD FUNCTION ##
password() {
pass=$(echo " " | dmenu -P -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "enter password:")
pass=$(echo " " | dmenu -P -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "enter password:")
}
## MAIN CONNECTION COMMAND ##
@ -66,7 +66,7 @@ check() {
}
## MAIN ACTION COMMANDS ##
cases=$(echo -e "$options" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "wifi options:" )
cases=$(echo -e "$options" | dmenu -i -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "wifi options:" )
case "$cases" in
$option1*)
turnon;;

View file

@ -81,7 +81,7 @@ static const Rule rules[] = {
{ "neovim", NULL, NULL, 1, 0, -1 },
{ "neovide", NULL, NULL, 1, 0, -1 },
// test tag
{ "Virt-manager", NULL, NULL, 1, 0, -1 },
{ "Virt-manager", NULL, NULL, 1 << 1, 0, -1 },
// web tag
{ "LibreWolf", NULL, NULL, 1 << 2, 0, -1 },
{ "firefox", NULL, NULL, 1 << 2, 0, -1 },

View file

@ -1,7 +1,7 @@
static const char *background_color = "#1d2021";
static const char *border_color = "#cc241d";
static const char *font_color = "#fbf1c7";
static const char *font_pattern = "mononoki Nerd Font Mono:size=10";
static const char *font_pattern = "mononoki Nerd Font Mono:size=12";
static const unsigned line_spacing = 5;
static const unsigned int padding = 10;