also reset color
This commit is contained in:
parent
a106771e5b
commit
de541f690d
2 changed files with 7 additions and 3 deletions
|
@ -11,8 +11,12 @@ bouncy is a tiny script that hooks onto mpris to read your currently listening s
|
|||
- a machine running dbus and mpris (typically linux)
|
||||
- nodejs >=14
|
||||
|
||||
## how-to
|
||||
## how-to install
|
||||
|
||||
`npm install` and `node index.js`
|
||||
|
||||
the music player string defaults to `org.mpris.MediaPlayer2.rhythmbox`, however you can use the `BOUNCY_MUSICPLAYER` environment value to change it to another music player name
|
||||
|
||||
## usage
|
||||
|
||||
press space to switch between modes
|
|
@ -21,7 +21,7 @@ process.stdin.on('keypress', (str, key) => {
|
|||
if (key.sequence === '\x03' || key.sequence === '\x04') process.exit(0); // ctrl+c, ctrl+d
|
||||
});
|
||||
process.on('exit', () => {
|
||||
process.stdout.write('\x1B[?25l'); // show cursor
|
||||
process.stdout.write('\x1B[?25l\033[0m'); // show cursor
|
||||
})
|
||||
|
||||
const plas = [' ', '.', '*', '/', '0'];
|
||||
|
|
Loading…
Reference in a new issue