Skip to content

Instantly share code, notes, and snippets.

@arjan-s
arjan-s / overlays.nix
Last active September 28, 2023 20:46
SceneFX in Qtile on NixOS
pywlroots = pprev.pywlroots.overridePythonAttrs (_: rec {
version = "0.16.5";
src = super.fetchPypi {
inherit version;
pname = "pywlroots";
hash = "sha256-W43RCJektumgvO9K3K3mHR1BiyZXsHj4fN2EkGlJChQ=";
};
postPatch = ''
substituteInPlace wlroots/ffi_build.py \
--replace 'libraries=["wlroots"],' 'libraries=["wlroots","scenefx"],'
@arjan-s
arjan-s / config.py
Created September 16, 2022 09:44
Qtile config
import asyncio
import os
import random
import subprocess
from typing import List # noqa: F401
from libqtile import bar, hook, layout, qtile
from libqtile.backend.wayland import InputConfig
from libqtile.config import Click, Drag, EzKey, Group, Match, Screen, ScratchPad, DropDown
@arjan-s
arjan-s / overlay_qtile_master.nix
Last active October 9, 2023 18:04
qtile master with qtile-extras on NixOS
(final: super: {
pythonPackagesOverlays =
(super.pythonPackagesOverlays or [])
++ [
(_: pprev: {
qtile = pprev.qtile.overridePythonAttrs (_: {
version = ''unstable-2023-10-06''; # qtile
src = super.fetchFromGitHub {
owner = "qtile";
repo = "qtile";
@arjan-s
arjan-s / qutebrowser.sh
Created January 5, 2021 08:36
qutebrowser start script
#!/bin/bash
qutebrowser
wait
echo "DELETE FROM cookies WHERE host_key NOT LIKE '%github.com%' AND host_key NOT LIKE '%web.whatsapp.com%';" | sqlite3 ~/.local/share/qutebrowser/webengine/Cookies
echo "DELETE FROM History; DELETE FROM CompletionHistory;" | sqlite3 ~/.local/share/qutebrowser/history.sqlite
rm ~/.local/share/qutebrowser/cmd-history
rm -rf ~/.cache/qutebrowser/