Commit 55f94b76 authored by Maxime Bombar's avatar Maxime Bombar
Browse files

[i3] Factorization + requirements.

parent cc7da82e
#!/bin/bash
#!/usr/bin/env bash
# Create a new workspace
if [ ! -d ~/.config/i3/venv ]; then
python3 -m virtualenv ~/.config/i3/venv;
pip3 install -m ~/.config/i3/requirements.txt;
fi
source ~/.config/i3/bin/venv.sh
source ~/.config/i3/venv/bin/activate && python3 ~/.config/i3/bin/new_workspace.py $@
#!/bin/bash
#!/bin/env/bash
# Create a new workspace
if [ ! -d ~/.config/i3/venv ]; then
python3 -m virtualenv ~/.config/i3/venv;
pip3 install -m ~/.config/i3/requirements.txt;
fi
# Rename current workspace
source ~/.config/i3/bin/venv.sh
source ~/.config/i3/venv/bin/activate && python3 ~/.config/i3/bin/rename_workspace.py $@
#!/bin/bash
#!/usr/bin/env bash
if [ ! -d ~/.config/i3/venv ]; then
python3 -m virtualenv ~/.config/i3/venv;
pip3 install -m ~/.config/i3/requirements.txt;
fi
# slide current workspace on the given output
source ~/.config/i3/bin/venv.sh
source ~/.config/i3/venv/bin/activate && python3 ~/.config/i3/bin/slide_workspace.py $@
#!/usr/bin/env bash
if [ ! -d ~/.config/i3/venv ]; then
python3 -m virtualenv ~/.config/i3/venv;
source ~/.config/i3/venv/bin/activate;
pip3 install -r ~/.config/i3/requirements.txt;
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment