Daniel Imms

Results 546 comments of Daniel Imms

There would need to be a CLI API to split the terminal which doesn't exists and I don't think has come up before. Additionally we don't allow splitting directionally currently,...

@ranyitz yes could you open an in vscode to add a cli? I think it would have to be a subgroup like `code terminal split-pane`, not just `code split-pane` as...

./scripts/configure_ubuntu.sh was made for this, need to go through my settings and apply them for 16.04

Useful article: http://blog.self.li/post/74294988486/creating-a-post-installation-script-for-ubuntu

Ugly script to do just this: ``` bash ~/setwindow gnome-terminal 0 0 25 100 && \ ~/setwindow gnome-terminal $(expr $(xwininfo -root | grep Width | sed 's/\s*Width:\s*//') / 4) 0...

Get work area: `xprop -root | grep WORKAREA` Get monitor resolutions: `xrandr | grep *+`

Get monitor resolutions and x/y positions: ``` bash screens=$(xrandr | grep " connected" | sed 's/.*connected\(\sprimary\|\)\s//' | sed 's/\s.*//') for x in $screens do echo "> [$x]" done ```

nodejs for getting res and x/y: ~/setwindow ``` python #!/usr/bin/env python3 import subprocess import time import sys app = sys.argv[1] get = lambda x: subprocess.check_output(["/bin/bash", "-c", x]).decode("utf-8") ws1 = get("wmctrl...

`wmctrl` can snap, as opposed to just resize which leaves gaps/window borders: ``` bash wmctrl -r :ACTIVE: -b add,maximized_vert ```