Browse Source

Add old dotfiles

master
Tovi Jaeschke-Rogers 4 years ago
parent
commit
cb4484689f
6 changed files with 1765 additions and 0 deletions
  1. +31
    -0
      .bash_profile
  2. +18
    -0
      .dwm/autostart.sh
  3. +17
    -0
      .dwm/dwm-sss
  4. +1644
    -0
      .emoji
  5. +19
    -0
      .inputrc
  6. +36
    -0
      .xinitrc

+ 31
- 0
.bash_profile View File

@ -0,0 +1,31 @@
#!/bin/bash
[[ -f ~/.bashrc ]] && . ~/.bashrc
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
export GOPATH="$HOME/code/go"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/share/games:/usr/local/sbin:/usr/sbin:/sbin:~/.local/bin:/usr/local/go/bin:$GOPATH/bin"
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':')"
fi
export TERMINAL='st'
export EDITOR='vim'
export PAGER='less'
export BROWSER='firefox'
export PULSE_PROP="filter.want=echo-cancel"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/cuda/lib64"
export CUDA_HOME="/opt/cuda"
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

+ 18
- 0
.dwm/autostart.sh View File

@ -0,0 +1,18 @@
#!/bin/bash
xmodmap -e 'clear Lock' &
xmodmap -e 'keycode 135 = Super_R' &
xmodmap -e 'keycode 66 = Escape' &
xmodmap -e 'keycode 9 = Caps_Lock' &
pulseaudio --start &
dunst &
xautolock -time 10 -locker slock &
feh --bg-fill ~/Pictures/Wallpapers/nature/$(ls ~/Pictures/Wallpapers/nature/ | shuf -n 1)
compton -b --backend xrender --config ~/.config/compton/compton.conf &
unclutter &
transmission-daemon &
#conky -d &
~/.dwm/dwm-sss &
~/.bin/greenclip daemon &

+ 17
- 0
.dwm/dwm-sss View File

@ -0,0 +1,17 @@
#! /bin/bash
while true;
do
f=$(cat /sys/class/thermal/thermal_zone0/temp)
t=$(echo $f | cut -b -2).$(echo $f | cut -b 3-)°C
d=$(date '+%a %b %d, %H:%M:%S')
p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
s=$(mpc status | grep -Eo 'playing|paused' || echo "stopped")
S=$(mpc current| cut -c 1-30)
td=$(transmission-remote --list | grep "Downloading" | uniq -c | awk '{print $1}')
[ -z $td ] && td=0
ts=$(transmission-remote --list | grep "Seeding" | uniq -c | awk '{print $1}')
[ -z $ts ] && ts=0
xsetroot -name "Torrents Down: $td Seed: $ts | Mpc $s $S | Pkgs: $p | $d | $t"
sleep 0.5;
done;

+ 1644
- 0
.emoji
File diff suppressed because it is too large
View File


+ 19
- 0
.inputrc View File

@ -0,0 +1,19 @@
$include /etc/inputrc
set editing-mode vi
$if mode=vi
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[6 q\2
set vi-cmd-mode-string \1\e[2 q\2
set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line
set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
Control-a: beginning-of-line
$endif

+ 36
- 0
.xinitrc View File

@ -0,0 +1,36 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
~/.dwm/autostart.sh &
exec dwm

Loading…
Cancel
Save