Skip to content

Instantly share code, notes, and snippets.

View enricozb's full-sized avatar
🏖️
found warm waters

Enrico Borba enricozb

🏖️
found warm waters
View GitHub Profile
@enricozb
enricozb / kakoune.nix
Created May 27, 2023 19:33
Kakoune Nix Setup
{ pkgs, ... }:
let
# nightly toolchain of rustfmt
rustfmt = (pkgs.callPackage (pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "fenix";
rev = "d0b0d39d4f74bec4634ea6b52e6bd49314c3988b";
sha256 = "1ss5mx8w19c19kis9mivxl4mqsnyifqwm4wpzlg9h9k2pbqzkjpm";
}) { }).latest.rustfmt;
@enricozb
enricozb / theos.nix
Last active November 22, 2021 07:56
Packaging Theos with Nix
# see: https://github.com/theos/theos/wiki/Installation-Linux
# TODO: figure out how to
# 1. be able to reference this derivation through an env var like `$THEOS`
{ pkgs, ... }:
let
rev = "e707fa9c4777f399ff5d97ff1f49431bdce63654";
@enricozb
enricozb / flameshot-macos-catalina.patch
Created August 23, 2020 18:32
flameshot macOS 10.15.6 patch
diff --git a/src/third-party/Qt-Color-Widgets/src/color_wheel.cpp b/src/third-party/Qt-Color-Widgets/src/color_wheel.cpp
index 335b29c..33310f3 100644
--- a/src/third-party/Qt-Color-Widgets/src/color_wheel.cpp
+++ b/src/third-party/Qt-Color-Widgets/src/color_wheel.cpp
@@ -27,6 +27,7 @@
#include <QLineF>
#include <QDragEnterEvent>
#include <QMimeData>
+#include <QPainterPath>
#include "color_utils.hpp"
diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c
index b6c6dac5..08188623 100644
--- a/i3bar/src/xcb.c
+++ b/i3bar/src/xcb.c
@@ -113,7 +113,7 @@ static const int ws_hoff_px = 4;
static const int ws_voff_px = 3;
/* Offset between two workspace buttons */
-static const int ws_spacing_px = 1;
+static const int ws_spacing_px = 0;