Related:
i3wm makes it easy to assign applications to workspaces and save and restore layouts - which is e.g. useful for auto-starting always needed software.
To make these assignments, you need specific window properties so that you can tell i3 to assign [class="Your-app"] → 1
(in this example, Your-app
will be assigned to workspace 1).
In many cases this just works. However, there are also many popular programs that do not initially set the correct window class or other properties on startup, which can be frustrating. This cheat sheet aims to show the problems and possible resolutions (or worse: workarounds) for more or less problematic applications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
class Loop0Transformer: | |
rules = { | |
r'(?P<indent>\s*)(?P<var1>\w+)\s*=\s*0': '{indent}{var1} = 0\n', # v = 0 | |
r'(?P<indent>\s*)(?P<var1>\w+)\s*=\s*(?P<var2>\w+)\s*\+\s*1': '{indent}{var1} = {var2} + 1\n', # v = w + 1 | |
r'(?P<indent>\s*)loop\s+(?P<var>\w+)(\s+begin)*': '{indent}for _ in range({var}):\n', # loop v begin a | |
r'(?P<indent>\s*)end': '{indent}# end for\n' # This "transformation" is not really needed results in a comment | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'json' | |
VM_NAME = "ise-eit-vm" | |
VM_CONFIG_FILE = "#{VM_NAME}.json" | |
DEFAULTS = {'cpus' => 4, 'memory' => 4092, 'headless' => true, | |
'additional_disk_size' => 0, 'additional_disk_path' => "./additional-disk.vdi", | |
'private_network_ip' => "192.168.42.42"} |