Skip to content

Commit

Permalink
Fix/references-to-python (#115)
Browse files Browse the repository at this point in the history
* Fix references to python. Now explicitely references python3

Due to issues arising, where people were misunderstanding which version
of python was being used, we'd rather want to explicitely use python3 to
avoid this. These issues can be found #62
and #107 .

* Made apt install easier to read by newlining each package.

This is simply done from an aesthetic/readability point of view.
Revert at will.
  • Loading branch information
floppydisken authored and stav121 committed Oct 28, 2021
1 parent e0ceac9 commit aef0960
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,22 @@ Copy the script in the <a href="scripts/">scripts</a> folder to your polybar dir
Backup your files:

mkdir ~/Backups
python i3wm-themer.py --config config.yaml --backup /home/[USER]/Backups
python3 i3wm-themer.py --config config.yaml --backup /home/[USER]/Backups

This step will copy the files that you set in the `config.yaml` for safekeeping in case things go
wrong.

Install the `config files` located in the <a href="defaults">defaults/</a> directory (not 100% required but
I suggest you do so just to be sure).

python i3wm-themer.py --config config.yaml --install defaults/
python3 i3wm-themer.py --config config.yaml --install defaults/

In case you get lost `$mod+Return` will open a new terminal, `$mode+d` will launch Rofi. (For the
rest of the shortcuts just take a look on the config file for i3, and change them to your needs.)

Now you are basically ready to go. Pick a theme you like from the collection and load it:

python i3wm-themer.py --config config.yaml --load themes/[theme_id].json
python3 i3wm-themer.py --config config.yaml --load themes/[theme_id].json

(Where [theme_id] is the name of the theme you want to try!)

Expand Down
2 changes: 1 addition & 1 deletion change.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env sh
### Script written by James Shane ( github.com/jamesshane )

python i3wm-themer.py --config config.yaml --load themes/"$1".json
python3 i3wm-themer.py --config config.yaml --load themes/"$1".json
4 changes: 2 additions & 2 deletions install_arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ sed -i -e "s/USER/$USER/g" config.yaml

# Backup
mkdir "$HOME"/Backup
python i3wm-themer.py --config config.yaml --backup "$HOME"/Backup
python3 i3wm-themer.py --config config.yaml --backup "$HOME"/Backup

# Configure and set theme to 000
cp -r scripts/* /home/"$USER"/.config/polybar/
python i3wm-themer.py --config config.yaml --install defaults/
python3 i3wm-themer.py --config config.yaml --install defaults/

echo ""
echo "Read the README.md"
50 changes: 48 additions & 2 deletions install_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,56 @@ function preparation() {
}

function install_required_packages() {

# Refresh apt
sudo apt update
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module libjsoncpp-dev build-essential libxcb-composite0-dev libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev dh-autoreconf unzip git x11-xserver-utils compton nitrogen rofi binutils gcc make cmake pkg-config fakeroot python python3-xcbgen xcb-proto libxcb-ewmh-dev wireless-tools libiw-dev libasound2-dev libpulse-dev libcurl4-openssl-dev libmpdclient-dev pavucontrol python3-pip rxvt compton -y
sudo apt install libcanberra-gtk-module \
libcanberra-gtk3-module \
libjsoncpp-dev build-essential \
libxcb-composite0-dev \
libxcb1-dev \
libxcb-keysyms1-dev \
libpango1.0-dev \
libxcb-util0-dev \
libxcb-icccm4-dev \
libyajl-dev \
libstartup-notification0-dev \
libxcb-randr0-dev \
libev-dev \
libxcb-cursor-dev \
libxcb-xinerama0-dev \
libxcb-xkb-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
autoconf \
xutils-dev \
dh-autoreconf \
unzip \
git \
x11-xserver-utils \
compton \
nitrogen \
rofi \
binutils \
gcc \
make \
cmake \
pkg-config \
fakeroot \
python \
python3-xcbgen \
xcb-proto \
libxcb-ewmh-dev \
wireless-tools \
libiw-dev \
libasound2-dev \
libpulse-dev \
libcurl4-openssl-dev \
libmpdclient-dev \
pavucontrol \
python3-pip \
rxvt \
compton \
-y

}

Expand Down

0 comments on commit aef0960

Please sign in to comment.