kzimmermann,
@kzimmermann@fosstodon.org avatar

Anybody knows how to start up or xterm with a different .Xresources file than your main one? Like, for example, with a command-line option indicating another config file to use.

I want to be write a script to launch urxvt with a larger font for reading on the terminal with . Hacks appreciated!

buck10,

@kzimmermann I've not tried this, but this article mentions changing the instance name with the -name option. Then referencing this name in your .Xresources file. Not sure if this will do what you want it to, but might be worth a look.

https://unix.stackexchange.com/questions/312360/start-xterm-instance-with-different-configurations

kzimmermann,
@kzimmermann@fosstodon.org avatar

@buck10 hey thanks! This works quite nicely! I set the name string to something like BookReader and now can call it via a specific alias or script. Thank you for sharing this!

buck10,

@kzimmermann glad it worked for you. I'll have to file this info away in case I need it someday.

kzimmermann,
@kzimmermann@fosstodon.org avatar

@buck10 I've bookmarked your toot just in case!

aaravchen,
@aaravchen@fosstodon.org avatar

@kzimmermann

I think it looks for the .Xresource file in your XDG_HOME folder (or something like that). Maybe invoke it with a different value on the command line?

#urxvt #ebooks #epr

0xf0,
@0xf0@camp.smolnet.org avatar

@kzimmermann @joel haven’t used that in eons but if memory serves you can override individual settings from the command line (eg which font to use and such…)

ste5e,
@ste5e@fosstodon.org avatar

@kzimmermann I'm unsure if urxvt supports loading Xresources like that, but maybe you can write a shell script to load a separate Xresources file via xrdb, then once it closes, you load your main one? I'm sure there's more to it than that but that's my napkin code idea.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • khanakhh
  • thenastyranch
  • tacticalgear
  • Youngstown
  • mdbf
  • slotface
  • everett
  • rosin
  • InstantRegret
  • kavyap
  • osvaldo12
  • cubers
  • megavids
  • ngwrru68w68
  • normalnudes
  • GTA5RPClips
  • ethstaker
  • cisconetworking
  • Durango
  • modclub
  • Leos
  • anitta
  • provamag3
  • tester
  • JUstTest
  • lostlight
  • All magazines