Skip to content

Commit

Permalink
add config file
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Feb 12, 2016
1 parent 6559bde commit 7c022db
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ user.json
*.bak
*.vim-bookmarks

\#**

__pycache__
.cache
.ipynb_checkpoints
Expand Down
20 changes: 20 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# feeluown config file

player:
song_id: 0
position: 0
status: 0 # player status, playing, paused, stopped
playback_mode: 0
active_tracks: []

lyric:
status: true # show or hide, true for show
color: 'default'
background-color: 'default'

plugins:
NetEaseMusic: true
HotKey: true
MprisEx: true
...
12 changes: 12 additions & 0 deletions feeluown/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-


class Config(object):
def __init__(self):
pass

def read(self):
pass

def write(self):
pass
7 changes: 6 additions & 1 deletion feeluown/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding:utf8 -*-
# -*- coding:utf-8 -*-

import os

Expand Down Expand Up @@ -52,3 +52,8 @@
sqlite database name
"""
DATABASE_SQLITE = CACHE_PATH + 'data.db'

"""
config file
"""
CONFIG_FILE_PATH = FEELUOWN_PATH + 'config.yaml'
5 changes: 2 additions & 3 deletions feeluown/controller_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding:utf8 -*-
# -*- coding:utf-8 -*-

import platform
import subprocess
Expand All @@ -10,8 +10,7 @@


class ControllerApi(object):
"""暴露给plugin或者其他外部模块的接口和数据
"""
"""暴露给plugin或者其他外部模块的接口和数据"""
notify_widget = None
lyric_widget = None
desktop_mini = None
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
quamash==0.5.3
requests
SQLAlchemy==1.0.9
pyyaml==3.11

0 comments on commit 7c022db

Please sign in to comment.