Skip to content

Commit

Permalink
ssd preperation
Browse files Browse the repository at this point in the history
  • Loading branch information
SiliconRaven committed Oct 6, 2019
1 parent a145bd0 commit 98e42b5
Show file tree
Hide file tree
Showing 58 changed files with 2,327 additions and 309 deletions.
9 changes: 3 additions & 6 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ alias free='free -m' # show sizes in MB
alias np='nano -w PKGBUILD'
alias more=less
shopt -s expand_aliases
alias update="sudo pacman -Syyuu"
alias update="yay -Syyuu"
# alias yayupdate="yay -Syyu"
alias pacinstall="sudo pacman -S"
alias pacsearch="sudo pacman -Fs"
Expand Down Expand Up @@ -44,11 +44,6 @@ alias -- -="cd -"

# Shortcuts
alias prompt="cd && code .bash_prompt"
alias aliases="cd && code .aliases"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias pp="cd pyProjects"
alias ps="cd pyScripts"
alias ll="lsd -alF"
alias la="lsd -a"
# Always enable colored `grep` output
Expand Down Expand Up @@ -124,3 +119,5 @@ alias lampp="sudo /opt/lampp/lampp"

alias l="less"
alias keygen='ssh-keygen -t rsa -b 4096 -C "[email protected]"'
alias wgeta="wget --recursive --no-parent"
alias wgeti='wget -r -np -R "index.html*"'
71 changes: 70 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
@@ -1 +1,70 @@
.bash_profile
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH";

[[ $- != *i* ]] && return


# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;

# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob;

# Append to the Bash history file, rather than overwriting it
shopt -s histappend;

# Autocorrect typos in path names when using `cd`
shopt -s cdspell;

