Comments (2)
It seems like some of those lines were returning more than one color, so it was really messing up the output. Fixing the command to include a colon makes it return one color every time.
COLOR_BATTERY_LOW=$(xrdb -query | grep "*color9:" | cut -f 2) # Battery < 50
from polybar-kdeconnect.
It seems like the following lines were causing it:
COLOR_DISCONNECTED=$(xrdb -query | grep "*color2" | cut -f 2) # Device Disconnected
COLOR_NEWDEVICE=$(xrdb -query | grep "*color6" | cut -f 2) # New Device
COLOR_BATTERY_90=$(xrdb -query | grep "*color2" | cut -f 2) # Battery >= 90
COLOR_BATTERY_80=$(xrdb -query | grep "*color4" | cut -f 2) # Battery >= 80
COLOR_BATTERY_70=$(xrdb -query | grep "*color3" | cut -f 2) # Battery >= 70
COLOR_BATTERY_60=$(xrdb -query | grep "*color10" | cut -f 2) # Battery >= 60
COLOR_BATTERY_50=$(xrdb -query | grep "*color1" | cut -f 2) # Battery >= 50
COLOR_BATTERY_LOW=$(xrdb -query | grep "*color9" | cut -f 2) # Battery < 50
How can I make this work?
from polybar-kdeconnect.
Related Issues (17)
- My keyboard stops working when i click the icon and there is none device paired HOT 4
- error: Disabling module "kdeconnect" (reason: Missing parameter "module/kdeconnect.type") HOT 14
- No such interface org.kde.kdeconnect.device.battery HOT 2
- Polybar freezes and CPU usage 100% HOT 1
- error: Duplicate key name "type" defined on line X HOT 2
- format_underline don't work HOT 2
- Nothing happens when clicking on the icon HOT 12
- qbus-qt5 HOT 3
- High CPU usage HOT 6
- format error HOT 3
- 56: -1: substring expression < 0 HOT 2
- Using it with standalone rofi HOT 1
- Script Error HOT 14
- Script error HOT 2
- "Syntax error: redirection unexpected" - script uses sh instead bash HOT 1
- Script variables are off by one HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polybar-kdeconnect.