#!/usr/bin/env python3 import os.path import subprocess import sys def main(): primary_color = '#c38ccf' prc_frmstring = f'F{primary_color}' prc_fwrappers = f'{{{prc_frmstring}}}' backg_colour = '#0f0f14' backg_clralt = '#0f0f14' foreg_colour = '#FFEBFF' interface_wlan = 'wlp3s0' interface_ethr = 'enp2s0' config_text = f"""[colors] background = {backg_colour} background-alt = {backg_clralt} foreground = {foreg_colour} primary = {primary_color} secondary = ${{colors.primary}} alert = #A54242 disabled = #707880 [bar/example] width = 100% height = 2.5% radius = 0 font-0 = "JetBrainsMono Nerd Font:pixelsize=13;2" font-1 = "IPAGothic:pixelsize=13;2" background = ${{colors.background}} foreground = ${{colors.foreground}} line-size = 0 border-size = 0 border-color = ${{colors.primary}} padding-left = 0 padding-right = 1 module-margin = 1 separator = | separator-foreground = ${{colors.disabled}} modules-left = xworkspaces music modules-center = arch xwindow modules-right = aud bat mem cpu temp wlan eth date cursor-click = pointer enable-ipc = true [module/music] type = custom/script exec = /home/ferit/scripts/nowplaying tail = false interval = 2 click-left = playerctl play-pause click-right = playerctl stop double-click-left = playerctl next double-click-right = playerctl previous scroll-up = playerctl position 5+ scroll-down = playerctl position 5- format-prefix = " " format-prefix-foreground = {primary_color} format =