From aa7942a16e1d7335d57aef882115fedf1d8df6d9 Mon Sep 17 00:00:00 2001 From: Ryan Kes <> Date: Fri, 24 Jul 2020 12:24:25 +0200 Subject: [PATCH] set font in dmenu scripts --- dmenu/.config/dmenu-frecency/config.json | 13 +++++++++++++ dmenu/.local/bin/oath-dmenu | 2 +- dmenu/.local/bin/pass-dmenu | 2 +- dmenu/.local/bin/ssh-dmenu | 14 +++++++------- install | 5 +---- 5 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 dmenu/.config/dmenu-frecency/config.json diff --git a/dmenu/.config/dmenu-frecency/config.json b/dmenu/.config/dmenu-frecency/config.json new file mode 100644 index 0000000..935876a --- /dev/null +++ b/dmenu/.config/dmenu-frecency/config.json @@ -0,0 +1,13 @@ +{ + "cache-days": 1, + "dmenu": "dmenu", + "dmenu-args": [ + "-i", + "-fn", + "FuraCode Nerd Font" + ], + "frecency-visits": 10, + "preselect-last-visit": false, + "scan-desktop-files": true, + "scan-path": false +} diff --git a/dmenu/.local/bin/oath-dmenu b/dmenu/.local/bin/oath-dmenu index 6d4bcf8..31156c7 100755 --- a/dmenu/.local/bin/oath-dmenu +++ b/dmenu/.local/bin/oath-dmenu @@ -1,4 +1,4 @@ #!/usr/bin/env fish . ~/.cache/wal/colors.fish -yubikey-oath-dmenu --clipboard clipboard --notify -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" +yubikey-oath-dmenu --clipboard clipboard --notify -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -fn "FuraCode Nerd Font" diff --git a/dmenu/.local/bin/pass-dmenu b/dmenu/.local/bin/pass-dmenu index 4f07ebd..edaf3dd 100755 --- a/dmenu/.local/bin/pass-dmenu +++ b/dmenu/.local/bin/pass-dmenu @@ -1,4 +1,4 @@ #!/usr/bin/env fish . ~/.cache/wal/colors.fish -PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR passmenu -p Password: -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" +PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR passmenu -p Password: -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -fn "FuraCode Nerd Font" diff --git a/dmenu/.local/bin/ssh-dmenu b/dmenu/.local/bin/ssh-dmenu index 1212461..209b484 100755 --- a/dmenu/.local/bin/ssh-dmenu +++ b/dmenu/.local/bin/ssh-dmenu @@ -4,15 +4,15 @@ . ~/.cache/wal/colors.sh # get hostnames from ~/.ssh/known_hosts -ssh_host="$(awk -F "[ ,]+" '{print $1}' ~/.ssh/known_hosts | tr -d '[]' | uniq | sort -n | dmenu -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" "$@")" +ssh_host="$(awk -F "[ ,]+" '{print $1}' ~/.ssh/known_hosts | tr -d '[]' | uniq | sort -n | dmenu -fn "FuraCode Nerd Font" -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" "$@")" # split hostnames into array { hostname, port } mapfile -t params < <(echo "$ssh_host" | awk -F ":" '{print $1} {if ($2) print $2}') if [ -n "$ssh_host" ]; then - # If array size is two then second parameter is port number - if [ ${#params[@]} -eq 2 ]; then - alacritty -e ssh "${params[0]}" -p "${params[1]}" - else - alacritty -e ssh "${params[0]}" - fi + # If array size is two then second parameter is port number + if [ ${#params[@]} -eq 2 ]; then + alacritty -e ssh "${params[0]}" -p "${params[1]}" + else + alacritty -e ssh "${params[0]}" + fi fi diff --git a/install b/install index 46f7138..e188747 100755 --- a/install +++ b/install @@ -88,11 +88,8 @@ mkdir_if_not_exist ~/.config/X11 mkdir_if_not_exist ~/.gnupg mkdir_if_not_exist ~/.config/mpv/scripts mkdir_if_not_exist ~/.config/coc/extensions +mkdir_if_not_exist ~/.config/dmenu-frecency -# Create xmonad directories -mkdir_if_not_exist ~/.config/xmonad -mkdir_if_not_exist ~/.cache/xmonad -mkdir_if_not_exist ~/.local/share/xmonad # Link mpv plugins if they don't exist if [ ! -h ~/.config/mpv/scripts/mpris.so ]