Skip to content

Instantly share code, notes, and snippets.

View ackzell's full-sized avatar

Axel Uriel Martínez Castillo ackzell

View GitHub Profile
@ackzell
ackzell / README.md
Last active February 2, 2023 16:10 — forked from pgillet/README.md
Switch audio output devices on Linux - Fork

Audio Output Switcher

This script will cycle to the next available audio output device. It can be tied to a hotkey to easily be triggered. This is handy, for example, for swapping between HDMI audio and headphones.

Install

  1. Download the audio-device-switch.sh script and place it in /usr/local/bin.
  2. Make the script executable: sudo chmod 755 /usr/local/bin/audio-device-switch.sh.
  3. Open the Keyboard Shortcuts settings page, add a new shortcut, tell it to execute audio-device-switch.sh, and set up your shortcut!
  4. Install the notify-send library if you want to see a popup notification when the audio device switches: sudo apt install libnotify-bin.

Customizations

@ackzell
ackzell / toJson.js
Created June 12, 2018 05:28
Convert vuetifyjs.com from older .js format to .json files
const { lstatSync, readdirSync, readdir, writeFile } = require('fs')
const { join, resolve } = require('path')
/**
* There is this one dependency that would need to be either installed
* globally or locally
*/
const NodeESModuleLoader = require('node-es-module-loader');
const loader = new NodeESModuleLoader();
@ackzell
ackzell / vscode-material.css
Last active December 13, 2016 20:59
Started to work on a material-like experience for vscode, based on https://gist.github.com/dominique-mueller/0d9f5aec202804caca4881838685cfc4
/* Sidebar - Explorer items - HEIGHT CHANGE NOT WORKING */
.monaco-tree .monaco-tree-rows > .monaco-tree-row {
/* height: 30px !important;
padding-top: 4px;
padding-bottom: 4px; */
cursor: default;
}
/* Editor - Scrollbar */
@ackzell
ackzell / gist:2bd8f99996ae374ce05f
Created June 30, 2015 02:50
angular package.json
{
"name": "angular",
"version": "1.3.15",
"description": "HTML enhanced for web apps",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
{
"name": "helloWorld",
"description": "helloWorld Project Generated from HotTowel Angular",
"version": "0.0.0",
"engines": {
"node": "0.12.x",
"npm": "2.7.4"
},
"scripts": {
"init": "npm install",
@ackzell
ackzell / gist:8653d3e65e7f7188ef23
Created June 30, 2015 02:24
jquery bower.json
{
"name": "jquery",
"version": "2.1.4",
"main": "dist/jquery.js",
"license": "MIT",
"ignore": [
"**/.*",
"build",
"dist/cdn",
"speed",
@ackzell
ackzell / testGist
Created October 25, 2012 20:47
Testing gist...
Hello Gist!!