Skip to content

Instantly share code, notes, and snippets.

@505e06b2
Created January 4, 2020 02:11
Show Gist options
  • Save 505e06b2/957272539bada28e573cd695d7d0cf57 to your computer and use it in GitHub Desktop.
Save 505e06b2/957272539bada28e573cd695d7d0cf57 to your computer and use it in GitHub Desktop.
Fix the border selection issue with Vivaldi and i3
#!/usr/bin/env python3
import json, os
path = os.path.join(os.environ['HOME'], ".config/vivaldi/Default/Preferences")
settings = {}
with open(path, "r") as f:
settings = json.loads(f.read())
b = settings["browser"]
b["window_placement"]["maximized"] = True
b["window_placement_popup"]["maximized"] = True
with open(path, "w") as f:
f.write(json.dumps(settings))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment