Add changes for work environment

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-06-04 15:36:05 +02:00
parent 44b0a1a882
commit 92c15e04d0
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
11 changed files with 43 additions and 22 deletions

17
install
View file

@ -101,6 +101,7 @@ PERMISSIONS=(
# Groups the user should be added to
ADD_GROUPS=(
"docker"
"log"
"wheel"
)
@ -318,28 +319,28 @@ sudo udevadm control --reload-rules
print_section "Copying other files"
print_log "Copying custom sudoers file to ${YELLOW}/etc/sudoers.d${RESET}"
sudo install -m 0440 "${SYSTEM_DIR}/etc/sudoers.d/severin" "/etc/sudoers.d"
sudo install -Dm 0440 "${SYSTEM_DIR}/etc/sudoers.d/severin" "/etc/sudoers.d"
print_log "Copying docker configuration to ${YELLOW}/etc/docker${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/docker/daemon.json" "/etc/docker"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/docker/daemon.json" "/etc/docker"
print_log "Copying zshenv to ${YELLOW}/etc/zsh${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/zsh/zshenv" "/etc/zsh"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/zsh/zshenv" "/etc/zsh"
print_log "Copying pacman.conf to ${YELLOW}/etc/pacman.conf${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/pacman.conf" "/etc/pacman.conf"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/pacman.conf" "/etc/pacman.conf"
print_log "Copying 20-displaylink.conf to ${YELLOW}/etc/X11/xorg.conf.d${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/etc/X11/xorg.conf.d"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/etc/X11/xorg.conf.d"
print_log "Copying 20-displaylink.conf to ${YELLOW}/etc/X11/nvidia-xorg.conf.d${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/etc/X11/nvidia-xorg.conf.d"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/X11/xorg.conf.d/20-displaylink.conf" "/etc/X11/nvidia-xorg.conf.d"
print_log "Copying vconsole.conf to ${YELLOW}/etc/vconsole.conf${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/vconsole.conf" "/etc/vconsole.conf"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/vconsole.conf" "/etc/vconsole.conf"
print_log "Copying mkinitcpio.conf to ${YELLOW}/etc/mkinitcpio.conf${RESET}"
sudo install -m 644 "${SYSTEM_DIR}/etc/mkinitcpio.conf" "/etc/mkinitcpio.conf"
sudo install -Dm 644 "${SYSTEM_DIR}/etc/mkinitcpio.conf" "/etc/mkinitcpio.conf"
###############################################################################
# Setting lockscreen image #

View file

@ -13,7 +13,7 @@
"undoUsingBackspace": true,
"windowDefaultSize": [
924,
962
301
],
"hPanePosition": 233,
"columnWidths": [

View file

@ -1,6 +1,6 @@
import socket
private_email = "severin@kaderli.dev"
work_email = "severin@serious.com"
work_email = "severin@whatwedo.ch"
if socket.gethostname() == "loki":
keyboard.send_keys(work_email)

View file

@ -27,13 +27,27 @@ alias grep="rg -n"
alias cat="bat"
# Aliases to folders
alias pj="cd ~/projects"
alias dl="cd ~/downloads"
alias doc="cd ~/documents"
if [ -d "${HOME}/projects" ]; then
alias pj="cd ${HOME}/projects"
fi
if [ -d "${HOME}/downloads" ]; then
alias dl="cd ${HOME}/downloads"
fi
if [ -d "${HOME}/documents" ]; then
alias doc="cd ${HOME}/documents"
fi
# Alias for opening my code editor
alias e="code"
# Aliases for todo list management
alias t='task todo'
alias ta='task add'
alias td='task done'
# Work aliases
if [ -d "${HOME}/work/tools/dde" ]; then
alias dde='make -f "${HOME}/work/tools/dde/Makefile"'
fi

View file

@ -70,6 +70,8 @@ export PGSERVICEFILE="${XDG_CONFIG_HOME}/pg/pg_service.conf"
export OCTAVE_HISTFILE="${XDG_CACHE_HOME}/octave-hist"
export OCTAVE_SITE_INITFILE="${XDG_CONFIG_HOME}/octave/octaverc"
mkdir -p "${XDG_CONFIG_HOME}/bazaar"
export VAGRANT_HOME="${XDG_DATA_HOME}/vagrant"
export VAGRANT_ALIAS_FILE="${XDG_DATA_HOME}/vagrant/aliases"
# Python
mkdir -p "${XDG_DATA_HOME}/python"
@ -110,6 +112,7 @@ export PATH="${PATH}:${CARGO_HOME}/bin"
export PATH="${PATH}:${XDG_DATA_HOME}/npm/bin"
export PATH="${PATH}:${GOPATH}/bin"
export PATH="${PATH}:${GEM_HOME}/bin"
export PATH="${PATH}:${HOME}/.gem/ruby/2.6.0/bin"
export PATH="${PATH}:${XDG_CONFIG_HOME}/composer/vendor/bin"
export PATH="${HOME}/.local/bin:${PATH}"

View file

@ -9,6 +9,8 @@
#
# USAGE:
# This file is automatically used by Git.
[core]
ignoreCase = false
[user]
name = Severin Kaderli

View file

@ -11,8 +11,8 @@
# This file is automatically used by Git when inside a subfolder of ~/work.
[user]
name = Worker Severin
email = severin@work.ch
name = Severin Kaderli
email = severin@whatwedo.ch
signingkey = ""
[alias]

View file

@ -3,3 +3,4 @@ file:///home/severin/downloads Downloads
file:///home/severin/videos Videos
file:///home/severin/projects Projects
file:///home/severin/dotfiles dotfiles
file:///home/severin/work Work

View file

@ -56,7 +56,7 @@ monitor = eDP1
[bar/top3]
inherit = bar/top
monitor = DVI-I-1
monitor = DVI-I-1-1
[bar/top-nvidia]
inherit = bar/top
@ -89,7 +89,7 @@ tray-position = left
[bar/bottom3]
inherit = bar/bottom
monitor = DVI-I-1
monitor = DVI-I-1-1
tray-position = left
[bar/bottom-nvidia]

View file

@ -20,5 +20,5 @@ xrandr --output HDMI1 --mode 1280x1024 --pos 0x56 --rotate normal
xrandr --output HDMI-1-1 --mode 1280x1024 --pos 0x56 --rotate normal
xrandr --output eDP1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
xrandr --output eDP-1-1 --primary --mode 1920x1080 --pos 1280x0 --rotate normal
xrandr --output DVI-I-1-1 --mode 1920x1080 --pos 3200x0 --rotate normal
xrandr --output DVI-I-2-1 --mode 1920x1080 --pos 3200x0 --rotate normal
xrandr --output DVI-I-1-1 --mode 1920x1080 --pos -640x0 --rotate normal
xrandr --output DVI-I-2-1 --mode 1920x1080 --pos -640x0 --rotate normal