Skip to content
vic

sumeet/golden

bspwm golden-ratio expansion for focused windows, like in the golden-ratio.el plugin for emacs

sumeet/golden.json
{
"createdAt": "2018-10-04T08:51:33Z",
"defaultBranch": "master",
"description": "bspwm golden-ratio expansion for focused windows, like in the golden-ratio.el plugin for emacs",
"fullName": "sumeet/golden",
"homepage": null,
"language": "Python",
"name": "golden",
"pushedAt": "2020-02-06T16:05:06Z",
"stargazersCount": 28,
"topics": [],
"updatedAt": "2025-11-09T21:17:30Z",
"url": "https://github.com/sumeet/golden"
}

bspwm golden-ratio expansion for focused windows, like in the golden-ratio.el plugin for emacs

Whenever you focus a window, this script will increase its size considerably (by about 1.6x). Whatever you’re working with gets more real estate on the screen. As you interact with different windows, the active one gets expanded.

Demo

Usage:

Stick this in your bspwmrc:

Terminal window
exec ~/Projects/golden/run.sh &

For example, here’s my full bspwmrc:

#!/bin/sh
killall sxhkd
sxhkd &
bspc monitor -d 1 2 3 4 5 6
bspc config border_width 1
bspc config top_padding 43
bspc config window_gap 0
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config pointer_modifier mod1
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action3 resize_corner
bspc config focus_follows_pointer true
bspc rule -a retroarch state=floating
bspc rule -a plasmashell state=floating border=off layer=normal manage=off center=true
bspc rule -a krunner state=floating
exec ~/Projects/golden/run.sh &

Bugs, issues and questions all welcome in the Issues section. Thank you!