...
 
Commits (21)
# Christoph's dotfiles
After moving all systems to Linux (finally), I start my own dotfiles repo to keep every in sync and up-to-date.
After moving all systems to Linux (finally), I start my own dotfiles repo to keep every machine in sync and up-to-date.
## Get started
......@@ -21,5 +21,5 @@ I still wanted to be able to have specific setups for every machine in use.
The current setup is to use branches, named after the hostnames they are used on, to create host-optimized setups.
### Automatic update
Additionally I added an automatic update feature to .bashrc.
Now every change I make is automatically incorporated to all the cloned instances.
Now every change I make is automatically incorporated to all the cloned instances (pull-based on every new terminal startup).
......@@ -8,15 +8,15 @@ function m_arrow() { echo -e " \033[1;33m➜\033[0m $@"; }
m_header "Install 3D-printing Environment"
CURA="Cura-3.0.4.AppImage"
CURA="Cura-3.4.1.AppImage"
wget -O ~/Downloads/$CURA "http://software.ultimaker.com/current/$CURA"
m_success "Downloaded $CURA"
chmod +x ~/Downloads/$CURA
m_success "Installed $CURA"
sudo apt-get install -y freecad
m_success "Installed FreeCAD"
sudo apt-get install -y freecad openscad
m_success "Installed FreeCAD and OpenSCAD"
m_success "Successfully installed 3D-printing Environment"
......@@ -20,7 +20,7 @@ m_success "Symlinked docker.io -> docker"
sudo usermod -a -G docker christoph
m_success "Added christoph to group docker"
wget -O ~/bin/docker-compose https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -i`
wget -O ~/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -p`
chmod +x ~/bin/docker-compose
m_success "Installed docker-compose"
......
......@@ -10,7 +10,7 @@ m_header "Install Jekyll Environment"
m_header "Install ruby"
sudo apt-get update
sudo apt-get install -y ruby ruby-dev
sudo apt-get install -y ruby ruby-dev g++
m_success "Installed ruby"
sudo apt-get install -y zlib1g-dev
......
......@@ -37,6 +37,9 @@ sudo apt-get update
sudo apt-get install -y yarn
m_success "Successfully installed yarn"
vim +PluginInstall +qall
m_success "Installed Vundle-Plugins"
(cd ~/Downloads/ && wget "https://go.microsoft.com/fwlink/?LinkID=760868" && sudo dpkg -i code*.deb)
m_success "Successfully installed Visual Studio Code"
m_success "Successfully installed JavaScript Development Environment"
#!/bin/sh
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev libqt4-dev zlib1g-dev
mkdir compileAndBuild
cd compileAndBuild
......@@ -21,8 +21,7 @@ tar -xzvf $bin_zip
tar -xzvf $oss_zip
cd $oss_folder
PKG_CONFIG_PATH=/home/christoph/Filme/ffmpeg-build/lib/pkgconfig ./configure
#./configure
./configure
make
sudo make install
......
......@@ -10,8 +10,11 @@ alias p="cd ~/Projects/"
alias d="cd ~/Development/"
alias da="cd ~/Development/android/"
alias dj="cd ~/Development/js/"
alias dr="cd ~/Development/rust/"
alias dw="cd ~/Development/web/"
alias dwf="cd ~/Development/web/fml"
alias dhtweb="cd ~/Development/web/haefner.technology"
alias dhtnext="cd ~/Nextcloud/haefner.technology/"
# -p[N] => Open N tab pages. When N is omitted, open one tab page for each file.
alias vim="vim -p"
......@@ -19,15 +22,6 @@ alias vim="vim -p"
# -p, --parents => no error if existing, make parent directories as needed
alias mkdir="mkdir -p"
# docker cleanup
# from https://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/
alias dockercleanup="docker rm $(docker ps -a -q) && docker rmi $(docker images -q)"
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
......@@ -46,3 +40,6 @@ alias la='ls -a'
################################################################################
################################################################################
# docker cleanup
# from https://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/
#alias dockercleanup="docker rm $(docker ps -a -q) && docker rmi $(docker images -q)"
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true
# 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 somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://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. ISO 10646 = Unicode
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, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10
# 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
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l 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+g split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# 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
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
# with focus-switch
bindsym $mod+Shift+1 move container to workspace 1; workspace 1;
bindsym $mod+Shift+2 move container to workspace 2; workspace 2;
bindsym $mod+Shift+3 move container to workspace 3; workspace 3;
bindsym $mod+Shift+4 move container to workspace 4; workspace 4;
bindsym $mod+Shift+5 move container to workspace 5; workspace 5;
bindsym $mod+Shift+6 move container to workspace 6; workspace 6;
bindsym $mod+Shift+7 move container to workspace 7; workspace 7;
bindsym $mod+Shift+8 move container to workspace 8; workspace 8;
bindsym $mod+Shift+9 move container to workspace 9; workspace 9;
bindsym $mod+Shift+0 move container to workspace 10; workspace 10;
# without focus-switch
bindsym Control+$mod+Shift+1 move container to workspace 1
bindsym Control+$mod+Shift+2 move container to workspace 2
bindsym Control+$mod+Shift+3 move container to workspace 3
bindsym Control+$mod+Shift+4 move container to workspace 4
bindsym Control+$mod+Shift+5 move container to workspace 5
bindsym Control+$mod+Shift+6 move container to workspace 6
bindsym Control+$mod+Shift+7 move container to workspace 7
bindsym Control+$mod+Shift+8 move container to workspace 8
bindsym Control+$mod+Shift+9 move container to workspace 9
bindsym Control+$mod+Shift+0 move container to workspace 10
# 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'"
#bindsym $mod+Shift+e 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 h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l 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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
}
################################################################################
# Hook 'Pre-default-startups'
################################################################################
# assign windows to workspaces
# check with xprop search for WM_CLASS, first ist instance second is class
assign[class="chromium-browser"] 1
assign[class="brave"] 5
# assign workspaces to output-screens
# check with xrandr --current
workspace 1 output DFP6
workspace 2 output DFP5
workspace 3 output DFP1
workspace 4 output DFP12
workspace 5 output DFP11
workspace 6 output DFP10
exec --no-startup-id unity-settings-daemon
################################################################################
exec brave
exec owncloud
exec --no-startup-id nm-applet
bindsym Ctrl+$mod+l exec ~/bin/i3lock.sh
################################################################################
# Hook 'Post-default-startups'
################################################################################
exec chromium-browser
exec --no-startup-id i3-msg 'workspace 6; exec i3-sensible-terminal;'
exec --no-startup-id i3-msg 'workspace 4; exec i3-sensible-terminal -e ranger;'
exec --no-startup-id i3-msg 'workspace 3; exec ccontrol-center.sh;'
exec --no-startup-id i3-msg 'workspace 3; exec i3-sensible-terminal -e mocp;'
exec --no-startup-id i3-msg 'workspace 10; exec nautilus;'
################################################################################
# mocp bindings
# Playlist needs to be setup!
bindsym XF86AudioNext exec mocp -f
bindsym XF86AudioPrev exec mocp -r
bindsym XF86AudioPlay exec mocp -G
bindsym Shift+XF86AudioPlay exec mocp -S && mocp -p
# run programms
mode "run" {
bindsym c exec ~/bin/control-center.sh; mode "default"
bindsym d exec i3-sensible-terminal -e ranger; mode "default"
bindsym p exec sudo poweroff; mode "default"
bindsym r exec gnome-calculator; mode "default"
bindsym s exec chromium-browser --show-app-list; mode "default"
bindsym t exec gnome-system-monitor; mode "default"
bindsym w exec sudo ~/bin/start_windows_console.sh
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+p mode "run"
################################################################################
# Hook 'last'
################################################################################
# Screenshots based on the "Print" key. Requires the "scrot" tool.
# With $mod: Interactively select window or rectangle.
# With Shift: JPEG instead of PNG.
# With Ctrl: Sleep 5 seconds before doing the screenshot.
bindsym Print exec --no-startup-id scrot "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').png"
bindsym Shift+Print exec --no-startup-id scrot "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').jpg"
bindsym --release $mod+Print exec --no-startup-id scrot -s "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').png"
bindsym --release $mod+Shift+Print exec --no-startup-id scrot -s "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').jpg"
bindsym Control+Print exec --no-startup-id sleep 5 && scrot "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').png"
bindsym Control+Shift+Print exec --no-startup-id sleep 5 && scrot "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').jpg"
bindsym --release $mod+Control+Print exec --no-startup-id sleep 5 && scrot -s "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').png"
bindsym --release $mod+Control+Shift+Print exec --no-startup-id sleep 5 && scrot -s "$HOME/tmp/Screenshot_$(date '+%Y-%m-%d %H-%M-%S_%z').jpg"
# Multimedia-Keys
bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute
#bindsym XF86AudioMute exec amixer -q set Master toggle
################################################################################
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 2
}
order += "volume master"
order += "ipv6"
order += "disk /"
order += "disk /home"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "wireless wlan0"
order += "ethernet eth0"
#order += "battery 0"
order += "load"
order += "tztime local"
wireless wlan0 {
format_up = "W: (%quality at %essid) %ip"
format_down = "W: down"
}
ethernet eth0 {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %percentage %remaining"
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
load {
format = "%1min"
}
disk "/" {
format = "/ %avail"
}
disk "/home" {
format = "/home %avail"
}
volume master {
format = " ♪ %volume "
format_muted = " ♪ muted "
device = "default"
mixer = "Master"
mixer_idx = 0
}
#!/bin/bash
i3lock --no-unlock-indicator -c 1f0000
#!/bin/bash
echo "Mounting share/bilder"
mkdir -p ./bilder
sshfs -o reconnect -o compression=yes hugo:/home/share/bilder/ bilder/
echo "Mounting christoph/Archiv"
mkdir -p ./archiv
sshfs -o reconnect -o compression=yes hugo:/home/christoph/Archiv/ archiv/
......@@ -15,6 +15,7 @@ sudo add-apt-repository -y universe
################################################################################
sudo apt-get update
sudo apt-get install -y git git-svn vim screen sl htop bash-completion suckless-tools mmv tree net-tools \
exfat-fuse \
vlc \
scrot \
gparted \
......