Hyperline / hyperline

✨ Status line plugin for Hyper ✨
MIT License
621 stars 121 forks source link

How to remove Spotify and the Parrot ? #141

Closed Aarbel closed 6 years ago

Aarbel commented 6 years ago

Hi Hyperline team !

How could i remove some options like Spotify and the Parrot ? Thanks ! :)

image

alqahtani commented 6 years ago

Me too :( at the last I installed the plugin locally in ~/.hyper_plugins/local and edited the src/lib/plugins/index.js and commented out Spotify and Party Parrot and added uptime. also IP does not work for me and gave me (?.?.?.?) so I commented it too.


this is my src/lib/plugins/index.js now:

import Hostname from './hostname'
// import Ip from './ip'
import Memory from './memory'
import Uptime from './uptime'
import Cpu from './cpu'
import Network from './network'
import Battery from './battery'
// Import Time from './time'
// Import Docker from './docker'
// import Spotify from './spotify'
// import PartyParrot from './party-parrot';

export default [Hostname, Uptime, Memory, Battery, Cpu, Network]

screenshot

jonjahr commented 6 years ago

Is the party parrot a joke? I appreciate party parrot, but cmon I don't wanna look at him all day.

Jonic commented 6 years ago

:+1: The Spotify thing might be useful for people that use Spotify, but is just using system resources for people that don't, and the parrot is just distracting! It's a fun idea, but maybe only suited to an Easter Egg?

It feels like Hyperline might now have enough stuff bundled in it that a config object to enable/disable these things would be useful. I might have a go at a PR for that.

river226 commented 6 years ago

Agreed, a quick config would be nice I don't use spotify, sort annoying that it's just there. Also the party parrot is super annoying and distracting... maybe just kill that.

ar5had commented 6 years ago

If you want to hide it then you can do the following things -

  1. (Optional) Install hyper-stylesheet

Add to the plugins array in your .hyper.js:

plugins: [
  'hyper-stylesheet'
]
  1. Add following lines to ~/.hyper.css after /* #window */ comment line if you've installed hyper-stylesheet.
    /* remove parrot, spotify from hyperline */
    .hyperline_line .spotify_wrapper, .hyperline_line .partyparrot_wrapper {
        display: none;
    }

or

You can add these lines in string form('.hyperline_line .spotify_wrapper,.hyperline_line .partyparrot_wrapper{display: none;}') to css field in ~/.hyper.js.

You can inspect the hyperline component in devtools to hide whatever component that you want to hide.

NickTikhonov commented 6 years ago

This has been fixed with https://github.com/Hyperline/hyperline/pull/146 - you can now customise which plugins you see.