Pick one of these approaches
Pick this approach if you want to show the status in the menu bar, like this https://share.getcloudapp.com/9Zu8Ok97
- Install https://github.com/tonsky/AnyBar
- Run it
Pick one of these approaches
Pick this approach if you want to show the status in the menu bar, like this https://share.getcloudapp.com/9Zu8Ok97
| function run(input, parameters) { | |
| const appNames = []; | |
| const skipAppNames = []; | |
| const verbose = true; | |
| const scriptName = 'close_notifications_applescript'; | |
| const CLEAR_ALL_ACTION = 'Clear All'; | |
| const CLEAR_ALL_ACTION_TOP = 'Clear'; | |
| const CLOSE_ACTION = 'Close'; |
| import io | |
| import os | |
| import pathlib | |
| from dotenv import load_dotenv | |
| from google.cloud import storage | |
| from google.oauth2 import service_account | |
| from zipfile import ZipFile, ZipInfo | |
| configurations { detekt } | |
| dependencies { detekt "io.gitlab.arturbosch.detekt:detekt-cli:$detektVersion" } | |
| task detektCi(type: JavaExec, group: "verification") { | |
| description = "Run Kotlin static analysis on changed files." | |
| group = "CI" | |
| main = "io.gitlab.arturbosch.detekt.cli.Main" | |
| classpath = configurations.detekt | |
| doFirst { |
| on alacritty_win() | |
| set _running to (application "Alacritty" is running) | |
| tell application "Alacritty" to activate | |
| tell application "System Events" | |
| repeat while (name of first application process whose frontmost is true) is not "alacritty" | |
| delay 0.05 | |
| end repeat | |
| set _alacritty to first application process whose frontmost is true | |
| -- If Alacritty was running, create a new window to run command |
This is my current (as of 4/30/2020) Yabai and skhdrc config as well as the Ubersicht (http://tracesof.net/uebersicht/) widget I use rather than the Yabai status bar. I went this route rather than the built-in status bar because I didn't like how Yabai as of 2.0.1 handled multiple monitors in the status bar.
Nothing is too far from defaults here, and the spaces.coffee was something I found linked in an issue on Yabai's github page.
| { pkgs ? import <nixpkgs> {} }: | |
| let | |
| # To use this shell.nix on NixOS your user needs to be configured as such: | |
| # users.extraUsers.adisbladis = { | |
| # subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
| # subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
| # }; |
| # Yubikey Udev Rule: running a bash script in case your Yubikey is inserted/removed | |
| ACTION=="add", ENV{PRODUCT}=="1050/407/511", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/bin/pam-session-locker.sh unlock" | |
| ACTION=="remove", ENV{PRODUCT}=="1050/407/511", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/bin/pam-session-locker.sh lock" |
Some applications requires contacting HTTPS endpoints. In those cases you need to supply the CA certificates.
Most Nix applications won't package in the CA certificates, this is because they can make use of the OS provided CA certificate store.
The NixOS location for this is at: /etc/ssl/certs.
The OpenSSL library in Nixpkgs is compiled to use that path if there is no environment variables such as SSL_CERT_FILE.
This is the final part of a series about Algebraic Effects and Handlers.
So we've come to the core topic. The reality is that we've already covered most of it in the previous parts. Especially, in the third part, where we saw delimited continuations at work.