mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
set font in dmenu scripts
This commit is contained in:
parent
f1d6f5edaa
commit
aa7942a16e
13
dmenu/.config/dmenu-frecency/config.json
Normal file
13
dmenu/.config/dmenu-frecency/config.json
Normal file
@ -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
|
||||
}
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
5
install
5
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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user