From a35f03bcc7414c81ac8123523184b10f9459a99b Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:09:40 -0400 Subject: [PATCH 01/45] Initial commit --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0e606c6 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# dotfiles +My personal dotfiles From 38303db6f45fb9d9e5df6e6f76dcc12910af013e Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:11:20 -0400 Subject: [PATCH 02/45] Create README.md --- ChromeOS/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 ChromeOS/README.md diff --git a/ChromeOS/README.md b/ChromeOS/README.md new file mode 100644 index 0000000..9ef2875 --- /dev/null +++ b/ChromeOS/README.md @@ -0,0 +1 @@ +# ChromeOS Dotfiles From 1f534289213484f25d21dc6b7697ed0574b737c7 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:12:57 -0400 Subject: [PATCH 03/45] Create .bashrc.backup --- ChromeOS/bashrc/.bashrc.backup | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ChromeOS/bashrc/.bashrc.backup diff --git a/ChromeOS/bashrc/.bashrc.backup b/ChromeOS/bashrc/.bashrc.backup new file mode 100644 index 0000000..0d33ef5 --- /dev/null +++ b/ChromeOS/bashrc/.bashrc.backup @@ -0,0 +1,18 @@ +# /etc/skel/.bashrc +# +# This file is sourced by all *interactive* bash shells on startup, +# including some apparently interactive shells such as scp and rcp +# that can't tolerate any output. So make sure this doesn't display +# anything or bad things will happen ! + + +# Test for an interactive shell. There is no need to set anything +# past this point for scp and rcp, and it's important to refrain from +# outputting anything in those cases. +if [[ $- != *i* ]] ; then + # Shell is non-interactive. Be done now! + return +fi + + +# Put your fun stuff here. From 4426da9df2f4d3eca444fdbd73718173e1072f50 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:16:33 -0400 Subject: [PATCH 04/45] Create README.md --- ChromeOS/bashrc/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ChromeOS/bashrc/README.md diff --git a/ChromeOS/bashrc/README.md b/ChromeOS/bashrc/README.md new file mode 100644 index 0000000..27c25a8 --- /dev/null +++ b/ChromeOS/bashrc/README.md @@ -0,0 +1,18 @@ +# ChromeOS Bashrc Files +### Important! +The file named +``` +.bashrc +``` +is the file that i currently use. +
+The file named +``` +.bashrc.backup +``` +is the stock ChromeOS bashrc file. This is not to be messed with.. it exsists so that i can safely revert to a working file. +
+All other files will be named +``` +.bashrc[version name] +``` From ae0fce01138e0069c520f1b9d4d57545966434d7 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:19:03 -0400 Subject: [PATCH 05/45] Create .bashrc --- ChromeOS/bashrc/.bashrc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ChromeOS/bashrc/.bashrc diff --git a/ChromeOS/bashrc/.bashrc b/ChromeOS/bashrc/.bashrc new file mode 100644 index 0000000..ec2b1f2 --- /dev/null +++ b/ChromeOS/bashrc/.bashrc @@ -0,0 +1,24 @@ +# /etc/skel/.bashrc +# +# This file is sourced by all *interactive* bash shells on startup, +# including some apparently interactive shells such as scp and rcp +# that can't tolerate any output. So make sure this doesn't display +# anything or bad things will happen ! + + +# Test for an interactive shell. There is no need to set anything +# past this point for scp and rcp, and it's important to refrain from +# outputting anything in those cases. +if [[ $- != *i* ]] ; then + # Shell is non-interactive. Be done now! + return +fi + + +# Put your fun stuff here. + +# aliases +alias fucking=sudo + +# banner code +cat ~/banners/current From de157d987d62abbc1618e96ca6fc7e9763d6cdc8 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:19:59 -0400 Subject: [PATCH 06/45] Update .bashrc --- ChromeOS/bashrc/.bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/ChromeOS/bashrc/.bashrc b/ChromeOS/bashrc/.bashrc index ec2b1f2..216f9db 100644 --- a/ChromeOS/bashrc/.bashrc +++ b/ChromeOS/bashrc/.bashrc @@ -16,6 +16,7 @@ fi # Put your fun stuff here. +clear # aliases alias fucking=sudo From 621a340c42fe8270a5061ef88e9b24423f346216 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:22:56 -0400 Subject: [PATCH 07/45] Update .bashrc --- ChromeOS/bashrc/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChromeOS/bashrc/.bashrc b/ChromeOS/bashrc/.bashrc index 216f9db..c5f0ea3 100644 --- a/ChromeOS/bashrc/.bashrc +++ b/ChromeOS/bashrc/.bashrc @@ -22,4 +22,4 @@ clear alias fucking=sudo # banner code -cat ~/banners/current +cat ~/banners/.current From f85fa4c993e5fd9f3c5164dbcd24dd1a9a0bc0ae Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 25 Oct 2017 13:23:39 -0400 Subject: [PATCH 08/45] Create .current --- ChromeOS/banners/.current | 1 + 1 file changed, 1 insertion(+) create mode 100644 ChromeOS/banners/.current diff --git a/ChromeOS/banners/.current b/ChromeOS/banners/.current new file mode 100644 index 0000000..ab5c1cf --- /dev/null +++ b/ChromeOS/banners/.current @@ -0,0 +1 @@ +Shell started From 7a8af1a4dd3a97356842d07c70cfcfa952b2fbbe Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 17 Dec 2017 11:04:43 -0500 Subject: [PATCH 09/45] Create .zshrc --- ubuntu/.zshrc | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 ubuntu/.zshrc diff --git a/ubuntu/.zshrc b/ubuntu/.zshrc new file mode 100644 index 0000000..5aa139c --- /dev/null +++ b/ubuntu/.zshrc @@ -0,0 +1,97 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +# Path to your oh-my-zsh installation. + export ZSH=/home/evan/.oh-my-zsh + +# Set name of the theme to load. Optionally, if you set this to "random" +# it'll load a random theme each time that oh-my-zsh is loaded. +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes +ZSH_THEME="robbyrussell" + +# Set list of themes to load +# Setting this variable when ZSH_THEME=random +# cause zsh load theme from this variable instead of +# looking in ~/.oh-my-zsh/themes/ +# An empty array have no effect +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) + +# Uncomment the following line to use case-sensitive completion. +# CASE_SENSITIVE="true" + +# Uncomment the following line to use hyphen-insensitive completion. Case +# sensitive completion must be off. _ and - will be interchangeable. +# HYPHEN_INSENSITIVE="true" + +# Uncomment the following line to disable bi-weekly auto-update checks. +# DISABLE_AUTO_UPDATE="true" + +# Uncomment the following line to change how often to auto-update (in days). +# export UPDATE_ZSH_DAYS=13 + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +# ENABLE_CORRECTION="true" + +# Uncomment the following line to display red dots whilst waiting for completion. +# COMPLETION_WAITING_DOTS="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +# DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. +# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# HIST_STAMPS="mm/dd/yyyy" + +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + +# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=( + git +) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# export MANPATH="/usr/local/man:$MANPATH" + +# You may need to manually set your language environment +# export LANG=en_US.UTF-8 + +# Preferred editor for local and remote sessions +# if [[ -n $SSH_CONNECTION ]]; then +# export EDITOR='vim' +# else +# export EDITOR='mvim' +# fi + +# Compilation flags +# export ARCHFLAGS="-arch x86_64" + +# ssh +# export SSH_KEY_PATH="~/.ssh/rsa_id" + +# Set personal aliases, overriding those provided by oh-my-zsh libs, +# plugins, and themes. Aliases can be placed here, though oh-my-zsh +# users are encouraged to define aliases within the ZSH_CUSTOM folder. +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" + +# custom stuff +screenfetch From a8530c34bc8eebc75dbac5308e7d30ef3b7797fa Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 24 Dec 2017 19:39:31 -0500 Subject: [PATCH 10/45] Update and rename .bashrc to .bashrc1 --- ChromeOS/bashrc/{.bashrc => .bashrc1} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename ChromeOS/bashrc/{.bashrc => .bashrc1} (99%) diff --git a/ChromeOS/bashrc/.bashrc b/ChromeOS/bashrc/.bashrc1 similarity index 99% rename from ChromeOS/bashrc/.bashrc rename to ChromeOS/bashrc/.bashrc1 index c5f0ea3..8038dc4 100644 --- a/ChromeOS/bashrc/.bashrc +++ b/ChromeOS/bashrc/.bashrc1 @@ -5,7 +5,7 @@ # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen ! - + # Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. From d392d5a5de462af45bfe3524ece298c71600a9eb Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 24 Dec 2017 19:40:07 -0500 Subject: [PATCH 11/45] Add files via upload --- ChromeOS/bashrc/bashrc | 108 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 ChromeOS/bashrc/bashrc diff --git a/ChromeOS/bashrc/bashrc b/ChromeOS/bashrc/bashrc new file mode 100644 index 0000000..933230a --- /dev/null +++ b/ChromeOS/bashrc/bashrc @@ -0,0 +1,108 @@ +# /etc/skel/.bashrc +# +# This file is sourced by all *interactive* bash shells on startup, +# including some apparently interactive shells such as scp and rcp +# that can't tolerate any output. So make sure this doesn't display +# anything or bad things will happen ! + + +# Test for an interactive shell. There is no need to set anything +# past this point for scp and rcp, and it's important to refrain from +# outputting anything in those cases. +if [[ $- != *i* ]] ; then + # Shell is non-interactive. Be done now! + return +fi + + +# Put your fun stuff here. +clear +screenfetch + +PS1='\[\033[38;5;43m\]\u\[\033[38;5;31m\]@\[\033[38;5;43m\]\h\[\033[38;5;31m\]:\[\033[38;5;183m\]\w\[\033[00m\] \[\033[38;5;214m\]$\[\033[0m\] ' + +# aliases +alias ll="ls -l" +alias la="ls -a" +alias please='sudo $(history -p !!)' +alias vi=vim +alias :q="exit" +alias :wq="exit" +alias cls=clear +alias bashreload="source ~/.bashrc" +alias lip="ip addr | grep inet | grep wlan0" +alias p4='ping 4.2.2.2 -c 4' + +sci(){ + if [ $# != 1 ]; then + crew -h + else + crew install $1 + fi +} + +csearch(){ + if [ $# != 1 ]; then + echo "Usage: csearch " + else + crew search | grep -e "$1" + fi +} + +mkcd() { + if [ $# != 1 ]; then + echo "Usage: mkcd " + else + mkdir -p $1 && cd $1 + fi +} + +cl() +{ + last_dir="$(ls -Frt | grep '/$' | tail -n1)" + if [ -d "$last_dir" ]; then + cd "$last_dir" + fi +} + +sud() { # do sudo, or sudo the last command if no argument given + if [[ $# == 0 ]]; then + sudo $(history -p '!!') + else + sudo "$@" + fi +} + +up(){ + local d="" + limit=$1 + for ((i=1 ; i <= limit ; i++)) + do + d=$d/.. + done + d=$(echo $d | sed 's/^\///') + if [ -z "$d" ]; then + d=.. + fi + cd $d +} +extract () { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xvjf $1 ;; + *.tar.gz) tar xvzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xvf $1 ;; + *.tbz2) tar xvjf $1 ;; + *.tgz) tar xvzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "don't know how to extract '$1'..." ;; + esac + else + echo "'$1' is not a valid file!" + fi + } From cc48164475e98d59c95f5c477f487f227e017fbd Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 24 Dec 2017 19:40:45 -0500 Subject: [PATCH 12/45] Update and rename bashrc to .bashrc --- ChromeOS/bashrc/{bashrc => .bashrc} | 1 + 1 file changed, 1 insertion(+) rename ChromeOS/bashrc/{bashrc => .bashrc} (99%) diff --git a/ChromeOS/bashrc/bashrc b/ChromeOS/bashrc/.bashrc similarity index 99% rename from ChromeOS/bashrc/bashrc rename to ChromeOS/bashrc/.bashrc index 933230a..0a7cf63 100644 --- a/ChromeOS/bashrc/bashrc +++ b/ChromeOS/bashrc/.bashrc @@ -106,3 +106,4 @@ extract () { echo "'$1' is not a valid file!" fi } + From 6cee3a55b455e977d99a8bcfab5c7e61ff1e41bf Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 19 Mar 2018 13:02:20 -0400 Subject: [PATCH 13/45] Create .zshrc --- ChromeOS/zsh/.zshrc | 132 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 ChromeOS/zsh/.zshrc diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc new file mode 100644 index 0000000..f868ce9 --- /dev/null +++ b/ChromeOS/zsh/.zshrc @@ -0,0 +1,132 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored +zstyle :compinstall filename '/home/chronos/user/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +unsetopt beep +bindkey -v +# End of lines configured by zsh-newuser-install + +# prompt stuff +autoload -U colors && colors +NEWLINE=$'\n' +export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" +setopt prompt_subst +autoload -Uz vcs_info +zstyle ':vcs_info:*' actionformats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' +zstyle ':vcs_info:*' formats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' + +zstyle ':vcs_info:*' enable git cvs svn + +# or use pre_cmd, see man zshcontrib +vcs_info_wrapper() { + vcs_info + if [ -n "$vcs_info_msg_0_" ]; then + echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" + fi +} +export RPROMPT=$'%@ $(vcs_info_wrapper) %?' +#other stuff + +clear +screenfetch + +#dont mess with this +alias ls="ls --color=auto" + +# aliases +alias ll="ls -l" +alias la="ls -a" +alias please='sudo $(history -p !!)' +alias vi=vim +alias :q="exit" +alias :wq="exit" +alias cls=clear +alias zshreload="source ~/.zshrc" +alias lip="ip addr | grep inet | grep wlan0" +alias p4='ping 4.2.2.2 -c 4' + +sci(){ + if [ $# != 1 ]; then + crew -h + else + crew install $1 + fi +} + +csearch(){ + if [ $# != 1 ]; then + echo "Usage: csearch " + else + crew search | grep -e "$1" + fi +} + +mkcd() { + if [ $# != 1 ]; then + echo "Usage: mkcd " + else + mkdir -p $1 && cd $1 + fi +} + +cl() +{ + last_dir="$(ls -Frt | grep '/$' | tail -n1)" + if [ -d "$last_dir" ]; then + cd "$last_dir" + fi +} + +sud() { # do sudo, or sudo the last command if no argument given + if [[ $# == 0 ]]; then + sudo $(history -p '!!') + else + sudo "$@" + fi +} + +up(){ + local d="" + limit=$1 + for ((i=1 ; i <= limit ; i++)) + do + d=$d/.. + done + d=$(echo $d | sed 's/^\///') + if [ -z "$d" ]; then + d=.. + fi + cd $d +} + +extract () { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xvjf $1 ;; + *.tar.gz) tar xvzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xvf $1 ;; + *.tbz2) tar xvjf $1 ;; + *.tgz) tar xvzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "don't know how to extract '$1'..." ;; + esac + else + echo "'$1' is not a valid file!" + fi + } From 2481dd9c9595626560794f3514ec19446935abdf Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 19 Mar 2018 13:10:09 -0400 Subject: [PATCH 14/45] Update .zshrc --- ChromeOS/zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc index f868ce9..1854405 100644 --- a/ChromeOS/zsh/.zshrc +++ b/ChromeOS/zsh/.zshrc @@ -14,6 +14,10 @@ unsetopt beep bindkey -v # End of lines configured by zsh-newuser-install +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git +echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc +source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + # prompt stuff autoload -U colors && colors NEWLINE=$'\n' From 882ee77db3944820492ed72876becaa0d28e1c8e Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 27 May 2018 19:51:05 -0400 Subject: [PATCH 15/45] Update .zshrc --- ChromeOS/zsh/.zshrc | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc index 1854405..8cc45a1 100644 --- a/ChromeOS/zsh/.zshrc +++ b/ChromeOS/zsh/.zshrc @@ -14,8 +14,8 @@ unsetopt beep bindkey -v # End of lines configured by zsh-newuser-install -git clone https://github.com/zsh-users/zsh-syntax-highlighting.git -echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc +#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git +#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # prompt stuff @@ -42,17 +42,25 @@ vcs_info_wrapper() { export RPROMPT=$'%@ $(vcs_info_wrapper) %?' #other stuff -clear -screenfetch +# clear +# screenfetch #dont mess with this alias ls="ls --color=auto" +alias pip="python3 -m pip" + # aliases + +#pandoc +alias docx="pandoc -s -o" + +alias school="cd /media/removable/SD\ Card/School" +alias sdcard="cd /media/removable/SD\ Card/" alias ll="ls -l" alias la="ls -a" alias please='sudo $(history -p !!)' -alias vi=vim +# alias vi=vim alias :q="exit" alias :wq="exit" alias cls=clear @@ -68,6 +76,14 @@ sci(){ fi } +search(){ + if [ $# != 1 ]; then + echo "please enter a name to search for" + else + ls | grep "$1" + fi +} + csearch(){ if [ $# != 1 ]; then echo "Usage: csearch " @@ -133,4 +149,12 @@ extract () { else echo "'$1' is not a valid file!" fi - } +} +#cls +#screenfetch +source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +eval $(thefuck --alias) +export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux +export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man From a02c9aa7bcfd80f4009d3d28d465eff98a372378 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 23 Jul 2018 13:30:23 -0400 Subject: [PATCH 16/45] [gitbot] autocommit --- ubuntu/.config/.compton.conf | 6 + ubuntu/.config/i3/config | 231 +++++++++++++++++++++++++++++++++ ubuntu/.config/i3status/config | 46 +++++++ ubuntu/.zshrc | 215 +++++++++++++++++++----------- 4 files changed, 422 insertions(+), 76 deletions(-) create mode 100644 ubuntu/.config/.compton.conf create mode 100644 ubuntu/.config/i3/config create mode 100644 ubuntu/.config/i3status/config diff --git a/ubuntu/.config/.compton.conf b/ubuntu/.config/.compton.conf new file mode 100644 index 0000000..d2df2bb --- /dev/null +++ b/ubuntu/.config/.compton.conf @@ -0,0 +1,6 @@ +# Fading +fading = true; # Fade windows during opacity changes. +fade-delta = 12; # The time between steps in a fade in milliseconds. (default 10). +fade-in-step = 0.15; # Opacity change between steps while fading in. (default 0.028). +fade-out-step = 0.15; # Opacity change between steps while fading out. (default 0.03). +no-fading-openclose = false; # Fade windows in/out when opening/closing. diff --git a/ubuntu/.config/i3/config b/ubuntu/.config/i3/config new file mode 100644 index 0000000..77a8de3 --- /dev/null +++ b/ubuntu/.config/i3/config @@ -0,0 +1,231 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run + +# use rofi instead + +bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" + +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +exec --no-startup-id nitrogen --restore +exec_always --no-startup-id compton -f + +# gaps + +gaps outer 5 +gaps inner 10 + +#smart_gaps on + +# windows style workspace switcher + +bindsym $mod+Control+Right workspace next +bindsym $mod+Control+Left workspace prev + +workspace_auto_back_and_forth yes + +# Set window focusing to only focus if requester is on screen + +focus_on_window_activation smart + +# Audio Manager + +bindsym $mod+Shift+a exec pavucontrol + +# window lock + +bindsym Control+Mod1+l exec i3lock-fancy + +# Go to sleep + +bindsym Control+Mod1+s exec systemctl suspend + +# Screen Shots +bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' +bindsym Control+Print exec gnome-screenshot -i + +# Network Manager + +exec_always --no-startup-id nm-applet + + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + colors { + background #2f343f + statusline #2f343f + separator #4b5262 + + # colour of border, background, and text + focused_workspace #2f343f #bf616a #d8dee8 + active_workspace #2f343f #2f343f #d8dee8 + inactive_workspace #2f343f #2f343f #d8dee8 + urgent_workspace #2f343f #ebcb8b #2f343f + } + status_command i3status + position top +} + +new_window 1pixel diff --git a/ubuntu/.config/i3status/config b/ubuntu/.config/i3status/config new file mode 100644 index 0000000..e0d9a51 --- /dev/null +++ b/ubuntu/.config/i3status/config @@ -0,0 +1,46 @@ +general { + output_format = "i3bar" + colors = false + markup = pango + interval = 5 + color_good = '#2f343f' + color_degraded = '#ebcb8b' + color_bad = '#ba5e57' +} + +order += "load" +order += "cpu_temperature 0" +order += "disk /" +order += "disk /home" +order += "ethernet enp1s0" +order += "wireless wlp2s0" +order += "volume master" +order += "battery 1" +order += "tztime local" + +load { + format = " %5min Load " +} + +cpu_temperature 0 { + format = " TEMP: %degrees °C " + path = "/sys/class/thermal/thermal_zone0/temp" +} + +disk "/" { + format = " HDD2: %free Free " +} + +volume master { + format = " VOL: %volume " + format_muted = "VOL: Muted " + device = "default" + mixer = "Master" + mixer_idx = 0 +} + + +tztime local { + format = " %time " + format_time = "%a %-d %b %H:%M" +} diff --git a/ubuntu/.zshrc b/ubuntu/.zshrc index 5aa139c..1456eb1 100644 --- a/ubuntu/.zshrc +++ b/ubuntu/.zshrc @@ -1,97 +1,160 @@ -# If you come from bash you might have to change your $PATH. -# export PATH=$HOME/bin:/usr/local/bin:$PATH +# The following lines were added by compinstall -# Path to your oh-my-zsh installation. - export ZSH=/home/evan/.oh-my-zsh +zstyle ':completion:*' completer _complete _ignored +zstyle :compinstall filename '/home/chronos/user/.zshrc' -# Set name of the theme to load. Optionally, if you set this to "random" -# it'll load a random theme each time that oh-my-zsh is loaded. -# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes -ZSH_THEME="robbyrussell" +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +unsetopt beep +bindkey -v +# End of lines configured by zsh-newuser-install -# Set list of themes to load -# Setting this variable when ZSH_THEME=random -# cause zsh load theme from this variable instead of -# looking in ~/.oh-my-zsh/themes/ -# An empty array have no effect -# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) +#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git +#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc +#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -# Uncomment the following line to use case-sensitive completion. -# CASE_SENSITIVE="true" +# prompt stuff +autoload -U colors && colors +NEWLINE=$'\n' +export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" +setopt prompt_subst +autoload -Uz vcs_info +zstyle ':vcs_info:*' actionformats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' +zstyle ':vcs_info:*' formats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' -# Uncomment the following line to use hyphen-insensitive completion. Case -# sensitive completion must be off. _ and - will be interchangeable. -# HYPHEN_INSENSITIVE="true" +zstyle ':vcs_info:*' enable git cvs svn -# Uncomment the following line to disable bi-weekly auto-update checks. -# DISABLE_AUTO_UPDATE="true" +# or use pre_cmd, see man zshcontrib +vcs_info_wrapper() { + vcs_info + if [ -n "$vcs_info_msg_0_" ]; then + echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" + fi +} +export RPROMPT=$'%@ $(vcs_info_wrapper) %?' +#other stuff -# Uncomment the following line to change how often to auto-update (in days). -# export UPDATE_ZSH_DAYS=13 +# clear +# screenfetch -# Uncomment the following line to disable colors in ls. -# DISABLE_LS_COLORS="true" +#dont mess with this +alias ls="ls --color=auto" -# Uncomment the following line to disable auto-setting terminal title. -# DISABLE_AUTO_TITLE="true" +alias pip="python3 -m pip" -# Uncomment the following line to enable command auto-correction. -# ENABLE_CORRECTION="true" +# aliases -# Uncomment the following line to display red dots whilst waiting for completion. -# COMPLETION_WAITING_DOTS="true" +#pandoc +alias docx="pandoc -s -o" -# Uncomment the following line if you want to disable marking untracked files -# under VCS as dirty. This makes repository status check for large repositories -# much, much faster. -# DISABLE_UNTRACKED_FILES_DIRTY="true" +alias school="cd /media/removable/SD\ Card/School" +alias sdcard="cd /media/removable/SD\ Card/" +alias ll="ls -l" +alias la="ls -a" +alias please='sudo $(history -p !!)' +# alias vi=vim +alias :q="exit" +alias :wq="exit" +alias cls=clear +alias zshreload="source ~/.zshrc" +alias lip="ip addr | grep inet | grep wlan0" +alias p4='ping 4.2.2.2 -c 4' -# Uncomment the following line if you want to change the command execution time -# stamp shown in the history command output. -# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" -# HIST_STAMPS="mm/dd/yyyy" +sci(){ + if [ $# != 1 ]; then + crew -h + else + crew install $1 + fi +} -# Would you like to use another custom folder than $ZSH/custom? -# ZSH_CUSTOM=/path/to/new-custom-folder +search(){ + if [ $# != 1 ]; then + echo "please enter a name to search for" + else + ls | grep "$1" + fi +} -# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) -# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ -# Example format: plugins=(rails git textmate ruby lighthouse) -# Add wisely, as too many plugins slow down shell startup. -plugins=( - git -) +csearch(){ + if [ $# != 1 ]; then + echo "Usage: csearch " + else + crew search | grep -e "$1" + fi +} -source $ZSH/oh-my-zsh.sh +mkcd() { + if [ $# != 1 ]; then + echo "Usage: mkcd " + else + mkdir -p $1 && cd $1 + fi +} -# User configuration +cl() +{ + last_dir="$(ls -Frt | grep '/$' | tail -n1)" + if [ -d "$last_dir" ]; then + cd "$last_dir" + fi +} -# export MANPATH="/usr/local/man:$MANPATH" +sud() { # do sudo, or sudo the last command if no argument given + if [[ $# == 0 ]]; then + sudo $(history -p '!!') + else + sudo "$@" + fi +} -# You may need to manually set your language environment -# export LANG=en_US.UTF-8 +up(){ + local d="" + limit=$1 + for ((i=1 ; i <= limit ; i++)) + do + d=$d/.. + done + d=$(echo $d | sed 's/^\///') + if [ -z "$d" ]; then + d=.. + fi + cd $d +} -# Preferred editor for local and remote sessions -# if [[ -n $SSH_CONNECTION ]]; then -# export EDITOR='vim' -# else -# export EDITOR='mvim' -# fi +extract () { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xvjf $1 ;; + *.tar.gz) tar xvzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xvf $1 ;; + *.tbz2) tar xvjf $1 ;; + *.tgz) tar xvzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "don't know how to extract '$1'..." ;; + esac + else + echo "'$1' is not a valid file!" + fi +} +#cls +#screenfetch +#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -# Compilation flags -# export ARCHFLAGS="-arch x86_64" - -# ssh -# export SSH_KEY_PATH="~/.ssh/rsa_id" - -# Set personal aliases, overriding those provided by oh-my-zsh libs, -# plugins, and themes. Aliases can be placed here, though oh-my-zsh -# users are encouraged to define aliases within the ZSH_CUSTOM folder. -# For a full list of active aliases, run `alias`. -# -# Example aliases -# alias zshconfig="mate ~/.zshrc" -# alias ohmyzsh="mate ~/.oh-my-zsh" - -# custom stuff -screenfetch +#eval $(thefuck --alias) +#export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux +#export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man From 6a15c8adca38071182266334a51a13c5df785943 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 23 Jul 2018 17:27:27 -0400 Subject: [PATCH 17/45] Create (movetousrlocalbin)-settings --- ubuntu/(movetousrlocalbin)-settings | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 ubuntu/(movetousrlocalbin)-settings diff --git a/ubuntu/(movetousrlocalbin)-settings b/ubuntu/(movetousrlocalbin)-settings new file mode 100644 index 0000000..db7f134 --- /dev/null +++ b/ubuntu/(movetousrlocalbin)-settings @@ -0,0 +1,2 @@ +#! /bin/bash +env XDG_CURRENT_DESKTOP=GNOME gnome-control-center From 1e398fdd13b50a37e149d7f154488bbcc0a1b9bc Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 9 Aug 2018 19:44:39 -0400 Subject: [PATCH 18/45] Update .zshrc --- ChromeOS/zsh/.zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc index 8cc45a1..f89bc50 100644 --- a/ChromeOS/zsh/.zshrc +++ b/ChromeOS/zsh/.zshrc @@ -16,7 +16,9 @@ bindkey -v #git clone https://github.com/zsh-users/zsh-syntax-highlighting.git #echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc -source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +alias gitpsswd="cat /media/removable/SD\ Card/gitpsswd" # prompt stuff autoload -U colors && colors @@ -152,8 +154,8 @@ extract () { } #cls #screenfetch -source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh -source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh eval $(thefuck --alias) export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux From a6a8e054f6ed941c7edafcdcf4d5f85ea16b8e95 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 25 Aug 2018 13:04:50 -0400 Subject: [PATCH 19/45] Create .profile --- ChromeOS/.profile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ChromeOS/.profile diff --git a/ChromeOS/.profile b/ChromeOS/.profile new file mode 100644 index 0000000..c4644a3 --- /dev/null +++ b/ChromeOS/.profile @@ -0,0 +1,3 @@ +export PATH="$HOME/.cargo/bin:$PATH" +sudo mount -o remount,exec /tmp +sudo mount -o remount,exec /media/removable/SD\ Card From 6c548e47f2e94fef9f72251ed6c89a09ce56265c Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 11 Nov 2018 14:16:49 -0500 Subject: [PATCH 20/45] Create config --- ChromeOS/.ssh/config | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ChromeOS/.ssh/config diff --git a/ChromeOS/.ssh/config b/ChromeOS/.ssh/config new file mode 100644 index 0000000..30be10f --- /dev/null +++ b/ChromeOS/.ssh/config @@ -0,0 +1,3 @@ +Host github.com + Hostname ssh.github.com + Port 443 From 1d24fc5dae849e10671823e30c3af610fb937c65 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 11 Nov 2018 15:08:03 -0500 Subject: [PATCH 21/45] Update .zshrc --- ChromeOS/zsh/.zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc index f89bc50..a2938a1 100644 --- a/ChromeOS/zsh/.zshrc +++ b/ChromeOS/zsh/.zshrc @@ -160,3 +160,4 @@ extract () { eval $(thefuck --alias) export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man +export MANPATH=/usr/local/man:$MANPATH From d6f25e0627fe29b1f0736e988b5ac2ac7318e702 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 11 Nov 2018 15:20:42 -0500 Subject: [PATCH 22/45] Update .zshrc --- ChromeOS/zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc index a2938a1..d97a4b9 100644 --- a/ChromeOS/zsh/.zshrc +++ b/ChromeOS/zsh/.zshrc @@ -161,3 +161,8 @@ eval $(thefuck --alias) export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man export MANPATH=/usr/local/man:$MANPATH +export TMPDIR=/usr/local/tmp + +ln -s /media/removable/SD\ Card/go $HOME/go +export PATH="$HOME/go/bin:$PATH" +export TMPDIR=/usr/local/tmp From 0f124b38aef90b9451b22dcd967a5037d9290083 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 29 Jan 2019 11:49:04 -0500 Subject: [PATCH 23/45] added laptop seciton --- .../(movetousrlocalbin)-settings | 0 ubuntu/{ => Desktop}/.config/.compton.conf | 0 ubuntu/{ => Desktop}/.config/i3/config | 0 ubuntu/{ => Desktop}/.config/i3status/config | 0 ubuntu/{ => Desktop}/.zshrc | 0 ubuntu/Laptop/.config/.compton.conf | 6 + ubuntu/Laptop/.config/i3/config | 231 ++++++++++++++++++ ubuntu/Laptop/.config/i3status/config | 54 ++++ 8 files changed, 291 insertions(+) rename ubuntu/{ => Desktop}/(movetousrlocalbin)-settings (100%) rename ubuntu/{ => Desktop}/.config/.compton.conf (100%) rename ubuntu/{ => Desktop}/.config/i3/config (100%) rename ubuntu/{ => Desktop}/.config/i3status/config (100%) rename ubuntu/{ => Desktop}/.zshrc (100%) create mode 100644 ubuntu/Laptop/.config/.compton.conf create mode 100644 ubuntu/Laptop/.config/i3/config create mode 100644 ubuntu/Laptop/.config/i3status/config diff --git a/ubuntu/(movetousrlocalbin)-settings b/ubuntu/Desktop/(movetousrlocalbin)-settings similarity index 100% rename from ubuntu/(movetousrlocalbin)-settings rename to ubuntu/Desktop/(movetousrlocalbin)-settings diff --git a/ubuntu/.config/.compton.conf b/ubuntu/Desktop/.config/.compton.conf similarity index 100% rename from ubuntu/.config/.compton.conf rename to ubuntu/Desktop/.config/.compton.conf diff --git a/ubuntu/.config/i3/config b/ubuntu/Desktop/.config/i3/config similarity index 100% rename from ubuntu/.config/i3/config rename to ubuntu/Desktop/.config/i3/config diff --git a/ubuntu/.config/i3status/config b/ubuntu/Desktop/.config/i3status/config similarity index 100% rename from ubuntu/.config/i3status/config rename to ubuntu/Desktop/.config/i3status/config diff --git a/ubuntu/.zshrc b/ubuntu/Desktop/.zshrc similarity index 100% rename from ubuntu/.zshrc rename to ubuntu/Desktop/.zshrc diff --git a/ubuntu/Laptop/.config/.compton.conf b/ubuntu/Laptop/.config/.compton.conf new file mode 100644 index 0000000..d2df2bb --- /dev/null +++ b/ubuntu/Laptop/.config/.compton.conf @@ -0,0 +1,6 @@ +# Fading +fading = true; # Fade windows during opacity changes. +fade-delta = 12; # The time between steps in a fade in milliseconds. (default 10). +fade-in-step = 0.15; # Opacity change between steps while fading in. (default 0.028). +fade-out-step = 0.15; # Opacity change between steps while fading out. (default 0.03). +no-fading-openclose = false; # Fade windows in/out when opening/closing. diff --git a/ubuntu/Laptop/.config/i3/config b/ubuntu/Laptop/.config/i3/config new file mode 100644 index 0000000..77a8de3 --- /dev/null +++ b/ubuntu/Laptop/.config/i3/config @@ -0,0 +1,231 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run + +# use rofi instead + +bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" + +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +exec --no-startup-id nitrogen --restore +exec_always --no-startup-id compton -f + +# gaps + +gaps outer 5 +gaps inner 10 + +#smart_gaps on + +# windows style workspace switcher + +bindsym $mod+Control+Right workspace next +bindsym $mod+Control+Left workspace prev + +workspace_auto_back_and_forth yes + +# Set window focusing to only focus if requester is on screen + +focus_on_window_activation smart + +# Audio Manager + +bindsym $mod+Shift+a exec pavucontrol + +# window lock + +bindsym Control+Mod1+l exec i3lock-fancy + +# Go to sleep + +bindsym Control+Mod1+s exec systemctl suspend + +# Screen Shots +bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' +bindsym Control+Print exec gnome-screenshot -i + +# Network Manager + +exec_always --no-startup-id nm-applet + + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + colors { + background #2f343f + statusline #2f343f + separator #4b5262 + + # colour of border, background, and text + focused_workspace #2f343f #bf616a #d8dee8 + active_workspace #2f343f #2f343f #d8dee8 + inactive_workspace #2f343f #2f343f #d8dee8 + urgent_workspace #2f343f #ebcb8b #2f343f + } + status_command i3status + position top +} + +new_window 1pixel diff --git a/ubuntu/Laptop/.config/i3status/config b/ubuntu/Laptop/.config/i3status/config new file mode 100644 index 0000000..9145983 --- /dev/null +++ b/ubuntu/Laptop/.config/i3status/config @@ -0,0 +1,54 @@ +general { + output_format = "i3bar" + colors = false + markup = pango + interval = 5 + color_good = '#2f343f' + color_degraded = '#ebcb8b' + color_bad = '#ba5e57' +} + +order += "load" +order += "cpu_temperature 0" +order += "disk /" +order += "disk /home" +order += "ethernet enp1s0" +order += "wireless wlp2s0" +order += "volume master" +order += "battery 0" +order += "battery 1" +order += "tztime local" + +battery 0 { + format = "%status %percentage %remaining" +} +battery 1 { + format = "%status %percentage %remaining" +} + +load { + format = " %5min Load " +} + +cpu_temperature 0 { + format = " TEMP: %degrees °C " + path = "/sys/class/thermal/thermal_zone0/temp" +} + +disk "/" { + format = " HDD2: %free Free " +} + +volume master { + format = " VOL: %volume " + format_muted = "VOL: Muted " + device = "default" + mixer = "Master" + mixer_idx = 0 +} + + +tztime local { + format = " %time " + format_time = "%a %-d %b %H:%M" +} From 4ad5a01dadac7a4f3cc2abd1a567eb6e6ca535c7 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:35:52 -0500 Subject: [PATCH 24/45] Create README.md --- ubuntu/Laptop/.config/README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ubuntu/Laptop/.config/README.md diff --git a/ubuntu/Laptop/.config/README.md b/ubuntu/Laptop/.config/README.md new file mode 100644 index 0000000..8a2b343 --- /dev/null +++ b/ubuntu/Laptop/.config/README.md @@ -0,0 +1,5 @@ +# Laptop config files + +My laptop is using the following programs: + - i3 gaps + - i3status From f0125b39c2c4d3da89b88f5cf0564bb70a18f230 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:36:10 -0500 Subject: [PATCH 25/45] Update README.md --- ubuntu/Laptop/.config/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntu/Laptop/.config/README.md b/ubuntu/Laptop/.config/README.md index 8a2b343..d6c7e76 100644 --- a/ubuntu/Laptop/.config/README.md +++ b/ubuntu/Laptop/.config/README.md @@ -3,3 +3,5 @@ My laptop is using the following programs: - i3 gaps - i3status + - compton + - nitrogen From 4ed20ce9054a300cf3c22ae3856419e4e35ac377 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:48:22 -0500 Subject: [PATCH 26/45] Update config --- ubuntu/Laptop/.config/i3status/config | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ubuntu/Laptop/.config/i3status/config b/ubuntu/Laptop/.config/i3status/config index 9145983..d14a1b6 100644 --- a/ubuntu/Laptop/.config/i3status/config +++ b/ubuntu/Laptop/.config/i3status/config @@ -11,7 +11,6 @@ general { order += "load" order += "cpu_temperature 0" order += "disk /" -order += "disk /home" order += "ethernet enp1s0" order += "wireless wlp2s0" order += "volume master" @@ -20,10 +19,10 @@ order += "battery 1" order += "tztime local" battery 0 { - format = "%status %percentage %remaining" + format = "%status %percentage %remaining" } battery 1 { - format = "%status %percentage %remaining" + format = "%status %percentage %remaining" } load { From 74efabfa9fe2ac8a006e371c807b96d459690e4f Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:50:39 -0500 Subject: [PATCH 27/45] Update and rename config to config.backup --- .../.config/i3status/{config => config.backup} | 12 ++++++++++++ 1 file changed, 12 insertions(+) rename ubuntu/Laptop/.config/i3status/{config => config.backup} (77%) diff --git a/ubuntu/Laptop/.config/i3status/config b/ubuntu/Laptop/.config/i3status/config.backup similarity index 77% rename from ubuntu/Laptop/.config/i3status/config rename to ubuntu/Laptop/.config/i3status/config.backup index d14a1b6..3451891 100644 --- a/ubuntu/Laptop/.config/i3status/config +++ b/ubuntu/Laptop/.config/i3status/config.backup @@ -20,9 +20,21 @@ order += "tztime local" battery 0 { format = "%status %percentage %remaining" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + low_threshold = 10 } battery 1 { format = "%status %percentage %remaining" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + low_threshold = 10 } load { From e6a54bcc1de1df37fbd9df747fde2ce3903d757f Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:55:03 -0500 Subject: [PATCH 28/45] Create config --- ubuntu/Laptop/.config/i3status/config | 79 +++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 ubuntu/Laptop/.config/i3status/config diff --git a/ubuntu/Laptop/.config/i3status/config b/ubuntu/Laptop/.config/i3status/config new file mode 100644 index 0000000..bb8ff19 --- /dev/null +++ b/ubuntu/Laptop/.config/i3status/config @@ -0,0 +1,79 @@ +general { + output_format = "i3bar" + colors = false + markup = pango + interval = 5 + color_good = '#2f343f' + color_degraded = '#ebcb8b' + color_bad = '#ba5e57' +} + +order += "load" +order += "cpu_temperature 0" +order += "disk /" +#order += "ethernet enp1s0" +#order += "wireless wlp2s0" +order += "wireless wlan0" +order += "ethernet eth0" +order += "volume master" +order += "battery 0" +order += "battery 1" +order += "tztime local" + +battery 0 { + format = "%status %percentage %remaining %emptytime" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + low_threshold = 10 +} +battery 1 { + format = "%status %percentage %remaining %emptytime" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + low_threshold = 10 +} + +load { + format = "%5min Load" +} + +cpu_temperature 0 { + format = "T: %degrees °C" + path = "/sys/devices/platform/coretemp.0/temp1_input" +} + +disk "/" { + format = "%free Free" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + + + +tztime local { + format = "%time" + format_time = "%a %-d %b %H:%M" +} + +wireless wlan0 { + format_up = "W: (%quality at %essid, %bitrate) %ip" + format_down = "W: down" +} + +ethernet eth0 { + # if you use %speed, i3status requires the cap_net_admin capability + format_up = "E: %ip (%speed)" + format_down = "E: down" +} From edfe81bb1d888fe4391865e7420b977b9d8f34e6 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:57:44 -0500 Subject: [PATCH 29/45] Update config --- ubuntu/Laptop/.config/i3/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntu/Laptop/.config/i3/config b/ubuntu/Laptop/.config/i3/config index 77a8de3..4047ccd 100644 --- a/ubuntu/Laptop/.config/i3/config +++ b/ubuntu/Laptop/.config/i3/config @@ -49,6 +49,8 @@ bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opaci exec --no-startup-id nitrogen --restore exec_always --no-startup-id compton -f +exec --no-startup-id nm-applet +exec --no-startup-id volumeicon # gaps From c7801fcf79a2e08af5e2231f61b4f4ad620d6183 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 16:58:01 -0500 Subject: [PATCH 30/45] Update README.md --- ubuntu/Laptop/.config/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ubuntu/Laptop/.config/README.md b/ubuntu/Laptop/.config/README.md index d6c7e76..f9fc6ce 100644 --- a/ubuntu/Laptop/.config/README.md +++ b/ubuntu/Laptop/.config/README.md @@ -5,3 +5,4 @@ My laptop is using the following programs: - i3status - compton - nitrogen + - volumeicon-alsa From 0a7eed07bf02b877df70d177d439dbd4accfbd51 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 17:01:33 -0500 Subject: [PATCH 31/45] Update config --- ubuntu/Laptop/.config/i3status/config | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ubuntu/Laptop/.config/i3status/config b/ubuntu/Laptop/.config/i3status/config index bb8ff19..8ef83fa 100644 --- a/ubuntu/Laptop/.config/i3status/config +++ b/ubuntu/Laptop/.config/i3status/config @@ -1,11 +1,7 @@ general { output_format = "i3bar" - colors = false - markup = pango + colors = true interval = 5 - color_good = '#2f343f' - color_degraded = '#ebcb8b' - color_bad = '#ba5e57' } order += "load" From e654ae39d1701ab28b6b2da28527d7e975aca9b5 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 17:11:31 -0500 Subject: [PATCH 32/45] Update config --- ubuntu/Laptop/.config/i3/config | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ubuntu/Laptop/.config/i3/config b/ubuntu/Laptop/.config/i3/config index 4047ccd..76d4353 100644 --- a/ubuntu/Laptop/.config/i3/config +++ b/ubuntu/Laptop/.config/i3/config @@ -86,10 +86,20 @@ bindsym Control+Mod1+s exec systemctl suspend bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' bindsym Control+Print exec gnome-screenshot -i -# Network Manager +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound -exec_always --no-startup-id nm-applet +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness +# Media player controls +bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous # change focus bindsym $mod+j focus left From 6f3802a578c15649e9562b53dfb14d33e95239a3 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 1 Feb 2019 17:31:02 -0500 Subject: [PATCH 33/45] Update README.md --- ubuntu/Laptop/.config/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubuntu/Laptop/.config/README.md b/ubuntu/Laptop/.config/README.md index f9fc6ce..6541ab4 100644 --- a/ubuntu/Laptop/.config/README.md +++ b/ubuntu/Laptop/.config/README.md @@ -6,3 +6,6 @@ My laptop is using the following programs: - compton - nitrogen - volumeicon-alsa + +backlight: + - https://www.reddit.com/r/i3wm/comments/ah2s78/tip_enable_keyboard_backlight_keys/ From b66a0a291d63b97e8cd434583157e8c6fe0d7ba3 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 30 Apr 2019 12:26:15 -0400 Subject: [PATCH 34/45] Create .zshrc --- ubuntu/Laptop/.config/.zshrc | 168 +++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 ubuntu/Laptop/.config/.zshrc diff --git a/ubuntu/Laptop/.config/.zshrc b/ubuntu/Laptop/.config/.zshrc new file mode 100644 index 0000000..e438006 --- /dev/null +++ b/ubuntu/Laptop/.config/.zshrc @@ -0,0 +1,168 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored +zstyle :compinstall filename '/home/chronos/user/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +unsetopt beep +bindkey -v +# End of lines configured by zsh-newuser-install + +#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git +#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc +#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +# prompt stuff +autoload -U colors && colors +NEWLINE=$'\n' +export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" +setopt prompt_subst +autoload -Uz vcs_info +zstyle ':vcs_info:*' actionformats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' +zstyle ':vcs_info:*' formats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' + +zstyle ':vcs_info:*' enable git cvs svn + +# or use pre_cmd, see man zshcontrib +vcs_info_wrapper() { + vcs_info + if [ -n "$vcs_info_msg_0_" ]; then + echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" + fi +} +export RPROMPT=$'%@ $(vcs_info_wrapper) %?' +#other stuff + +# clear +# screenfetch + +#dont mess with this +alias ls="ls --color=auto" + +#alias pip="python3 -m pip" + +alias settings="env XDG_CURRENT_DESKTOP=GNOME gnome-control-center " + +# aliases + +#pandoc +alias docx="pandoc -s -o" + +#alias school="cd /media/removable/SD\ Card/School" +#alias sdcard="cd /media/removable/SD\ Card/" +alias ll="ls -l" +alias la="ls -a" +alias please='sudo $(history -p !!)' +# alias vi=vim +alias :q="exit" +alias :wq="exit" +alias cls=clear +alias zshreload="source ~/.zshrc" +alias lip="ip addr | grep inet | grep wlan0" +alias p4='ping 4.2.2.2 -c 4' +alias tracknjack="sudo /home/ewpratten/.local/bin/trackerjacker" + +sci(){ + if [ $# != 1 ]; then + crew -h + else + crew install $1 + fi +} + +search(){ + if [ $# != 1 ]; then + echo "please enter a name to search for" + else + ls | grep "$1" + fi +} + +csearch(){ + if [ $# != 1 ]; then + echo "Usage: csearch " + else + crew search | grep -e "$1" + fi +} + +mkcd() { + if [ $# != 1 ]; then + echo "Usage: mkcd " + else + mkdir -p $1 && cd $1 + fi +} + +cl() +{ + last_dir="$(ls -Frt | grep '/$' | tail -n1)" + if [ -d "$last_dir" ]; then + cd "$last_dir" + fi +} + +sud() { # do sudo, or sudo the last command if no argument given + if [[ $# == 0 ]]; then + sudo $(history -p '!!') + else + sudo "$@" + fi +} + +up(){ + local d="" + limit=$1 + for ((i=1 ; i <= limit ; i++)) + do + d=$d/.. + done + d=$(echo $d | sed 's/^\///') + if [ -z "$d" ]; then + d=.. + fi + cd $d +} + +extract () { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xvjf $1 ;; + *.tar.gz) tar xvzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xvf $1 ;; + *.tbz2) tar xvjf $1 ;; + *.tgz) tar xvzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "don't know how to extract '$1'..." ;; + esac + else + echo "'$1' is not a valid file!" + fi +} +#cls +#screenfetch +#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +#eval $(thefuck --alias) +#export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux +#export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man +#export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" +export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" +source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh + +export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin" From 199f1ef23d1e3652e8679a07cadfc2b24f3ead1c Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 1 May 2019 12:20:50 -0400 Subject: [PATCH 35/45] Update config --- ubuntu/Laptop/.config/i3/config | 39 ++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/ubuntu/Laptop/.config/i3/config b/ubuntu/Laptop/.config/i3/config index 76d4353..af728d3 100644 --- a/ubuntu/Laptop/.config/i3/config +++ b/ubuntu/Laptop/.config/i3/config @@ -40,22 +40,26 @@ bindsym $mod+Shift+q kill # use rofi instead -bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" +bindsym $mod+d exec rofi -show run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +# settings +#byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center + exec --no-startup-id nitrogen --restore exec_always --no-startup-id compton -f exec --no-startup-id nm-applet exec --no-startup-id volumeicon +exec --no-startup-id kdeconnect-indicator # gaps -gaps outer 5 -gaps inner 10 +gaps outer 0 +gaps inner 5 #smart_gaps on @@ -76,11 +80,30 @@ bindsym $mod+Shift+a exec pavucontrol # window lock -bindsym Control+Mod1+l exec i3lock-fancy +bindsym $mod+Control+l exec gnome-screensaver-command -l + +# locker +set $Locker i3lock -c 141414 && sleep 1 + +set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id $Locker, mode "default" + bindsym e exec --no-startup-id i3-msg exit, mode "default" + bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" + bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" + bindsym r exec --no-startup-id systemctl reboot, mode "default" + bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+Delete mode "$mode_system" # Go to sleep -bindsym Control+Mod1+s exec systemctl suspend +bindsym $mod+Shift+s exec systemctl suspend # Screen Shots bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' @@ -164,6 +187,9 @@ set $ws8 "8" set $ws9 "9" set $ws10 "10" +# Auto-start programs +exec --no-startup-id i3msg "1"; exec /usr/bin/firefox + # switch to workspace bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 @@ -226,9 +252,6 @@ bindsym $mod+r mode "resize" # finds out, if available) bar { colors { - background #2f343f - statusline #2f343f - separator #4b5262 # colour of border, background, and text focused_workspace #2f343f #bf616a #d8dee8 From a7cadc4d2dd3186c8824812f0f2f56fb945107bb Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 1 May 2019 14:26:37 -0400 Subject: [PATCH 36/45] Reset --- ChromeOS/.profile | 3 - ChromeOS/.ssh/config | 3 - ChromeOS/README.md | 1 - ChromeOS/banners/.current | 1 - ChromeOS/bashrc/.bashrc | 109 -------- ChromeOS/bashrc/.bashrc.backup | 18 -- ChromeOS/bashrc/.bashrc1 | 25 -- ChromeOS/bashrc/README.md | 18 -- ChromeOS/zsh/.zshrc | 168 ------------ README.md | 2 - ubuntu/Desktop/(movetousrlocalbin)-settings | 2 - ubuntu/Desktop/.config/.compton.conf | 6 - ubuntu/Desktop/.config/i3/config | 231 ---------------- ubuntu/Desktop/.config/i3status/config | 46 ---- ubuntu/Desktop/.zshrc | 160 ----------- ubuntu/Laptop/.config/.compton.conf | 6 - ubuntu/Laptop/.config/.zshrc | 168 ------------ ubuntu/Laptop/.config/README.md | 11 - ubuntu/Laptop/.config/i3/config | 266 ------------------- ubuntu/Laptop/.config/i3status/config | 75 ------ ubuntu/Laptop/.config/i3status/config.backup | 65 ----- 21 files changed, 1384 deletions(-) delete mode 100644 ChromeOS/.profile delete mode 100644 ChromeOS/.ssh/config delete mode 100644 ChromeOS/README.md delete mode 100644 ChromeOS/banners/.current delete mode 100644 ChromeOS/bashrc/.bashrc delete mode 100644 ChromeOS/bashrc/.bashrc.backup delete mode 100644 ChromeOS/bashrc/.bashrc1 delete mode 100644 ChromeOS/bashrc/README.md delete mode 100644 ChromeOS/zsh/.zshrc delete mode 100644 README.md delete mode 100644 ubuntu/Desktop/(movetousrlocalbin)-settings delete mode 100644 ubuntu/Desktop/.config/.compton.conf delete mode 100644 ubuntu/Desktop/.config/i3/config delete mode 100644 ubuntu/Desktop/.config/i3status/config delete mode 100644 ubuntu/Desktop/.zshrc delete mode 100644 ubuntu/Laptop/.config/.compton.conf delete mode 100644 ubuntu/Laptop/.config/.zshrc delete mode 100644 ubuntu/Laptop/.config/README.md delete mode 100644 ubuntu/Laptop/.config/i3/config delete mode 100644 ubuntu/Laptop/.config/i3status/config delete mode 100644 ubuntu/Laptop/.config/i3status/config.backup diff --git a/ChromeOS/.profile b/ChromeOS/.profile deleted file mode 100644 index c4644a3..0000000 --- a/ChromeOS/.profile +++ /dev/null @@ -1,3 +0,0 @@ -export PATH="$HOME/.cargo/bin:$PATH" -sudo mount -o remount,exec /tmp -sudo mount -o remount,exec /media/removable/SD\ Card diff --git a/ChromeOS/.ssh/config b/ChromeOS/.ssh/config deleted file mode 100644 index 30be10f..0000000 --- a/ChromeOS/.ssh/config +++ /dev/null @@ -1,3 +0,0 @@ -Host github.com - Hostname ssh.github.com - Port 443 diff --git a/ChromeOS/README.md b/ChromeOS/README.md deleted file mode 100644 index 9ef2875..0000000 --- a/ChromeOS/README.md +++ /dev/null @@ -1 +0,0 @@ -# ChromeOS Dotfiles diff --git a/ChromeOS/banners/.current b/ChromeOS/banners/.current deleted file mode 100644 index ab5c1cf..0000000 --- a/ChromeOS/banners/.current +++ /dev/null @@ -1 +0,0 @@ -Shell started diff --git a/ChromeOS/bashrc/.bashrc b/ChromeOS/bashrc/.bashrc deleted file mode 100644 index 0a7cf63..0000000 --- a/ChromeOS/bashrc/.bashrc +++ /dev/null @@ -1,109 +0,0 @@ -# /etc/skel/.bashrc -# -# This file is sourced by all *interactive* bash shells on startup, -# including some apparently interactive shells such as scp and rcp -# that can't tolerate any output. So make sure this doesn't display -# anything or bad things will happen ! - - -# Test for an interactive shell. There is no need to set anything -# past this point for scp and rcp, and it's important to refrain from -# outputting anything in those cases. -if [[ $- != *i* ]] ; then - # Shell is non-interactive. Be done now! - return -fi - - -# Put your fun stuff here. -clear -screenfetch - -PS1='\[\033[38;5;43m\]\u\[\033[38;5;31m\]@\[\033[38;5;43m\]\h\[\033[38;5;31m\]:\[\033[38;5;183m\]\w\[\033[00m\] \[\033[38;5;214m\]$\[\033[0m\] ' - -# aliases -alias ll="ls -l" -alias la="ls -a" -alias please='sudo $(history -p !!)' -alias vi=vim -alias :q="exit" -alias :wq="exit" -alias cls=clear -alias bashreload="source ~/.bashrc" -alias lip="ip addr | grep inet | grep wlan0" -alias p4='ping 4.2.2.2 -c 4' - -sci(){ - if [ $# != 1 ]; then - crew -h - else - crew install $1 - fi -} - -csearch(){ - if [ $# != 1 ]; then - echo "Usage: csearch " - else - crew search | grep -e "$1" - fi -} - -mkcd() { - if [ $# != 1 ]; then - echo "Usage: mkcd " - else - mkdir -p $1 && cd $1 - fi -} - -cl() -{ - last_dir="$(ls -Frt | grep '/$' | tail -n1)" - if [ -d "$last_dir" ]; then - cd "$last_dir" - fi -} - -sud() { # do sudo, or sudo the last command if no argument given - if [[ $# == 0 ]]; then - sudo $(history -p '!!') - else - sudo "$@" - fi -} - -up(){ - local d="" - limit=$1 - for ((i=1 ; i <= limit ; i++)) - do - d=$d/.. - done - d=$(echo $d | sed 's/^\///') - if [ -z "$d" ]; then - d=.. - fi - cd $d -} -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "don't know how to extract '$1'..." ;; - esac - else - echo "'$1' is not a valid file!" - fi - } - diff --git a/ChromeOS/bashrc/.bashrc.backup b/ChromeOS/bashrc/.bashrc.backup deleted file mode 100644 index 0d33ef5..0000000 --- a/ChromeOS/bashrc/.bashrc.backup +++ /dev/null @@ -1,18 +0,0 @@ -# /etc/skel/.bashrc -# -# This file is sourced by all *interactive* bash shells on startup, -# including some apparently interactive shells such as scp and rcp -# that can't tolerate any output. So make sure this doesn't display -# anything or bad things will happen ! - - -# Test for an interactive shell. There is no need to set anything -# past this point for scp and rcp, and it's important to refrain from -# outputting anything in those cases. -if [[ $- != *i* ]] ; then - # Shell is non-interactive. Be done now! - return -fi - - -# Put your fun stuff here. diff --git a/ChromeOS/bashrc/.bashrc1 b/ChromeOS/bashrc/.bashrc1 deleted file mode 100644 index 8038dc4..0000000 --- a/ChromeOS/bashrc/.bashrc1 +++ /dev/null @@ -1,25 +0,0 @@ -# /etc/skel/.bashrc -# -# This file is sourced by all *interactive* bash shells on startup, -# including some apparently interactive shells such as scp and rcp -# that can't tolerate any output. So make sure this doesn't display -# anything or bad things will happen ! - - -# Test for an interactive shell. There is no need to set anything -# past this point for scp and rcp, and it's important to refrain from -# outputting anything in those cases. -if [[ $- != *i* ]] ; then - # Shell is non-interactive. Be done now! - return -fi - - -# Put your fun stuff here. -clear - -# aliases -alias fucking=sudo - -# banner code -cat ~/banners/.current diff --git a/ChromeOS/bashrc/README.md b/ChromeOS/bashrc/README.md deleted file mode 100644 index 27c25a8..0000000 --- a/ChromeOS/bashrc/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# ChromeOS Bashrc Files -### Important! -The file named -``` -.bashrc -``` -is the file that i currently use. -
-The file named -``` -.bashrc.backup -``` -is the stock ChromeOS bashrc file. This is not to be messed with.. it exsists so that i can safely revert to a working file. -
-All other files will be named -``` -.bashrc[version name] -``` diff --git a/ChromeOS/zsh/.zshrc b/ChromeOS/zsh/.zshrc deleted file mode 100644 index d97a4b9..0000000 --- a/ChromeOS/zsh/.zshrc +++ /dev/null @@ -1,168 +0,0 @@ -# The following lines were added by compinstall - -zstyle ':completion:*' completer _complete _ignored -zstyle :compinstall filename '/home/chronos/user/.zshrc' - -autoload -Uz compinit -compinit -# End of lines added by compinstall -# Lines configured by zsh-newuser-install -HISTFILE=~/.histfile -HISTSIZE=1000 -SAVEHIST=1000 -unsetopt beep -bindkey -v -# End of lines configured by zsh-newuser-install - -#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git -#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc -#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -alias gitpsswd="cat /media/removable/SD\ Card/gitpsswd" - -# prompt stuff -autoload -U colors && colors -NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" -setopt prompt_subst -autoload -Uz vcs_info -zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' -zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' -zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' - -zstyle ':vcs_info:*' enable git cvs svn - -# or use pre_cmd, see man zshcontrib -vcs_info_wrapper() { - vcs_info - if [ -n "$vcs_info_msg_0_" ]; then - echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" - fi -} -export RPROMPT=$'%@ $(vcs_info_wrapper) %?' -#other stuff - -# clear -# screenfetch - -#dont mess with this -alias ls="ls --color=auto" - -alias pip="python3 -m pip" - -# aliases - -#pandoc -alias docx="pandoc -s -o" - -alias school="cd /media/removable/SD\ Card/School" -alias sdcard="cd /media/removable/SD\ Card/" -alias ll="ls -l" -alias la="ls -a" -alias please='sudo $(history -p !!)' -# alias vi=vim -alias :q="exit" -alias :wq="exit" -alias cls=clear -alias zshreload="source ~/.zshrc" -alias lip="ip addr | grep inet | grep wlan0" -alias p4='ping 4.2.2.2 -c 4' - -sci(){ - if [ $# != 1 ]; then - crew -h - else - crew install $1 - fi -} - -search(){ - if [ $# != 1 ]; then - echo "please enter a name to search for" - else - ls | grep "$1" - fi -} - -csearch(){ - if [ $# != 1 ]; then - echo "Usage: csearch " - else - crew search | grep -e "$1" - fi -} - -mkcd() { - if [ $# != 1 ]; then - echo "Usage: mkcd " - else - mkdir -p $1 && cd $1 - fi -} - -cl() -{ - last_dir="$(ls -Frt | grep '/$' | tail -n1)" - if [ -d "$last_dir" ]; then - cd "$last_dir" - fi -} - -sud() { # do sudo, or sudo the last command if no argument given - if [[ $# == 0 ]]; then - sudo $(history -p '!!') - else - sudo "$@" - fi -} - -up(){ - local d="" - limit=$1 - for ((i=1 ; i <= limit ; i++)) - do - d=$d/.. - done - d=$(echo $d | sed 's/^\///') - if [ -z "$d" ]; then - d=.. - fi - cd $d -} - -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "don't know how to extract '$1'..." ;; - esac - else - echo "'$1' is not a valid file!" - fi -} -#cls -#screenfetch -#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh -#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -eval $(thefuck --alias) -export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux -export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man -export MANPATH=/usr/local/man:$MANPATH -export TMPDIR=/usr/local/tmp - -ln -s /media/removable/SD\ Card/go $HOME/go -export PATH="$HOME/go/bin:$PATH" -export TMPDIR=/usr/local/tmp diff --git a/README.md b/README.md deleted file mode 100644 index 0e606c6..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# dotfiles -My personal dotfiles diff --git a/ubuntu/Desktop/(movetousrlocalbin)-settings b/ubuntu/Desktop/(movetousrlocalbin)-settings deleted file mode 100644 index db7f134..0000000 --- a/ubuntu/Desktop/(movetousrlocalbin)-settings +++ /dev/null @@ -1,2 +0,0 @@ -#! /bin/bash -env XDG_CURRENT_DESKTOP=GNOME gnome-control-center diff --git a/ubuntu/Desktop/.config/.compton.conf b/ubuntu/Desktop/.config/.compton.conf deleted file mode 100644 index d2df2bb..0000000 --- a/ubuntu/Desktop/.config/.compton.conf +++ /dev/null @@ -1,6 +0,0 @@ -# Fading -fading = true; # Fade windows during opacity changes. -fade-delta = 12; # The time between steps in a fade in milliseconds. (default 10). -fade-in-step = 0.15; # Opacity change between steps while fading in. (default 0.028). -fade-out-step = 0.15; # Opacity change between steps while fading out. (default 0.03). -no-fading-openclose = false; # Fade windows in/out when opening/closing. diff --git a/ubuntu/Desktop/.config/i3/config b/ubuntu/Desktop/.config/i3/config deleted file mode 100644 index 77a8de3..0000000 --- a/ubuntu/Desktop/.config/i3/config +++ /dev/null @@ -1,231 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -#bindsym $mod+d exec dmenu_run - -# use rofi instead - -bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 800 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" - -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop - -exec --no-startup-id nitrogen --restore -exec_always --no-startup-id compton -f - -# gaps - -gaps outer 5 -gaps inner 10 - -#smart_gaps on - -# windows style workspace switcher - -bindsym $mod+Control+Right workspace next -bindsym $mod+Control+Left workspace prev - -workspace_auto_back_and_forth yes - -# Set window focusing to only focus if requester is on screen - -focus_on_window_activation smart - -# Audio Manager - -bindsym $mod+Shift+a exec pavucontrol - -# window lock - -bindsym Control+Mod1+l exec i3lock-fancy - -# Go to sleep - -bindsym Control+Mod1+s exec systemctl suspend - -# Screen Shots -bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' -bindsym Control+Print exec gnome-screenshot -i - -# Network Manager - -exec_always --no-startup-id nm-applet - - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - colors { - background #2f343f - statusline #2f343f - separator #4b5262 - - # colour of border, background, and text - focused_workspace #2f343f #bf616a #d8dee8 - active_workspace #2f343f #2f343f #d8dee8 - inactive_workspace #2f343f #2f343f #d8dee8 - urgent_workspace #2f343f #ebcb8b #2f343f - } - status_command i3status - position top -} - -new_window 1pixel diff --git a/ubuntu/Desktop/.config/i3status/config b/ubuntu/Desktop/.config/i3status/config deleted file mode 100644 index e0d9a51..0000000 --- a/ubuntu/Desktop/.config/i3status/config +++ /dev/null @@ -1,46 +0,0 @@ -general { - output_format = "i3bar" - colors = false - markup = pango - interval = 5 - color_good = '#2f343f' - color_degraded = '#ebcb8b' - color_bad = '#ba5e57' -} - -order += "load" -order += "cpu_temperature 0" -order += "disk /" -order += "disk /home" -order += "ethernet enp1s0" -order += "wireless wlp2s0" -order += "volume master" -order += "battery 1" -order += "tztime local" - -load { - format = " %5min Load " -} - -cpu_temperature 0 { - format = " TEMP: %degrees °C " - path = "/sys/class/thermal/thermal_zone0/temp" -} - -disk "/" { - format = " HDD2: %free Free " -} - -volume master { - format = " VOL: %volume " - format_muted = "VOL: Muted " - device = "default" - mixer = "Master" - mixer_idx = 0 -} - - -tztime local { - format = " %time " - format_time = "%a %-d %b %H:%M" -} diff --git a/ubuntu/Desktop/.zshrc b/ubuntu/Desktop/.zshrc deleted file mode 100644 index 1456eb1..0000000 --- a/ubuntu/Desktop/.zshrc +++ /dev/null @@ -1,160 +0,0 @@ -# The following lines were added by compinstall - -zstyle ':completion:*' completer _complete _ignored -zstyle :compinstall filename '/home/chronos/user/.zshrc' - -autoload -Uz compinit -compinit -# End of lines added by compinstall -# Lines configured by zsh-newuser-install -HISTFILE=~/.histfile -HISTSIZE=1000 -SAVEHIST=1000 -unsetopt beep -bindkey -v -# End of lines configured by zsh-newuser-install - -#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git -#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc -#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -# prompt stuff -autoload -U colors && colors -NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" -setopt prompt_subst -autoload -Uz vcs_info -zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' -zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' -zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' - -zstyle ':vcs_info:*' enable git cvs svn - -# or use pre_cmd, see man zshcontrib -vcs_info_wrapper() { - vcs_info - if [ -n "$vcs_info_msg_0_" ]; then - echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" - fi -} -export RPROMPT=$'%@ $(vcs_info_wrapper) %?' -#other stuff - -# clear -# screenfetch - -#dont mess with this -alias ls="ls --color=auto" - -alias pip="python3 -m pip" - -# aliases - -#pandoc -alias docx="pandoc -s -o" - -alias school="cd /media/removable/SD\ Card/School" -alias sdcard="cd /media/removable/SD\ Card/" -alias ll="ls -l" -alias la="ls -a" -alias please='sudo $(history -p !!)' -# alias vi=vim -alias :q="exit" -alias :wq="exit" -alias cls=clear -alias zshreload="source ~/.zshrc" -alias lip="ip addr | grep inet | grep wlan0" -alias p4='ping 4.2.2.2 -c 4' - -sci(){ - if [ $# != 1 ]; then - crew -h - else - crew install $1 - fi -} - -search(){ - if [ $# != 1 ]; then - echo "please enter a name to search for" - else - ls | grep "$1" - fi -} - -csearch(){ - if [ $# != 1 ]; then - echo "Usage: csearch " - else - crew search | grep -e "$1" - fi -} - -mkcd() { - if [ $# != 1 ]; then - echo "Usage: mkcd " - else - mkdir -p $1 && cd $1 - fi -} - -cl() -{ - last_dir="$(ls -Frt | grep '/$' | tail -n1)" - if [ -d "$last_dir" ]; then - cd "$last_dir" - fi -} - -sud() { # do sudo, or sudo the last command if no argument given - if [[ $# == 0 ]]; then - sudo $(history -p '!!') - else - sudo "$@" - fi -} - -up(){ - local d="" - limit=$1 - for ((i=1 ; i <= limit ; i++)) - do - d=$d/.. - done - d=$(echo $d | sed 's/^\///') - if [ -z "$d" ]; then - d=.. - fi - cd $d -} - -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "don't know how to extract '$1'..." ;; - esac - else - echo "'$1' is not a valid file!" - fi -} -#cls -#screenfetch -#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh -#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -#eval $(thefuck --alias) -#export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux -#export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man diff --git a/ubuntu/Laptop/.config/.compton.conf b/ubuntu/Laptop/.config/.compton.conf deleted file mode 100644 index d2df2bb..0000000 --- a/ubuntu/Laptop/.config/.compton.conf +++ /dev/null @@ -1,6 +0,0 @@ -# Fading -fading = true; # Fade windows during opacity changes. -fade-delta = 12; # The time between steps in a fade in milliseconds. (default 10). -fade-in-step = 0.15; # Opacity change between steps while fading in. (default 0.028). -fade-out-step = 0.15; # Opacity change between steps while fading out. (default 0.03). -no-fading-openclose = false; # Fade windows in/out when opening/closing. diff --git a/ubuntu/Laptop/.config/.zshrc b/ubuntu/Laptop/.config/.zshrc deleted file mode 100644 index e438006..0000000 --- a/ubuntu/Laptop/.config/.zshrc +++ /dev/null @@ -1,168 +0,0 @@ -# The following lines were added by compinstall - -zstyle ':completion:*' completer _complete _ignored -zstyle :compinstall filename '/home/chronos/user/.zshrc' - -autoload -Uz compinit -compinit -# End of lines added by compinstall -# Lines configured by zsh-newuser-install -HISTFILE=~/.histfile -HISTSIZE=1000 -SAVEHIST=1000 -unsetopt beep -bindkey -v -# End of lines configured by zsh-newuser-install - -#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git -#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc -#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -# prompt stuff -autoload -U colors && colors -NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" -setopt prompt_subst -autoload -Uz vcs_info -zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' -zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' -zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' - -zstyle ':vcs_info:*' enable git cvs svn - -# or use pre_cmd, see man zshcontrib -vcs_info_wrapper() { - vcs_info - if [ -n "$vcs_info_msg_0_" ]; then - echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" - fi -} -export RPROMPT=$'%@ $(vcs_info_wrapper) %?' -#other stuff - -# clear -# screenfetch - -#dont mess with this -alias ls="ls --color=auto" - -#alias pip="python3 -m pip" - -alias settings="env XDG_CURRENT_DESKTOP=GNOME gnome-control-center " - -# aliases - -#pandoc -alias docx="pandoc -s -o" - -#alias school="cd /media/removable/SD\ Card/School" -#alias sdcard="cd /media/removable/SD\ Card/" -alias ll="ls -l" -alias la="ls -a" -alias please='sudo $(history -p !!)' -# alias vi=vim -alias :q="exit" -alias :wq="exit" -alias cls=clear -alias zshreload="source ~/.zshrc" -alias lip="ip addr | grep inet | grep wlan0" -alias p4='ping 4.2.2.2 -c 4' -alias tracknjack="sudo /home/ewpratten/.local/bin/trackerjacker" - -sci(){ - if [ $# != 1 ]; then - crew -h - else - crew install $1 - fi -} - -search(){ - if [ $# != 1 ]; then - echo "please enter a name to search for" - else - ls | grep "$1" - fi -} - -csearch(){ - if [ $# != 1 ]; then - echo "Usage: csearch " - else - crew search | grep -e "$1" - fi -} - -mkcd() { - if [ $# != 1 ]; then - echo "Usage: mkcd " - else - mkdir -p $1 && cd $1 - fi -} - -cl() -{ - last_dir="$(ls -Frt | grep '/$' | tail -n1)" - if [ -d "$last_dir" ]; then - cd "$last_dir" - fi -} - -sud() { # do sudo, or sudo the last command if no argument given - if [[ $# == 0 ]]; then - sudo $(history -p '!!') - else - sudo "$@" - fi -} - -up(){ - local d="" - limit=$1 - for ((i=1 ; i <= limit ; i++)) - do - d=$d/.. - done - d=$(echo $d | sed 's/^\///') - if [ -z "$d" ]; then - d=.. - fi - cd $d -} - -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "don't know how to extract '$1'..." ;; - esac - else - echo "'$1' is not a valid file!" - fi -} -#cls -#screenfetch -#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh -#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -#eval $(thefuck --alias) -#export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux -#export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man -#export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" -export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" -source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh - -export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin" diff --git a/ubuntu/Laptop/.config/README.md b/ubuntu/Laptop/.config/README.md deleted file mode 100644 index 6541ab4..0000000 --- a/ubuntu/Laptop/.config/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Laptop config files - -My laptop is using the following programs: - - i3 gaps - - i3status - - compton - - nitrogen - - volumeicon-alsa - -backlight: - - https://www.reddit.com/r/i3wm/comments/ah2s78/tip_enable_keyboard_backlight_keys/ diff --git a/ubuntu/Laptop/.config/i3/config b/ubuntu/Laptop/.config/i3/config deleted file mode 100644 index af728d3..0000000 --- a/ubuntu/Laptop/.config/i3/config +++ /dev/null @@ -1,266 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -#bindsym $mod+d exec dmenu_run - -# use rofi instead - -bindsym $mod+d exec rofi -show run - -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop - -# settings -#byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center - -exec --no-startup-id nitrogen --restore -exec_always --no-startup-id compton -f -exec --no-startup-id nm-applet -exec --no-startup-id volumeicon -exec --no-startup-id kdeconnect-indicator - -# gaps - -gaps outer 0 -gaps inner 5 - -#smart_gaps on - -# windows style workspace switcher - -bindsym $mod+Control+Right workspace next -bindsym $mod+Control+Left workspace prev - -workspace_auto_back_and_forth yes - -# Set window focusing to only focus if requester is on screen - -focus_on_window_activation smart - -# Audio Manager - -bindsym $mod+Shift+a exec pavucontrol - -# window lock - -bindsym $mod+Control+l exec gnome-screensaver-command -l - -# locker -set $Locker i3lock -c 141414 && sleep 1 - -set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown -mode "$mode_system" { - bindsym l exec --no-startup-id $Locker, mode "default" - bindsym e exec --no-startup-id i3-msg exit, mode "default" - bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" - bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" - bindsym r exec --no-startup-id systemctl reboot, mode "default" - bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+Delete mode "$mode_system" - -# Go to sleep - -bindsym $mod+Shift+s exec systemctl suspend - -# Screen Shots -bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' -bindsym Control+Print exec gnome-screenshot -i - -# Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound - -# Sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness -bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness - -# Media player controls -bindsym XF86AudioPlay exec playerctl play -bindsym XF86AudioPause exec playerctl pause -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPrev exec playerctl previous - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# Auto-start programs -exec --no-startup-id i3msg "1"; exec /usr/bin/firefox - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - colors { - - # colour of border, background, and text - focused_workspace #2f343f #bf616a #d8dee8 - active_workspace #2f343f #2f343f #d8dee8 - inactive_workspace #2f343f #2f343f #d8dee8 - urgent_workspace #2f343f #ebcb8b #2f343f - } - status_command i3status - position top -} - -new_window 1pixel diff --git a/ubuntu/Laptop/.config/i3status/config b/ubuntu/Laptop/.config/i3status/config deleted file mode 100644 index 8ef83fa..0000000 --- a/ubuntu/Laptop/.config/i3status/config +++ /dev/null @@ -1,75 +0,0 @@ -general { - output_format = "i3bar" - colors = true - interval = 5 -} - -order += "load" -order += "cpu_temperature 0" -order += "disk /" -#order += "ethernet enp1s0" -#order += "wireless wlp2s0" -order += "wireless wlan0" -order += "ethernet eth0" -order += "volume master" -order += "battery 0" -order += "battery 1" -order += "tztime local" - -battery 0 { - format = "%status %percentage %remaining %emptytime" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - low_threshold = 10 -} -battery 1 { - format = "%status %percentage %remaining %emptytime" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - low_threshold = 10 -} - -load { - format = "%5min Load" -} - -cpu_temperature 0 { - format = "T: %degrees °C" - path = "/sys/devices/platform/coretemp.0/temp1_input" -} - -disk "/" { - format = "%free Free" -} - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - - - -tztime local { - format = "%time" - format_time = "%a %-d %b %H:%M" -} - -wireless wlan0 { - format_up = "W: (%quality at %essid, %bitrate) %ip" - format_down = "W: down" -} - -ethernet eth0 { - # if you use %speed, i3status requires the cap_net_admin capability - format_up = "E: %ip (%speed)" - format_down = "E: down" -} diff --git a/ubuntu/Laptop/.config/i3status/config.backup b/ubuntu/Laptop/.config/i3status/config.backup deleted file mode 100644 index 3451891..0000000 --- a/ubuntu/Laptop/.config/i3status/config.backup +++ /dev/null @@ -1,65 +0,0 @@ -general { - output_format = "i3bar" - colors = false - markup = pango - interval = 5 - color_good = '#2f343f' - color_degraded = '#ebcb8b' - color_bad = '#ba5e57' -} - -order += "load" -order += "cpu_temperature 0" -order += "disk /" -order += "ethernet enp1s0" -order += "wireless wlp2s0" -order += "volume master" -order += "battery 0" -order += "battery 1" -order += "tztime local" - -battery 0 { - format = "%status %percentage %remaining" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - low_threshold = 10 -} -battery 1 { - format = "%status %percentage %remaining" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - low_threshold = 10 -} - -load { - format = " %5min Load " -} - -cpu_temperature 0 { - format = " TEMP: %degrees °C " - path = "/sys/class/thermal/thermal_zone0/temp" -} - -disk "/" { - format = " HDD2: %free Free " -} - -volume master { - format = " VOL: %volume " - format_muted = "VOL: Muted " - device = "default" - mixer = "Master" - mixer_idx = 0 -} - - -tztime local { - format = " %time " - format_time = "%a %-d %b %H:%M" -} From ac8affbdd4ec8793eef8d7e270bed388fa3709f3 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 15 May 2019 18:01:22 -0400 Subject: [PATCH 37/45] Initial commit --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..82bd4af --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Dotfiles20 +My new and improved dotfiles From 8fda3f7a1a0b48950a7ca342763f0579537fdfc7 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 15 May 2019 21:05:56 -0400 Subject: [PATCH 38/45] added basic configs from laptop --- laptop/home/.Xresources | 36 +++ laptop/home/.config/i3/config | 274 +++++++++++++++++++++++ laptop/home/.config/i3status/config | 82 +++++++ laptop/home/.conkyrc | 82 +++++++ laptop/home/.profile | 27 +++ laptop/home/.spacemacs | 329 ++++++++++++++++++++++++++++ laptop/home/.zshrc | 166 ++++++++++++++ laptop/home/.zshrc.pre-oh-my-zsh | 168 ++++++++++++++ 8 files changed, 1164 insertions(+) create mode 100644 laptop/home/.Xresources create mode 100644 laptop/home/.config/i3/config create mode 100644 laptop/home/.config/i3status/config create mode 100644 laptop/home/.conkyrc create mode 100644 laptop/home/.profile create mode 100644 laptop/home/.spacemacs create mode 100644 laptop/home/.zshrc create mode 100644 laptop/home/.zshrc.pre-oh-my-zsh diff --git a/laptop/home/.Xresources b/laptop/home/.Xresources new file mode 100644 index 0000000..1c28c20 --- /dev/null +++ b/laptop/home/.Xresources @@ -0,0 +1,36 @@ +! scroll with output +URxvt*scrollTtyOutput: true + +! scroll in relation to buffer (with mouse scroll or Shift+Page Up) +URxvt*scrollWithBuffer: true + +! scroll back to the bottom on keypress +URxvt*scrollTtyKeypress: true + +! Fix scrolling in second page of terminal +URxvt.secondaryScreen: 1 +URxvt.secondaryScroll: 0 +URxvt.secondaryWheel: 1 + +! Better font spacing +URxvt.letterSpace: -1 + +! Crosh-like copy and paste +URxvt.clipboard.autocopy: true +URxvt.keysym.M-c: perl:clipboard:copy +URxvt.keysym.M-v: perl:clipboard:paste + +! Open links from the terminal +URxvt.perl-ext-common: default,matcher +URxvt.url-launcher: /usr/bin/xdg-open +URxvt.matcher.button: 1 + +! Highlight links +URxvt.matcher.rend.0: Uline Bold fg5 + +! Fix glyphs +URxvt*skipBuiltinGlyphs: true + +! Custom font +URxvt.font: xft:monaco:size=20 + diff --git a/laptop/home/.config/i3/config b/laptop/home/.config/i3/config new file mode 100644 index 0000000..81db262 --- /dev/null +++ b/laptop/home/.config/i3/config @@ -0,0 +1,274 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run + +# use rofi instead + +bindsym $mod+d exec rofi -show run + +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# settings +# byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center + +exec --no-startup-id nitrogen --restore +exec_always --no-startup-id compton -f +exec --no-startup-id nm-applet +exec --no-startup-id volumeicon +exec --no-startup-id kdeconnect-indicator +exec /home/ewpratten/bin/conk + +# gaps + +gaps outer 0 +gaps inner 5 + +#smart_gaps on + +# windows style workspace switcher + +bindsym $mod+Control+Right workspace next +bindsym $mod+Control+Left workspace prev + +workspace_auto_back_and_forth yes + +# Set window focusing to only focus if requester is on screen + +focus_on_window_activation smart + +# Audio Manager + +bindsym $mod+Shift+a exec pavucontrol + +# Drop-down terminal +#exec --no-startup-id i3-sensible-terminal --title="metask" +#for_window [instance="metask"] floating enable; +#for_window [instance="metask"] move scratchpad; [instance="metask"] scratchpad show; move position 0px 22px; resize shrink height 300px; resize grow width 683px; move scratchpad +#bindsym $mod+t [instance="metask"] scratchpad show + +# window lock + +bindsym $mod+Control+l exec gnome-screensaver-command -l + +# locker +set $Locker i3lock -c 141414 && sleep 1 + +set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id $Locker, mode "default" + bindsym e exec --no-startup-id i3-msg exit, mode "default" + bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" + bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" + bindsym r exec --no-startup-id systemctl reboot, mode "default" + bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+Delete mode "$mode_system" + +# Go to sleep + +bindsym $mod+Shift+s exec systemctl suspend + +# Screen Shots +bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' +bindsym Control+Print exec gnome-screenshot -i + +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness + +# Media player controls +bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# Auto-start programs +exec --no-startup-id i3msg "1"; exec /usr/bin/firefox + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + colors { + + # colour of border, background, and text + focused_workspace #2f343f #bf616a #d8dee8 + active_workspace #2f343f #2f343f #d8dee8 + inactive_workspace #2f343f #2f343f #d8dee8 + urgent_workspace #2f343f #ebcb8b #2f343f + } + status_command i3status + position top +} + +new_window 1pixel + diff --git a/laptop/home/.config/i3status/config b/laptop/home/.config/i3status/config new file mode 100644 index 0000000..13a2669 --- /dev/null +++ b/laptop/home/.config/i3status/config @@ -0,0 +1,82 @@ +general{ + output_format = "i3bar" + colors = true + interval = 5 +} + +order += "load" +#order += "cpu_temperature 0" +order += "disk /" +order += "ethernet enp0s31f6" +order += "wireless wlp3s0" +order += "ethernet tun0" +#order += "wireless wlan0" +#order += "ethernet eth0" +order += "volume master" +order += "battery 0" +order += "battery 1" +order += "tztime local" + +battery 0 { + format = "%status %percentage %remaining" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + low_threshold = 10 +} +battery 1 { + format = "%status %percentage %remaining" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + low_threshold = 10 +} + +load { + format = "%5min Load" +} + +cpu_temperature 0 { + format = "T: %degrees °C" + path = "/sys/devices/platform/coretemp.0/temp1_input" +} + +disk "/" { + format = "%free Free" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + + + +tztime local { + format = "%time" + format_time = "%a %-d %b %I:%M" +} + +wireless wlp3s0 { + format_up = "WIFI: (%quality at %essid, %bitrate) %ip" + format_down = "WIFI: down" +} + +ethernet enp0s31f6 { + # if you use %speed, i3status requires the cap_net_admin capability + format_up = "ETH: %ip (%speed)" + format_down = "ETH: down" +} + +ethernet tun0 { + format_up = "VPN: %ip" + format_down = "VPN: down" +} + diff --git a/laptop/home/.conkyrc b/laptop/home/.conkyrc new file mode 100644 index 0000000..afa0a3a --- /dev/null +++ b/laptop/home/.conkyrc @@ -0,0 +1,82 @@ +--[[ +Conky, a system monitor, based on torsmo + +Any original torsmo code is licensed under the BSD license + +All code written since the fork of torsmo is licensed under the GPL + +Please see COPYING for details + +Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen +Copyright (c) 2005-2019 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) +All rights reserved. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +You should have received a copy of the GNU General Public License +along with this program. If not, see . +]] + +conky.config = { + alignment = 'top_left', + background = false, + border_width = 1, + cpu_avg_samples = 2, + default_color = 'white', + default_outline_color = 'white', + default_shade_color = 'white', + draw_borders = false, + draw_graph_borders = true, + draw_outline = false, + draw_shades = false, + double_buffer = true, + use_xft = true, + font = 'DejaVu Sans Mono:size=12', + gap_x = 1600, + gap_y = 60, + minimum_height = 5, + minimum_width = 5, + net_avg_samples = 2, + no_buffers = true, + out_to_console = false, + out_to_ncurses = false, + out_to_stderr = false, + out_to_x = true, + extra_newline = false, + own_window = true, + own_window_colour = '#003e60', + own_window_class = 'Conky', + own_window_type = 'override', + stippled_borders = 0, + update_interval = 1.0, + uppercase = false, + use_spacer = 'none', + show_graph_scale = false, + show_graph_range = false +} + +conky.text = [[ +${alignc}${font Open Sans Light:pixelsize=55}${time %H:%M}$font +${alignc}${color1}${time %A} ${time %d} ${time %B} ${time %Y}$font + +${color1}CPU${alignr}${cpu cpu0}%${color0} +${top name 1} $alignr ${top cpu 1}% +${top name 2} $alignr ${top cpu 2}% +${top name 3} $alignr ${top cpu 3}% +${top name 4} $alignr ${top cpu 4}% +${top name 5} $alignr ${top cpu 5}% + +${color1}RAM${alignr}${mem}${color0} +${top_mem name 1} $alignr ${top_mem mem_res 1} +${top_mem name 2} $alignr ${top_mem mem_res 2} +${top_mem name 3} $alignr ${top_mem mem_res 3} +${top_mem name 4} $alignr ${top_mem mem_res 4} +${top_mem name 5} $alignr ${top_mem mem_res 5} +]]; diff --git a/laptop/home/.profile b/laptop/home/.profile new file mode 100644 index 0000000..d89ea5a --- /dev/null +++ b/laptop/home/.profile @@ -0,0 +1,27 @@ +# ~/.profile: executed by the command interpreter for login shells. +# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login +# exists. +# see /usr/share/doc/bash/examples/startup-files for examples. +# the files are located in the bash-doc package. + +# the default umask is set in /etc/profile; for setting the umask +# for ssh logins, install and configure the libpam-umask package. +#umask 022 + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi diff --git a/laptop/home/.spacemacs b/laptop/home/.spacemacs new file mode 100644 index 0000000..7c5f6b4 --- /dev/null +++ b/laptop/home/.spacemacs @@ -0,0 +1,329 @@ +;; -*- mode: emacs-lisp -*- +;; This file is loaded by Spacemacs at startup. +;; It must be stored in your home directory. + +(defun dotspacemacs/layers () + "Configuration Layers declaration. +You should not put any user code in this function besides modifying the variable +values." + (setq-default + ;; Base distribution to use. This is a layer contained in the directory + ;; `+distribution'. For now available distributions are `spacemacs-base' + ;; or `spacemacs'. (default 'spacemacs) + dotspacemacs-distribution 'spacemacs + ;; Lazy installation of layers (i.e. layers are installed only when a file + ;; with a supported type is opened). Possible values are `all', `unused' + ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers + ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will + ;; lazy install any layer that support lazy installation even the layers + ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy + ;; installation feature and you have to explicitly list a layer in the + ;; variable `dotspacemacs-configuration-layers' to install it. + ;; (default 'unused) + dotspacemacs-enable-lazy-installation 'unused + ;; If non-nil then Spacemacs will ask for confirmation before installing + ;; a layer lazily. (default t) + dotspacemacs-ask-for-lazy-installation t + ;; If non-nil layers with lazy install support are lazy installed. + ;; List of additional paths where to look for configuration layers. + ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') + dotspacemacs-configuration-layer-path '() + ;; List of configuration layers to load. + dotspacemacs-configuration-layers + '( + ;; ---------------------------------------------------------------- + ;; Example of useful layers you may want to use right away. + ;; Uncomment some layer names and press (Vim style) or + ;; (Emacs style) to install them. + ;; ---------------------------------------------------------------- + helm + ;; auto-completion + ;; better-defaults + emacs-lisp + ;; git + ;; markdown + ;; org + ;; (shell :variables + ;; shell-default-height 30 + ;; shell-default-position 'bottom) + ;; spell-checking + ;; syntax-checking + ;; version-control + ) + ;; List of additional packages that will be installed without being + ;; wrapped in a layer. If you need some configuration for these + ;; packages, then consider creating a layer. You can also put the + ;; configuration in `dotspacemacs/user-config'. + dotspacemacs-additional-packages '() + ;; A list of packages that cannot be updated. + dotspacemacs-frozen-packages '() + ;; A list of packages that will not be installed and loaded. + dotspacemacs-excluded-packages '() + ;; Defines the behaviour of Spacemacs when installing packages. + ;; Possible values are `used-only', `used-but-keep-unused' and `all'. + ;; `used-only' installs only explicitly used packages and uninstall any + ;; unused packages as well as their unused dependencies. + ;; `used-but-keep-unused' installs only the used packages but won't uninstall + ;; them if they become unused. `all' installs *all* packages supported by + ;; Spacemacs and never uninstall them. (default is `used-only') + dotspacemacs-install-packages 'used-only)) + +(defun dotspacemacs/init () + "Initialization function. +This function is called at the very startup of Spacemacs initialization +before layers configuration. +You should not put any user code in there besides modifying the variable +values." + ;; This setq-default sexp is an exhaustive list of all the supported + ;; spacemacs settings. + (setq-default + ;; If non nil ELPA repositories are contacted via HTTPS whenever it's + ;; possible. Set it to nil if you have no way to use HTTPS in your + ;; environment, otherwise it is strongly recommended to let it set to t. + ;; This variable has no effect if Emacs is launched with the parameter + ;; `--insecure' which forces the value of this variable to nil. + ;; (default t) + dotspacemacs-elpa-https t + ;; Maximum allowed time in seconds to contact an ELPA repository. + dotspacemacs-elpa-timeout 5 + ;; If non nil then spacemacs will check for updates at startup + ;; when the current branch is not `develop'. Note that checking for + ;; new versions works via git commands, thus it calls GitHub services + ;; whenever you start Emacs. (default nil) + dotspacemacs-check-for-update nil + ;; If non-nil, a form that evaluates to a package directory. For example, to + ;; use different package directories for different Emacs versions, set this + ;; to `emacs-version'. + dotspacemacs-elpa-subdirectory nil + ;; One of `vim', `emacs' or `hybrid'. + ;; `hybrid' is like `vim' except that `insert state' is replaced by the + ;; `hybrid state' with `emacs' key bindings. The value can also be a list + ;; with `:variables' keyword (similar to layers). Check the editing styles + ;; section of the documentation for details on available variables. + ;; (default 'vim) + dotspacemacs-editing-style 'vim + ;; If non nil output loading progress in `*Messages*' buffer. (default nil) + dotspacemacs-verbose-loading nil + ;; Specify the startup banner. Default value is `official', it displays + ;; the official spacemacs logo. An integer value is the index of text + ;; banner, `random' chooses a random text banner in `core/banners' + ;; directory. A string value must be a path to an image format supported + ;; by your Emacs build. + ;; If the value is nil then no banner is displayed. (default 'official) + dotspacemacs-startup-banner 'official + ;; List of items to show in startup buffer or an association list of + ;; the form `(list-type . list-size)`. If nil then it is disabled. + ;; Possible values for list-type are: + ;; `recents' `bookmarks' `projects' `agenda' `todos'." + ;; List sizes may be nil, in which case + ;; `spacemacs-buffer-startup-lists-length' takes effect. + dotspacemacs-startup-lists '((recents . 5) + (projects . 7)) + ;; True if the home buffer should respond to resize events. + dotspacemacs-startup-buffer-responsive t + ;; Default major mode of the scratch buffer (default `text-mode') + dotspacemacs-scratch-mode 'text-mode + ;; List of themes, the first of the list is loaded when spacemacs starts. + ;; Press T n to cycle to the next theme in the list (works great + ;; with 2 themes variants, one dark and one light) + dotspacemacs-themes '(spacemacs-dark + spacemacs-light) + ;; If non nil the cursor color matches the state color in GUI Emacs. + dotspacemacs-colorize-cursor-according-to-state t + ;; Default font, or prioritized list of fonts. `powerline-scale' allows to + ;; quickly tweak the mode-line size to make separators look not too crappy. + dotspacemacs-default-font '("Source Code Pro" + :size 13 + :weight normal + :width normal + :powerline-scale 1.1) + ;; The leader key + dotspacemacs-leader-key "SPC" + ;; The key used for Emacs commands (M-x) (after pressing on the leader key). + ;; (default "SPC") + dotspacemacs-emacs-command-key "SPC" + ;; The key used for Vim Ex commands (default ":") + dotspacemacs-ex-command-key ":" + ;; The leader key accessible in `emacs state' and `insert state' + ;; (default "M-m") + dotspacemacs-emacs-leader-key "M-m" + ;; Major mode leader key is a shortcut key which is the equivalent of + ;; pressing ` m`. Set it to `nil` to disable it. (default ",") + dotspacemacs-major-mode-leader-key "," + ;; Major mode leader key accessible in `emacs state' and `insert state'. + ;; (default "C-M-m") + dotspacemacs-major-mode-emacs-leader-key "C-M-m" + ;; These variables control whether separate commands are bound in the GUI to + ;; the key pairs C-i, TAB and C-m, RET. + ;; Setting it to a non-nil value, allows for separate commands under + ;; and TAB or and RET. + ;; In the terminal, these pairs are generally indistinguishable, so this only + ;; works in the GUI. (default nil) + dotspacemacs-distinguish-gui-tab nil + ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil) + dotspacemacs-remap-Y-to-y$ nil + ;; If non-nil, the shift mappings `<' and `>' retain visual state if used + ;; there. (default t) + dotspacemacs-retain-visual-state-on-shift t + ;; If non-nil, J and K move lines up and down when in visual mode. + ;; (default nil) + dotspacemacs-visual-line-move-text nil + ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command. + ;; (default nil) + dotspacemacs-ex-substitute-global nil + ;; Name of the default layout (default "Default") + dotspacemacs-default-layout-name "Default" + ;; If non nil the default layout name is displayed in the mode-line. + ;; (default nil) + dotspacemacs-display-default-layout nil + ;; If non nil then the last auto saved layouts are resume automatically upon + ;; start. (default nil) + dotspacemacs-auto-resume-layouts nil + ;; Size (in MB) above which spacemacs will prompt to open the large file + ;; literally to avoid performance issues. Opening a file literally means that + ;; no major mode or minor modes are active. (default is 1) + dotspacemacs-large-file-size 1 + ;; Location where to auto-save files. Possible values are `original' to + ;; auto-save the file in-place, `cache' to auto-save the file to another + ;; file stored in the cache directory and `nil' to disable auto-saving. + ;; (default 'cache) + dotspacemacs-auto-save-file-location 'cache + ;; Maximum number of rollback slots to keep in the cache. (default 5) + dotspacemacs-max-rollback-slots 5 + ;; If non nil, `helm' will try to minimize the space it uses. (default nil) + dotspacemacs-helm-resize nil + ;; if non nil, the helm header is hidden when there is only one source. + ;; (default nil) + dotspacemacs-helm-no-header nil + ;; define the position to display `helm', options are `bottom', `top', + ;; `left', or `right'. (default 'bottom) + dotspacemacs-helm-position 'bottom + ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching + ;; in all non-asynchronous sources. If set to `source', preserve individual + ;; source settings. Else, disable fuzzy matching in all sources. + ;; (default 'always) + dotspacemacs-helm-use-fuzzy 'always + ;; If non nil the paste micro-state is enabled. When enabled pressing `p` + ;; several times cycle between the kill ring content. (default nil) + dotspacemacs-enable-paste-transient-state nil + ;; Which-key delay in seconds. The which-key buffer is the popup listing + ;; the commands bound to the current keystroke sequence. (default 0.4) + dotspacemacs-which-key-delay 0.4 + ;; Which-key frame position. Possible values are `right', `bottom' and + ;; `right-then-bottom'. right-then-bottom tries to display the frame to the + ;; right; if there is insufficient space it displays it at the bottom. + ;; (default 'bottom) + dotspacemacs-which-key-position 'bottom + ;; If non nil a progress bar is displayed when spacemacs is loading. This + ;; may increase the boot time on some systems and emacs builds, set it to + ;; nil to boost the loading time. (default t) + dotspacemacs-loading-progress-bar t + ;; If non nil the frame is fullscreen when Emacs starts up. (default nil) + ;; (Emacs 24.4+ only) + dotspacemacs-fullscreen-at-startup nil + ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. + ;; Use to disable fullscreen animations in OSX. (default nil) + dotspacemacs-fullscreen-use-non-native nil + ;; If non nil the frame is maximized when Emacs starts up. + ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. + ;; (default nil) (Emacs 24.4+ only) + dotspacemacs-maximized-at-startup nil + ;; A value from the range (0..100), in increasing opacity, which describes + ;; the transparency level of a frame when it's active or selected. + ;; Transparency can be toggled through `toggle-transparency'. (default 90) + dotspacemacs-active-transparency 90 + ;; A value from the range (0..100), in increasing opacity, which describes + ;; the transparency level of a frame when it's inactive or deselected. + ;; Transparency can be toggled through `toggle-transparency'. (default 90) + dotspacemacs-inactive-transparency 90 + ;; If non nil show the titles of transient states. (default t) + dotspacemacs-show-transient-state-title t + ;; If non nil show the color guide hint for transient state keys. (default t) + dotspacemacs-show-transient-state-color-guide t + ;; If non nil unicode symbols are displayed in the mode line. (default t) + dotspacemacs-mode-line-unicode-symbols t + ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth + ;; scrolling overrides the default behavior of Emacs which recenters point + ;; when it reaches the top or bottom of the screen. (default t) + dotspacemacs-smooth-scrolling t + ;; Control line numbers activation. + ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and + ;; `text-mode' derivatives. If set to `relative', line numbers are relative. + ;; This variable can also be set to a property list for finer control: + ;; '(:relative nil + ;; :disabled-for-modes dired-mode + ;; doc-view-mode + ;; markdown-mode + ;; org-mode + ;; pdf-view-mode + ;; text-mode + ;; :size-limit-kb 1000) + ;; (default nil) + dotspacemacs-line-numbers nil + ;; Code folding method. Possible values are `evil' and `origami'. + ;; (default 'evil) + dotspacemacs-folding-method 'evil + ;; If non-nil smartparens-strict-mode will be enabled in programming modes. + ;; (default nil) + dotspacemacs-smartparens-strict-mode nil + ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes + ;; over any automatically added closing parenthesis, bracket, quote, etc… + ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) + dotspacemacs-smart-closing-parenthesis nil + ;; Select a scope to highlight delimiters. Possible values are `any', + ;; `current', `all' or `nil'. Default is `all' (highlight any scope and + ;; emphasis the current one). (default 'all) + dotspacemacs-highlight-delimiters 'all + ;; If non nil, advise quit functions to keep server open when quitting. + ;; (default nil) + dotspacemacs-persistent-server nil + ;; List of search tool executable names. Spacemacs uses the first installed + ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'. + ;; (default '("ag" "pt" "ack" "grep")) + dotspacemacs-search-tools '("ag" "pt" "ack" "grep") + ;; The default package repository used if no explicit repository has been + ;; specified with an installed package. + ;; Not used for now. (default nil) + dotspacemacs-default-package-repository nil + ;; Delete whitespace while saving buffer. Possible values are `all' + ;; to aggressively delete empty line and long sequences of whitespace, + ;; `trailing' to delete only the whitespace at end of lines, `changed'to + ;; delete only whitespace for changed lines or `nil' to disable cleanup. + ;; (default nil) + dotspacemacs-whitespace-cleanup nil + )) + +(defun dotspacemacs/user-init () + "Initialization function for user code. +It is called immediately after `dotspacemacs/init', before layer configuration +executes. + This function is mostly useful for variables that need to be set +before packages are loaded. If you are unsure, you should try in setting them in +`dotspacemacs/user-config' first." + ) + +(defun dotspacemacs/user-config () + "Configuration function for user code. +This function is called at the very end of Spacemacs initialization after +layers configuration. +This is the place where most of your configurations should be done. Unless it is +explicitly specified that a variable should be set before a package is loaded, +you should place your code here." + ) + +;; Do not write anything past this comment. This is where Emacs will +;; auto-generate custom variable definitions. +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(package-selected-packages + (quote + (ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra lv hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile projectile pkg-info epl helm-mode-manager helm-make helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist highlight evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) diff --git a/laptop/home/.zshrc b/laptop/home/.zshrc new file mode 100644 index 0000000..b1297bf --- /dev/null +++ b/laptop/home/.zshrc @@ -0,0 +1,166 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +# Path to your oh-my-zsh installation. + export ZSH="/home/ewpratten/.oh-my-zsh" + +# Set name of the theme to load --- if set to "random", it will +# load a random theme each time oh-my-zsh is loaded, in which case, +# to know which specific one was loaded, run: echo $RANDOM_THEME +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes +#ZSH_THEME="minimal" + +# Set list of themes to pick from when loading at random +# Setting this variable when ZSH_THEME=random will cause zsh to load +# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ +# If set to an empty array, this variable will have no effect. +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) + +# Uncomment the following line to use case-sensitive completion. +# CASE_SENSITIVE="true" + +# Uncomment the following line to use hyphen-insensitive completion. +# Case-sensitive completion must be off. _ and - will be interchangeable. +# HYPHEN_INSENSITIVE="true" + +# Uncomment the following line to disable bi-weekly auto-update checks. +# DISABLE_AUTO_UPDATE="true" + +# Uncomment the following line to change how often to auto-update (in days). +# export UPDATE_ZSH_DAYS=13 + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +# ENABLE_CORRECTION="true" + +# Uncomment the following line to display red dots whilst waiting for completion. +# COMPLETION_WAITING_DOTS="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +# DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. +# You can set one of the optional three formats: +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# or set a custom format using the strftime function format specifications, +# see 'man strftime' for details. +# HIST_STAMPS="mm/dd/yyyy" + +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + +# Which plugins would you like to load? +# Standard plugins can be found in ~/.oh-my-zsh/plugins/* +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(zsh-autosuggestions) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# export MANPATH="/usr/local/man:$MANPATH" + +# You may need to manually set your language environment +# export LANG=en_US.UTF-8 + +# Preferred editor for local and remote sessions +# if [[ -n $SSH_CONNECTION ]]; then +# export EDITOR='vim' +# else +# export EDITOR='mvim' +# fi + +# Compilation flags +# export ARCHFLAGS="-arch x86_64" + +# Set personal aliases, overriding those provided by oh-my-zsh libs, +# plugins, and themes. Aliases can be placed here, though oh-my-zsh +# users are encouraged to define aliases within the ZSH_CUSTOM folder. +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" + +# Prompt config +autoload -U colors && colors +NEWLINE=$'\n' +export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" +setopt prompt_subst +autoload -Uz vcs_info +zstyle ':vcs_info:*' actionformats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' +zstyle ':vcs_info:*' formats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' + +zstyle ':vcs_info:*' enable git cvs svn + +# or use pre_cmd, see man zshcontrib +vcs_info_wrapper() { + vcs_info + if [ -n "$vcs_info_msg_0_" ]; then + echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" + fi +} +export RPROMPT=$'%@ $(vcs_info_wrapper) %?' + +# Aliases +alias ls="ls --color=auto" +alias ll="ls -l" +alias la="ls -a" +alias please='sudo $(history -p !!)' +alias :q="exit" +alias :wq="exit" +alias cls=clear +alias zshreload="source ~/.zshrc" +alias lip="ip addr | grep inet | grep wlan0" +alias p4='ping 4.2.2.2 -c 4' + +mkcd() { + if [ $# != 1 ]; then + echo "Usage: mkcd " + else + mkdir -p $1 && cd $1 + fi +} + +extract () { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xvjf $1 ;; + *.tar.gz) tar xvzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xvf $1 ;; + *.tbz2) tar xvjf $1 ;; + *.tgz) tar xvzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "don't know how to extract '$1'..." ;; + esac + else + echo "'$1' is not a valid file!" + fi +} + +export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" +# source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh + +export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin" + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="/home/ewpratten/.sdkman" +[[ -s "/home/ewpratten/.sdkman/bin/sdkman-init.sh" ]] && source "/home/ewpratten/.sdkman/bin/sdkman-init.sh" diff --git a/laptop/home/.zshrc.pre-oh-my-zsh b/laptop/home/.zshrc.pre-oh-my-zsh new file mode 100644 index 0000000..e438006 --- /dev/null +++ b/laptop/home/.zshrc.pre-oh-my-zsh @@ -0,0 +1,168 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored +zstyle :compinstall filename '/home/chronos/user/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +unsetopt beep +bindkey -v +# End of lines configured by zsh-newuser-install + +#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git +#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc +#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +# prompt stuff +autoload -U colors && colors +NEWLINE=$'\n' +export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" +setopt prompt_subst +autoload -Uz vcs_info +zstyle ':vcs_info:*' actionformats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' +zstyle ':vcs_info:*' formats \ + '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' + +zstyle ':vcs_info:*' enable git cvs svn + +# or use pre_cmd, see man zshcontrib +vcs_info_wrapper() { + vcs_info + if [ -n "$vcs_info_msg_0_" ]; then + echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" + fi +} +export RPROMPT=$'%@ $(vcs_info_wrapper) %?' +#other stuff + +# clear +# screenfetch + +#dont mess with this +alias ls="ls --color=auto" + +#alias pip="python3 -m pip" + +alias settings="env XDG_CURRENT_DESKTOP=GNOME gnome-control-center " + +# aliases + +#pandoc +alias docx="pandoc -s -o" + +#alias school="cd /media/removable/SD\ Card/School" +#alias sdcard="cd /media/removable/SD\ Card/" +alias ll="ls -l" +alias la="ls -a" +alias please='sudo $(history -p !!)' +# alias vi=vim +alias :q="exit" +alias :wq="exit" +alias cls=clear +alias zshreload="source ~/.zshrc" +alias lip="ip addr | grep inet | grep wlan0" +alias p4='ping 4.2.2.2 -c 4' +alias tracknjack="sudo /home/ewpratten/.local/bin/trackerjacker" + +sci(){ + if [ $# != 1 ]; then + crew -h + else + crew install $1 + fi +} + +search(){ + if [ $# != 1 ]; then + echo "please enter a name to search for" + else + ls | grep "$1" + fi +} + +csearch(){ + if [ $# != 1 ]; then + echo "Usage: csearch " + else + crew search | grep -e "$1" + fi +} + +mkcd() { + if [ $# != 1 ]; then + echo "Usage: mkcd " + else + mkdir -p $1 && cd $1 + fi +} + +cl() +{ + last_dir="$(ls -Frt | grep '/$' | tail -n1)" + if [ -d "$last_dir" ]; then + cd "$last_dir" + fi +} + +sud() { # do sudo, or sudo the last command if no argument given + if [[ $# == 0 ]]; then + sudo $(history -p '!!') + else + sudo "$@" + fi +} + +up(){ + local d="" + limit=$1 + for ((i=1 ; i <= limit ; i++)) + do + d=$d/.. + done + d=$(echo $d | sed 's/^\///') + if [ -z "$d" ]; then + d=.. + fi + cd $d +} + +extract () { + if [ -f $1 ] ; then + case $1 in + *.tar.bz2) tar xvjf $1 ;; + *.tar.gz) tar xvzf $1 ;; + *.bz2) bunzip2 $1 ;; + *.rar) unrar x $1 ;; + *.gz) gunzip $1 ;; + *.tar) tar xvf $1 ;; + *.tbz2) tar xvjf $1 ;; + *.tgz) tar xvzf $1 ;; + *.zip) unzip $1 ;; + *.Z) uncompress $1 ;; + *.7z) 7z x $1 ;; + *) echo "don't know how to extract '$1'..." ;; + esac + else + echo "'$1' is not a valid file!" + fi +} +#cls +#screenfetch +#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +#eval $(thefuck --alias) +#export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux +#export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man +#export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" +export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" +source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh + +export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin" From b266898dba42f63fe13cb50ae9ff83217837165b Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 21 Mar 2020 11:14:45 -0400 Subject: [PATCH 39/45] update --- laptop/home/.config/i3/config | 58 +++++++++++++++++++++++++++---- laptop/home/.config/i3/scratch.sh | 3 ++ 2 files changed, 54 insertions(+), 7 deletions(-) create mode 100755 laptop/home/.config/i3/scratch.sh diff --git a/laptop/home/.config/i3/config b/laptop/home/.config/i3/config index 81db262..72a4f6d 100644 --- a/laptop/home/.config/i3/config +++ b/laptop/home/.config/i3/config @@ -11,6 +11,11 @@ set $mod Mod4 +# Languages +exec "setxkbmap -option 'grp:alt_shift_toggle' -layout us,jp -variant qwerty" +exec gxkb +# exec --no-startup-id fcitx -d + # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 @@ -29,6 +34,15 @@ font pango:monospace 8 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +# Create a scratchpad +#exec gnome-terminal --title "scratch" +#[title="scratch"] move scratchpad +bindsym $mod+Shift+n mark "scratch", move scratchpad +bindsym $mod+n [con_mark="scratch"] scratchpad show + +# Rick roll +bindsym $mod+Control+r exec xdg-open /home/ewpratten/Music/rickroll.mp3 + # start a terminal bindsym $mod+Return exec i3-sensible-terminal @@ -38,31 +52,44 @@ bindsym $mod+Shift+q kill # start dmenu (a program launcher) #bindsym $mod+d exec dmenu_run +# Show custom launcher +bindsym $mod+Shift+w exec sh /home/ewpratten/projects/menus/scripts/web.sh + +# Calculator +bindsym $mod+c exec xsel -o | dmenu -p Calculate: | xargs echo | bc 2>&1 | dmenu -p Answer: | xsel -i + # use rofi instead bindsym $mod+d exec rofi -show run +bindsym $mod+Shift+d exec rofi -show drun # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. -# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + # settings # byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center exec --no-startup-id nitrogen --restore -exec_always --no-startup-id compton -f +#exec_always --no-startup-id compton -b --respect-prop-shadow +#exec_always --no-startup-id $HOME/.config/compton/launch.sh exec --no-startup-id nm-applet exec --no-startup-id volumeicon exec --no-startup-id kdeconnect-indicator exec /home/ewpratten/bin/conk +#exec_always --no-startup-id $HOME/.config/polybar/launch.sh + +# This allows the gnome password prompt. But requires: policykit-desktop-privileges policykit-1-gnome +exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 # gaps - -gaps outer 0 +for_window [class=".*"] border pixel 0 +gaps outer 5 gaps inner 5 -#smart_gaps on + +# smart_gaps on # windows style workspace switcher @@ -90,9 +117,9 @@ bindsym $mod+Shift+a exec pavucontrol bindsym $mod+Control+l exec gnome-screensaver-command -l # locker -set $Locker i3lock -c 141414 && sleep 1 +set $Locker i3lock -c 141414 -e -f -i /home/ewpratten/Pictures/lockscreen.png && sleep 1 -set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown +set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown, (b) fix mouse mode "$mode_system" { bindsym l exec --no-startup-id $Locker, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" @@ -100,6 +127,7 @@ mode "$mode_system" { bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" + bindsym b exec --no-startup-id sudo modprobe -r psmouse && sudo modprobe psmouse, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" @@ -108,6 +136,20 @@ mode "$mode_system" { bindsym $mod+Delete mode "$mode_system" +set $mode_monitor Move current workspace with VIM keys +mode "$mode_monitor" { + bindsym h move workspace to output left + bindsym l move workspace to output right + bindsym j move workspace to output up + bindsym k move workspace to output down + + bindsym Return mode "default" + bindsym Escape mode "default" + +} + +bindsym $mod+m mode "$mode_monitor" + # Go to sleep bindsym $mod+Shift+s exec systemctl suspend @@ -265,6 +307,8 @@ bar { active_workspace #2f343f #2f343f #d8dee8 inactive_workspace #2f343f #2f343f #d8dee8 urgent_workspace #2f343f #ebcb8b #2f343f + + background #002b36 } status_command i3status position top diff --git a/laptop/home/.config/i3/scratch.sh b/laptop/home/.config/i3/scratch.sh new file mode 100755 index 0000000..ea75414 --- /dev/null +++ b/laptop/home/.config/i3/scratch.sh @@ -0,0 +1,3 @@ +#! /bin/bash +i3-msg exec "gnome-ternimal --title scratch" +i3-msg '[ title="scratch" ] move scratchpad' From 4d89281d009ab155372cc5bbf4645f1f5726bd2d Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 21 Mar 2020 11:17:21 -0400 Subject: [PATCH 40/45] . --- laptop/home/.config/i3status/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laptop/home/.config/i3status/config b/laptop/home/.config/i3status/config index 13a2669..e08c362 100644 --- a/laptop/home/.config/i3status/config +++ b/laptop/home/.config/i3status/config @@ -4,7 +4,7 @@ general{ interval = 5 } -order += "load" +order += "cpu_usage" #order += "cpu_temperature 0" order += "disk /" order += "ethernet enp0s31f6" @@ -36,8 +36,8 @@ battery 1 { low_threshold = 10 } -load { - format = "%5min Load" +cpu_usage { + format = "CPU: %usage" } cpu_temperature 0 { From b13ccae8d1d9c48e4144a195276a36aef65974ed Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 21 Mar 2020 11:23:36 -0400 Subject: [PATCH 41/45] added new desktop cfg --- workstation/home/.config/i3/config | 318 +++++++++++++++++++++++ workstation/home/.config/i3/scratch.sh | 3 + workstation/home/.config/i3status/config | 62 +++++ 3 files changed, 383 insertions(+) create mode 100644 workstation/home/.config/i3/config create mode 100755 workstation/home/.config/i3/scratch.sh create mode 100644 workstation/home/.config/i3status/config diff --git a/workstation/home/.config/i3/config b/workstation/home/.config/i3/config new file mode 100644 index 0000000..72a4f6d --- /dev/null +++ b/workstation/home/.config/i3/config @@ -0,0 +1,318 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Languages +exec "setxkbmap -option 'grp:alt_shift_toggle' -layout us,jp -variant qwerty" +exec gxkb +# exec --no-startup-id fcitx -d + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# Create a scratchpad +#exec gnome-terminal --title "scratch" +#[title="scratch"] move scratchpad +bindsym $mod+Shift+n mark "scratch", move scratchpad +bindsym $mod+n [con_mark="scratch"] scratchpad show + +# Rick roll +bindsym $mod+Control+r exec xdg-open /home/ewpratten/Music/rickroll.mp3 + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run + +# Show custom launcher +bindsym $mod+Shift+w exec sh /home/ewpratten/projects/menus/scripts/web.sh + +# Calculator +bindsym $mod+c exec xsel -o | dmenu -p Calculate: | xargs echo | bc 2>&1 | dmenu -p Answer: | xsel -i + +# use rofi instead + +bindsym $mod+d exec rofi -show run +bindsym $mod+Shift+d exec rofi -show drun + +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. + + +# settings +# byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center + +exec --no-startup-id nitrogen --restore +#exec_always --no-startup-id compton -b --respect-prop-shadow +#exec_always --no-startup-id $HOME/.config/compton/launch.sh +exec --no-startup-id nm-applet +exec --no-startup-id volumeicon +exec --no-startup-id kdeconnect-indicator +exec /home/ewpratten/bin/conk +#exec_always --no-startup-id $HOME/.config/polybar/launch.sh + +# This allows the gnome password prompt. But requires: policykit-desktop-privileges policykit-1-gnome +exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 + +# gaps +for_window [class=".*"] border pixel 0 +gaps outer 5 +gaps inner 5 + + +# smart_gaps on + +# windows style workspace switcher + +bindsym $mod+Control+Right workspace next +bindsym $mod+Control+Left workspace prev + +workspace_auto_back_and_forth yes + +# Set window focusing to only focus if requester is on screen + +focus_on_window_activation smart + +# Audio Manager + +bindsym $mod+Shift+a exec pavucontrol + +# Drop-down terminal +#exec --no-startup-id i3-sensible-terminal --title="metask" +#for_window [instance="metask"] floating enable; +#for_window [instance="metask"] move scratchpad; [instance="metask"] scratchpad show; move position 0px 22px; resize shrink height 300px; resize grow width 683px; move scratchpad +#bindsym $mod+t [instance="metask"] scratchpad show + +# window lock + +bindsym $mod+Control+l exec gnome-screensaver-command -l + +# locker +set $Locker i3lock -c 141414 -e -f -i /home/ewpratten/Pictures/lockscreen.png && sleep 1 + +set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown, (b) fix mouse +mode "$mode_system" { + bindsym l exec --no-startup-id $Locker, mode "default" + bindsym e exec --no-startup-id i3-msg exit, mode "default" + bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" + bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" + bindsym r exec --no-startup-id systemctl reboot, mode "default" + bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" + bindsym b exec --no-startup-id sudo modprobe -r psmouse && sudo modprobe psmouse, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+Delete mode "$mode_system" + +set $mode_monitor Move current workspace with VIM keys +mode "$mode_monitor" { + bindsym h move workspace to output left + bindsym l move workspace to output right + bindsym j move workspace to output up + bindsym k move workspace to output down + + bindsym Return mode "default" + bindsym Escape mode "default" + +} + +bindsym $mod+m mode "$mode_monitor" + +# Go to sleep + +bindsym $mod+Shift+s exec systemctl suspend + +# Screen Shots +bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' +bindsym Control+Print exec gnome-screenshot -i + +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness + +# Media player controls +bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# Auto-start programs +exec --no-startup-id i3msg "1"; exec /usr/bin/firefox + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + colors { + + # colour of border, background, and text + focused_workspace #2f343f #bf616a #d8dee8 + active_workspace #2f343f #2f343f #d8dee8 + inactive_workspace #2f343f #2f343f #d8dee8 + urgent_workspace #2f343f #ebcb8b #2f343f + + background #002b36 + } + status_command i3status + position top +} + +new_window 1pixel + diff --git a/workstation/home/.config/i3/scratch.sh b/workstation/home/.config/i3/scratch.sh new file mode 100755 index 0000000..ea75414 --- /dev/null +++ b/workstation/home/.config/i3/scratch.sh @@ -0,0 +1,3 @@ +#! /bin/bash +i3-msg exec "gnome-ternimal --title scratch" +i3-msg '[ title="scratch" ] move scratchpad' diff --git a/workstation/home/.config/i3status/config b/workstation/home/.config/i3status/config new file mode 100644 index 0000000..fee83d0 --- /dev/null +++ b/workstation/home/.config/i3status/config @@ -0,0 +1,62 @@ +general{ + output_format = "i3bar" + colors = true + interval = 5 +} + +order += "cpu_usage" +#order += "cpu_temperature 0" +order += "disk /" +order += "ethernet enp0s31f6" +order += "wireless wlp3s0" +order += "ethernet tun0" +#order += "wireless wlan0" +#order += "ethernet eth0" +order += "volume master" +order += "tztime local" + + +cpu_usage { + format = "CPU: %usage" +} + +cpu_temperature 0 { + format = "T: %degrees °C" + path = "/sys/devices/platform/coretemp.0/temp1_input" +} + +disk "/" { + format = "%free Free" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + + + +tztime local { + format = "%time" + format_time = "%a %-d %b %I:%M" +} + +wireless wlp3s0 { + format_up = "WIFI: (%quality at %essid, %bitrate) %ip" + format_down = "WIFI: down" +} + +ethernet enp0s31f6 { + # if you use %speed, i3status requires the cap_net_admin capability + format_up = "ETH: %ip (%speed)" + format_down = "ETH: down" +} + +ethernet tun0 { + format_up = "VPN: %ip" + format_down = "VPN: down" +} + From a3cf071a8f397c93856ab0f0d72df0683b3d8ed5 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 7 Jul 2020 15:59:33 -0400 Subject: [PATCH 42/45] Update .zshrc --- laptop/home/.zshrc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/laptop/home/.zshrc b/laptop/home/.zshrc index b1297bf..1ce9068 100644 --- a/laptop/home/.zshrc +++ b/laptop/home/.zshrc @@ -66,6 +66,11 @@ plugins=(zsh-autosuggestions) source $ZSH/oh-my-zsh.sh +alias i3cheatsheet='egrep ^bind ~/.config/i3/config | cut -d '\'' '\'' -f 2- | sed '\''s/ /\t/'\'' | column -ts $'\''\t'\'' | pr -2 -w 145 -t | less' + +# Load Z +. ~/bin/z.sh + # User configuration # export MANPATH="/usr/local/man:$MANPATH" @@ -91,11 +96,16 @@ source $ZSH/oh-my-zsh.sh # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +# + +fancyLocationString(){ + echo "<$(echo $(printf "\\\\$(printf "u001b[3$(($(echo $((16#$(hostname | md5sum | cut -c -2)))) % 10))")m")$(if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then echo "R"; else echo "L"; fi))\u001b[0m>" +} # Prompt config autoload -U colors && colors NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" +export PROMPT="%{$fg[green]%}%n@%M $(fancyLocationString) %{$fg[cyan]%}%~ $ %{$reset_color%}" setopt prompt_subst autoload -Uz vcs_info zstyle ':vcs_info:*' actionformats \ @@ -126,6 +136,9 @@ alias cls=clear alias zshreload="source ~/.zshrc" alias lip="ip addr | grep inet | grep wlan0" alias p4='ping 4.2.2.2 -c 4' +alias ubenv='docker run -it ubuntu' +alias fixmouse='sudo modprobe -r psmouse && sudo modprobe psmouse && xinput --set-prop "SynPS/2 Synaptics TouchPad" 287 0' # Fixes mouse issues +alias quickhttp='sudo python -m SimpleHTTPServer 443' mkcd() { if [ $# != 1 ]; then @@ -156,10 +169,14 @@ extract () { fi } +pydo () { + python3 -c "print($1)" +} + export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" # source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh -export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin" +export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin:/home/ewpratten/.local/kitty.app/bin:/home/ewpratten/node/bin" #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! export SDKMAN_DIR="/home/ewpratten/.sdkman" From f528d41ac0d4b02f23919827b53cd8eac0194e5d Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 7 Jul 2020 16:00:51 -0400 Subject: [PATCH 43/45] Create z.sh --- laptop/home/bin/z.sh | 253 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 laptop/home/bin/z.sh diff --git a/laptop/home/bin/z.sh b/laptop/home/bin/z.sh new file mode 100644 index 0000000..2b7f87a --- /dev/null +++ b/laptop/home/bin/z.sh @@ -0,0 +1,253 @@ +# Copyright (c) 2009 rupa deadwyler. Licensed under the WTFPL license, Version 2 + +# maintains a jump-list of the directories you actually use +# +# INSTALL: +# * put something like this in your .bashrc/.zshrc: +# . /path/to/z.sh +# * cd around for a while to build up the db +# * PROFIT!! +# * optionally: +# set $_Z_CMD in .bashrc/.zshrc to change the command (default z). +# set $_Z_DATA in .bashrc/.zshrc to change the datafile (default ~/.z). +# set $_Z_NO_RESOLVE_SYMLINKS to prevent symlink resolution. +# set $_Z_NO_PROMPT_COMMAND if you're handling PROMPT_COMMAND yourself. +# set $_Z_EXCLUDE_DIRS to an array of directories to exclude. +# set $_Z_OWNER to your username if you want use z while sudo with $HOME kept +# +# USE: +# * z foo # cd to most frecent dir matching foo +# * z foo bar # cd to most frecent dir matching foo and bar +# * z -r foo # cd to highest ranked dir matching foo +# * z -t foo # cd to most recently accessed dir matching foo +# * z -l foo # list matches instead of cd +# * z -e foo # echo the best match, don't cd +# * z -c foo # restrict matches to subdirs of $PWD + +[ -d "${_Z_DATA:-$HOME/.z}" ] && { + echo "ERROR: z.sh's datafile (${_Z_DATA:-$HOME/.z}) is a directory." +} + +_z() { + + local datafile="${_Z_DATA:-$HOME/.z}" + + # if symlink, dereference + [ -h "$datafile" ] && datafile=$(readlink "$datafile") + + # bail if we don't own ~/.z and $_Z_OWNER not set + [ -z "$_Z_OWNER" -a -f "$datafile" -a ! -O "$datafile" ] && return + + _z_dirs () { + local line + while read line; do + # only count directories + [ -d "${line%%\|*}" ] && echo "$line" + done < "$datafile" + return 0 + } + + # add entries + if [ "$1" = "--add" ]; then + shift + + # $HOME isn't worth matching + [ "$*" = "$HOME" ] && return + + # don't track excluded directory trees + local exclude + for exclude in "${_Z_EXCLUDE_DIRS[@]}"; do + case "$*" in "$exclude*") return;; esac + done + + # maintain the data file + local tempfile="$datafile.$RANDOM" + _z_dirs | awk -v path="$*" -v now="$(date +%s)" -F"|" ' + BEGIN { + rank[path] = 1 + time[path] = now + } + $2 >= 1 { + # drop ranks below 1 + if( $1 == path ) { + rank[$1] = $2 + 1 + time[$1] = now + } else { + rank[$1] = $2 + time[$1] = $3 + } + count += $2 + } + END { + if( count > 9000 ) { + # aging + for( x in rank ) print x "|" 0.99*rank[x] "|" time[x] + } else for( x in rank ) print x "|" rank[x] "|" time[x] + } + ' 2>/dev/null >| "$tempfile" + # do our best to avoid clobbering the datafile in a race condition. + if [ $? -ne 0 -a -f "$datafile" ]; then + env rm -f "$tempfile" + else + [ "$_Z_OWNER" ] && chown $_Z_OWNER:"$(id -ng $_Z_OWNER)" "$tempfile" + env mv -f "$tempfile" "$datafile" || env rm -f "$tempfile" + fi + + # tab completion + elif [ "$1" = "--complete" -a -s "$datafile" ]; then + _z_dirs | awk -v q="$2" -F"|" ' + BEGIN { + q = substr(q, 3) + if( q == tolower(q) ) imatch = 1 + gsub(/ /, ".*", q) + } + { + if( imatch ) { + if( tolower($1) ~ q ) print $1 + } else if( $1 ~ q ) print $1 + } + ' 2>/dev/null + + else + # list/go + local echo fnd last list opt typ + while [ "$1" ]; do case "$1" in + --) while [ "$1" ]; do shift; fnd="$fnd${fnd:+ }$1";done;; + -*) opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in + c) fnd="^$PWD $fnd";; + e) echo=1;; + h) echo "${_Z_CMD:-z} [-cehlrtx] args" >&2; return;; + l) list=1;; + r) typ="rank";; + t) typ="recent";; + x) sed -i -e "\:^${PWD}|.*:d" "$datafile";; + esac; opt=${opt:1}; done;; + *) fnd="$fnd${fnd:+ }$1";; + esac; last=$1; [ "$#" -gt 0 ] && shift; done + [ "$fnd" -a "$fnd" != "^$PWD " ] || list=1 + + # if we hit enter on a completion just go there + case "$last" in + # completions will always start with / + /*) [ -z "$list" -a -d "$last" ] && builtin cd "$last" && return;; + esac + + # no file yet + [ -f "$datafile" ] || return + + local cd + cd="$( < <( _z_dirs ) awk -v t="$(date +%s)" -v list="$list" -v typ="$typ" -v q="$fnd" -F"|" ' + function frecent(rank, time) { + # relate frequency and time + dx = t - time + if( dx < 3600 ) return rank * 4 + if( dx < 86400 ) return rank * 2 + if( dx < 604800 ) return rank / 2 + return rank / 4 + } + function output(matches, best_match, common) { + # list or return the desired directory + if( list ) { + cmd = "sort -g >&2" + for( x in matches ) { + if( matches[x] ) { + printf "%-10s %s\n", matches[x], x | cmd + } + } + if( common ) { + printf "%-10s %s\n", "common:", common > "/dev/stderr" + } + } else { + if( common ) best_match = common + print best_match + } + } + function common(matches) { + # find the common root of a list of matches, if it exists + for( x in matches ) { + if( matches[x] && (!short || length(x) < length(short)) ) { + short = x + } + } + if( short == "/" ) return + for( x in matches ) if( matches[x] && index(x, short) != 1 ) { + return + } + return short + } + BEGIN { + gsub(" ", ".*", q) + hi_rank = ihi_rank = -9999999999 + } + { + if( typ == "rank" ) { + rank = $2 + } else if( typ == "recent" ) { + rank = $3 - t + } else rank = frecent($2, $3) + if( $1 ~ q ) { + matches[$1] = rank + } else if( tolower($1) ~ tolower(q) ) imatches[$1] = rank + if( matches[$1] && matches[$1] > hi_rank ) { + best_match = $1 + hi_rank = matches[$1] + } else if( imatches[$1] && imatches[$1] > ihi_rank ) { + ibest_match = $1 + ihi_rank = imatches[$1] + } + } + END { + # prefer case sensitive + if( best_match ) { + output(matches, best_match, common(matches)) + } else if( ibest_match ) { + output(imatches, ibest_match, common(imatches)) + } + } + ')" + + [ $? -eq 0 ] && [ "$cd" ] && { + if [ "$echo" ]; then echo "$cd"; else builtin cd "$cd"; fi + } + fi +} + +alias ${_Z_CMD:-z}='_z 2>&1' + +[ "$_Z_NO_RESOLVE_SYMLINKS" ] || _Z_RESOLVE_SYMLINKS="-P" + +if type compctl >/dev/null 2>&1; then + # zsh + [ "$_Z_NO_PROMPT_COMMAND" ] || { + # populate directory list, avoid clobbering any other precmds. + if [ "$_Z_NO_RESOLVE_SYMLINKS" ]; then + _z_precmd() { + (_z --add "${PWD:a}" &) + } + else + _z_precmd() { + (_z --add "${PWD:A}" &) + } + fi + [[ -n "${precmd_functions[(r)_z_precmd]}" ]] || { + precmd_functions[$(($#precmd_functions+1))]=_z_precmd + } + } + _z_zsh_tab_completion() { + # tab completion + local compl + read -l compl + reply=(${(f)"$(_z --complete "$compl")"}) + } + compctl -U -K _z_zsh_tab_completion _z +elif type complete >/dev/null 2>&1; then + # bash + # tab completion + complete -o filenames -C '_z --complete "$COMP_LINE"' ${_Z_CMD:-z} + [ "$_Z_NO_PROMPT_COMMAND" ] || { + # populate directory list. avoid clobbering other PROMPT_COMMANDs. + grep "_z --add" <<< "$PROMPT_COMMAND" >/dev/null || { + PROMPT_COMMAND="$PROMPT_COMMAND"$'\n''(_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null &);' + } + } +fi From 834b02aa91fe10bf0c75c2cec72dd0ae25af1259 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Tue, 7 Jul 2020 16:05:49 -0400 Subject: [PATCH 44/45] Update .zshrc --- laptop/home/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laptop/home/.zshrc b/laptop/home/.zshrc index 1ce9068..abb01e6 100644 --- a/laptop/home/.zshrc +++ b/laptop/home/.zshrc @@ -105,7 +105,7 @@ fancyLocationString(){ # Prompt config autoload -U colors && colors NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M $(fancyLocationString) %{$fg[cyan]%}%~ $ %{$reset_color%}" +export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" setopt prompt_subst autoload -Uz vcs_info zstyle ':vcs_info:*' actionformats \ From 583793b3605367da8653db8be39a9c7c2f839f4e Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 8 Jul 2020 14:29:17 -0400 Subject: [PATCH 45/45] Reset --- README.md | 2 - laptop/home/.Xresources | 36 --- laptop/home/.config/i3/config | 318 ---------------------- laptop/home/.config/i3/scratch.sh | 3 - laptop/home/.config/i3status/config | 82 ------ laptop/home/.conkyrc | 82 ------ laptop/home/.profile | 27 -- laptop/home/.spacemacs | 329 ----------------------- laptop/home/.zshrc | 183 ------------- laptop/home/.zshrc.pre-oh-my-zsh | 168 ------------ laptop/home/bin/z.sh | 253 ----------------- workstation/home/.config/i3/config | 318 ---------------------- workstation/home/.config/i3/scratch.sh | 3 - workstation/home/.config/i3status/config | 62 ----- 14 files changed, 1866 deletions(-) delete mode 100644 README.md delete mode 100644 laptop/home/.Xresources delete mode 100644 laptop/home/.config/i3/config delete mode 100755 laptop/home/.config/i3/scratch.sh delete mode 100644 laptop/home/.config/i3status/config delete mode 100644 laptop/home/.conkyrc delete mode 100644 laptop/home/.profile delete mode 100644 laptop/home/.spacemacs delete mode 100644 laptop/home/.zshrc delete mode 100644 laptop/home/.zshrc.pre-oh-my-zsh delete mode 100644 laptop/home/bin/z.sh delete mode 100644 workstation/home/.config/i3/config delete mode 100755 workstation/home/.config/i3/scratch.sh delete mode 100644 workstation/home/.config/i3status/config diff --git a/README.md b/README.md deleted file mode 100644 index 82bd4af..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Dotfiles20 -My new and improved dotfiles diff --git a/laptop/home/.Xresources b/laptop/home/.Xresources deleted file mode 100644 index 1c28c20..0000000 --- a/laptop/home/.Xresources +++ /dev/null @@ -1,36 +0,0 @@ -! scroll with output -URxvt*scrollTtyOutput: true - -! scroll in relation to buffer (with mouse scroll or Shift+Page Up) -URxvt*scrollWithBuffer: true - -! scroll back to the bottom on keypress -URxvt*scrollTtyKeypress: true - -! Fix scrolling in second page of terminal -URxvt.secondaryScreen: 1 -URxvt.secondaryScroll: 0 -URxvt.secondaryWheel: 1 - -! Better font spacing -URxvt.letterSpace: -1 - -! Crosh-like copy and paste -URxvt.clipboard.autocopy: true -URxvt.keysym.M-c: perl:clipboard:copy -URxvt.keysym.M-v: perl:clipboard:paste - -! Open links from the terminal -URxvt.perl-ext-common: default,matcher -URxvt.url-launcher: /usr/bin/xdg-open -URxvt.matcher.button: 1 - -! Highlight links -URxvt.matcher.rend.0: Uline Bold fg5 - -! Fix glyphs -URxvt*skipBuiltinGlyphs: true - -! Custom font -URxvt.font: xft:monaco:size=20 - diff --git a/laptop/home/.config/i3/config b/laptop/home/.config/i3/config deleted file mode 100644 index 72a4f6d..0000000 --- a/laptop/home/.config/i3/config +++ /dev/null @@ -1,318 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -# Languages -exec "setxkbmap -option 'grp:alt_shift_toggle' -layout us,jp -variant qwerty" -exec gxkb -# exec --no-startup-id fcitx -d - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# Create a scratchpad -#exec gnome-terminal --title "scratch" -#[title="scratch"] move scratchpad -bindsym $mod+Shift+n mark "scratch", move scratchpad -bindsym $mod+n [con_mark="scratch"] scratchpad show - -# Rick roll -bindsym $mod+Control+r exec xdg-open /home/ewpratten/Music/rickroll.mp3 - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -#bindsym $mod+d exec dmenu_run - -# Show custom launcher -bindsym $mod+Shift+w exec sh /home/ewpratten/projects/menus/scripts/web.sh - -# Calculator -bindsym $mod+c exec xsel -o | dmenu -p Calculate: | xargs echo | bc 2>&1 | dmenu -p Answer: | xsel -i - -# use rofi instead - -bindsym $mod+d exec rofi -show run -bindsym $mod+Shift+d exec rofi -show drun - -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. - - -# settings -# byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center - -exec --no-startup-id nitrogen --restore -#exec_always --no-startup-id compton -b --respect-prop-shadow -#exec_always --no-startup-id $HOME/.config/compton/launch.sh -exec --no-startup-id nm-applet -exec --no-startup-id volumeicon -exec --no-startup-id kdeconnect-indicator -exec /home/ewpratten/bin/conk -#exec_always --no-startup-id $HOME/.config/polybar/launch.sh - -# This allows the gnome password prompt. But requires: policykit-desktop-privileges policykit-1-gnome -exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 - -# gaps -for_window [class=".*"] border pixel 0 -gaps outer 5 -gaps inner 5 - - -# smart_gaps on - -# windows style workspace switcher - -bindsym $mod+Control+Right workspace next -bindsym $mod+Control+Left workspace prev - -workspace_auto_back_and_forth yes - -# Set window focusing to only focus if requester is on screen - -focus_on_window_activation smart - -# Audio Manager - -bindsym $mod+Shift+a exec pavucontrol - -# Drop-down terminal -#exec --no-startup-id i3-sensible-terminal --title="metask" -#for_window [instance="metask"] floating enable; -#for_window [instance="metask"] move scratchpad; [instance="metask"] scratchpad show; move position 0px 22px; resize shrink height 300px; resize grow width 683px; move scratchpad -#bindsym $mod+t [instance="metask"] scratchpad show - -# window lock - -bindsym $mod+Control+l exec gnome-screensaver-command -l - -# locker -set $Locker i3lock -c 141414 -e -f -i /home/ewpratten/Pictures/lockscreen.png && sleep 1 - -set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown, (b) fix mouse -mode "$mode_system" { - bindsym l exec --no-startup-id $Locker, mode "default" - bindsym e exec --no-startup-id i3-msg exit, mode "default" - bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" - bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" - bindsym r exec --no-startup-id systemctl reboot, mode "default" - bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" - bindsym b exec --no-startup-id sudo modprobe -r psmouse && sudo modprobe psmouse, mode "default" - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+Delete mode "$mode_system" - -set $mode_monitor Move current workspace with VIM keys -mode "$mode_monitor" { - bindsym h move workspace to output left - bindsym l move workspace to output right - bindsym j move workspace to output up - bindsym k move workspace to output down - - bindsym Return mode "default" - bindsym Escape mode "default" - -} - -bindsym $mod+m mode "$mode_monitor" - -# Go to sleep - -bindsym $mod+Shift+s exec systemctl suspend - -# Screen Shots -bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' -bindsym Control+Print exec gnome-screenshot -i - -# Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound - -# Sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness -bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness - -# Media player controls -bindsym XF86AudioPlay exec playerctl play -bindsym XF86AudioPause exec playerctl pause -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPrev exec playerctl previous - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# Auto-start programs -exec --no-startup-id i3msg "1"; exec /usr/bin/firefox - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - colors { - - # colour of border, background, and text - focused_workspace #2f343f #bf616a #d8dee8 - active_workspace #2f343f #2f343f #d8dee8 - inactive_workspace #2f343f #2f343f #d8dee8 - urgent_workspace #2f343f #ebcb8b #2f343f - - background #002b36 - } - status_command i3status - position top -} - -new_window 1pixel - diff --git a/laptop/home/.config/i3/scratch.sh b/laptop/home/.config/i3/scratch.sh deleted file mode 100755 index ea75414..0000000 --- a/laptop/home/.config/i3/scratch.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash -i3-msg exec "gnome-ternimal --title scratch" -i3-msg '[ title="scratch" ] move scratchpad' diff --git a/laptop/home/.config/i3status/config b/laptop/home/.config/i3status/config deleted file mode 100644 index e08c362..0000000 --- a/laptop/home/.config/i3status/config +++ /dev/null @@ -1,82 +0,0 @@ -general{ - output_format = "i3bar" - colors = true - interval = 5 -} - -order += "cpu_usage" -#order += "cpu_temperature 0" -order += "disk /" -order += "ethernet enp0s31f6" -order += "wireless wlp3s0" -order += "ethernet tun0" -#order += "wireless wlan0" -#order += "ethernet eth0" -order += "volume master" -order += "battery 0" -order += "battery 1" -order += "tztime local" - -battery 0 { - format = "%status %percentage %remaining" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - low_threshold = 10 -} -battery 1 { - format = "%status %percentage %remaining" - format_down = "No battery" - status_chr = "⚡ CHR" - status_bat = "🔋 BAT" - status_unk = "? UNK" - status_full = "☻ FULL" - low_threshold = 10 -} - -cpu_usage { - format = "CPU: %usage" -} - -cpu_temperature 0 { - format = "T: %degrees °C" - path = "/sys/devices/platform/coretemp.0/temp1_input" -} - -disk "/" { - format = "%free Free" -} - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - - - -tztime local { - format = "%time" - format_time = "%a %-d %b %I:%M" -} - -wireless wlp3s0 { - format_up = "WIFI: (%quality at %essid, %bitrate) %ip" - format_down = "WIFI: down" -} - -ethernet enp0s31f6 { - # if you use %speed, i3status requires the cap_net_admin capability - format_up = "ETH: %ip (%speed)" - format_down = "ETH: down" -} - -ethernet tun0 { - format_up = "VPN: %ip" - format_down = "VPN: down" -} - diff --git a/laptop/home/.conkyrc b/laptop/home/.conkyrc deleted file mode 100644 index afa0a3a..0000000 --- a/laptop/home/.conkyrc +++ /dev/null @@ -1,82 +0,0 @@ ---[[ -Conky, a system monitor, based on torsmo - -Any original torsmo code is licensed under the BSD license - -All code written since the fork of torsmo is licensed under the GPL - -Please see COPYING for details - -Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen -Copyright (c) 2005-2019 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) -All rights reserved. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -]] - -conky.config = { - alignment = 'top_left', - background = false, - border_width = 1, - cpu_avg_samples = 2, - default_color = 'white', - default_outline_color = 'white', - default_shade_color = 'white', - draw_borders = false, - draw_graph_borders = true, - draw_outline = false, - draw_shades = false, - double_buffer = true, - use_xft = true, - font = 'DejaVu Sans Mono:size=12', - gap_x = 1600, - gap_y = 60, - minimum_height = 5, - minimum_width = 5, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_ncurses = false, - out_to_stderr = false, - out_to_x = true, - extra_newline = false, - own_window = true, - own_window_colour = '#003e60', - own_window_class = 'Conky', - own_window_type = 'override', - stippled_borders = 0, - update_interval = 1.0, - uppercase = false, - use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false -} - -conky.text = [[ -${alignc}${font Open Sans Light:pixelsize=55}${time %H:%M}$font -${alignc}${color1}${time %A} ${time %d} ${time %B} ${time %Y}$font - -${color1}CPU${alignr}${cpu cpu0}%${color0} -${top name 1} $alignr ${top cpu 1}% -${top name 2} $alignr ${top cpu 2}% -${top name 3} $alignr ${top cpu 3}% -${top name 4} $alignr ${top cpu 4}% -${top name 5} $alignr ${top cpu 5}% - -${color1}RAM${alignr}${mem}${color0} -${top_mem name 1} $alignr ${top_mem mem_res 1} -${top_mem name 2} $alignr ${top_mem mem_res 2} -${top_mem name 3} $alignr ${top_mem mem_res 3} -${top_mem name 4} $alignr ${top_mem mem_res 4} -${top_mem name 5} $alignr ${top_mem mem_res 5} -]]; diff --git a/laptop/home/.profile b/laptop/home/.profile deleted file mode 100644 index d89ea5a..0000000 --- a/laptop/home/.profile +++ /dev/null @@ -1,27 +0,0 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" -fi diff --git a/laptop/home/.spacemacs b/laptop/home/.spacemacs deleted file mode 100644 index 7c5f6b4..0000000 --- a/laptop/home/.spacemacs +++ /dev/null @@ -1,329 +0,0 @@ -;; -*- mode: emacs-lisp -*- -;; This file is loaded by Spacemacs at startup. -;; It must be stored in your home directory. - -(defun dotspacemacs/layers () - "Configuration Layers declaration. -You should not put any user code in this function besides modifying the variable -values." - (setq-default - ;; Base distribution to use. This is a layer contained in the directory - ;; `+distribution'. For now available distributions are `spacemacs-base' - ;; or `spacemacs'. (default 'spacemacs) - dotspacemacs-distribution 'spacemacs - ;; Lazy installation of layers (i.e. layers are installed only when a file - ;; with a supported type is opened). Possible values are `all', `unused' - ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers - ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will - ;; lazy install any layer that support lazy installation even the layers - ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy - ;; installation feature and you have to explicitly list a layer in the - ;; variable `dotspacemacs-configuration-layers' to install it. - ;; (default 'unused) - dotspacemacs-enable-lazy-installation 'unused - ;; If non-nil then Spacemacs will ask for confirmation before installing - ;; a layer lazily. (default t) - dotspacemacs-ask-for-lazy-installation t - ;; If non-nil layers with lazy install support are lazy installed. - ;; List of additional paths where to look for configuration layers. - ;; Paths must have a trailing slash (i.e. `~/.mycontribs/') - dotspacemacs-configuration-layer-path '() - ;; List of configuration layers to load. - dotspacemacs-configuration-layers - '( - ;; ---------------------------------------------------------------- - ;; Example of useful layers you may want to use right away. - ;; Uncomment some layer names and press (Vim style) or - ;; (Emacs style) to install them. - ;; ---------------------------------------------------------------- - helm - ;; auto-completion - ;; better-defaults - emacs-lisp - ;; git - ;; markdown - ;; org - ;; (shell :variables - ;; shell-default-height 30 - ;; shell-default-position 'bottom) - ;; spell-checking - ;; syntax-checking - ;; version-control - ) - ;; List of additional packages that will be installed without being - ;; wrapped in a layer. If you need some configuration for these - ;; packages, then consider creating a layer. You can also put the - ;; configuration in `dotspacemacs/user-config'. - dotspacemacs-additional-packages '() - ;; A list of packages that cannot be updated. - dotspacemacs-frozen-packages '() - ;; A list of packages that will not be installed and loaded. - dotspacemacs-excluded-packages '() - ;; Defines the behaviour of Spacemacs when installing packages. - ;; Possible values are `used-only', `used-but-keep-unused' and `all'. - ;; `used-only' installs only explicitly used packages and uninstall any - ;; unused packages as well as their unused dependencies. - ;; `used-but-keep-unused' installs only the used packages but won't uninstall - ;; them if they become unused. `all' installs *all* packages supported by - ;; Spacemacs and never uninstall them. (default is `used-only') - dotspacemacs-install-packages 'used-only)) - -(defun dotspacemacs/init () - "Initialization function. -This function is called at the very startup of Spacemacs initialization -before layers configuration. -You should not put any user code in there besides modifying the variable -values." - ;; This setq-default sexp is an exhaustive list of all the supported - ;; spacemacs settings. - (setq-default - ;; If non nil ELPA repositories are contacted via HTTPS whenever it's - ;; possible. Set it to nil if you have no way to use HTTPS in your - ;; environment, otherwise it is strongly recommended to let it set to t. - ;; This variable has no effect if Emacs is launched with the parameter - ;; `--insecure' which forces the value of this variable to nil. - ;; (default t) - dotspacemacs-elpa-https t - ;; Maximum allowed time in seconds to contact an ELPA repository. - dotspacemacs-elpa-timeout 5 - ;; If non nil then spacemacs will check for updates at startup - ;; when the current branch is not `develop'. Note that checking for - ;; new versions works via git commands, thus it calls GitHub services - ;; whenever you start Emacs. (default nil) - dotspacemacs-check-for-update nil - ;; If non-nil, a form that evaluates to a package directory. For example, to - ;; use different package directories for different Emacs versions, set this - ;; to `emacs-version'. - dotspacemacs-elpa-subdirectory nil - ;; One of `vim', `emacs' or `hybrid'. - ;; `hybrid' is like `vim' except that `insert state' is replaced by the - ;; `hybrid state' with `emacs' key bindings. The value can also be a list - ;; with `:variables' keyword (similar to layers). Check the editing styles - ;; section of the documentation for details on available variables. - ;; (default 'vim) - dotspacemacs-editing-style 'vim - ;; If non nil output loading progress in `*Messages*' buffer. (default nil) - dotspacemacs-verbose-loading nil - ;; Specify the startup banner. Default value is `official', it displays - ;; the official spacemacs logo. An integer value is the index of text - ;; banner, `random' chooses a random text banner in `core/banners' - ;; directory. A string value must be a path to an image format supported - ;; by your Emacs build. - ;; If the value is nil then no banner is displayed. (default 'official) - dotspacemacs-startup-banner 'official - ;; List of items to show in startup buffer or an association list of - ;; the form `(list-type . list-size)`. If nil then it is disabled. - ;; Possible values for list-type are: - ;; `recents' `bookmarks' `projects' `agenda' `todos'." - ;; List sizes may be nil, in which case - ;; `spacemacs-buffer-startup-lists-length' takes effect. - dotspacemacs-startup-lists '((recents . 5) - (projects . 7)) - ;; True if the home buffer should respond to resize events. - dotspacemacs-startup-buffer-responsive t - ;; Default major mode of the scratch buffer (default `text-mode') - dotspacemacs-scratch-mode 'text-mode - ;; List of themes, the first of the list is loaded when spacemacs starts. - ;; Press T n to cycle to the next theme in the list (works great - ;; with 2 themes variants, one dark and one light) - dotspacemacs-themes '(spacemacs-dark - spacemacs-light) - ;; If non nil the cursor color matches the state color in GUI Emacs. - dotspacemacs-colorize-cursor-according-to-state t - ;; Default font, or prioritized list of fonts. `powerline-scale' allows to - ;; quickly tweak the mode-line size to make separators look not too crappy. - dotspacemacs-default-font '("Source Code Pro" - :size 13 - :weight normal - :width normal - :powerline-scale 1.1) - ;; The leader key - dotspacemacs-leader-key "SPC" - ;; The key used for Emacs commands (M-x) (after pressing on the leader key). - ;; (default "SPC") - dotspacemacs-emacs-command-key "SPC" - ;; The key used for Vim Ex commands (default ":") - dotspacemacs-ex-command-key ":" - ;; The leader key accessible in `emacs state' and `insert state' - ;; (default "M-m") - dotspacemacs-emacs-leader-key "M-m" - ;; Major mode leader key is a shortcut key which is the equivalent of - ;; pressing ` m`. Set it to `nil` to disable it. (default ",") - dotspacemacs-major-mode-leader-key "," - ;; Major mode leader key accessible in `emacs state' and `insert state'. - ;; (default "C-M-m") - dotspacemacs-major-mode-emacs-leader-key "C-M-m" - ;; These variables control whether separate commands are bound in the GUI to - ;; the key pairs C-i, TAB and C-m, RET. - ;; Setting it to a non-nil value, allows for separate commands under - ;; and TAB or and RET. - ;; In the terminal, these pairs are generally indistinguishable, so this only - ;; works in the GUI. (default nil) - dotspacemacs-distinguish-gui-tab nil - ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil) - dotspacemacs-remap-Y-to-y$ nil - ;; If non-nil, the shift mappings `<' and `>' retain visual state if used - ;; there. (default t) - dotspacemacs-retain-visual-state-on-shift t - ;; If non-nil, J and K move lines up and down when in visual mode. - ;; (default nil) - dotspacemacs-visual-line-move-text nil - ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command. - ;; (default nil) - dotspacemacs-ex-substitute-global nil - ;; Name of the default layout (default "Default") - dotspacemacs-default-layout-name "Default" - ;; If non nil the default layout name is displayed in the mode-line. - ;; (default nil) - dotspacemacs-display-default-layout nil - ;; If non nil then the last auto saved layouts are resume automatically upon - ;; start. (default nil) - dotspacemacs-auto-resume-layouts nil - ;; Size (in MB) above which spacemacs will prompt to open the large file - ;; literally to avoid performance issues. Opening a file literally means that - ;; no major mode or minor modes are active. (default is 1) - dotspacemacs-large-file-size 1 - ;; Location where to auto-save files. Possible values are `original' to - ;; auto-save the file in-place, `cache' to auto-save the file to another - ;; file stored in the cache directory and `nil' to disable auto-saving. - ;; (default 'cache) - dotspacemacs-auto-save-file-location 'cache - ;; Maximum number of rollback slots to keep in the cache. (default 5) - dotspacemacs-max-rollback-slots 5 - ;; If non nil, `helm' will try to minimize the space it uses. (default nil) - dotspacemacs-helm-resize nil - ;; if non nil, the helm header is hidden when there is only one source. - ;; (default nil) - dotspacemacs-helm-no-header nil - ;; define the position to display `helm', options are `bottom', `top', - ;; `left', or `right'. (default 'bottom) - dotspacemacs-helm-position 'bottom - ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching - ;; in all non-asynchronous sources. If set to `source', preserve individual - ;; source settings. Else, disable fuzzy matching in all sources. - ;; (default 'always) - dotspacemacs-helm-use-fuzzy 'always - ;; If non nil the paste micro-state is enabled. When enabled pressing `p` - ;; several times cycle between the kill ring content. (default nil) - dotspacemacs-enable-paste-transient-state nil - ;; Which-key delay in seconds. The which-key buffer is the popup listing - ;; the commands bound to the current keystroke sequence. (default 0.4) - dotspacemacs-which-key-delay 0.4 - ;; Which-key frame position. Possible values are `right', `bottom' and - ;; `right-then-bottom'. right-then-bottom tries to display the frame to the - ;; right; if there is insufficient space it displays it at the bottom. - ;; (default 'bottom) - dotspacemacs-which-key-position 'bottom - ;; If non nil a progress bar is displayed when spacemacs is loading. This - ;; may increase the boot time on some systems and emacs builds, set it to - ;; nil to boost the loading time. (default t) - dotspacemacs-loading-progress-bar t - ;; If non nil the frame is fullscreen when Emacs starts up. (default nil) - ;; (Emacs 24.4+ only) - dotspacemacs-fullscreen-at-startup nil - ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen. - ;; Use to disable fullscreen animations in OSX. (default nil) - dotspacemacs-fullscreen-use-non-native nil - ;; If non nil the frame is maximized when Emacs starts up. - ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil. - ;; (default nil) (Emacs 24.4+ only) - dotspacemacs-maximized-at-startup nil - ;; A value from the range (0..100), in increasing opacity, which describes - ;; the transparency level of a frame when it's active or selected. - ;; Transparency can be toggled through `toggle-transparency'. (default 90) - dotspacemacs-active-transparency 90 - ;; A value from the range (0..100), in increasing opacity, which describes - ;; the transparency level of a frame when it's inactive or deselected. - ;; Transparency can be toggled through `toggle-transparency'. (default 90) - dotspacemacs-inactive-transparency 90 - ;; If non nil show the titles of transient states. (default t) - dotspacemacs-show-transient-state-title t - ;; If non nil show the color guide hint for transient state keys. (default t) - dotspacemacs-show-transient-state-color-guide t - ;; If non nil unicode symbols are displayed in the mode line. (default t) - dotspacemacs-mode-line-unicode-symbols t - ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth - ;; scrolling overrides the default behavior of Emacs which recenters point - ;; when it reaches the top or bottom of the screen. (default t) - dotspacemacs-smooth-scrolling t - ;; Control line numbers activation. - ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and - ;; `text-mode' derivatives. If set to `relative', line numbers are relative. - ;; This variable can also be set to a property list for finer control: - ;; '(:relative nil - ;; :disabled-for-modes dired-mode - ;; doc-view-mode - ;; markdown-mode - ;; org-mode - ;; pdf-view-mode - ;; text-mode - ;; :size-limit-kb 1000) - ;; (default nil) - dotspacemacs-line-numbers nil - ;; Code folding method. Possible values are `evil' and `origami'. - ;; (default 'evil) - dotspacemacs-folding-method 'evil - ;; If non-nil smartparens-strict-mode will be enabled in programming modes. - ;; (default nil) - dotspacemacs-smartparens-strict-mode nil - ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes - ;; over any automatically added closing parenthesis, bracket, quote, etc… - ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil) - dotspacemacs-smart-closing-parenthesis nil - ;; Select a scope to highlight delimiters. Possible values are `any', - ;; `current', `all' or `nil'. Default is `all' (highlight any scope and - ;; emphasis the current one). (default 'all) - dotspacemacs-highlight-delimiters 'all - ;; If non nil, advise quit functions to keep server open when quitting. - ;; (default nil) - dotspacemacs-persistent-server nil - ;; List of search tool executable names. Spacemacs uses the first installed - ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'. - ;; (default '("ag" "pt" "ack" "grep")) - dotspacemacs-search-tools '("ag" "pt" "ack" "grep") - ;; The default package repository used if no explicit repository has been - ;; specified with an installed package. - ;; Not used for now. (default nil) - dotspacemacs-default-package-repository nil - ;; Delete whitespace while saving buffer. Possible values are `all' - ;; to aggressively delete empty line and long sequences of whitespace, - ;; `trailing' to delete only the whitespace at end of lines, `changed'to - ;; delete only whitespace for changed lines or `nil' to disable cleanup. - ;; (default nil) - dotspacemacs-whitespace-cleanup nil - )) - -(defun dotspacemacs/user-init () - "Initialization function for user code. -It is called immediately after `dotspacemacs/init', before layer configuration -executes. - This function is mostly useful for variables that need to be set -before packages are loaded. If you are unsure, you should try in setting them in -`dotspacemacs/user-config' first." - ) - -(defun dotspacemacs/user-config () - "Configuration function for user code. -This function is called at the very end of Spacemacs initialization after -layers configuration. -This is the place where most of your configurations should be done. Unless it is -explicitly specified that a variable should be set before a package is loaded, -you should place your code here." - ) - -;; Do not write anything past this comment. This is where Emacs will -;; auto-generate custom variable definitions. -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(package-selected-packages - (quote - (ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra lv hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile projectile pkg-info epl helm-mode-manager helm-make helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist highlight evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) diff --git a/laptop/home/.zshrc b/laptop/home/.zshrc deleted file mode 100644 index abb01e6..0000000 --- a/laptop/home/.zshrc +++ /dev/null @@ -1,183 +0,0 @@ -# If you come from bash you might have to change your $PATH. -# export PATH=$HOME/bin:/usr/local/bin:$PATH - -# Path to your oh-my-zsh installation. - export ZSH="/home/ewpratten/.oh-my-zsh" - -# Set name of the theme to load --- if set to "random", it will -# load a random theme each time oh-my-zsh is loaded, in which case, -# to know which specific one was loaded, run: echo $RANDOM_THEME -# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes -#ZSH_THEME="minimal" - -# Set list of themes to pick from when loading at random -# Setting this variable when ZSH_THEME=random will cause zsh to load -# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ -# If set to an empty array, this variable will have no effect. -# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) - -# Uncomment the following line to use case-sensitive completion. -# CASE_SENSITIVE="true" - -# Uncomment the following line to use hyphen-insensitive completion. -# Case-sensitive completion must be off. _ and - will be interchangeable. -# HYPHEN_INSENSITIVE="true" - -# Uncomment the following line to disable bi-weekly auto-update checks. -# DISABLE_AUTO_UPDATE="true" - -# Uncomment the following line to change how often to auto-update (in days). -# export UPDATE_ZSH_DAYS=13 - -# Uncomment the following line to disable colors in ls. -# DISABLE_LS_COLORS="true" - -# Uncomment the following line to disable auto-setting terminal title. -# DISABLE_AUTO_TITLE="true" - -# Uncomment the following line to enable command auto-correction. -# ENABLE_CORRECTION="true" - -# Uncomment the following line to display red dots whilst waiting for completion. -# COMPLETION_WAITING_DOTS="true" - -# Uncomment the following line if you want to disable marking untracked files -# under VCS as dirty. This makes repository status check for large repositories -# much, much faster. -# DISABLE_UNTRACKED_FILES_DIRTY="true" - -# Uncomment the following line if you want to change the command execution time -# stamp shown in the history command output. -# You can set one of the optional three formats: -# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" -# or set a custom format using the strftime function format specifications, -# see 'man strftime' for details. -# HIST_STAMPS="mm/dd/yyyy" - -# Would you like to use another custom folder than $ZSH/custom? -# ZSH_CUSTOM=/path/to/new-custom-folder - -# Which plugins would you like to load? -# Standard plugins can be found in ~/.oh-my-zsh/plugins/* -# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ -# Example format: plugins=(rails git textmate ruby lighthouse) -# Add wisely, as too many plugins slow down shell startup. -plugins=(zsh-autosuggestions) - -source $ZSH/oh-my-zsh.sh - -alias i3cheatsheet='egrep ^bind ~/.config/i3/config | cut -d '\'' '\'' -f 2- | sed '\''s/ /\t/'\'' | column -ts $'\''\t'\'' | pr -2 -w 145 -t | less' - -# Load Z -. ~/bin/z.sh - -# User configuration - -# export MANPATH="/usr/local/man:$MANPATH" - -# You may need to manually set your language environment -# export LANG=en_US.UTF-8 - -# Preferred editor for local and remote sessions -# if [[ -n $SSH_CONNECTION ]]; then -# export EDITOR='vim' -# else -# export EDITOR='mvim' -# fi - -# Compilation flags -# export ARCHFLAGS="-arch x86_64" - -# Set personal aliases, overriding those provided by oh-my-zsh libs, -# plugins, and themes. Aliases can be placed here, though oh-my-zsh -# users are encouraged to define aliases within the ZSH_CUSTOM folder. -# For a full list of active aliases, run `alias`. -# -# Example aliases -# alias zshconfig="mate ~/.zshrc" -# alias ohmyzsh="mate ~/.oh-my-zsh" -# - -fancyLocationString(){ - echo "<$(echo $(printf "\\\\$(printf "u001b[3$(($(echo $((16#$(hostname | md5sum | cut -c -2)))) % 10))")m")$(if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then echo "R"; else echo "L"; fi))\u001b[0m>" -} - -# Prompt config -autoload -U colors && colors -NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" -setopt prompt_subst -autoload -Uz vcs_info -zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' -zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' -zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' - -zstyle ':vcs_info:*' enable git cvs svn - -# or use pre_cmd, see man zshcontrib -vcs_info_wrapper() { - vcs_info - if [ -n "$vcs_info_msg_0_" ]; then - echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" - fi -} -export RPROMPT=$'%@ $(vcs_info_wrapper) %?' - -# Aliases -alias ls="ls --color=auto" -alias ll="ls -l" -alias la="ls -a" -alias please='sudo $(history -p !!)' -alias :q="exit" -alias :wq="exit" -alias cls=clear -alias zshreload="source ~/.zshrc" -alias lip="ip addr | grep inet | grep wlan0" -alias p4='ping 4.2.2.2 -c 4' -alias ubenv='docker run -it ubuntu' -alias fixmouse='sudo modprobe -r psmouse && sudo modprobe psmouse && xinput --set-prop "SynPS/2 Synaptics TouchPad" 287 0' # Fixes mouse issues -alias quickhttp='sudo python -m SimpleHTTPServer 443' - -mkcd() { - if [ $# != 1 ]; then - echo "Usage: mkcd " - else - mkdir -p $1 && cd $1 - fi -} - -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "don't know how to extract '$1'..." ;; - esac - else - echo "'$1' is not a valid file!" - fi -} - -pydo () { - python3 -c "print($1)" -} - -export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" -# source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh - -export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin:/home/ewpratten/.local/kitty.app/bin:/home/ewpratten/node/bin" - -#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! -export SDKMAN_DIR="/home/ewpratten/.sdkman" -[[ -s "/home/ewpratten/.sdkman/bin/sdkman-init.sh" ]] && source "/home/ewpratten/.sdkman/bin/sdkman-init.sh" diff --git a/laptop/home/.zshrc.pre-oh-my-zsh b/laptop/home/.zshrc.pre-oh-my-zsh deleted file mode 100644 index e438006..0000000 --- a/laptop/home/.zshrc.pre-oh-my-zsh +++ /dev/null @@ -1,168 +0,0 @@ -# The following lines were added by compinstall - -zstyle ':completion:*' completer _complete _ignored -zstyle :compinstall filename '/home/chronos/user/.zshrc' - -autoload -Uz compinit -compinit -# End of lines added by compinstall -# Lines configured by zsh-newuser-install -HISTFILE=~/.histfile -HISTSIZE=1000 -SAVEHIST=1000 -unsetopt beep -bindkey -v -# End of lines configured by zsh-newuser-install - -#git clone https://github.com/zsh-users/zsh-syntax-highlighting.git -#echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc -#source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -# prompt stuff -autoload -U colors && colors -NEWLINE=$'\n' -export PROMPT="%{$fg[green]%}%n@%M %{$fg[cyan]%}%~ $ %{$reset_color%}" -setopt prompt_subst -autoload -Uz vcs_info -zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' -zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' -zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' - -zstyle ':vcs_info:*' enable git cvs svn - -# or use pre_cmd, see man zshcontrib -vcs_info_wrapper() { - vcs_info - if [ -n "$vcs_info_msg_0_" ]; then - echo "%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del" - fi -} -export RPROMPT=$'%@ $(vcs_info_wrapper) %?' -#other stuff - -# clear -# screenfetch - -#dont mess with this -alias ls="ls --color=auto" - -#alias pip="python3 -m pip" - -alias settings="env XDG_CURRENT_DESKTOP=GNOME gnome-control-center " - -# aliases - -#pandoc -alias docx="pandoc -s -o" - -#alias school="cd /media/removable/SD\ Card/School" -#alias sdcard="cd /media/removable/SD\ Card/" -alias ll="ls -l" -alias la="ls -a" -alias please='sudo $(history -p !!)' -# alias vi=vim -alias :q="exit" -alias :wq="exit" -alias cls=clear -alias zshreload="source ~/.zshrc" -alias lip="ip addr | grep inet | grep wlan0" -alias p4='ping 4.2.2.2 -c 4' -alias tracknjack="sudo /home/ewpratten/.local/bin/trackerjacker" - -sci(){ - if [ $# != 1 ]; then - crew -h - else - crew install $1 - fi -} - -search(){ - if [ $# != 1 ]; then - echo "please enter a name to search for" - else - ls | grep "$1" - fi -} - -csearch(){ - if [ $# != 1 ]; then - echo "Usage: csearch " - else - crew search | grep -e "$1" - fi -} - -mkcd() { - if [ $# != 1 ]; then - echo "Usage: mkcd " - else - mkdir -p $1 && cd $1 - fi -} - -cl() -{ - last_dir="$(ls -Frt | grep '/$' | tail -n1)" - if [ -d "$last_dir" ]; then - cd "$last_dir" - fi -} - -sud() { # do sudo, or sudo the last command if no argument given - if [[ $# == 0 ]]; then - sudo $(history -p '!!') - else - sudo "$@" - fi -} - -up(){ - local d="" - limit=$1 - for ((i=1 ; i <= limit ; i++)) - do - d=$d/.. - done - d=$(echo $d | sed 's/^\///') - if [ -z "$d" ]; then - d=.. - fi - cd $d -} - -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; - *) echo "don't know how to extract '$1'..." ;; - esac - else - echo "'$1' is not a valid file!" - fi -} -#cls -#screenfetch -#source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh -#source /home/chronos/user/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -#eval $(thefuck --alias) -#export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/local/share/texlive/2017/bin/x86_64-linux -#export MANPATH=/usr/local/share/man:/usr/share/man:/usr/local/share/texlive/2017/bin/texmf-dist/doc/man -#export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" -export LD_LIBRARY="$LD_LIBRARY:/home/ewpratten/lib" -source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh - -export PATH="$PATH:/home/ewpratten/development/flutter/bin:/home/ewpratten/development/binalias:/home/ewpratten/bin:/home/ewpratten/bin/go/bin:/usr/lib/dart/bin" diff --git a/laptop/home/bin/z.sh b/laptop/home/bin/z.sh deleted file mode 100644 index 2b7f87a..0000000 --- a/laptop/home/bin/z.sh +++ /dev/null @@ -1,253 +0,0 @@ -# Copyright (c) 2009 rupa deadwyler. Licensed under the WTFPL license, Version 2 - -# maintains a jump-list of the directories you actually use -# -# INSTALL: -# * put something like this in your .bashrc/.zshrc: -# . /path/to/z.sh -# * cd around for a while to build up the db -# * PROFIT!! -# * optionally: -# set $_Z_CMD in .bashrc/.zshrc to change the command (default z). -# set $_Z_DATA in .bashrc/.zshrc to change the datafile (default ~/.z). -# set $_Z_NO_RESOLVE_SYMLINKS to prevent symlink resolution. -# set $_Z_NO_PROMPT_COMMAND if you're handling PROMPT_COMMAND yourself. -# set $_Z_EXCLUDE_DIRS to an array of directories to exclude. -# set $_Z_OWNER to your username if you want use z while sudo with $HOME kept -# -# USE: -# * z foo # cd to most frecent dir matching foo -# * z foo bar # cd to most frecent dir matching foo and bar -# * z -r foo # cd to highest ranked dir matching foo -# * z -t foo # cd to most recently accessed dir matching foo -# * z -l foo # list matches instead of cd -# * z -e foo # echo the best match, don't cd -# * z -c foo # restrict matches to subdirs of $PWD - -[ -d "${_Z_DATA:-$HOME/.z}" ] && { - echo "ERROR: z.sh's datafile (${_Z_DATA:-$HOME/.z}) is a directory." -} - -_z() { - - local datafile="${_Z_DATA:-$HOME/.z}" - - # if symlink, dereference - [ -h "$datafile" ] && datafile=$(readlink "$datafile") - - # bail if we don't own ~/.z and $_Z_OWNER not set - [ -z "$_Z_OWNER" -a -f "$datafile" -a ! -O "$datafile" ] && return - - _z_dirs () { - local line - while read line; do - # only count directories - [ -d "${line%%\|*}" ] && echo "$line" - done < "$datafile" - return 0 - } - - # add entries - if [ "$1" = "--add" ]; then - shift - - # $HOME isn't worth matching - [ "$*" = "$HOME" ] && return - - # don't track excluded directory trees - local exclude - for exclude in "${_Z_EXCLUDE_DIRS[@]}"; do - case "$*" in "$exclude*") return;; esac - done - - # maintain the data file - local tempfile="$datafile.$RANDOM" - _z_dirs | awk -v path="$*" -v now="$(date +%s)" -F"|" ' - BEGIN { - rank[path] = 1 - time[path] = now - } - $2 >= 1 { - # drop ranks below 1 - if( $1 == path ) { - rank[$1] = $2 + 1 - time[$1] = now - } else { - rank[$1] = $2 - time[$1] = $3 - } - count += $2 - } - END { - if( count > 9000 ) { - # aging - for( x in rank ) print x "|" 0.99*rank[x] "|" time[x] - } else for( x in rank ) print x "|" rank[x] "|" time[x] - } - ' 2>/dev/null >| "$tempfile" - # do our best to avoid clobbering the datafile in a race condition. - if [ $? -ne 0 -a -f "$datafile" ]; then - env rm -f "$tempfile" - else - [ "$_Z_OWNER" ] && chown $_Z_OWNER:"$(id -ng $_Z_OWNER)" "$tempfile" - env mv -f "$tempfile" "$datafile" || env rm -f "$tempfile" - fi - - # tab completion - elif [ "$1" = "--complete" -a -s "$datafile" ]; then - _z_dirs | awk -v q="$2" -F"|" ' - BEGIN { - q = substr(q, 3) - if( q == tolower(q) ) imatch = 1 - gsub(/ /, ".*", q) - } - { - if( imatch ) { - if( tolower($1) ~ q ) print $1 - } else if( $1 ~ q ) print $1 - } - ' 2>/dev/null - - else - # list/go - local echo fnd last list opt typ - while [ "$1" ]; do case "$1" in - --) while [ "$1" ]; do shift; fnd="$fnd${fnd:+ }$1";done;; - -*) opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in - c) fnd="^$PWD $fnd";; - e) echo=1;; - h) echo "${_Z_CMD:-z} [-cehlrtx] args" >&2; return;; - l) list=1;; - r) typ="rank";; - t) typ="recent";; - x) sed -i -e "\:^${PWD}|.*:d" "$datafile";; - esac; opt=${opt:1}; done;; - *) fnd="$fnd${fnd:+ }$1";; - esac; last=$1; [ "$#" -gt 0 ] && shift; done - [ "$fnd" -a "$fnd" != "^$PWD " ] || list=1 - - # if we hit enter on a completion just go there - case "$last" in - # completions will always start with / - /*) [ -z "$list" -a -d "$last" ] && builtin cd "$last" && return;; - esac - - # no file yet - [ -f "$datafile" ] || return - - local cd - cd="$( < <( _z_dirs ) awk -v t="$(date +%s)" -v list="$list" -v typ="$typ" -v q="$fnd" -F"|" ' - function frecent(rank, time) { - # relate frequency and time - dx = t - time - if( dx < 3600 ) return rank * 4 - if( dx < 86400 ) return rank * 2 - if( dx < 604800 ) return rank / 2 - return rank / 4 - } - function output(matches, best_match, common) { - # list or return the desired directory - if( list ) { - cmd = "sort -g >&2" - for( x in matches ) { - if( matches[x] ) { - printf "%-10s %s\n", matches[x], x | cmd - } - } - if( common ) { - printf "%-10s %s\n", "common:", common > "/dev/stderr" - } - } else { - if( common ) best_match = common - print best_match - } - } - function common(matches) { - # find the common root of a list of matches, if it exists - for( x in matches ) { - if( matches[x] && (!short || length(x) < length(short)) ) { - short = x - } - } - if( short == "/" ) return - for( x in matches ) if( matches[x] && index(x, short) != 1 ) { - return - } - return short - } - BEGIN { - gsub(" ", ".*", q) - hi_rank = ihi_rank = -9999999999 - } - { - if( typ == "rank" ) { - rank = $2 - } else if( typ == "recent" ) { - rank = $3 - t - } else rank = frecent($2, $3) - if( $1 ~ q ) { - matches[$1] = rank - } else if( tolower($1) ~ tolower(q) ) imatches[$1] = rank - if( matches[$1] && matches[$1] > hi_rank ) { - best_match = $1 - hi_rank = matches[$1] - } else if( imatches[$1] && imatches[$1] > ihi_rank ) { - ibest_match = $1 - ihi_rank = imatches[$1] - } - } - END { - # prefer case sensitive - if( best_match ) { - output(matches, best_match, common(matches)) - } else if( ibest_match ) { - output(imatches, ibest_match, common(imatches)) - } - } - ')" - - [ $? -eq 0 ] && [ "$cd" ] && { - if [ "$echo" ]; then echo "$cd"; else builtin cd "$cd"; fi - } - fi -} - -alias ${_Z_CMD:-z}='_z 2>&1' - -[ "$_Z_NO_RESOLVE_SYMLINKS" ] || _Z_RESOLVE_SYMLINKS="-P" - -if type compctl >/dev/null 2>&1; then - # zsh - [ "$_Z_NO_PROMPT_COMMAND" ] || { - # populate directory list, avoid clobbering any other precmds. - if [ "$_Z_NO_RESOLVE_SYMLINKS" ]; then - _z_precmd() { - (_z --add "${PWD:a}" &) - } - else - _z_precmd() { - (_z --add "${PWD:A}" &) - } - fi - [[ -n "${precmd_functions[(r)_z_precmd]}" ]] || { - precmd_functions[$(($#precmd_functions+1))]=_z_precmd - } - } - _z_zsh_tab_completion() { - # tab completion - local compl - read -l compl - reply=(${(f)"$(_z --complete "$compl")"}) - } - compctl -U -K _z_zsh_tab_completion _z -elif type complete >/dev/null 2>&1; then - # bash - # tab completion - complete -o filenames -C '_z --complete "$COMP_LINE"' ${_Z_CMD:-z} - [ "$_Z_NO_PROMPT_COMMAND" ] || { - # populate directory list. avoid clobbering other PROMPT_COMMANDs. - grep "_z --add" <<< "$PROMPT_COMMAND" >/dev/null || { - PROMPT_COMMAND="$PROMPT_COMMAND"$'\n''(_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null &);' - } - } -fi diff --git a/workstation/home/.config/i3/config b/workstation/home/.config/i3/config deleted file mode 100644 index 72a4f6d..0000000 --- a/workstation/home/.config/i3/config +++ /dev/null @@ -1,318 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -# Languages -exec "setxkbmap -option 'grp:alt_shift_toggle' -layout us,jp -variant qwerty" -exec gxkb -# exec --no-startup-id fcitx -d - -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. -font pango:monospace 8 - -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 - -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# Create a scratchpad -#exec gnome-terminal --title "scratch" -#[title="scratch"] move scratchpad -bindsym $mod+Shift+n mark "scratch", move scratchpad -bindsym $mod+n [con_mark="scratch"] scratchpad show - -# Rick roll -bindsym $mod+Control+r exec xdg-open /home/ewpratten/Music/rickroll.mp3 - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -#bindsym $mod+d exec dmenu_run - -# Show custom launcher -bindsym $mod+Shift+w exec sh /home/ewpratten/projects/menus/scripts/web.sh - -# Calculator -bindsym $mod+c exec xsel -o | dmenu -p Calculate: | xargs echo | bc 2>&1 | dmenu -p Answer: | xsel -i - -# use rofi instead - -bindsym $mod+d exec rofi -show run -bindsym $mod+Shift+d exec rofi -show drun - -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. - - -# settings -# byndsym $mod+Control+s exec env XDG_CURRENT_DESKTOP=GNOME gnome-control-center - -exec --no-startup-id nitrogen --restore -#exec_always --no-startup-id compton -b --respect-prop-shadow -#exec_always --no-startup-id $HOME/.config/compton/launch.sh -exec --no-startup-id nm-applet -exec --no-startup-id volumeicon -exec --no-startup-id kdeconnect-indicator -exec /home/ewpratten/bin/conk -#exec_always --no-startup-id $HOME/.config/polybar/launch.sh - -# This allows the gnome password prompt. But requires: policykit-desktop-privileges policykit-1-gnome -exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 - -# gaps -for_window [class=".*"] border pixel 0 -gaps outer 5 -gaps inner 5 - - -# smart_gaps on - -# windows style workspace switcher - -bindsym $mod+Control+Right workspace next -bindsym $mod+Control+Left workspace prev - -workspace_auto_back_and_forth yes - -# Set window focusing to only focus if requester is on screen - -focus_on_window_activation smart - -# Audio Manager - -bindsym $mod+Shift+a exec pavucontrol - -# Drop-down terminal -#exec --no-startup-id i3-sensible-terminal --title="metask" -#for_window [instance="metask"] floating enable; -#for_window [instance="metask"] move scratchpad; [instance="metask"] scratchpad show; move position 0px 22px; resize shrink height 300px; resize grow width 683px; move scratchpad -#bindsym $mod+t [instance="metask"] scratchpad show - -# window lock - -bindsym $mod+Control+l exec gnome-screensaver-command -l - -# locker -set $Locker i3lock -c 141414 -e -f -i /home/ewpratten/Pictures/lockscreen.png && sleep 1 - -set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown, (b) fix mouse -mode "$mode_system" { - bindsym l exec --no-startup-id $Locker, mode "default" - bindsym e exec --no-startup-id i3-msg exit, mode "default" - bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default" - bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default" - bindsym r exec --no-startup-id systemctl reboot, mode "default" - bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" - bindsym b exec --no-startup-id sudo modprobe -r psmouse && sudo modprobe psmouse, mode "default" - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -bindsym $mod+Delete mode "$mode_system" - -set $mode_monitor Move current workspace with VIM keys -mode "$mode_monitor" { - bindsym h move workspace to output left - bindsym l move workspace to output right - bindsym j move workspace to output up - bindsym k move workspace to output down - - bindsym Return mode "default" - bindsym Escape mode "default" - -} - -bindsym $mod+m mode "$mode_monitor" - -# Go to sleep - -bindsym $mod+Shift+s exec systemctl suspend - -# Screen Shots -bindsym Print exec scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' -bindsym Control+Print exec gnome-screenshot -i - -# Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound - -# Sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness -bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness - -# Media player controls -bindsym XF86AudioPlay exec playerctl play -bindsym XF86AudioPause exec playerctl pause -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPrev exec playerctl previous - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym $mod+d focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# Auto-start programs -exec --no-startup-id i3msg "1"; exec /usr/bin/firefox - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -bindsym $mod+Shift+7 move container to workspace $ws7 -bindsym $mod+Shift+8 move container to workspace $ws8 -bindsym $mod+Shift+9 move container to workspace $ws9 -bindsym $mod+Shift+0 move container to workspace $ws10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. - bindsym j resize shrink width 10 px or 10 ppt - bindsym k resize grow height 10 px or 10 ppt - bindsym l resize shrink height 10 px or 10 ppt - bindsym semicolon resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or $mod+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - colors { - - # colour of border, background, and text - focused_workspace #2f343f #bf616a #d8dee8 - active_workspace #2f343f #2f343f #d8dee8 - inactive_workspace #2f343f #2f343f #d8dee8 - urgent_workspace #2f343f #ebcb8b #2f343f - - background #002b36 - } - status_command i3status - position top -} - -new_window 1pixel - diff --git a/workstation/home/.config/i3/scratch.sh b/workstation/home/.config/i3/scratch.sh deleted file mode 100755 index ea75414..0000000 --- a/workstation/home/.config/i3/scratch.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash -i3-msg exec "gnome-ternimal --title scratch" -i3-msg '[ title="scratch" ] move scratchpad' diff --git a/workstation/home/.config/i3status/config b/workstation/home/.config/i3status/config deleted file mode 100644 index fee83d0..0000000 --- a/workstation/home/.config/i3status/config +++ /dev/null @@ -1,62 +0,0 @@ -general{ - output_format = "i3bar" - colors = true - interval = 5 -} - -order += "cpu_usage" -#order += "cpu_temperature 0" -order += "disk /" -order += "ethernet enp0s31f6" -order += "wireless wlp3s0" -order += "ethernet tun0" -#order += "wireless wlan0" -#order += "ethernet eth0" -order += "volume master" -order += "tztime local" - - -cpu_usage { - format = "CPU: %usage" -} - -cpu_temperature 0 { - format = "T: %degrees °C" - path = "/sys/devices/platform/coretemp.0/temp1_input" -} - -disk "/" { - format = "%free Free" -} - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - - - -tztime local { - format = "%time" - format_time = "%a %-d %b %I:%M" -} - -wireless wlp3s0 { - format_up = "WIFI: (%quality at %essid, %bitrate) %ip" - format_down = "WIFI: down" -} - -ethernet enp0s31f6 { - # if you use %speed, i3status requires the cap_net_admin capability - format_up = "ETH: %ip (%speed)" - format_down = "ETH: down" -} - -ethernet tun0 { - format_up = "VPN: %ip" - format_down = "VPN: down" -} -