Browse Source

Update font to TTF version of Terminus

master
Arti Zirk 5 years ago
parent
commit
c12d97ecb7
  1. 2
      .bin/switch_window.py
  2. 6
      .config/sway/config

2
.bin/switch_window.py

@ -42,6 +42,6 @@ for output in tree['nodes']: @@ -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'])

6
.config/sway/config

@ -15,13 +15,13 @@ set $up k @@ -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

Loading…
Cancel
Save