123 Commits

Author SHA1 Message Date
ewpt3ch 9f807be1e4 moved gopath infront of path so definition sticks 2019-05-05 03:08:28 +00:00
ewpt3ch 18c6f7ca08 use fish shell while having bash execute login scripts 2019-05-03 04:21:37 +00:00
ewpt3ch bcec9442a5 fixed typo 2019-05-03 03:49:35 +00:00
ewpt3ch f98c892e5d theme for liquidprompt 2019-05-03 03:45:58 +00:00
ewpt3ch 8689b5c41e file to show branch checkedout 2019-05-03 03:45:29 +00:00
ewpt3ch 6c71b17259 cleaned out things not necessary for a server 2019-05-03 03:44:26 +00:00
ewpt3ch 661dffd464 init a server branch 2019-05-03 02:26:28 +00:00
ewpt3ch ffc562affa pulled yoga2 2019-05-03 02:20:07 +00:00
ewpt3ch 2f6f026bc6 readded tpm need to research merging 2019-04-28 12:15:53 -06:00
ewpt3ch ea0fa94294 updated config for tmux > 2.9 2019-04-28 12:10:11 -06:00
ewpt3ch 949e6da439 added Tmux Plugin Manager tpm 2019-04-28 12:07:55 -06:00
ewpt3ch 9e1089e6a3 multi display script 2018-10-26 09:55:10 -06:00
ewpt3ch a5d97835b6 encryption stuff 2018-10-26 09:54:49 -06:00
ewpt3ch 978aac3e32 removed dropbox from login 2018-10-26 09:53:41 -06:00
ewpt3ch 4c80b12418 added a toggle ctrl alt m for multihead 2018-02-11 21:18:03 -07:00
ewpt3ch ef3b958097 cleaned up formating 2018-02-11 20:47:34 -07:00
ewpt3ch 90c41c12b6 switched to better encryption commands for mutt 2018-02-08 23:53:22 -07:00
ewpt3ch 705cc52098 muttrc for ewpt3ch.com through zoho 2018-02-07 19:42:21 -07:00
ewpt3ch 4fabdc1ee8 track blogging script 2018-02-01 20:25:50 -07:00
ewpt3ch 545a2fd5b9 commented out bell options 2018-02-01 20:23:09 -07:00
ewpt3ch b6d72b4846 downloads updates and installs notifies via twmnd 2017-05-12 20:36:41 -06:00
ewpt3ch 0bdc065d3e echos the correct commands 2017-05-10 21:33:05 -06:00
ewpt3ch 725368d210 fixed backwards if statement and spaces 2017-05-10 20:32:42 -06:00
ewpt3ch 4144f8b251 add dirs to be created 2017-05-07 14:35:48 -06:00
ewpt3ch 74340f27b9 changed volume to use pactl 2017-04-22 21:54:49 -06:00
ewpt3ch 6cca93eaf5 added GOPATH and moved some stuff around 2017-04-18 21:01:20 -06:00
ewpt3ch e9c4606451 instructions for managing yubikey openpgp 2017-04-06 22:31:16 -06:00
ewpt3ch a4f7fad2b3 do not start music manage 2017-04-05 22:20:32 -06:00
ewpt3ch f00607f3d3 moved cache location 2017-04-05 22:20:07 -06:00
ewpt3ch 7de37fcabe made cacher dir and subdirs for chrome and chromium 2017-04-05 22:19:29 -06:00
ewpt3ch 942797d0e6 dpass to use pass from dmenu 2017-03-30 22:32:15 -06:00
ewpt3ch 31a4033d1d switched nodejs management to nvm 2017-02-05 23:57:52 -07:00
ewpt3ch 0006365990 reduced volume notification duration 2016-09-03 21:21:31 -06:00
ewpt3ch c8a59f068a added local node to path 2016-07-27 22:12:21 -06:00
ewpt3ch 967db03761 new local-config notes 2016-06-20 12:46:44 -06:00
ewpt3ch f03e16031a added local-config to readme 2016-06-20 12:46:24 -06:00
ewpt3ch cf945753b1 removed vol % from statusbar 2016-06-12 22:34:34 -06:00
ewpt3ch 51838a8ab4 removed redundant script 2016-06-12 22:33:15 -06:00
ewpt3ch 3da805616d script to set volume and send notification to twmn 2016-06-12 22:29:42 -06:00
ewpt3ch 5964574344 changed volume control to volumeset 2016-06-12 22:24:43 -06:00
ewpt3ch 029097c52d removed trailing spaces 2016-06-12 20:48:19 -06:00
ewpt3ch ddbe072917 start twmnd 2016-06-12 19:37:31 -06:00
ewpt3ch 64413b0f99 removed tresorit 2016-06-12 18:53:11 -06:00
ewpt3ch 7c6d9e6599 alt-ctrl screenshot added 2016-06-12 18:52:34 -06:00
ewpt3ch da9000de7a low battery notification 25% 2016-06-12 18:51:22 -06:00
ewpt3ch a83a7d8361 dont need vmware gtk 2016-06-12 18:49:13 -06:00
ewpt3ch 467be122d2 added twmn.conf 2016-06-12 18:46:22 -06:00
ewpt3ch 7e43d4c70d added pushbullet notifications on low battery 2015-11-07 23:16:13 -07:00
ewpt3ch dcd17ec55a changed mid battery upper limit to 35% 2015-11-07 16:41:14 -07:00
ewpt3ch 0d0eff8e4b added usage layout and naming infor to README 2015-10-30 21:45:21 -06:00
ewpt3ch c90a9f4187 changed shell to bash 2015-10-28 21:47:54 -06:00
ewpt3ch b2fa4a1bb2 set geometry to match dwm bar on yoga2 2015-10-28 21:10:18 -06:00
ewpt3ch 5ad4b180d4 interrobangrc added to dotfiles, already customized colors to match dwm and made border zero 2015-10-28 20:48:12 -06:00
ewpt3ch d0d7e8da3e added XF86..Play/Pause for bluetooth 2015-10-18 21:54:03 -06:00
ewpt3ch a855cedc4d xinitrc from etc with old xinitrc added 2015-09-24 19:02:06 -06:00
ewpt3ch 0a1c69b6d6 xinitrc from etc with old xinitrc added 2015-09-24 19:01:43 -06:00
ewpt3ch b7041824ba changed order 2015-09-22 21:51:47 -06:00
ewpt3ch c5bcfb0f68 added hash bang, necessary? 2015-08-02 10:50:53 -06:00
ewpt3ch 3a4e83d632 external file for arch aliases 2015-08-02 10:49:05 -06:00
ewpt3ch 85a9742482 moved arch specific aliases to external file 2015-08-02 10:48:42 -06:00
ewpt3ch d4842b4434 added tresorit to xinit 2015-07-12 22:36:47 -06:00
ewpt3ch a36b2e013f removed tresorit 2015-07-05 20:29:22 -06:00
ewpt3ch fe32289058 removed btsync added tresorit 2015-07-05 19:50:25 -06:00
ewpt3ch 29016fd2d0 vimrc moved to .vim 2015-06-21 21:36:34 -06:00
ewpt3ch 65793efe24 added pathogen and pencil airline theme 2015-06-21 21:18:22 -06:00
ewpt3ch db887259ee added alt [ prev cmus track and alt ] next cmus track 2015-06-20 17:32:14 -06:00
ewpt3ch 22c075fdce merged master bashrc 2015-06-15 18:12:10 -06:00
ewpt3ch e0721fa469 xinitrc added necessary & 2015-06-15 17:37:35 -06:00
ewpt3ch a47e418e06 added caps lock remap to ctrl 2015-06-14 23:29:43 -06:00
ewpt3ch 2f84aa880a status line updates 2015-06-14 13:24:45 -06:00
ewpt3ch 434415fb3e more colors 2015-06-14 00:10:59 -06:00
ewpt3ch 749c4713bc set status background to match terminal 2015-06-14 00:03:43 -06:00
ewpt3ch e1be65bbb9 added things and colors from painless tmux 2015-06-13 23:22:49 -06:00
ewpt3ch 485e577760 larger xcursor 2015-06-13 23:21:53 -06:00
ewpt3ch 1d451739a5 fixed termite background 2015-06-13 20:34:00 -06:00
ewpt3ch 4bde930bcf changed colors 2015-06-13 20:30:36 -06:00
ewpt3ch 3c8d1afbbb removed id_rsa from keychain 2015-06-13 20:17:51 -06:00
ewpt3ch bc4150c2ab switched keychain to ed25519 2015-06-13 20:16:26 -06:00
ewpt3ch 10741b1918 more painless tmux config adds 2015-06-07 19:26:41 -06:00
ewpt3ch d095ae369d added bindings suggested in Painless Tmux 2015-06-07 18:10:17 -06:00
ewpt3ch 19c0190106 added npm completion 2015-06-07 18:04:47 -06:00
ewpt3ch 4e0e36bc8a added tag to dwm, switched alt <tag> behavior to toggle 2015-06-07 18:04:17 -06:00
ewpt3ch c407d609b1 fixed xinitrc not being integrated into dotfiles 2015-05-31 17:24:09 -06:00
ewpt3ch d134c73d63 added another bell feature 2015-05-31 17:23:34 -06:00
ewpt3ch ccb453319e added plug icon and colors for power 2015-05-31 16:58:44 -06:00
ewpt3ch 90479c4119 added bell to all windows 2015-05-31 16:57:22 -06:00
ewpt3ch a438fd787f added bell visual for urgency hints 2015-05-31 16:56:33 -06:00
ewpt3ch 216a6d33a8 added unclutter to hide mouse 2015-05-31 16:55:56 -06:00
ewpt3ch a51b25450f added loop for status 2015-05-31 16:53:21 -06:00
ewpt3ch ada2ce5391 added colors 2015-05-28 22:09:30 -06:00
ewpt3ch eabd9e1b36 color changes 2015-05-28 22:08:48 -06:00
ewpt3ch 39908358c6 added network speed 2015-05-25 20:58:02 -06:00
ewpt3ch e0dc150571 cpu and mem added to dwmstatus 2015-05-25 20:12:22 -06:00
ewpt3ch 6f3baf9deb added volume and mute 2015-05-25 18:51:34 -06:00
ewpt3ch 30b8a0a740 battery, date, and music in dwmstatus 2015-05-25 18:12:43 -06:00
ewpt3ch c2c27d893a changed log location 2015-05-25 14:03:57 -06:00
ewpt3ch bf77e69dc2 added BROWSER 2015-05-25 14:01:59 -06:00
ewpt3ch 9ec0623d57 fixed font and tags for icons 2015-05-25 13:59:52 -06:00
ewpt3ch 1c60cb9771 initial commit of new dwmstart and dwmstatus 2015-05-24 21:12:29 -06:00
ewpt3ch 653cf53417 changed cursor, removed colors 2015-05-24 19:33:54 -06:00
ewpt3ch d3c99a252a changed colors in dwm 2015-05-18 14:29:36 -06:00
ewpt3ch c3c626ff47 added pacman aliases 2015-05-18 14:29:16 -06:00
ewpt3ch 9129108092 fixed missed XF86 key include dwm 2015-05-17 21:51:33 -06:00
ewpt3ch 9aa8a44ee5 dwm config updated for colors 2015-05-17 21:28:43 -06:00
ewpt3ch 0c9d12dae1 changed termite config colors to term.sexy solarized dark output 2015-04-29 22:46:29 -06:00
ewpt3ch 602796a236 changed play symbol for cmus 2015-04-29 22:27:14 -06:00
ewpt3ch 129084cc57 switched battery placement to beginning of bar 2015-04-24 20:20:42 -06:00
ewpt3ch 3fce05bae3 cpu % and mem % added to conky 2015-04-17 22:27:01 -06:00
ewpt3ch 57ba97faaf added network speed and glyphs to conky 2015-04-17 22:11:17 -06:00
ewpt3ch a28f3f35f1 set firefox to open on current tag(s) 2015-04-05 23:28:53 -06:00
ewpt3ch acc7040035 added termite to TERM 2015-03-29 21:40:36 -06:00
ewpt3ch d8e3a9eb78 redshift added manual location 2015-03-29 21:39:56 -06:00
ewpt3ch 8b716cff1e 4 tagkeys from 9 2015-03-29 21:38:42 -06:00
ewpt3ch 208ad8f89e commented out btsync, testing syncthing 2015-03-29 21:37:30 -06:00
ewpt3ch d7bd0fc127 added cmus-stats to yoga2 branch 2014-11-09 20:49:46 -07:00
ewpt3ch bb79497d94 added cmus-stats.sh to conky 2014-11-09 20:47:55 -07:00
ewpt3ch 4f9016bfef added chrome and power.sh to yoga2 branch 2014-11-09 20:45:44 -07:00
ewpt3ch 0272acd027 use words do to ohsnap being too small 2014-11-09 19:28:56 -07:00
ewpt3ch d89a180398 increase font size for 3200x1800 resolution 2014-11-09 19:25:41 -07:00
ewpt3ch 1ab1cbdc93 increase font size for 3200x1800 resolution 2014-11-09 19:25:13 -07:00
ewpt3ch c0517b131d increased dpi for 3200x1800 resolution 2014-11-09 19:20:09 -07:00
ewpt3ch bde2a68aeb new pulseaudio start method 2014-11-09 19:18:25 -07:00
ewpt3ch b2a78a9b67 switched vars for yoga2 2014-11-09 19:17:35 -07:00
23 changed files with 238 additions and 350 deletions
View File
+7
View File
@@ -6,3 +6,10 @@ currently the repo is .dotfiles in ~ with symlinks from the default file to it's
#### naming conventions
Kernels: kernel.*machine-name* ie kernel.yoga2
<<<<<<< HEAD
=======
#### Local config
Notes on local configuration stuff are in Local-config.*machine-name* ir Local-config.yoga2
Things included kernel cmdline, Xorg config, other customizations for working around bugs
or hardware issues.
>>>>>>> 2f6f026bc689f7612d2a67cfd9ae8478510dd898
-73
View File
@@ -1,73 +0,0 @@
!Xft settings
Xft*dpi: 96
Xft*antialias: true
Xft*hinting: true
Xft*hintstyle: full
Xft*rgba: rgb
!Xcursor
Xcursor.theme: gentoo-blue
Xcursor.size: 22
!xterm
xterm*termName: xterm-256color
xterm*locale: true
xterm*savelines: 4096
xterm*VT100.geometry: 80x32
xterm*faceName: incosolata-10
xterm*utf8: 1
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
*background: S_base03
*foreground: S_base00
*cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
alias pacman='sudo pacman'
alias pacupg='pacman -Syu'
alias pacins='pacman -U'
alias pacdiff='sudo pacdiff'
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
#script to update packages installed from aur
#uses cower -ud and makepkg -i
#written because meat stopped working
#path variables
AURBUILD=/tmp/makepkg
#create necessary dirs if not exist
mkdir -p ${AURBUILD}
cower --update --download --target=${AURBUILD}
cd ${AURBUILD}
for dir in ${AURBUILD}/*
do
cd ${dir}
twmnc -t "aur-build" -c "building ${dir}" -d 5000
makepkg --install
cd ${AURBUILD}
rm -r ${dir}
done
+23 -25
View File
@@ -12,36 +12,34 @@ if [[ $- != *i* ]] ; then
return
fi
# Put your fun stuff here.
#Shell Variables
export GOPATH="/home/ewpt3ch/go"
PATH="/home/ewpt3ch/bin:/home/ewpt3ch/tmux:${GOPATH}/bin:${PATH}:./:"
export EDITOR=nvim
export PAGER=less
#Create dirs for things that won't themselves
mkdir -p /tmp/makepkg
#source /etc/profile.d/bash-completion.sh
source ~/todo.txt-cli/todo_completion
#pacman aliases
alias pacman='sudo pacman'
alias pacupg='pacman -Syu'
alias pacins='pacman -U'
#
alias t='clear && $HOME/Dropbox/todo/todo.sh -d $HOME/Dropbox/todo/todo.cfg'
#source ~/bin/npm_completion
#bring in aliases for arch
source ~/.dotfiles/archalias.bash
#alias
alias vim='nvim'
alias nano='nano -w'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
complete -F _todo t
PATH="/home/ewpt3ch/bin:/home/ewpt3ch/tmux:${PATH}:./:"
export VMWARE_USE_SHIPPED_GTK="yes"
export EDITOR=vim
export PAGER=less
export LIBVA_DRIVER_NAME=vdpau
#create cache-dir for chrome
mkdir -p /tmp/ewpt3ch-cache
eval $(keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ecdsa ~/.ssh/id_rsa)
#Check if dropbox is running
if dropbox.py running ; then
#start dropbox
~/bin/dropbox.py start
fi
#check if btsync running and start
#if ! ps -A | grep -q btsync ; then
#start btsync
# btsync --config ~/.config/btsync/btsync.conf
#fi
eval $(keychain --eval --agents ssh -Q --quiet ~/.ssh/id_ed25519)
#export NVM_DIR="/home/ewpt3ch/.nvm"
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
# Only load Liquid Prompt in interactive shells, not from a script or from scp
[[ $- = *i* ]] && source ~/liquidprompt/liquidprompt
exec fish
-2
View File
@@ -1,2 +0,0 @@
#!/bin/bash
exec google-chrome-beta --disk-cache-dir="/tmp/ewpt3ch-cache"
-19
View File
@@ -1,19 +0,0 @@
#!/bin/bash
if [ -x /usr/bin/cmus-remote ]
then
status=`cmus-remote -Q | grep status | awk '{print $2}'`
if [ $status == "paused" ]
then
status="ç"
else
status="æ"
fi
duration=`cmus-remote -Q | grep duration | awk '{print $2}'`
position=`cmus-remote -Q | grep position | awk '{print $2}'`
((timeleft = $duration - $position))
((timelefth = timeleft / 60))
((timeleftm = timeleft % 60))
artist=`cmus-remote -Q | grep -w artist | cut -d ' ' -f3-`
song=`cmus-remote -Q | grep title | cut -d ' ' -f3-`
echo $artist'-'$song $status $timelefth':'$timeleftm
fi
-15
View File
@@ -1,15 +0,0 @@
# Check http://conky.sf.net for an up-to-date-list.
background no
format_human_readable yes
out_to_console yes
out_to_x no
#use_xft yes
#xftfont DroidSansMono:size=10
#xftalpha 0.8
update_interval 2
total_run_times 0
use_spacer none
TEXT
${exec ~/bin/cmus-stats.sh} ${exec ~/bin/volume.sh} ${exec ~/bin/power.sh} ${wireless_essid wlp0s29f7u1} ${addr wlp0s29f7u1} $time
+1
View File
@@ -97,6 +97,7 @@ TERM xterm-256color
TERM xterm-88color
TERM xterm-color
TERM xterm-debian
TERM xterm-termite
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
EIGHTBIT 1
Executable
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
#based on https://github.com/cdown/passmenu
#and jasnowryan.com/blog
shopt -s nullglob globstar
nb='#2F4F4F'
nf='#00FFFF'
sb='#2F4F4F'
sf='#ADFF2F'
font="Inconsolataicon-12"
dmenucmd=( dmenu -i -fn "$font" -nb "$nb" -nf "$nf" -sb "$sb" -sf "$sf" )
prefix=${PASSWORD_STORE_DIR:-~/.password-store}
files=( "$prefix"/**/*.gpg )
files=( "${files[@]#"$prefix"/}" )
files=( "${files[@]%.gpg}" )
fbase=( "${files[@]##*/}" )
word=$(printf '%s\n' "${fbase[@]}" | "${dmenucmd[@]}" "$@")
if [[ -n $word ]]; then
for match in "${files[@]}"; do
if [[ $word == ${match#*/} ]]; then
/usr/bin/pass show -c "$match" 2>/dev/null
fi
done
fi
-125
View File
@@ -1,125 +0,0 @@
/* See LICENSE file for copyright and license details. */
/*includes*/
#include <X11/XF86keysym.h> /*Needed for mulitmedia keys*/
/* appearance */
static const char font[] = "Inconsolataicon-12";
#define NUMCOLORS 9
static const char colors[NUMCOLORS][ColLast][9] = {
// border foreground background
{ "#212121", "#00FFFF", "#2F4F4F" }, // 0 = normal
{ "#696969", "#ADFF2F", "#2F4F4F" }, // 1 = selected
{ "#212121", "#F8F8FF", "#C71585" }, // 2 = urgent
{ "#212121", "#90EE90", "#778899" }, // 3 = important
{ "#212121", "#FFFF00", "#2F4F4F" }, // 4 = yellow
{ "#212121", "#00BFFF", "#2F4F4F" }, // 5 = blue
{ "#212121", "#00FFFF", "#2F4F4F" }, // 6 = cyan
{ "#212121", "#FF00FF", "#2F4F4F" }, // 7 = magenta
{ "#212121", "#F5F5F5", "#2F4F4F" }, // 8 = grey
};
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
/* tagging */
static const char *tags[] = { "\u01A0", "\u01a5", "\u01A1 ", "\u01A2", "\u01A3 " };
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 0, False, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", colors[0][ColBG], "-nf", colors[0][ColFG], "-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL };
static const char *termcmd[] = { "termite", NULL };
/*functions for volume control*/
static const char *upvol[] = { "amixer", "sset", "Master", "1%+", NULL};
static const char *downvol[] = { "amixer", "sset", "Master", "1%-", NULL};
static const char *mute[] = { "amixer", "sset", "Master", "toggle", NULL};
/*cmus functions*/
static const char *cmusplaypause[] = { "cmus-remote", "-u", NULL};
static const char *cmusnext[] = { "cmus-remote", "--next", NULL};
static const char *cmusprev[] = { "cmus-remote", "--prev", NULL};
static Key keys[] = {
/* modifier key function argument */
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol} },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol} },
{ 0, XF86XK_AudioMute, spawn, {.v = mute } },
{ MODKEY, XK_u, spawn, {.v = cmusplaypause} },
{ MODKEY, XK_bracketright, spawn, {.v = cmusnext} },
{ MODKEY, XK_bracketleft, spawn, {.v = cmusprev} },
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, toggleview, {0} },
{ ClkTagBar, 0, Button3, view, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
+19
View File
@@ -0,0 +1,19 @@
####How to install and maintain GPG keys on my Yubikey
From: [PGP and SSH on Yubikey](https://www.esev.com/blog/post/2015-01-pgp-ssh-key-on-yubikey-neo/)
We want to keep out Master Key on a USB drive that a) doesn't leave the house or office and b) is rarely connected to a computer. You can also use a livecd and airgapped machine for even more security. I deem for my attack profile that having the Master Key offline most of the time is good enough. This may change in the future. My USB drive is also used to back up sensitive info so gpg stuff is under gnupg/
```bash
#Store Master key on USB drive
mv .gnupg .gnupg.orig
ln -s /PATHTOUSBDRIVE/gnupg .gnupg
#Check gpg.conf for strong hash and encryption preferences
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES
#generate a Master key if there isn't one
#if we have a secret key
+71
View File
@@ -0,0 +1,71 @@
## | InterobangRC
## |
## | Lines starting with a # are ignored as comments, but this file is
## | not processed by a shell interpreter.
## BASIC CONFIGURATION
#set font = fixed
set font = -*-terminus-medium-*-*-*-32-*-*-*-*-*-*-*
set geometry = top
set geometry = 3200x35-1+0
set colors = #00FFFF #2F4F4F #48E084 #242424 #64FFAA #484848
set border = 0px #BBE0EE
set bangchar = !
set run_hook = %s
#set run_hook = %s || (notify-send "Error: command not found";interrobang)
#set autocomp = 1
set list = true
set last = true
set margin = -80
set shell = /bin/bash
set flags = -c
## COMMON BANGS AND COMPLETITON OPTIONS
bang term = termite -e %s
bang web = ewpt3chfirefox %s
bang pdf = mupdf %s
bang man = termite -e man %s
bang ddg = ewpt3chfirefox https://duckduckgo.com/?q=%s
bang calc = echo "interrobang ignored \"%s\""
bang ? = echo "interrobang ignored \"%s\""
tab default = percontation "%s" %s | sort -u
tab calc = str="%s%s"; echo "!calc $(echo ${str#\!calc} | bc -l)"
tab ? = ignore="%s%s"; awk '/^bang/ {print "!"$2" ";}' ~/.interrobangrc
## EXAMPLES OF COMPLEX COMPLETION OR SCRIPTING
#####
## percontation can find .desktop files:
## path: (default) show binaries in $PATH
## desktop: list desktop files that match
## desktop+: same as above, plus substring matching with comments
## NOTE: see the desktop bang definition below
## compgen uses bash's default completion
#tab default = percontation desktop path "%s" %s | sort -u
#tab default = percontation desktop+ path "%s" %s | sort -u
#tab default = compgen -P "%s" -cf %s
#####
## Example logout tool:
## uncomment the following bang and tab lines
#bang logout = case "%s" in shutdown) sudo systemctl poweroff ;; sleep) sudo systemctl suspend ;; reboot) sudo systemctl reboot ;; logout) killall xinit ;; cancel) exit ;; esac
#tab logout = echo -e "cancel\nshutdown\nsleep\nreboot\nlogout" | grep "^%s%s"
#####
## desktop bangs
## The first version ignores any parameters to the desktop file and
## just executes the associated binary
## The second version passes parameters and parses the desktop file
## properly, but requires an external tool to do so. This tool
## is not included in the interrobang package.
#bang desktop = ARG="%s"; FILE=$(find /usr/share/applications/ -name ${ARG%% *}.desktop | head -1); $(awk '/^Exec=/ {sub(/Exec=/,"",$1); print $1;}' $FILE)
#bang desktop = ARG="%s"; FILE=$(find /usr/share/applications/ -name ${ARG%% *}.desktop | head -1); PARAM=${ARG#* }; desktop-exec $FILE $PARAM
+1 -1
View File
@@ -5,7 +5,7 @@
# If you want to use different themes and features,
# you can load the corresponding files here:
#source ~/code/liquidprompt/nojhan.theme
source ~/liquidprompt/liquid.theme
#LP_PS1_FILE="~/code/liquidprompt/nojhan.ps1"
#############
+29
View File
@@ -0,0 +1,29 @@
#fetch passwords
source "gpg -dq $HOME/.mutt/zoho-mutt-pass.gpg |"
#ewpt3ch.com imap
set folder = imaps://imappro.zoho.com
set imap_user = eric@ewpt3ch.com
set imap_pass = $my_pass
set spoolfile = +INBOX
mailboxes = +INBOX
set imap_keepalive = 300
set mail_check = 120
#ewpt3ch.com smtp
set realname = 'Eric W Phillips'
set from = eric@ewpt3ch.com
set use_from = yes
set smtp_url=smtps://$imap_user:$imap_pass@smtp.zoho.com
#options for gpgme
set crypt_use_gpgme = yes
set crypt_replysign = yes
set crypt_replyencrypt = yes
set crypt_replysignencrypted = yes
set crypt_verify_sig = yes
#view html in a browser
set mailcap_path = ~/.mutt/mailcap
alternative_order text/plain text/html
auto_view text/html
-22
View File
@@ -1,22 +0,0 @@
#!/bin/bash
if `acpi -a | grep -q on`
then
echo "Â"
else
bat=`acpi -b | awk '{print $4}'`
bat="${bat%%%*}" #remove percent
if [[ $bat -gt 75 ]]
then
echo "ó"
elif [[ $bat -gt 25 ]]
then
if [[ $bat -gt 45 ]]
then
echo "ò"
else
echo "ò" $bat"%"
fi
else
echo "ñ" $bat"%"
fi
fi
-11
View File
@@ -1,11 +0,0 @@
;Global Settings
[redshift]
temp-day=6300
temp-night=4000
transition=1
[manual]
;denver
lat=39.898700
lon=-105.040452
-33
View File
@@ -1,33 +0,0 @@
#Customizations
[options]
font = Inconsolata 10
# Solarized dark color scheme
[colors]
foreground = #839496
foreground_bold = #eee8d5
#foreground_dim = #888888
background = #002b36
cursor = #93a1a1
# if unset, will reverse foreground and background
#highlight = #839496
# colors from color0 to color254 can be set
color0 = #073642
color1 = #dc322f
color2 = #859900
color3 = #b58900
color4 = #268bd2
color5 = #d33682
color6 = #2aa198
color7 = #eee8d5
color8 = #002b36
color9 = #cb4b16
color10 = #586e75
color11 = #657b83
color12 = #839496
color13 = #6c71c4
color14 = #93a1a1
color15 = #fdf6e3
-8
View File
@@ -1,8 +0,0 @@
syntax enable
set background=dark
colorscheme solarized
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
iabbrev <// </<C-X><C-O>
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
mute=`amixer get Master | grep "Front Left:" | awk '{print $6}'`
if [ $mute == "[on]" ]
then
vol=`amixer get Master | grep "Front Left:" | awk '{print $5}' | tr -d '[]'`
echo "ì" $vol
else
echo "ë"
fi
Executable
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# script for changing the volume and sending
# notification to twmn using twmnc
step=1
sink="@DEFAULT_SINK@"
if [[ $# -eq 1 ]]; then
case $1 in
"up")
pactl set-sink-mute $sink false
pactl set-sink-volume $sink +$step%
direction='increased to';;
"down")
pactl set-sink-volume $sink -$step%
direction='decreased to';;
"mute")
pactl set-sink-mute $sink toggle;;
*)
echo "Invalid option";;
esac
fi
muted=`pactl list sinks | grep "Mute" | awk '{print $2}'`
vol=`pactl list sinks | grep "front-left" | awk '{print $5}'`
if [[ $muted == "yes" ]]; then
twmnc -t 'volume' -c 'muted' -d 100
else
twmnc -t 'volume' -c "${direction}${vol}" -d 100
fi
-7
View File
@@ -1,7 +0,0 @@
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
#exec openbox-session
conky | while read -r; do xsetroot -name "$REPLY"; done &
redshift &
pulseaudio --start &
google-musicmanager &
exec dbus-launch --exit-with-session --sh-syntax dwm