Coder Social home page Coder Social logo

jogleasonjr / packer-arch Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 22.14 MB

Packer template and scripts to generate Arch Linux virtual machines to my liking

Shell 99.00% Vim Script 0.23% Batchfile 0.46% CSS 0.30%
vmware vmware-workstation i3wm i3-gaps unixporn polybar compton archlinux

packer-arch's Introduction

Packer-Arch

Packer template and scripts to generate Arch Linux virtual machines to my liking. This includes:

  • VMWare/VirtualBox tools (for copy/paste and screen resizing)
  • i3-gaps window manager
  • rofi launcher (try typing day or night into it)
  • compton compositor
  • termite terminal
  • polybar
  • nemo file browser

Day Mode

Night Mode

Building

git clone https://github.com/jogleasonjr/packer-arch.git
cd packer-arch
packer build --only=vmware-iso-desktop templates\archlinux-x86_64.json

# or for virtualbox
packer build --only=virtualbox-iso-desktop templates\archlinux-x86_64.json

Running

  • Username: dev
  • Password: piranha

The virtual machine will start at the console. Log in with the credentials above then type startx to get to desktop.

Defaults

Meta == Windows key or Command key

  • Meta+Enter -> terminal
  • Meta+\ -> chromium
  • Meta+D -> rofi (application launcher)

See .config/i3/config for the rest of the key commands.

For i3 shortcuts, the Caps Lock key has been rebound to act as the Meta/Win key. This allows Caps Lock to be used for any of the i3 shortcuts. In addition, for vim purposes, a quick press and release of the Caps Lock key will act as an escape key press. This is done using a combination of xmodmap and xcape near the [bottom of the i3 configuration file](# make caps act as left windows key when held (for i3 shortcuts)).

Windows Line Endings

CRLF line endings wreak havoc in the install scripts and sh files that end up in the virtual machine. For this reason be sure your environment isn't overriding the LF endings with CLRF, which Git for Windows usually does.

To fix this, disable the automatic CLRF handling within your local repository using:

git config core.autocrlf false

To revert damage done by autocrlf, use:

git rm --cached -r . 
git reset --hard

packer-arch's People

Contributors

jogleasonjr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.