Skip to content

Python script that automatically removes the battery icon on the Archcraft Polybar, replacing it with whatever you want.

Notifications You must be signed in to change notification settings

ProfShibe/Archcraft-Battery-Icon-Remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Archcraft-Battery-Remover

Python script that automatically removes the battery icon on the Archcraft Polybar, replacing it with whatever you want.

Intended for Archcraft users who are on a Desktop, but still see the battery icon on Polybar.

Drop the main.py file in ~/.config/openbox/themes/ and/or ~/.config/bspwm/themes/

CD into that same directory in a terminal

From here, change the "CONTENT" variable in the "main" function of main.py to whatever text you want to replace the battery icon with. Then, execute the script by running "python3 main.py", or "python main.py" in a terminal.

The script will automatically generate backups of all files it modifies. So in case anything goes wrong and the theme changes, you can revert everything.

You can then change themes. All themes that had a battery icon that was displaying as N/A for Desktop users will be replaced with your desired text (you can leave it blank if you want nothing there).

If you want to change the text it displays as after running it, replace all the newly made files with the backups and run it again.

To fix the background color on the "Default" Theme for Openbox: navigate to ~/.config/openbox/themes/default/polybar/modules.ini and replace content-background = ${color.BACKGROUND3} (should be under your custom text near the top) with content-background = ${color.ALTBACKGROUND}

For BSPWM do the same except in the BSPWM directory and change it to content-background = ${color.BACKGROUND} instead

About

Python script that automatically removes the battery icon on the Archcraft Polybar, replacing it with whatever you want.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages