You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20240203-110809-5046fc22
Ask your question!
hello! sorry for the the bother and just a quick ty for the awesome terminal emulator if you see this wez!
(for those wanting a tldr i attempted to bold the tldr so you can skim)
i have silly question i have been looking around for but i can't find a solution that solves this problem so i thought i would ask before attempting to learn something more jankey.
i'm currently trying to change my background just to be a small looping gif i like, however i commonly work with my terminal either snapped to half my screen, or full screen depending on my work, and i can't find how to have the width of the image auto scale when setting an absolute value.
i noticed there's apparently some form of css support, but when trying to do something such as:
aspect_ratio:1/1;
or
aspect_ratio "1/1";
or
width ="auto";
none of the following seem to work. is there something obvious i might be missing? if not, is there a way to make styles based on terminal width in px, or any other built in way to do this?
thanks for your time, any and all help appreciated! i included an image to attempt to help get a visual indication of what i'm trying to achieve, and the "raw code" is below so you can read it with greater ease.
thank you for your time and have a great day!
localwezterm=require'wezterm'localconfig= {}
localdimmed= {
brightness=0.02,
hue=1.0,
saturation=1.0,
}
config.enable_scroll_bar=trueconfig.background= {
{
source= {Color="black"},
width="100%",
height="100%"
},
{
source= {
File="/Users/insert/dotfiles/.config/nvim/images/pixel_mangle.gif"--'/.config/nvim/images/loona7.png'
},
aspect_ratio="1";
hsb=dimmed, --{ hue = 1.0,saturation = 1.5, brightness = 1.0,} ,horizontal_align="Right",
vertical_align="Bottom",
vertical_offset="-3.5cell",
-- height = "Cover", USE THIS WITH NO WIDTH TO SET BG THAT WILL SCALE WITHOUT STRETCHheight="16%",
width="16%", -- auto, maybe a "aspect-ratio = 1/1;" ?repeat_x='NoRepeat',
repeat_y='NoRepeat',
},
}
config.font=wezterm.font('New Font')
returnconfig
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What Operating System(s) are you running on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20240203-110809-5046fc22
Ask your question!
hello! sorry for the the bother and just a quick ty for the awesome terminal emulator if you see this wez!
(for those wanting a tldr i attempted to bold the tldr so you can skim)
i have silly question i have been looking around for but i can't find a solution that solves this problem so i thought i would ask before attempting to learn something more jankey.
i'm currently trying to change my background just to be a small looping gif i like, however i commonly work with my terminal either snapped to half my screen, or full screen depending on my work, and i can't find how to have the width of the image auto scale when setting an absolute value.
i noticed there's apparently some form of css support, but when trying to do something such as:
or
aspect_ratio "1/1";
or
none of the following seem to work. is there something obvious i might be missing?
if not, is there a way to make styles based on terminal width in px, or any other built in way to do this?
thanks for your time, any and all help appreciated! i included an image to attempt to help get a visual indication of what i'm trying to achieve, and the "raw code" is below so you can read it with greater ease.
thank you for your time and have a great day!
Beta Was this translation helpful? Give feedback.
All reactions