Code Monkey home page Code Monkey logo

i3blocks's People

Contributors

anachron avatar cluntraru avatar dmfay avatar filospateam avatar jfmyers9 avatar orestisfl avatar vknmnn avatar wellwineo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

i3blocks's Issues

cpu time of window block

Hi,

your window block uses way too much cpu time due to the repeat interval. You should consider switching to xtitle with persistent interval.

[window]
command=xtitle -s -t 50
label=
markup=pango
interval=persist

$BLOCK_BUTTON in blocks/scroll

Scrolling works pretty well but block button actions are not functioning. A click on the scrolling block does not get passed to the subscript.

Add notification support for all blocks

Check for existence of $BLOCK_NOTIFIER and if present, execute that script with args $1=ScriptName, $2=Value, $3=ValueDescription.

Host the script inside the additional repository at https://github.com/Anachron/i3scripts.

The notifier will normally notify when the value is not urgent (block will exist with rc=0).
Else the notifier will throw an urgent warning.

Implement time limit for notifier-block

So that blocks cannot send more than one notification every x seconds.
This is good for scripts that run often (wifi signal strength) and would spam the user with notifications.

Urgent: Notifications last 5 minutes, can be spawned every 5 minutes.
Normal: Notifications last 5 seconds, can be spawned every 10 seconds.
Low: Notifications last 5 seconds, can be spawned every 30 seconds.

Package updates Blocklet counting error (off by one more)

Checked a previous closed issue that made the blocklet return one more package than it supposed to.
In my case the package blocklet reads " 1" when $ pacman -Qu | wc -l actually returns "0".
Don't know if it has to do with changes on pacman, but undoing the changes to the last commit to the packages script makes the blocklet to not display anything at all.

Cloudy vs Partly Cloudy

Currently there is not distinguishing between cloudy and partly cloudy, the script uses the cloudy icon for any weather report with the word cloud in it, even if there are few clouds.

Using 2 [mail] blocklets gives undesired output

i3blocks.conf set up as such:

# personal mail
[mail]
color=#F8F8F8
label=Home
instance=~/.scripts/home_unread.config
interval=60

and

# work mail
[mail]
color=#F8F8F8
label=- Work
instance=~/.scripts/work_unread.config
interval=60

Where home_unread.config and work_unread.config are of the style:

MAIL_SERVER='imap.gmail.com:993'
MAIL_USER='[email protected]'
MAIL_PASSWORD='mypersonalpassword'
MAIL_FOLDER='INBOX'

Firewall block

Hey the firewall status can't be seen, how do I fix that I am new at i3blocks, but I know ufw requires root permission. I have tried to understand the firewall scritp in the blocks directory but I am lost kindly assist.

How to add them?

Hey srry if this is a noob question but i am a noob indeed. was curious to know how to add these scripts,

I tried to cp them into usr/share/i3blocks where i saw was the default ones but it gave me permission denied....

Some clarification would be great thanks.

packages count off by one

I'm seeing one fewer package update reported from the blocklet than I am from pacman. Possibly pacman's output format changed since 97bddf9 such that it's no longer necessary?

dian@lamia: ~/.dotfiles [INS] ~/.i3blocks/packages
20
20

dian@lamia: ~/.dotfiles [INS] pacman -Qu | wc -l
21

Bad visual behavior in default installation

The default installation of i3blocks has a serious flaw, that its not keeping the alignment fixed. When Network traffic changes or other textfields changes the position of certain visual elements jumps around. This is very annoying. Certainly not what you would like to have as the default.

playerctl: fix block when process is not running

Hi there.
The blocklet playerctl leaves (null) - (null) when spotify is not started and BLOCK_INSTANCE is set to spotify,
i think it should disappear, when spotify is not running.

i tried fixing it by adding

ps -e | grep "${INSTANCE}" &> /dev/null
fi
if [ $? == 1 ]; then 
    exit 0