# Enable some Bash 4 features when possible:
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`
for option in autocd globstar; do
shopt -s "$option" 2> /dev/null;
done;

# Add tab completion for many Bash commands
if which brew &> /dev/null && [ -r "$(brew --prefix)/etc/profile.d/bash_completion.sh" ]; then
# Ensure existing Homebrew v1 completions continue to work
export BASH_COMPLETION_COMPAT_DIR="$(brew --prefix)/etc/bash_completion.d";
source "$(brew --prefix)/etc/profile.d/bash_completion.sh";
elif [ -f /etc/bash_completion ]; then
source /etc/bash_completion;
fi;

# Enable tab completion for `g` by marking it as an alias for `git`
if type _git &> /dev/null; then
complete -o default -o nospace -F _git g;
fi;

# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2- | tr ' ' '\n')" scp sftp ssh;

# Add tab completion for `defaults read|write NSGlobalDomain`
# You could just use `-g` instead, but I like being explicit
complete -W "NSGlobalDomain" defaults;

# Add `killall` tab completion for common apps
complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes SystemUIServer Terminal Twitter" killall;

#Import colorscheme from 'wal' asynchronously
#& Run the process in the background.
#( ) Hide shell job control messages.
#(cat ~/.cache/wal/sequences &)

# Alternative (blocks terminal for 0-3ms)
#cat ~/.cache/wal/sequences

# To add support for TTYs this line can be optionally added.
source ~/.cache/wal/colors-tty.sh

#export PATH="/home/ted/.pyenv/bin:$PATH"
#eval "$(pyenv init -)"
#eval "$(pyenv virtualenv-init -)"
EDITOR=/usr/bin/nano
TERMINAL=/usr/bin/kitty
3 changes: 2 additions & 1 deletion .xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
xflux -l -1 -g 36 -k 3900 &
done
unset f
fi
Expand All @@ -15,4 +16,4 @@ if [systemd-detect-virt = "oracle"];
/usr/bin/VBoxClient-all
fi

xflux -l -1 -g 36 -k 3900

1 change: 1 addition & 0 deletions autorandr/autorandr
1 change: 1 addition & 0 deletions bspwm/.config
3 changes: 2 additions & 1 deletion bspwm/autostart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ssh-add $HOME/.ssh/github
# conky -c $HOME/.config/bspwm/system-overview &
#run variety &
run nm-applet &
devilspie &
# run pamac-tray &
run xfce4-power-manager &
numlockx on &
Expand All @@ -41,7 +42,7 @@ compton --config $HOME/.config/bspwm/compton.conf &
#nitrogen --set-auto Pictures/blackpink.png
# ulauncher &
$HOME/.redpaper/wallpaper.sh &
wal -i "/home/ted/Pictures/DVDE.png" -n &
wal -i /home/ted/Pictures/Redpaper/Astronaut\ and\ the\ black\ hole\ fantasy\ space\ \[1920x1080\].jpeg -n &
#auto-xflux -k 1800

#Git init
Expand Down
1 change: 1 addition & 0 deletions bspwm/bspwm
39 changes: 7 additions & 32 deletions bspwm/bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ bspc config gapless_monocle true
bspc config focus_by_distance true
bspc config focus_follows_pointer true
bspc config history_aware_focus true
bspc config pointer_motion_interval 5
bspc config pointer_modifier mod4
#bspc config pointer_motion_interval 5
bspc config pointer_modifier mod1
bspc config pointer_action1 move
bspc config pointer_action2 resize_side
bspc config pointer_action2 resize_corner
Expand Down Expand Up @@ -50,10 +50,6 @@ bspc config presel_feedback_color "$color1"
# Use the line below if you are on bspwm < 0.9.4
#bspc config presel_border_color "$color1"


#Single monitor
#bspc monitor -d 1 2 3 4 5 6 7 8 9 10

#Dual monitor
#find out names with arandr or xrandr
bspc monitor eDP1 -d 1 2 3 4 5 6 7 8 9 10
Expand All @@ -75,40 +71,19 @@ bspc monitor eDP1 -d 1 2 3 4 5 6 7 8 9 10

#Floating applications
bspc rule -a Arandr state=floating
bspc rule -a feh
#bspc rule -a mpv state=floating sticky=on
bspc rule -a mpv state=tiling sticky=off
#bspc rule -a Font-manager state=floating
bspc rule -a Galculator state=floating
#bspc rule -a Gpick state=floating sticky=on
#bspc rule -a Nitrogen state=floating
bspc rule -a Oblogout state=floating
#bspc rule -a Pavucontrol state=floating sticky=on
#bspc rule -a Peek state=floating
#bspc rule -a rofi state=floating sticky=on
#bspc rule -a Skype state=floating
#bspc rule -a Stacer state=floating
#bspc rule -a Xfce4-appfinder state=floating sticky=on

#Tiled applications
bspc rule -a Gnome-disks state=tiled
bspc rule -a Xfce4-settings-manager state=tiled

#open applications on specific workspaces
bspc rule -a Firefox desktop='^1'
bspc rule -a Bluetooth state=floating
#bspc rule -a Google-chrome desktop='^1' follow=on
#bspc rule -a Chromium desktop='^1' follow=on
#bspc rule -a Subl3 desktop='^2' follow=on
#bspc rule -a Atom desktop='^2' follow=on
#bspc rule -a Steam desktop='^5'
#bspc rule -a vlc desktop='^6' follow=on
#bspc rule -a mpv desktop='^6' follow=on
#bspc rule -a Vivaldi-stable desktop='^6' follow=on
#bspc rule -a Vivaldi-snapshot desktop='^6' follow=on
#bspc rule -a Transmission-gtk desktop='^7' follow=on
#bspc rule -a Thunar desktop='^8' follow=on
#bspc rule -a discord desktop='^9' follow=on
#bspc rule -a Spotify desktop='^10' follow=on
bspc rule -a firefox desktop='^1'
bspc rule -a persepolis state=floating
bspc rule -a bluetooth state=floating


#Spotify fix --move desktop 10
#sleep 1
Expand Down
1 change: 1 addition & 0 deletions bspwm/yay
14 changes: 14 additions & 0 deletions copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
ln -s -f /home/ted/dotfiles/autorandr/ /home/ted/.config/autorandr
ln -sf /home/ted/dotfiles/bspwm/ /home/ted/.config/bspwm
ln -sf /home/ted/dotfiles/kitty/ /home/ted/.config/kitty
ln -sf /home/ted/dotfiles/polybar/ /home/ted/.config/polybar
ln -sf /home/ted/dotfiles/rofi/ /home/ted/.config/rofi
ln -sf /home/ted/dotfiles/sxhkd/ /home/ted/.config/sxhkd
ln -sf /home/ted/dotfiles/yay/ /home/ted/.config/ bspwm
ln -sf /home/ted/dotfiles/.aliases /home/ted/.aliases
ln -sf /home/ted/dotfiles/.bash_profile /home/ted/.bash_profile
ln -sf /home/ted/dotfiles/.bash_prompt /home/ted/.bash_prompt
ln -sf /home/ted/dotfiles/.bashrc /home/ted/.bashrc
ln -sf /home/ted/dotfiles/.xinitrc /home/ted/.xinitrc
ln -sf /home/ted/dotfiles/wal/ /home/ted/.cache/wal
Loading

0 comments on commit 98e42b5

Please sign in to comment.