Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime Bombar
Config_Files
Commits
55f94b76
Commit
55f94b76
authored
Aug 30, 2020
by
Maxime Bombar
Browse files
[i3] Factorization + requirements.
parent
cc7da82e
Changes
5
Hide whitespace changes
Inline
Side-by-side
.config/i3/bin/new_workspace
View file @
55f94b76
#!/
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
$@
.config/i3/bin/rename_workspace
View file @
55f94b76
#!/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
$@
.config/i3/bin/slide_workspace
View file @
55f94b76
#!/
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
$@
.config/i3/bin/venv.sh
0 → 100755
View file @
55f94b76
#!/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
.config/i3/requirements.txt
0 → 100644
View file @
55f94b76
i3ipc
colorlog
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment