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 | |
readonly PROGNAME="$(basename "$0")" | |
readonly PROGDIR="$(readlink -m "$(dirname "$0")")" | |
readonly ARGS="$@" | |
#readonly DAYS_IN_YEAR=365 | |
#readonly YEARS=3 | |
#readonly CERT_DAYS= $DAYS_IN_YEAR * $YEARS | |
HOSTNAME="$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 | |
DIR="/var/run/vpnc/defaultroute" | |
# IF VPN is running | |
if [ -a $DIR ]; then | |
STATUS=$(ssh 10.16.1.251 curl -s http://192.168.100.1/cgi-bin/status) | |
else | |
STATUS=$(curl -s http://192.168.100.1/cgi-bin/status) | |
fi |
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 | |
readonly PROGNAME="$(basename "$0")" | |
readonly PROGDIR="$(readlink -m "$(dirname "$0")")" | |
readonly ARGS="$@" | |
HOSTNAME="$1" | |
if [ -z "$HOSTNAME" ]; then |
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
! ------------------------------------------------------------------------------ | |
! ! ROFI Color theme | |
! ! ------------------------------------------------------------------------------ | |
!rofi.font: Hack 11 | |
!rofi.color-enabled: true | |
rofi.color-window: #273238, #071218, #1e2529 | |
rofi.color-normal: #273238, #c1c1c1, #273238, #394249, #ffffff | |
rofi.color-active: #273238, #80cbc4, #273238, #394249, #80cbc4 | |
rofi.color-urgent: #273238, #ff1844, #273238, #394249, #ff1844 |
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 | |
# Smooth brightness control | |
readonly PROGNAME="$(basename "$0")" | |
readonly PROGDIR="$(readlink -m "$(dirname "$0")")" | |
readonly ARGS="$@" | |
function main { |
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
!URxvt*background: #161616 | |
URxvt*foreground: #FFFFFF | |
URxvt*cursorBlink: true | |
URxvt.cursorColor: #FFFFFF | |
!black | |
*color0: #222222 | |
*color8: #666666 | |
!red | |
*color1: #E84F4F |
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 | |
# Get the focused window ID | |
ID=$(xdpyinfo | grep focus | cut -f4 -d " ") | |
# Get the SHELL id | |
PID=$(xprop -id "$ID" | grep -m 1 PID | cut -d " " -f 3) | |
# get the TERM id that is running the SHELL | |
TERM_ID=$(pgrep -P "$PID") | |
# if there is a current working directory navigate to it |
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 | |
# Xorg window id | |
ID=$(xdpyinfo | grep focus | cut -f4 -d " ") | |
# SHELL id | |
PID=$(xprop -id $ID | grep -m 1 PID | cut -d " " -f 3) | |
# TERM id | |
TERM_ID=$(pgrep -P $PID) | |
#echo "ID: $ID" | |
#echo "PID: $PID" |
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/sh | |
usage() { echo "Usage: $0 [-i enable icon]" 1>&2; exit 1; } | |
lock=" " | |
unlock=" " | |
icon=" " #rocket | |
text="VPN" | |
while getopts "d:i" o; |
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 | |
# | |
# Author: Raphael P. Ribeiro <[email protected]> | |
MPCSTAT=`mpc | grep -v '^volume:'` | |
if [ -z "${MPCSTAT}" ]; then # if not playing, exit | |
echo "$line" || exit 1 | |
else | |
if [ $1 == '1' ]; then # if arg = 1, show music symbols | |
MPCSTAT2=`echo "${MPCSTAT}" | sed 's, *, ,g; 1h;1d;2G' | head -n1 | cut -d ']' -f 1 | tr -d [` |
NewerOlder