This file contains hidden or 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/sh | |
#Toggle a default gap setting if it's not already set. | |
if [ -z "$BSPWM_GAPS" ]; then export BSPWM_GAPS=true; fi | |
#Get settings | |
. ~/.bspwm_theme | |
bspc config border_width $b_border_width | |
bspc config split_ratio $b_split_ratio |
This file contains hidden or 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
# | |
# bspwm hotkeys | |
# | |
super + c | |
echo "$(bspc query -D -d)" > /tmp/bspwmdtop_swap | |
#Not done yet. | |
super + v | |
bspc desktop $(bspwc query -D -d) -n tmp; \ |
This file contains hidden or 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
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Sid":"NameForBucketPolicy", | |
"Effect":"Allow", | |
"Principal":{ | |
"AWS":[ | |
"arn:aws:iam::111111111111:user/iam_user", | |
"arn:aws:iam::222222222222:user/iam_user", |
This file contains hidden or 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/sh | |
# info.sh | |
# Output information with formatted background colors in lemonbar format | |
# This script can take arguments for what bar information to display(meant to be the names of the functions) | |
# clickable area aliases | |
AC='%{A:' # start click area | |
AB=':}' # end click area cmd | |
AE='%{A}' # end click area | |
# %{R} # swap current bg/fg |
This file contains hidden or 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 bash | |
# panel | |
# Start a panel on every monitor | |
# This script makes the assumption that monitors names are arranged left to right, named in increasing int value(1 2 3..) | |
# if this is not the case, you can override this with the num_mon variable below. | |
# Read the theme for display settings | |
. ~/.bspwm_theme | |
# Add panel scripts to path |
This file contains hidden or 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/sh | |
# panel_bar | |
# a script to interpret panel fifo information(workspace/window titles/system info) | |
# clickable area aliases | |
AC='%{A:' # start click area | |
AB=':}' # end click area cmd | |
AE='%{A}' # end click area | |
# Shell commands for clickable areas |
This file contains hidden or 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
# functions | |
function swap() { | |
# Swap 2 filenames around, if they exist (from Uzi's bashrc). | |
local TMPFILE=tmp.$$ | |
[ $# -ne 2 ] && echo "swap: 2 arguments needed" && return 1 | |
[ ! -e $1 ] && echo "swap: $1 does not exist" && return 1 | |
[ ! -e $2 ] && echo "swap: $2 does not exist" && return 1 |
This file contains hidden or 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 | |
if [ $# -eq 0 ]; then | |
echo -e " \n \t ERROR: No arguments provided" | |
echo -e " \t USAGE: img2sf <path/to/image> <path/to/output>\n" | |
exit 1 | |
fi | |
imgw=$(convert -print "%w\n" "$1" /dev/null) |
This file contains hidden or 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
# Run node_exporter | |
start on startup | |
script | |
/usr/bin/node_exporter | |
end script |
This file contains hidden or 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 | |
# | |
# | |
# | |
# Start on runlevels 3, 4 and 5. Start late, kill early. | |
# chkconfig: 345 95 05 | |
# | |
# | |
#!/bin/bash |
OlderNewer