From ede7a205b1877748a40881de91dfb5209f5a9656 Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Wed, 22 Mar 2023 17:48:43 +0000 Subject: [PATCH] urxvt: use monospace and support changing the size --- PACKAGES | 1 - bin/tiles-terminal | 4 +++- doc/tiles.7.scd | 4 ++++ etc/xresources | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/PACKAGES b/PACKAGES index 8510829..63769e8 100644 --- a/PACKAGES +++ b/PACKAGES @@ -14,7 +14,6 @@ xclip # used for copy/paste related things # TERMINAL EMULATOR rxvt-unicode urxvt-perls # enables selecting text with the keyboard -font-bh-ttf # has the Luxi Mono font # WEB BROWSER qutebrowser diff --git a/bin/tiles-terminal b/bin/tiles-terminal index 71d2581..ff48c6f 100755 --- a/bin/tiles-terminal +++ b/bin/tiles-terminal @@ -1,2 +1,4 @@ #!/bin/sh -XENVIRONMENT=/etc/tiles/xresources exec urxvt "$@" +fontsize=$((TILES_TERMINAL_FONT_SIZE)) +[ "$fontsize" = 0 ] && fontsize=14 +XENVIRONMENT=/etc/tiles/xresources exec urxvt -fn "xft:monospace:size=$fontsize" "$@" diff --git a/doc/tiles.7.scd b/doc/tiles.7.scd index 0a0d33d..1e9f532 100644 --- a/doc/tiles.7.scd +++ b/doc/tiles.7.scd @@ -208,6 +208,10 @@ is *picom*. your desktops, if you are using the default *bspwm* setup. It is run each time you focus a desktop. The default is */usr/libexec/tiles/wallpaper*. +## TILES-TERMINAL + +The environment variable *TILES_TERMINAL_FONT_SIZE* changes the font size. + ## TILES-BROWSER *tiles-browser* sources any additional config files ending with *.py* diff --git a/etc/xresources b/etc/xresources index e24aa30..136c5d8 100644 --- a/etc/xresources +++ b/etc/xresources @@ -1,4 +1,3 @@ -URxvt.font: xft:Luxi Mono URxvt.scrollBar: false URxvt.internalBorder: 5 URxvt.background: #00000f -- 2.38.5