GUI bgm player in python
How to open this app when opening terminal
- Install requirements.
-
For mac, ubuntu, and mx linux(a debian based distro)
mpg321 python tkinter
-
For fedora, and arch
mpg123 python tkinter
-
Download necesarry mp3 files and bgm.py (for macOS download bgm_mac.py)
-
Put all of them in the same directory.
-
Edit audio file names in
first_BGM = threading.Thread(target=play_bgm, args=('BGM_1_金庫解錠まで.mp3',)) second_BGM = threading.Thread(target=next_bgm, args=('BGM_2_爆弾解除.mp3',)) third_BGM = threading.Thread(target=next_bgm, args=('BGM_3_ゲームクリア.mp3',))
of bgm.py (or bgm_mac.py) to your audio file names.
-
(For Fedora, or Arch)
Delete
#
(comment out) inplay_bgm()
andstop_bgm()
and then add#
to the another line in the same method. -
(For Ubuntu)
Delete
#
(comment out) innext_bgm()
andstop_button_clicked()
and then add#
to the another line begins withsp.call
in the same method. -
Unmute the speaker.
-
Run the following command on terminal.
- For Linux
python3 bgm.py
- For macOS
python3 bgm_mac.py
- Run the following command on terminal.
- For Linux
echo 'python3 ~/bgm.py' >> ~/.bashrc
- For macOS
echo 'python3 ~/bgm_mac.py' >> ~/.zshrc
Note.
- You may need to change this command according to the default shell.
- If the command above not working, check your default shell by executing the following command on terminal.
echo $SHELL