This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { getClipboard } = require(`${process.mainModule.path}/utils`) | |
// Modify to your hearth's content! | |
const gitCheckout = (kind = '') => | |
`g co -b ${kind ? kind + '/' : ''}${getClipboard()}` | |
const surroundWith = (start = '', end = '') => `${start}${getClipboard()}${end}` | |
const removeSurround = (start, end) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Packages installed from AUR that use anything Qt related, fail to start after | |
# upgrading. | |
# | |
# So far this seems to be the solution, that I had googled now at least 3 times | |
# after breaking some apps: | |
# "Reinstall qt5-styleplugins from scratch. Do NOT use the cached download" | |
yay -S --answerclean All --answerdiff None --answeredit None \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* my overrides */ | |
// https://github.com/arkenfox/user.js/ | |
/* override recipe: enable session restore ***/ | |
/* 0102: set startup page [SETUP-CHROME] | |
* 0=blank, 1=home, 2=last visited page, 3=resume previous session | |
* [NOTE] Session Restore is cleared with history (2811, 2812), and not used in Private Browsing mode | |
* [SETTING] General>Startup>Restore previous session ***/ | |
user_pref("browser.startup.page", 3); | |
/* 1003: disable storing extra session data [SETUP-CHROME] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ╔═════╗ ╔═══╗ | |
# ║ S ║ ║ V ║ Screen Layout Switcher | |
# ╚═════╝ ║ ║ | |
# ╔═════╗ ╚═══╝ Handle switching the layout of the connected monitors: | |
# ║ P ║ (S)econdary, (V)ertical, and (P)rimary | |
# ╚═════╝ Usage: ./switch-screenlayout.sh [1-4] | |
# Debug options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hooks onto `chpwd` with the official util `add-zsh-hook` | |
# `export N=false` to disable auto-switching versions | |
function auto-switch-node-version() { | |
# track if the version changed | |
local changed=false | |
# exit early | |
[[ ${N} == false || ! $(command -v n) ]] && return | |
# attempt to change the version based on the "engine" entry in package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Display playerctl's metadata in a notification | |
# Debug options | |
# set -euxo pipefail | |
metadata=$(playerctl metadata) | |
notification_icon=${1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Create inside of an Obsidian vault symlinks to files located elsewhere | |
# Debug options | |
# set -euxo pipefail | |
# Obsidian vault where the symlinks will be created | |
vault=${HOME}/Sync/obsidian/obsidian-vault/no-sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Clone a git repository and cd into it | |
# | |
# NOTE: this file needs to be *sourced*. E.g. | |
# alias gclin="source /path/to/git-clone-and-auto-cd.sh" | |
# | |
# (my personal mnemonic for (g)it (cl)one (in)) | |
# gclin https://github.com/cesalazar/.vim.git my_vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# useful general .bash_profile tweaks for color loving VI fans | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;36' | |
export CLICOLOR=1 | |
alias ls='ls -G' | |
export LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rb=90' | |
export COLOR_NC='\e[0m' # No Color | |
export COLOR_WHITE='\e[1;37m' | |
export COLOR_BLACK='\e[0;30m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Rules for Stylus | |
* https://addons.mozilla.org/en-US/firefox/addon/styl-us/ | |
*/ | |
/* Hide the annoying (i) button on the top-right corner */ | |
.ytp-chrome-top-buttons { | |
display: none; | |
} | |
/* Display the controls and title only on hover */ |
NewerOlder