Skip to content

Instantly share code, notes, and snippets.

@hedning
hedning / gnome-shell-record.py
Created January 18, 2020 14:21
Start gnome shell screen cast from command line
#!/usr/bin/env nix-shell
#! nix-shell -i python3 -p python3.pkgs.dbus-python
import dbus
import time
bus = dbus.SessionBus()
obj = bus.get_object("org.gnome.Shell", "/org/gnome/Shell/Screencast")
obj.Screencast("Auto %d %t.webm", [],
dbus_interface="org.gnome.Shell.Screencast")
unpacking sources
unpacking source archive /nix/store/7is04v2q9bcz7l1k8zw04zy2cfhcka0x-webkitgtk-2.26.0.tar.xz
source root is webkitgtk-2.26.0
setting SOURCE_DATE_EPOCH to timestamp 1568019617 of file webkitgtk-2.26.0/NEWS
patching sources
patching script interpreter paths in .
./Source/cmake/tools/scripts/auto-version.pl: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/5r85g4zzk0djffzs47zaimvkxfmbpp3q-perl-5.30.0/bin/perl"
./Source/cmake/tools/scripts/feature-defines.pl: interpreter directive changed from "/usr/bin/env perl" to "/nix/store/5r85g4zzk0djffzs47zaimvkxfmbpp3q-perl-5.30.0/bin/perl"
./Source/ThirdParty/ANGLE/adjust-angle-include-paths.sh: interpreter directive changed from "/bin/sh" to "/nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/sh"
./Source/ThirdParty/ANGLE/src/compiler/preprocessor/generate_parser.sh: interpreter directive changed from "/bin/bash" to "/nix/store/l6h4ya0wzb4b8mr0y58k2gh2nhfql4sn-bash-4.4-p23/bin/bash"
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/f52hdn7hrg3nrgzvlbrswfs6klj4igdh-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
meson flags: --buildtype=release --libdir=/nix/store/zb6fdd56ljzv8c6jdsbs79iwvxpslw70-systemd-239-lib/lib --libexecdir=/nix/store/zb6fdd56ljzv8c6jdsbs79iwvxpslw70-systemd-239-lib/libexec --bindir=/nix/store/0qh7ygf5zpv4g90igwl85xf1ql950wk5-systemd-239/bin --sbindir=/nix/store/0qh7ygf5zpv4g90igwl85xf1ql950wk5-systemd-239/sbin --includedir=/nix/store/axvnmmdnvsvhdkhbqs9dw6k5p07mpbx2-systemd-239-dev/include --mandir=/nix/store/mb8qxrc1ajl4d9g95waf5qbma3pxkiab-systemd-239-man/share/man --infodir=/nix/store/0qh7ygf5zpv4g90igwl85xf1ql950wk5-systemd-239/share/info --localedir=/nix/store/zb6fdd56ljzv8c6jdsbs79iwvxpslw70-systemd-239-lib/share/locale -Dauto_features=di
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/f52hdn7hrg3nrgzvlbrswfs6klj4igdh-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/l3h9qnrn3qysz1ich7hlxklk4byisam9-8f6b442a78d0b485f044742ad90b2e8271b4e68e.patch
patching file meson.build
Hunk #1 succeeded at 767 (offset 4 lines).
patching file meson_options.txt
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/f52hdn7hrg3nrgzvlbrswfs6klj4igdh-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/l3h9qnrn3qysz1ich7hlxklk4byisam9-8f6b442a78d0b485f044742ad90b2e8271b4e68e.patch
patching file meson.build
Hunk #1 succeeded at 767 (offset 4 lines).
patching file meson_options.txt
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/f52hdn7hrg3nrgzvlbrswfs6klj4igdh-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/l3h9qnrn3qysz1ich7hlxklk4byisam9-8f6b442a78d0b485f044742ad90b2e8271b4e68e.patch
patching file meson.build
Hunk #1 succeeded at 767 (offset 4 lines).
patching file meson_options.txt
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/f52hdn7hrg3nrgzvlbrswfs6klj4igdh-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
meson flags: --buildtype=release --libdir=/nix/store/zb6fdd56ljzv8c6jdsbs79iwvxpslw70-systemd-239-lib/lib --libexecdir=/nix/store/zb6fdd56ljzv8c6jdsbs79iwvxpslw70-systemd-239-lib/libexec --bindir=/nix/store/0qh7ygf5zpv4g90igwl85xf1ql950wk5-systemd-239/bin --sbindir=/nix/store/0qh7ygf5zpv4g90igwl85xf1ql950wk5-systemd-239/sbin --includedir=/nix/store/axvnmmdnvsvhdkhbqs9dw6k5p07mpbx2-systemd-239-dev/include --mandir=/nix/store/mb8qxrc1ajl4d9g95waf5qbma3pxkiab-systemd-239-man/share/man --infodir=/nix/store/0qh7ygf5zpv4g90igwl85xf1ql950wk5-systemd-239/share/info --localedir=/nix/store/zb6fdd56ljzv8c6jdsbs79iwvxpslw70-systemd-239-lib/share/locale -Dauto_features=di

Keybase proof

I hereby claim:

  • I am hedning on github.
  • I am hedning (https://keybase.io/hedning) on keybase.
  • I have a public key ASBiSinhrrf6_Fs28BnTvo6nTV7jiXaVL45qohUgD5GtoAo

To claim this, I am signing this object: