This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"]'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |