Created
January 4, 2020 02:11
-
-
Save 505e06b2/957272539bada28e573cd695d7d0cf57 to your computer and use it in GitHub Desktop.
Fix the border selection issue with Vivaldi and i3
This file contains hidden or 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
#!/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