In C/C++, you can initialise a struct without giving values for any of the fields:
struct Point {
float x;
float y;
float z;
};
import time | |
import rtmidi | |
# initialise midi in class | |
midi_in = rtmidi.MidiIn() | |
# connect to a device | |
midi_in.open_port(3) | |
# get midi msgs |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
I've been experiencing random screen freezes on Pop OS, where the mouse pointer can still be moved onto another screen, but one of my monitors is totally unresponsive. I tried a whole range of things to fix this (disabling high DPI, turning off extensions etc), but none of this worked.
In order to fix this, I had to disable hybrid graphics. This is an option when you have both a dedicated GPU and a integrated GPU, generally you want to use the low power integrated GPU when you're using battery. However, something is breaking this on the current version of Gnome on Pop. To disable hybrid graphics: