Add changes for work environment
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
44b0a1a882
commit
92c15e04d0
11 changed files with 43 additions and 22 deletions
17
install
17
install
|
@ -101,6 +101,7 @@ PERMISSIONS=(
|
||||||
|
|
||||||
# Groups the user should be added to
|
# Groups the user should be added to
|
||||||
ADD_GROUPS=(
|
ADD_GROUPS=(
|
||||||
|
"docker"
|
||||||
"log"
|
"log"
|
||||||
"wheel"
|
"wheel"
|
||||||
)
|
)
|
||||||
|
@ -318,28 +319,28 @@ sudo udevadm control --reload-rules
|
||||||
print_section "Copying other files"
|
print_section "Copying other files"
|
||||||
|
|
||||||
print_log "Copying custom sudoers file to ${YELLOW}/etc/sudoers.d${RESET}"
|
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}"
|
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}"
|
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}"
|
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}"
|
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}"
|
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}"
|
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}"
|
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 #
|
# Setting lockscreen image #
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"undoUsingBackspace": true,
|
"undoUsingBackspace": true,
|
||||||
"windowDefaultSize": [
|
"windowDefaultSize": [
|
||||||
924,
|
924,
|
||||||
962
|
301
|
||||||
],
|
],
|
||||||
"hPanePosition": 233,
|
"hPanePosition": 233,
|
||||||
"columnWidths": [
|
"columnWidths": [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import socket
|
import socket
|
||||||
private_email = "severin@kaderli.dev"
|
private_email = "severin@kaderli.dev"
|
||||||
work_email = "severin@serious.com"
|
work_email = "severin@whatwedo.ch"
|
||||||
|
|
||||||
if socket.gethostname() == "loki":
|
if socket.gethostname() == "loki":
|
||||||
keyboard.send_keys(work_email)
|
keyboard.send_keys(work_email)
|
||||||
|
|
|
@ -27,13 +27,27 @@ alias grep="rg -n"
|
||||||
alias cat="bat"
|
alias cat="bat"
|
||||||
|
|
||||||
# Aliases to folders
|
# Aliases to folders
|
||||||
alias pj="cd ~/projects"
|
if [ -d "${HOME}/projects" ]; then
|
||||||
alias dl="cd ~/downloads"
|
alias pj="cd ${HOME}/projects"
|
||||||
alias doc="cd ~/documents"
|
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 for opening my code editor
|
||||||
alias e="code"
|
alias e="code"
|
||||||
|
|
||||||
|
# Aliases for todo list management
|
||||||
alias t='task todo'
|
alias t='task todo'
|
||||||
alias ta='task add'
|
alias ta='task add'
|
||||||
alias td='task done'
|
alias td='task done'
|
||||||
|
|
||||||
|
# Work aliases
|
||||||
|
if [ -d "${HOME}/work/tools/dde" ]; then
|
||||||
|
alias dde='make -f "${HOME}/work/tools/dde/Makefile"'
|
||||||
|
fi
|
|
@ -70,6 +70,8 @@ export PGSERVICEFILE="${XDG_CONFIG_HOME}/pg/pg_service.conf"
|
||||||
export OCTAVE_HISTFILE="${XDG_CACHE_HOME}/octave-hist"
|
export OCTAVE_HISTFILE="${XDG_CACHE_HOME}/octave-hist"
|
||||||
export OCTAVE_SITE_INITFILE="${XDG_CONFIG_HOME}/octave/octaverc"
|
export OCTAVE_SITE_INITFILE="${XDG_CONFIG_HOME}/octave/octaverc"
|
||||||
mkdir -p "${XDG_CONFIG_HOME}/bazaar"
|
mkdir -p "${XDG_CONFIG_HOME}/bazaar"
|
||||||
|
export VAGRANT_HOME="${XDG_DATA_HOME}/vagrant"
|
||||||
|
export VAGRANT_ALIAS_FILE="${XDG_DATA_HOME}/vagrant/aliases"
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
mkdir -p "${XDG_DATA_HOME}/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}:${XDG_DATA_HOME}/npm/bin"
|
||||||
export PATH="${PATH}:${GOPATH}/bin"
|
export PATH="${PATH}:${GOPATH}/bin"
|
||||||
export PATH="${PATH}:${GEM_HOME}/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="${PATH}:${XDG_CONFIG_HOME}/composer/vendor/bin"
|
||||||
export PATH="${HOME}/.local/bin:${PATH}"
|
export PATH="${HOME}/.local/bin:${PATH}"
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# This file is automatically used by Git.
|
# This file is automatically used by Git.
|
||||||
|
[core]
|
||||||
|
ignoreCase = false
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
name = Severin Kaderli
|
name = Severin Kaderli
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
# This file is automatically used by Git when inside a subfolder of ~/work.
|
# This file is automatically used by Git when inside a subfolder of ~/work.
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
name = Worker Severin
|
name = Severin Kaderli
|
||||||
email = severin@work.ch
|
email = severin@whatwedo.ch
|
||||||
signingkey = ""
|
signingkey = ""
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
|
|
|
@ -2,4 +2,5 @@ file:///home/severin/documents Documents
|
||||||
file:///home/severin/downloads Downloads
|
file:///home/severin/downloads Downloads
|
||||||
file:///home/severin/videos Videos
|
file:///home/severin/videos Videos
|
||||||
file:///home/severin/projects Projects
|
file:///home/severin/projects Projects
|
||||||
file:///home/severin/dotfiles dotfiles
|
file:///home/severin/dotfiles dotfiles
|
||||||
|
file:///home/severin/work Work
|
||||||
|
|
|
@ -179,4 +179,4 @@ bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
bindsym $mod+x mode "resize"
|
bindsym $mod+x mode "resize"
|
||||||
|
|
|
@ -56,7 +56,7 @@ monitor = eDP1
|
||||||
|
|
||||||
[bar/top3]
|
[bar/top3]
|
||||||
inherit = bar/top
|
inherit = bar/top
|
||||||
monitor = DVI-I-1
|
monitor = DVI-I-1-1
|
||||||
|
|
||||||
[bar/top-nvidia]
|
[bar/top-nvidia]
|
||||||
inherit = bar/top
|
inherit = bar/top
|
||||||
|
@ -89,7 +89,7 @@ tray-position = left
|
||||||
|
|
||||||
[bar/bottom3]
|
[bar/bottom3]
|
||||||
inherit = bar/bottom
|
inherit = bar/bottom
|
||||||
monitor = DVI-I-1
|
monitor = DVI-I-1-1
|
||||||
tray-position = left
|
tray-position = left
|
||||||
|
|
||||||
[bar/bottom-nvidia]
|
[bar/bottom-nvidia]
|
||||||
|
|
|
@ -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 HDMI-1-1 --mode 1280x1024 --pos 0x56 --rotate normal
|
||||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 1280x0 --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 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-1-1 --mode 1920x1080 --pos -640x0 --rotate normal
|
||||||
xrandr --output DVI-I-2-1 --mode 1920x1080 --pos 3200x0 --rotate normal
|
xrandr --output DVI-I-2-1 --mode 1920x1080 --pos -640x0 --rotate normal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue