Quickly switch between your audio devices.
Script uses pactl - Pulse Audio Control. It uses the ID of your audio sinks (line 4, 5)
- Move the script to your home directory e.g ~/Scripts/audio_switch.sh
| # Make sure the repo is cloned with --bare | |
| # Guide: https://nicknisi.com/posts/git-worktrees/ | |
| # Paste the following in your .zshrc | |
| alias newtree='new-worktree' | |
| new-worktree() { | |
| local branch_name="$1" | |
| local repo_dir="PATH TO YOUR REPO" | |
| local worktree_dir="$repo_dir/$branch_name" |
| #!/bin/bash | |
| # Setup | |
| # touch ~/.git/hooks/pre-commit | |
| # chmod +x ~/.git/hooks/pre-commit | |
| # git config --global core.hooksPath ~/.git/hooks | |
| # Get the current user email | |
| user_email=$(git config --global user.email) | |
| user_email=$(git config --global user.email) |
| [ | |
| { | |
| "context": "Editor", | |
| "bindings": { | |
| "alt-up": "editor::MoveLineUp", | |
| "alt-down": "editor::MoveLineDown", | |
| "alt-shift-down": "editor::DuplicateLine", | |
| "alt-shift-up": ["workspace::SendKeystrokes", "alt-shift-down up"], | |
| "cmd-shift-k": "editor::DeleteLine" | |
| } |
| mkdir ~/global-git-hooks | |
| code ~/global-git-hooks/pre-commit | |
| chmod +x ~/global-git-hooks/pre-commit | |
| git config --global core.hooksPath ~/global-git-hooks |
| {"LION":{"latency":183.540149,"download":18.95268006495637,"upload":13.125318661571571,"timestamp":"2023-08-11T12:09:08.312074035+04:00"},"MARS":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.495608854+04:00"},"METISS":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.541537373+04:00"},"SAFE1":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.358202271+04:00"},"SAFE2":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.404005203+04:00"},"SAFE3":{"latency":0,"download":0,"upload":0,"timestamp":"2023-08-11T12:09:08.449744506+04:00"}} |
| /* | |
| //INPUT | |
| API_KEY | |
| SHEET_ID | |
| SHEET_NAME(optional) | |
| // Returns | |
| headers | |
| items(formatter as { header: value } |
| [ | |
| { "keys": ["ctrl+shift+l"], "command": "find_all_under" }, | |
| { "keys": ["ctrl+f2"], "command": "find_all_under" }, | |
| { "keys": ["alt+shift+i"], "command": "split_selection_into_lines" }, | |
| { "keys": ["ctrl+b"], "command": "toggle_side_bar" }, | |
| { "keys": ["ctrl+shift+b"], "command": "build" }, | |
| { "keys": ["alt+up"], "command": "swap_line_up" }, | |
| { "keys": ["alt+down"], "command": "swap_line_down" }, | |
| { "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
| { "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} }, |
| #!make | |
| include .env | |
| export $(shell sed 's/=.*//' .env) | |
| build: | |
| @echo "hi ${SOURCE_DATABASE_NAME}" | |
| export: | |
| @(docker exec -i ${SOURCE_CONTAINER_ID} mysqldump -u ${SOURCE_DATABASE_USERNAME} -p${SOURCE_DATABASE_PASSWORD} ${SOURCE_DATABASE_NAME}) > ../directusdb/dump.sql |
| <template> | |
| <div> | |
| <label>{{ label }}</label> | |
| <input | |
| v-on="listeners" | |
| v-bind="$attrs" | |
| /> | |
| </div> | |
| </template> |