9dc1076fed41482e69bbe27b5f23cd6e4174d3a5

Author
Pavle Portic <git@theedgeofrage.com>
Committer
Pavle Portic <git@theedgeofrage.com>
Date

Message

Use NerdFont in i3 autoname workspace script

Diff

This diff is truncated to protect this page.

  1diff --git a/dot_config/i3/i3-autoname-workspaces.py b/dot_config/i3/i3-autoname-workspaces.py
  2index 624879b3b7c0049791ec6b9b751fc16079769108..96d8ab8d40eca893bfd21dc73732045c2cfa33ab 100644
  3--- a/dot_config/i3/i3-autoname-workspaces.py
  4+++ b/dot_config/i3/i3-autoname-workspaces.py
  5@@ -4,7 +4,7 @@
  6 # for running programs.  It contains icons for a few programs, but more can
  7 # easily be added by inserting them into WINDOW_ICONS below.
  8 #
  9-# Dependencies: xorg-xprop i3ipc fontawesome
 10+# Dependencies: xorg-xprop i3ipc nerdfonts
 11 #
 12 # Installation:
 13 # Add "exec_always ~/.config/i3/i3-autoname-workspaces.py &" to the i3 config
 14@@ -24,7 +24,7 @@ import subprocess as proc
 15 from sys import exit
 16 from typing import Any, NoReturn
 17 
 18-import fontawesome as fa  # type: ignore
 19+import nerdfonts as nf  # type: ignore
 20 import i3ipc  # type: ignore
 21 
 22 # Add icons here for common programs you use.  The keys are the X window class
 23@@ -38,68 +38,70 @@ import i3ipc  # type: ignore
 24 # xprop (https://linux.die.net/man/1/xprop). Run `xprop | grep WM_CLASS`
 25 # then click on the application you want to inspect.
 26 WINDOW_ICONS: dict[str, str] = {
 27-    'alacritty': fa.icons['terminal'],
 28-    'blender': fa.icons['cube'],
 29-    'blueman-manager': fa.icons['bluetooth'],
 30-    'calibre-gui': fa.icons['book'],
 31-    'chromium': fa.icons['chrome'],
 32-    'cities.x64': fa.icons['city'],
 33-    'clonehero': fa.icons['guitar'],
 34-    'code-oss': fa.icons['code'],
 35-    'vscodium': fa.icons['code'],
 36-    'cutter': fa.icons['bug'],
 37-    'darktable': fa.icons['camera'],
 38-    'discord': fa.icons['comment'],
 39-    'dwarf_fortress': fa.icons['fort-awesome'],
 40-    'easyeffects': fa.icons['music'],
 41-    'evince': fa.icons['file-pdf'],
 42-    'factorio': fa.icons['cog'],
 43-    'feh': fa.icons['image'],
 44-    'firefox': fa.icons['firefox'],
 45-    'firefoxdeveloperedition': fa.icons['firefox'],
 46-    'ghb': fa.icons['video'],
 47-    'gimp': fa.icons['file-image'],
 48-    'gimp-2.10': fa.icons['file-image'],
 49-    'gparted': fa.icons['hdd'],
 50-    'gsmartcontrol': fa.icons['hdd'],
 51-    'inkscape': fa.icons['pen-nib'],
 52-    'jetbrains-idea-ce': fa.icons['code'],
 53-    'jetbrains-studio': fa.icons['code'],
 54-    'kicad': fa.icons['microchip'],
 55-    'ksp.x86_64': fa.icons['space-shuttle'],
 56-    'ledger live': fa.icons['wallet'],
 57-    'libreoffice-calc': fa.icons['file-excel'],
 58-    'libreoffice-impress': fa.icons['file-powerpoint'],
 59-    'libreoffice-writer': fa.icons['file-alt'],
 60-    'lutris': fa.icons['gamepad'],
 61-    'mpv': fa.icons['video'],
 62-    'polymc': fa.icons['cube'],
 63-    'minecraft': fa.icons['cube'],
 64-    'mupdf': fa.icons['file-pdf'],
 65-    'nemiver': fa.icons['bug'],
 66-    'nm-connection-editor': fa.icons['wifi'],
 67-    'obs': fa.icons['video'],
 68-    'pavucontrol': fa.icons['volume-up'],
 69-    'picard': fa.icons['music'],
 70-    'qbittorrent': fa.icons['download'],
 71-    'qtcreator': fa.icons['code'],
 72-    'roxterm': fa.icons['terminal'],
 73-    'seahorse': fa.icons['lock'],
 74-    'simplescreenrecorder': fa.icons['video'],
 75-    'slack': fa.icons['slack'],
 76-    'spotify': fa.icons['spotify'],
 77-    'sqlitebrowser': fa.icons['database'],
 78-    'steam': fa.icons['steam'],
 79-    'surviving mars': fa.icons['rocket'],
 80-    'telegram-desktop': fa.icons['telegram'],
 81-    'terraria.bin.x86_64': fa.icons['tree'],
 82-    'thunderbird': fa.icons['envelope'],
 83-    'vim': fa.icons['code'],
 84-    'virtualbox manager': fa.icons['desktop'],
 85-    'vlc': fa.icons['video'],
 86-    'wireshark': fa.icons['network-wired'],
 87-    'zathura': fa.icons['file-pdf'],
 88-    'zenity': fa.icons['window-maximize'],
 89+    'alacritty': nf.icons['fa_terminal'],
 90+    'blender': nf.icons['fa_cube'],
 91+    'blueman-manager': nf.icons['fa_bluetooth'],
 92+    'calibre-gui': nf.icons['fa_book'],
 93+    'chromium': nf.icons['fa_chrome'],
 94+    'cities.x64': nf.icons['md_city'],
 95+    'clonehero': nf.icons['md_guitar_electric'],
 96+    'code-oss': nf.icons['fa_code'],
 97+    'vscodium': nf.icons['fa_code'],
 98+    'cutter': nf.icons['fa_bug'],
 99+    'darktable': nf.icons['fa_camera'],
100+    'discord': nf.icons['fa_comment'],
101+    'dwarf_fortress': nf.icons['fa_fort_awesome'],
102+    'easyeffects': nf.icons['fa_music'],
103+    'evince': nf.icons['fa_file_pdf_o'],
104+    'factorio': nf.icons['fa_cog'],