Skip to content

Instantly share code, notes, and snippets.

[saivert@fedoravmw ~]$ systemctl --user status pipewire-pulse.socket
● pipewire-pulse.socket - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; vendor preset: disabled)
Active: active (running) since Fri 2020-12-04 19:53:35 CET; 14min ago
Triggers: ● pipewire-pulse.service
Listen: /run/user/1001/pulse/native (Stream)
CGroup: /user.slice/user-1001.slice/[email protected]/pipewire-pulse.socket
Dec 04 19:53:35 fedoravmw.saivert.lan systemd[1556]: Listening on PipeWire PulseAudio.
[saivert@fedoravmw ~]$ systemctl --user status pipewire-pulse.service
$ systemctl --user mask pulseaudio.socket
Created symlink /home/saivert/.config/systemd/user/pulseaudio.socket → /dev/null.
$ systemctl --user enable pipewire.socket pipewire-pulse.socket
Created symlink /home/saivert/.config/systemd/user/sockets.target.wants/pipewire.socket → /usr/lib/systemd/user/pipewire.socket.
Created symlink /home/saivert/.config/systemd/user/sockets.target.wants/pipewire-pulse.socket → /usr/lib/systemd/user/pipewire-pulse.socket.
struct spa_pod *
makevolumepod() {
char buf[1024];
struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buf, sizeof(buf));
struct spa_pod_frame f[1];
struct spa_pod *pod;
float vol[2];
vol[0] = vol[1] = .5f;
#!/usr/bin/gjs
imports.gi.versions.Gtk = '3.0';
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
const GSound = imports.gi.GSound;
// We start out with 0 cookies
var cookies = 0;
#!/usr/bin/pwsh
$CLR = "$([char]27)[2K"
$R = ([char]13)
Function LeaveIt {
Write-Host -Nonewline $CLR
Write-Host "Bye!"
exit
}
// SPDX-License-Identifier: GPL-2.0
// This is garbage code
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <systemd/sd-bus.h>
static sd_bus * bus;
// SPDX-License-Identifier: GPL-2.0
#include <stdio.h>
#include <fcntl.h>
#include <poll.h>
#include <signal.h>
#include <unistd.h>
#include <libudev.h>
#include <libinput.h>
#include <errno.h>
#include <termios.h>
{
"app-id": "music.deadbeef.player",
"branch": "master",
"runtime": "org.gnome.Platform",
"runtime-version": "3.38",
"sdk": "org.gnome.Sdk",
"command": "deadbeef",
"finish-args": [
"--share=ipc",
"--socket=x11",
{
"name": "libdispatch",
"buildsystem": "cmake",
"subdir": "libdispatch",
"build-options": {
"env": {
"CC": "clang",
"CXX": "clang++"
}
},
// SPDX-License-Identifier: GPL-2.0
// Coding style: Linux kernel
#include <fcntl.h>
#include <unistd.h>
#include <poll.h>
#include <stdlib.h>
#include <ctype.h>
#include <signal.h>
#include <string.h>