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
#SingleInstance force | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
#c::Run, "C:\Program Files (x86)\CopyQ\copyq.exe" toggle | |
#PgDn::WinSet, Bottom,, A |
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
-- Plugins | |
require("packer").startup(function(use) | |
-- Packer can manage itself | |
use 'wbthomason/packer.nvim' | |
-- Addon to Telescope to search key mappings | |
-- You have to use its custom function to define mappings | |
use { | |
"lazytanuki/nvim-mapper", |
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 | |
# customizable | |
LIST_DATA="#{window_name} #{pane_title} #{pane_current_path} #{pane_current_command}" | |
FZF_COMMAND="fzf-tmux -p --delimiter=: --with-nth 4 --color=hl:2" | |
# do not change | |
TARGET_SPEC="#{session_name}:#{window_id}:#{pane_id}:" | |
# select pane |
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
## launchers and selectors | |
# show help on key bindings | |
super + F1 | |
st -g 150x30 -c terminal_keys_help -e ~/.config/sxhkd/show_help.sh | |
# start terminal emulator | |
super + Return | |
alacritty |
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
#!/usr/bin/env python2.7 | |
#based on https://gist.github.com/hhatto/6405956 from hhato | |
import sys | |
new_vim_color = [] | |
xtermMap = { | |
'0': '#161616', '1': '#ac3c67', '2': '#8f8e24', '3': '#c18401', '4': '#017da4', | |
'5': '#7c3194', '6': '#09a3aa', '7': '#676763', '8': '#373b41', '9': '#c02e57', | |
'10': '#e5dd62', '11': '#e9cb1f', '12': '#072c38', '13': '#b294bb', '14': '#76c4ad', |
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
# Remove current tab from tabbed | |
super + mod1 + t; r | |
tabc.sh $(bspc query -N -n focused) remove | |
# At given direction: join two windows into a new tabbed or add window to an existing tabbed | |
super + mod1 + t; {Left,Down,Up,Right} | |
tabc.sh $(bspc query -N -n {west,south,north,east}) add $(bspc query -N -n focused) |
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
from __future__ import (absolute_import, division, print_function) | |
# You can import any python module as needed. | |
import os | |
# You always need to import ranger.api.commands here to get the Command class: | |
from ranger.api.commands import Command | |
class annotate_file(Command): |
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 | |
GEOMETRY="80x20+570+300" | |
FONT="RobotoMono Nerd Font:size=12" | |
CLASS="stLaunch" | |
_st_fzf() { | |
fzf +m --tiebreak=length,end --layout=reverse --color=prompt:7,pointer:7,spinner:2,info:8,hl:2,hl+:2,marker:0 --margin=1,2 --prompt='∴ ' $@ | |
} |
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
if which fasd >/dev/null; then | |
# install fasd hooks and basic aliases in the shell | |
eval "$(fasd --init auto)" | |
# if there is fzf available use it to search fasd results | |
if which fzf >/dev/null; then | |
alias v >/dev/null && unalias v | |
alias vd >/dev/null && unalias vd | |
alias z >/dev/null && unalias z |
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 | |
VGROUP=lxcGuestsShared | |
name_regex="^[a-zA-Z0-9_]+$" | |
size_regex="^[0-9]+G$" | |
usage() { | |
echo -e "$1\nUsage: $0 <NAME> <SIZE>\n\t\ | |
where:\tNAME - the nameof the new container (should match '$name_regex')\n\ |