From c12d97ecb73b120629a62bd15c1510a818b99073 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Tue, 6 Aug 2019 13:16:36 +0300 Subject: [PATCH] Update font to TTF version of Terminus --- .bin/switch_window.py | 2 +- .config/sway/config | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bin/switch_window.py b/.bin/switch_window.py index 5f551b3..b71e76f 100755 --- a/.bin/switch_window.py +++ b/.bin/switch_window.py @@ -42,6 +42,6 @@ for output in tree['nodes']: windows_string = '\n'.join([f"<{app_id}> {app_name} --- {app_title}" for app_id, app_name, app_title in windows]) # Call rofi and move focus to the selected window -selection = subprocess.check_output(['rofi', '-dmenu', '-i', '-p', 'window', '-normal-window', '-font', 'xos4 Terminus 12'], input=windows_string, universal_newlines=True) +selection = subprocess.check_output(['rofi', '-dmenu', '-i', '-p', 'window', '-normal-window', '-font', 'Terminus (TTF) Medium 12'], input=windows_string, universal_newlines=True) window_id = selection.split(' ')[0][1:-1] subprocess.call(['swaymsg', f"[con_id=\"{window_id}\"]", 'focus']) diff --git a/.config/sway/config b/.config/sway/config index 4622107..7d96661 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -15,13 +15,13 @@ set $up k set $right l # Default font -set $font "xos4 Terminus 12" -font pango:xos4 Terminus 12 +set $font "Terminus (TTF) Medium 12" +font pango:Terminus (TTF) Medium 12 # Background image set $bg "~/Pildid/background.png" # Uses forked swaylock https://github.com/mortie/swaylock-effects -set $lockcmd swaylock --clock --datestr "%Y-%m-%d" --indicator --image $bg --tiling --hide-keyboard-layout --font "xos4 Terminus" --font-size 28 --text-color ffffff --inside-color 435366 --separator-color 435366 --ring-color 435366 --line-uses-ring +set $lockcmd swaylock --clock --datestr "%Y-%m-%d" --indicator --image $bg --tiling --hide-keyboard-layout --font "Terminus (TTF) Medium" --font-size 28 --text-color ffffff --inside-color 435366 --separator-color 435366 --ring-color 435366 --line-uses-ring # Your preferred terminal emulator set $term gnome-terminal