-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a default status bar script #98
Comments
I just put |
What should the default status bar script show as a status, except time and date? |
Time, date, volume, network name/status. I think we could add additional script examples for mem and cpu, but it shouldn't be the default |
How about a folder of scriptlets in a folder named like eg. the |
I think for now we'll just create an example or two so people can see how setting the status is done - In the future if we want to create a system like this to make setting the status simpler, we can |
@dakyskye I'm still wanting this added if you have recommendations - if not I'll add something very simple. Would be nice to have a whole guide to put on the wiki, as well. |
Sorry, I was assigned to this task, but I've had no free time. I am still very busy. To my mind the default status bar should show these info: date, time, keyboard layout, battery state (if present). |
This is an excellent window manager, however for a less competent linux user it is very hard to set the status bar with simple info like (date, time, keyboard layout, battery state). Could someone share their config so I can use it, until recommended instructions are up in the Wiki? Many thanks |
I will show you two of my statusbars: this and that. To put what you said on the statusbar the script would look like (totally untested): #!/bin/bash
while true; do
DATE="$(date '+%a %d.%m.%Y')"
LAYOUT="$(xkblayout-state print %s)"
BATTERY_INFO="$(upower -i /org/freedesktop/UPower/devices/DisplayDevice)"
BATTERY_STATE="$(echo "$BATTERY_INFO" | grep state | awk '{ print $2; }')"
BATTERY_LEVEL="$(echo "$BATTERY_INFO" | grep percentage | awk '{ print $2; }')"
xsetroot -name "$DATE | $LAYOUT | $BATTERY_STATE ($BATTERY_LEVEL)"
sleep 1s
done |
similar to script provided by @dakyskye, you could use a bash script like this to get statusbar as shown in pic. This will only show battery charging state if its not charging and uses command from pw-volume package (https://github.com/smasher164/pw-volume) ``#!/usr/bin/bash red=$'\e[31m' while true; do
done" You can also incorporate standlone statusbar programs like polybar, yabar, rsblocks, etc by adding the path to launch such bars in the exec section of nimdow's config.toml |
We should test these scripts on desktop machines (that obviously don't have batteries) and make sure everything still looks decent. Also, using as little dependencies as possible, such as pw-volume etc |
It would be nice to have a default/example script.
@dakyskye will assist with a bash version, I should probably also write one in Nim.
The text was updated successfully, but these errors were encountered: