Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/output.c b/src/output.c
index f7f95ab1..435471a8 100644
--- a/src/output.c
+++ b/src/output.c
@@ -9,6 +9,7 @@
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <strings.h>
+#include <wlr/backend/drm.h>
#include <wlr/types/wlr_buffer.h>
@Consolatis
Consolatis / ToggleShade.patch
Created August 7, 2023 12:10
Incomplete ToggleShade implementation
diff --git a/include/ssd.h b/include/ssd.h
index 5e82be2c..2664905f 100644
--- a/include/ssd.h
+++ b/include/ssd.h
@@ -65,6 +65,7 @@ void ssd_update_geometry(struct ssd *ssd);
void ssd_destroy(struct ssd *ssd);
void ssd_enable_keybind_inhibit_indicator(struct ssd *ssd, bool enable);
+void ssd_enable_shade(struct ssd *ssd, bool enable);
#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
#include <LayerShellQt/shell.h>
#include <LayerShellQt/window.h>
int main(int argc, char **argv) {
QApplication app(argc, argv);
LayerShellQt::Shell::useLayerShell();
diff --git a/notify.c b/notify.c
index 8180477d..7e316268 100644
--- a/notify.c
+++ b/notify.c
@@ -48,7 +48,10 @@ notify_notify(const struct terminal *term, const char *title, const char *body)
/* Redirect stdin to /dev/null, but ignore failure to open */
int devnull = open("/dev/null", O_RDONLY);
+
+ setenv("FOOT_PTY", ptsname(term->ptmx), 1);
import os
import hexchat
import subprocess
__module_name__ = "StupidNotifier"
__module_version__ = "0.8"
__module_description__ = "On notification change title via wmctrl."
# https://hexchat.readthedocs.io/en/latest/script_python.html#channels
# ^ is simply wrong! The actual flags can be found at
@Consolatis
Consolatis / enable_video_console.patch
Last active August 1, 2019 18:18
uboot-odroid-c2-mainline: Enable video console
--- .config 2019-07-29 20:33:56.395614205 +0000
+++ .config.video.new 2019-07-29 20:35:50.438050884 +0000
@@ -486,11 +486,13 @@
#
# Misc commands
#
+# CONFIG_CMD_BMP is not set
# CONFIG_CMD_BSP is not set
# CONFIG_CMD_BKOPS_ENABLE is not set
CONFIG_CMD_BLOCK_CACHE=y