Skip to content

Instantly share code, notes, and snippets.

@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active July 9, 2024 11:26
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
{ lib, pkgs, config, ... }:
let
cfg = config.services.nixos-rollback;
get-system-generation = pkgs.writeShellScriptBin "get-system-generation" ''
#!${pkgs.stdenv.shell}
set -euo pipefail
/var/run/current-system/sw/bin/nix-env --list-generations --profile /nix/var/nix/profiles/system | ${pkgs.gnugrep}/bin/grep current | ${pkgs.gawk}/bin/awk '{print $1}'
@ejohnso49
ejohnso49 / flake.nix
Last active July 30, 2023 23:26
Zephyr Nix Flake
{
description = "Flake used to setup development environment for Zephyr";
# Nixpkgs / NixOS version to use.
inputs.nixpkgs.url = "nixpkgs/nixos-21.11";
# mach-nix used to create derivation for Python dependencies in the requirements.txt files
inputs.mach-nix.url = "mach-nix/3.5.0";
outputs = { self, nixpkgs, mach-nix }: