pancsta/sway-yasm

Any way to make font bigger?

fz68 opened this issue · 1 comments

fz68 commented

I try this in sway config, it works.

bindsym $mod+d exec alacritty -o font.size=20.0 -o window.title='Launcher' --class 'launcher' --command bash -c 'compgen -c | sort -u | fzf --layout=reverse | xargs -r swaymsg -t command exec'
for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10, move center`

The popup is rendered with foot, you have 3 options:

  1. Use the foot config ~/.config/foot/foot.ini and set font=Liberation Mono:size=20
  2. Edit /internal/cmds/fzf.go and change the terminal to alacritty, then ./scripts/build
shellSwitcher = `
    alacritty -o font.size=20.0 -o window.title "sway-yasm" --command sway-yasm fzf switcher
`
  1. Keep using foot, but point to non-default config
shellSwitcher = `
    foot --config ~/.config/foot/sway-yasm.ini --title "sway-yasm" sway-yasm fzf switcher
`

You can PR the 3rd one, as it seems the most reasonable.