Skip to content

Instantly share code, notes, and snippets.

View witchof0x20's full-sized avatar
🏴
nya

Jade witchof0x20

🏴
nya
View GitHub Profile
@witchof0x20
witchof0x20 / arxiv_cool.js
Last active March 18, 2023 01:23
Bring back the old (cooler) arxiv favicon
// ==UserScript==
// @name Bring back the old (cooler) arxiv favicon
// @version 1
// @grant none
// @match https://www.arxiv.org/*
// @match https://arxiv.org/*
// ==/UserScript==
window.addEventListener('load', function() {
let links = document.querySelectorAll('link[rel="icon"]');
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.programs.vim.ale;
in
{
options.programs.vim.ale = {
enable = mkEnableOption "ALE plugin for vim";
fixOnSave = mkOption {
type = types.bool;
@witchof0x20
witchof0x20 / sway.nix
Last active January 28, 2022 01:15
GDM+sway+home-manager on NixOS
# Goes in the system config. Creates a custom package containing ONLY a desktop entry
# This desktop entry just spawns sway with a login shell, similarly to if you ran it from a tty
# Lets you just use the home-manager sway without duplicating anything into the system config
{ config, lib, pkgs, ... }:
{
services.xserver.displayManager.sessionPackages = [
((
pkgs.writeTextDir "share/wayland-sessions/sway.desktop" ''[Desktop Entry]
Name=Sway
Comment=Sway run from a login shell