Skip to content

qualiaa/urxvt-config-reload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 

Repository files navigation

urxvt configuration reload

This plugin allows you to reload urxvt configuration at runtime by sending SIGUSR1 to the urxvt process.

What can be reloaded?

Currently only color, font and geometry settings are reloaded.

Why?

  • To switch between a high-contrast and low-constrast color schemes based on sunlight levels.
  • To switch font sizes when the terminal is moved to another screen with a different DPI.
  • ... and much more!

Usage

To reload the current terminal (will only work from the prompt):

kill -s USR1 $(ps -p $$ -o ppid=)

To reload all terminals

killall -SIGUSR1 urxvt

Dependencies

  • urxvt (obviously)
  • Perl ≥ 5.20 (could be easily fixed to work with more ancient versions if needed)
  • Linux::FD
  • common::sense

You can install the needed packages with CPAN:

sudo cpan Linux::FD common::sense

Installation

Copy config-reload into ~/.urxvt/ext/ (local) or /usr/lib/urxvt/perl (system-wide). Alternatively, add the folder path to your .Xresources:

URxvt.perl-lib: /your/folder/

You must add config-reload to the URxvt.perl-ext-common resource in Xresources:

URxvt.perl-ext-common: default,clipboard,...,config-reload

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%