Skip to content

Instantly share code, notes, and snippets.

@Circl3s
Created October 22, 2018 15:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Circl3s/1e915eea88e9a7376c7f2877672b293e to your computer and use it in GitHub Desktop.
Save Circl3s/1e915eea88e9a7376c7f2877672b293e to your computer and use it in GitHub Desktop.
Pop-out player (or picture-in-picture, whatevs) for i3. Just slap in in the config and watch it do the magic. (For now works only on 1920x1080 xd)
# Pop-out player:
# Press mod+PageUp to pop out the current window: float it, resize it, stick it.
# Press mod+Shift+PageUp to enter edit mode.
bindsym $mod+Prior fullscreen disable, floating enable, resize set 576 324, sticky enable, move window to position 1322 735
bindsym $mod+Shift+Prior mode "$mode_popout"
set $mode_popout Pop-out player: (k) lower left, (l) lower right, (i) upper left, (o) upper right
mode "$mode_popout" {
# Change position
bindsym k move window to position 20 735
bindsym l move window to position 1322 735
bindsym o move window to position 1322 50
bindsym i move window to position 20 50
# Exit pop-out edit
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+Shift+Prior mode "default"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment