A collection of commands that change the Arc Browser icon on macOS.
Theme | Command |
---|---|
Candy Arc | defaults write company.thebrowser.Browser currentAppIconName candy |
# assumed commands: | |
# git (plugin management) | |
# wget (downloading preview script) | |
# bat (tab preview) | |
# delta (tab preview) | |
# w3m (tab preview) | |
# bsdtar (tab preview) | |
# jq (tab preview) | |
# mediainfo (tab preview) | |
# odt2txt (tab preview) |
# Setup directories | |
__BASE_DIR="$HOME/Public" | |
## Config directory | |
export XDG_CONFIG_HOME="$__BASE_DIR/Config" | |
## Misc directories | |
__MISC_BASE_DIR="$__BASE_DIR/Etc" | |
export POWERCORD_DIR="$__BASE_DIR/Programs/powercord" | |
export GOPATH="$__MISC_BASE_DIR/Go" |
{ config, pkgs, lib, ... }: | |
let | |
cfg = config.services.btrbk; | |
sshEnabled = cfg.sshAccess != [ ]; | |
serviceEnabled = cfg.instances != { }; | |
attr2Lines = attr: | |
let | |
pairs = lib.attrsets.mapAttrsToList (name: value: { inherit name value; }) attr; | |
isSubsection = value: | |
if builtins.isAttrs value then true |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
################################################################################ | |
# System |
Enabling the Raspberry Pi camera on HASSOS installations is unfortunately not as simple as connecting the camera and configuring Home Assistant as described at https://www.home-assistant.io/integrations/rpi_camera.
For the camera to work at all, an alternate firmware needs to be loaded when the Raspberry Pi boots. On Raspberry Pi OS (and many others), the alternate firmware is included with the OS installation image, and switching to the alternate firmware is accomplished by running raspi-config and selecting "Enable Camera" from the menu. HASSOS does not include either the alternate firmware or the raspi-config program, so all of the steps need to be done manually.
The steps below attempt to describe the steps that need to be performed. They have worked for me on a Raspberry Pi 3B+ running HASSOS 4.11 through 4.15. If you have a different setup your mileage may vary (but hopefully you'll get enough hints from the below to get it working).
A Home Assista
blueprint: | |
name: Yet Another Motion Automation | |
description: > | |
# YAMA V10 | |
Turn on lights or scenes when motion is detected. | |
Four different scenes can be defined depending on time of day. | |
#!/bin/sh | |
set -e | |
root_disk() { | |
diskutil info -plist / | |
} | |
apfs_volumes_for() { | |
disk=$1 | |
diskutil apfs list -plist "$disk" |
{ config, pkgs, lib, ... }: { | |
imports = [ | |
(import <nixpkgs/nixos/modules/system/etc/etc.nix>) | |
]; | |
options.system.build.etc = lib.mkOption { type = lib.types.package; }; | |
options.system.activationScripts.etc = | |
lib.mkOption { type = lib.types.unspecified; }; | |
config = { |