Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
879 B

  1. #!/bin/zsh
  2. setup_marble=false
  3. linux_config_dir=/home/kevin/linux-config
  4. dot_dir=$linux_config_dir/dotfiles
  5. pc=$(hostname)
  6. # Get directory variables from script.
  7. # List of dotfiles I want to link to system.
  8. dotfiles=(bashrc gitconfig inputrc imwheelrc vimrc Xmodmap Xresources zshrc)
  9. cd $dot_dir
  10. for dotfile in $dotfiles; do
  11. # Remove system dotfile.
  12. rm ~/."$dotfile"
  13. # Link dotfile in repository to system dotfile.
  14. cp "$dot_dir"/"$dotfile" ~/."$dotfile"
  15. done
  16. # marble mouse {{{ #
  17. if [[ "$setup_marble" = true ]]; then
  18. config_file_name="10-evdev.conf"
  19. sys_layout_file="/etc/X11/xorg.conf.d/$config_file_name"
  20. config_dir="$linux_config_dir/x/marble-mouse"
  21. # Remove system file.
  22. sudo rm -rf "$sys_layout_file"
  23. # Link config file in repository to system config location.
  24. sudo cp "$config_dir"/"$config_file_name" "$sys_layout_file"
  25. fi
  26. # }}} marble mouse #