pancsta / sway-yasm

Yet Another Sway Manager
MIT License
18 stars 1 forks source link

Any way to make font bigger? #2

Open fz68 opened 3 weeks ago

fz68 commented 3 weeks ago

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`
pancsta commented 3 weeks ago

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
    `
  3. 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.