anachron / i3blocks Goto Github PK
View Code? Open in Web Editor NEWAdditional/custom blocks which fit my needs
License: GNU General Public License v3.0
Additional/custom blocks which fit my needs
License: GNU General Public License v3.0
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
Scrolling works pretty well but block button actions are not functioning. A click on the scrolling block does not get passed to the subscript.
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.
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.
how does i3blocks know where to find these scripts?
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.
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.
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'
So lately I've switched to wmutils so I would like to give this project to the Community.
Who is interested here in maintaining the repo in the future?
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.
Hi.
I am using your scripts weather .
I think an excellent script.
but I have a question?
on the line:
id=${CITY_ID}&appid=${API_KEY}
I have to replace my CITY_ID by the city, and API_KEY , which has given me the site http://api.openweathermap.org ?
appreciate your help !
So that either blocks or commands can be used.
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.
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
It simply prints ºC, and not really any useful information
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.
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
I'm trying to use your webcam script on i3blocks, nothing is showing up if you can help me out Thank you
Rspect rules stated in https://github.com/vivien/i3blocks-contrib/blob/master/CONTRIBUTING.md
If you are missing any blocks from my collection, feel free to make a request here.
Did a recent update on my ArchLinux boxes and the IP address is showing 1000 not 192.168..
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?
If you use these blocks I'd like to see some screenshots, so people can have an better idea on how these can look.
It looks like spaces (0020) are being poorly displayed:
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:
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=
.)
Minor issue, the feed block doesn't show the latest entry in the feed. For exampl,e looking at the example FEED_URL https://www.archlinux.org/feeds/news/ the block shows a much older entry "PHP 7.0 packages released" when it should should be showing "screen-4.4.0-1 unable to attach old sessions".
I'd do a pull request but found using RSStail to parse much easier. Great blocks. Thanks.
https://aur.archlinux.org/packages/rsstail/
was wondering if its possible to have a block indicating which cpu Scaling governor is currently active....
https://wiki.archlinux.org/index.php/CPU_frequency_scaling#Scaling_governors
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?
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?
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!
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.
unfortunately I cant the brightness block to work or display at all in the status bar. I have xorg-xbacklight installed & xrandr. If i can provide any further detailed information pls let me know. Thxs!
... when no song is playing
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 ""
This way they can be used without i3(blocks).
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?
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
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
Friend have a question ?
Why when the weather up to 31 °C the block changes the color assigned to another color , black and white? . But when the weather turns down the color assigned to it
You know why this problem happens?
This way performance will be improved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.