right after line 7, so the block disappears when spotify is stopped.
not tested with other instances

help with webcam script

I'm trying to use your webcam script on i3blocks, nothing is showing up if you can help me out Thank you

Add your requests!

If you are missing any blocks from my collection, feel free to make a request here.

memory showing tb and icons only

Hey me again, this time I have a need for keeping track of memory and swap. I've run everything as per your examples;
[memory]
command=~/.config/i3/scripts/memory
label=
instance=mem;free
interval=30

[memory]
command=~/.config/i3/scripts/memory
label=
instance=swap;total
interval=30

Made sure to chmod the memory script under scripts, but it will only show a value of tb.

Any ideas?

Screenshots!

If you use these blocks I'd like to see some screenshots, so people can have an better idea on how these can look.

Weird block space characters after ttf-font-awesome characters

It looks like spaces (0020) are being poorly displayed:

i3blocks

I'm guessing this comes with the recent update to ttf-font-awesome. The reason I raised this issue here is because vim and Sublime Text seem to be displaying the font correctly:

vim
subl

i3 config:

bar {
    status_command i3blocks
    font pango:FontAwesome 10
}

i3blocks config:

[disk]
label=
interval=30

(Notice that there is no space explicitly defined within label=.)

firewall block

did you edited the sudoers file (sudo visudo) to get "access" to ufw?
my only working "ugly" solution was to add this line
${USER} ALL=(ALL) NOPASSWD: /bin/ufw status

but i hate it to give the user some root privileges.. :(
what did you do to get this work?

Showing symbols instead of Icons

Icons are not showing, instead there are character symbols.
How do I get it to work? Is there a specific font that I have to use in i3 config file?

Bluetooth icon

As soon as you turn off/toggle BT icon it disappears from status bar. Would be nicer in my view if the icon would be always visible in order to toggle /switch on / switch off at will. Also any chance if the BT icon could change to  or ...Thxs!

No weather icon in from of temp

This one is a doozie for me, oddly I have had this work on some of my laptops and others do not.
I feel there is something I do not have installed on some of the laptops.
Maybe it is related to where my font-awesome files are installed, doubt that thou.
I get the temp for my area and I have many keys, lol, many computers using your lovely stuff.
Do you have any thoughts?
I even went and copied over scripts from working machine to another with same results.

Report : weather script missing out "thunderstorm"

i'm new to this, so anyone that maintain the script, hope you can add "thunderstorm" into the script, so that it will benefit to others users that need it.

add this

  elif [[ "${WEATHER_MAIN}" = *Thunderstorm* ]]; then
  echo "${ICON_STORM} ${WEATHER_TEMP}${SYMBOL_CELSIUS}"
  echo "${ICON_STORM} ${WEATHER_TEMP}${SYMBOL_CELSIUS}"
  echo ""

weather script: Faulty grep ranges

Hi,

i didn't get the weather block to work, so i tried to execute it manually. This resulted in the following output:

$ ./weather.sh                                                                                                                                                                                    
grep: Das Ende des angegebenen Intervalls ist nicht gültig
 20℃
 20℃

The grep error roughly translates to "The end of the given interval is invalid" or something. Is this the intended behavior?

Help !!

I know the problem is from my PC, but suddenly I cant see any of the logos properly even on my navigator when I check the github page. Can anyone help me or atleast tell me what I should look at

Thanks,
Marwan

Make blocks interactive

  • Audio should mute/increase/decrease volume
  • Brightness should increase/decrease light
  • Firewall should toggle on/off

merging with vivien's i3blocks-contrib

Hey @Anachron
What do you think about merging your blocks with the ones in vivien's repo. That would combine the two biggest collections of blocks into one source. I'm sure many people could benefit from that.
I would even work on it, provide screenshots, write readme's.
You might wan't to put some annotaion to your blocks, to link back to you or something.
If you don't care about it at all, i will PR them just as they are and maintain them as well

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.