stav121 / i3wm-themer

๐ŸŽจ Theme collection manager for i3-wm
MIT License
2.22k stars 246 forks source link

Failed to apply change: Overwrite background . #18

Closed turingking closed 6 years ago

turingking commented 6 years ago

Good afternoon: I encountered a problem๏ผš


โžœ  scripts git:(master) โœ— ./i3wmthemer -t Colors    

[*] i3wmthemer script started

[*] You have entered theming mode.
    [*] Located the theme directory.
    [+] Fonts are set up successfully
    [+] GTK Theme migration completed successfully.
    [+] Icon migration completed successfully.
    [*] Located .extend.Xresources file in theme the directory.
    [*] Located ~/.Xresources file.
    [+] Applied change: Overwrite *.background:
    [+] Applied change: Overwrite *.foreground:
    [+] Applied change: Overwrite *.cursorColor:
    [+] Applied change: Overwrite URxvt.background:
    [+] Applied change: Overwrite URxvt*foreground:
    [+] Applied change: Overwrite URxvt*cursorColor:
    [+] Applied change: Overwrite URxvt.font:
    [+] Applied change: Overwrite *.color0:
    [+] Applied change: Overwrite *.color1:
    [+] Applied change: Overwrite *.color2:
    [+] Applied change: Overwrite *.color3:
    [+] Applied change: Overwrite *.color4:
    [+] Applied change: Overwrite *.color5:
    [+] Applied change: Overwrite *.color6:
    [+] Applied change: Overwrite *.color7:
    [+] Applied change: Overwrite *.color8:
    [+] Applied change: Overwrite *.color9:
    [+] Applied change: Overwrite *.color10:
    [+] Applied change: Overwrite *.color11:
    [+] Applied change: Overwrite *.color12:
    [+] Applied change: Overwrite *.color13:
    [+] Applied change: Overwrite *.color14:
    [+] Applied change: Overwrite *.color15:
    [+] Applied change: Overwrite rofi.color-enabled:
    [+] Applied change: Overwrite rofi.color-window:
    [+] Applied change: Overwrite rofi.color-normal:
    [+] Applied change: Overwrite rofi.color-active:
    [+] Applied change: Overwrite rofi.color-urgent:
    [+] Applied change: Overwrite rofi.font:
    [*] Finished editing ~/.extend.Xresources file.
    [*] Executing 'xrdb ~/.Xresources' command.
    [*] Success!
    [+] Located .i3/config file in the theme directory.
    [+] Located ~/.config/i3/config file.
    [+] Applied change: Overwrite new_window
    [+] Applied change: Overwrite new_float
    [+] Applied change: Overwrite new_window
    [-] Failed to apply change: Overwrite client.background .
    [+] Applied change: Overwrite client.focused .
    [+] Applied change: Overwrite client.unfocused .
    [+] Applied change: Overwrite client.focused_inactive .
    [+] Applied change: Overwrite client.urgent .
    [+] Applied change: Overwrite client.placeholder .
    [+] Located .config/polybar/config file in the theme directory.
    [+] Located ~/.config/polybar/config file.
    [+] Applied change: Overwrite bottom .
    [+] Applied change: Overwrite height .
    [+] Applied change: Overwrite width .
    [+] Applied change: Overwrite offset-x .
    [+] Applied change: Overwrite offset-y .
    [+] Applied change: Overwrite fixed-center .
    [+] Applied change: Overwrite line-size .
    [+] Applied change: Overwrite line-color .
    [+] Applied change: Overwrite border-size .
    [+] Applied change: Overwrite border-color .
    [+] Applied change: Overwrite padding-left .
    [+] Applied change: Overwrite padding-right .
    [+] Applied change: Overwrite module-margin-left .
    [+] Applied change: Overwrite module-margin-right .
    [+] Applied change: Overwrite tray-position .
    [+] Applied change: Overwrite tray-padding .
    [+] Applied change: Overwrite tray-transparent .
    [+] Applied change: Overwrite tray-offset-x .
    [+] Applied change: Overwrite tray-offset-y .
    [+] Applied change: Overwrite tray-maxsize .
    [+] Applied change: Overwrite tray-detached .
    [+] Applied change: Overwrite tray-background .
    [+] Applied change: Overwrite wm-restack .
    [-] Failed to apply change: Overwrite background .
    [-] Failed to apply change: Overwrite foreground .
    [+] Applied change: Overwrite ;override-redirect
    [+] Applied change: Overwrite label-unfocused-background .
    [+] Applied change: Overwrite label-unfocused-foreground .
    [-] Failed to apply change: Overwrite label-unfocused-underline .
    [-] Failed to apply change: Overwrite label-focused-background .
    [+] Applied change: Overwrite label-focused-foreground .
    [-] Failed to apply change: Overwrite label-focused-underline .
    [+] Applied change: Overwrite label-mode-background .
    [-] Failed to apply change: Overwrite label-visible-background .
    [-] Failed to apply change: Overwrite label-visible-foreground .
    [+] Applied change: Overwrite label-visible-underline .
    [-] Failed to apply change: Overwrite label-urgent-background .
    [+] Applied change: Overwrite label-urgent-foreground .
    [+] Applied change: Overwrite label-urgent-underline .
    [+] Applied change: Overwrite line-size .
    [+] Applied change: Overwrite line-color .
    [+] Applied change: Overwrite border-size .
    [+] Applied change: Overwrite border-color .
    [+] Located .config/polybar/config file in the theme directory.
    [+] Located ~/.dmenurc file.
    [+] Applied change: Overwrite DMENU_NF="#ead49b" .
    [+] Applied change: Overwrite DMENU_FN="Hack-10.5" .
    [+] Applied change: Overwrite DMENU_SB="#1e272b" .
    [+] Applied change: Overwrite DMENU_NB="#1e272b" .
    [+] Applied change: Overwrite DMENU_SF="#78824b" .
    [+] Located .config/compton.config file in the theme directory.
    [+] Located ~/.config/compton.conf file.
    [+] Applied change: Overwrite shadow-radius
    [+] Applied change: Overwrite shadow-offset-x
    [+] Applied change: Overwrite shadow-offset-y
    [+] Applied change: Overwrite shadow-opacity
    [+] Applied change: Overwrite no-dock-shadow
    [+] Wallpaper set successfully
    [*] Restarting i3wm...
    [*] Success!
[!] Almost done, please use your appearance manager to set the wallpaper and GTK/Icon themes

[*] i3wmthemer finished

this is my polybar config:

;=====================================================
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar
;
;   The README contains alot of information
;
;=====================================================

[colors]

color15_i3wmthemer      = ${xrdb:color15}
color14_i3wmthemer      = ${xrdb:color14}
color13_i3wmthemer      = ${xrdb:color13}
color12_i3wmthemer      = ${xrdb:color12}
color11_i3wmthemer      = ${xrdb:color11}
color10_i3wmthemer      = ${xrdb:color10}
color09_i3wmthemer        = ${xrdb:color9}
color08_i3wmthemer        = ${xrdb:color8}
color07_i3wmthemer        = ${xrdb:color7}
color06_i3wmthemer        = ${xrdb:color6}
color05_i3wmthemer        = ${xrdb:color5}
color04_i3wmthemer        = ${xrdb:color4}
color03_i3wmthemer        = ${xrdb:color3}
color02_i3wmthemer        = ${xrdb:color2}
color01_i3wmthemer      = ${xrdb:color1}
color00_i3wmthemer        = ${xrdb:color0}
foreground_i3wmthemer   = ${xrdb:foreground}
background_i3wmthemer   = ${xrdb:background}

;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40

[bar/main_bar]
;monitor = ${env:MONITOR:HDMI-1}
bottom = false
width = 100%
height = 20
offset-x = 0
offset-y = 0
radius = 6.0
fixed-center = true

background = ${colors.background_i3wmthemer}
foreground =  ${colors.foreground_i3wmthemer}

line-size = 3
line-color = ${colors.color04_i3wmthemer}

border-size = 0
border-color = ${colors.color02_i3wmthemer}

padding-left = 0
padding-right = 0

module-margin-left = 0
module-margin-right = 0

font-0 = fixed:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1

modules-left = bspwm i3
modules-center = 
modules-right = filesystem xbacklight volume xkeyboard memory cpu wlan eth battery temperature date powermenu

tray-position = right
tray-padding = 9
tray-transparent = false
tray-offset-y = 0%
tray-offset-x = 0%
tray-maxsize = 18
tray-detached = false
tray-background = ${colors.background_i3wmthemer}

;wm-restack = bspwm
wm-restack = i3

;override-redirect = true

;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev

;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev

cursor-click = pointer
cursor-scroll = ns-resize

[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock

format-prefix = "๎‰ฏ "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}

label-layout = %layout%
label-layout-underline = ${colors.secondary}

label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}

[module/filesystem]
type = internal/fs
interval = 25

mount-0 = /

label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}

[module/bspwm]
type = internal/bspwm

label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2

label-occupied = %index%
label-occupied-padding = 2

label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2

label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2

[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
strip-wsnumbers = true
pin-workspaces = true
; Only show workspaces on the same output as the bar
;pin-workspaces = true
label-unfocused-background = ${colors.background_i3wmthemer}
label-unfocused-foreground = ${colors.foreground_i3wmthemer}

label-mode = %name%
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.color04_i3wmthemer}

; focused = Active workspace on focused monitor
label-focused = %name%
label-focused-foreground = ${colors.color04_i3wmthemer}
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}

; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}

; visible = Active workspace on unfocused monitor
label-visible = %name%
label-visible-foreground = ${colors.color04_i3wmthemer}
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${colors.color04_i3wmthemer}
label-visible-padding = ${self.label-focused-padding}

; urgent = Workspace with urgency hint set
label-urgent = %name%
label-urgent-foreground = ${colors.foreground_i3wmthemer}
label-urgent-background = ${colors.background_i3wmthemer}
label-urgent-underline = ${colors.color02_i3wmthemer}
label-urgent-padding = ${module/bspwm.label-urgent-padding}

[module/mpd]
type = internal/mpd
format-online = <label-song>  <icon-prev> <icon-stop> <toggle> <icon-next>

icon-prev = ๎‚–
icon-stop = ๎‚™
icon-play = ๎‚š
icon-pause = ๎‚›
icon-next = ๎‚œ

label-song-maxlen = 25
label-song-ellipsis = true

[module/xbacklight]
type = internal/xbacklight

format = <label> <bar>
label = BL

bar-width = 10
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = โ”€
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = โ”€
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}

[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight

[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "๎€ฆ "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage:2%%

[module/memory]
type = internal/memory
interval = 2
format-prefix = "๎€จ "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = %percentage_used%%

[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3.0

format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%

format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}

ramp-signal-0 = ๎ˆ˜
ramp-signal-1 = ๎ˆ™
ramp-signal-2 = ๎ˆš
ramp-signal-3 = ๎ˆš
ramp-signal-4 = ๎ˆš
ramp-signal-foreground = ${colors.foreground-alt}

[module/eth]
type = internal/network
interface = zt0
interval = 3.0

format-connected-underline = #55aa55
format-connected-prefix = "๎†œ "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%

format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}

[module/date]
type = internal/date
interval = 5

date =
date-alt = " %Y-%m-%d"

time = %H:%M
time-alt = %H:%M:%S

format-prefix = ๎€–
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5

label = %date% %time%

[module/volume]
type = internal/volume

format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}

format-muted-prefix = "๎ˆ‚ "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted

bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = โ”€
bar-volume-fill-font = 2
bar-volume-empty = โ”€
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}

[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98

format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a

format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}

format-full-prefix = "๎ˆบ "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}

ramp-capacity-0 = ๎ˆถ
ramp-capacity-1 = ๎ˆท
ramp-capacity-2 = ๎ˆธ
ramp-capacity-foreground = ${colors.foreground-alt}

animation-charging-0 = ๎ˆถ
animation-charging-1 = ๎ˆท
animation-charging-2 = ๎ˆธ
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750

[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60

format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}

label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}

ramp-0 = ๎ƒ‰
ramp-1 = ๎ƒŠ
ramp-2 = ๎ƒ‹
ramp-foreground = ${colors.foreground-alt}

[module/powermenu]
type = custom/menu

expand-right = true

format-spacing = 1

label-open = ๎„Œ
label-open-foreground = ${colors.secondary}
label-close = ๎ฅ cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}

menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2

menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot

menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0

[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over

[global/wm]
margin-top = 5
margin-bottom = 5

; vim:ft=dosini

I found a rule that errors only appear in places containing "background" or "foreground"

stav121 commented 6 years ago

Hello sir,

For all I can tell this happens because you have duplicate labels on your config. You have a label called "background" in your colors section and another label called "background" in your rest config. I believe that if you remove the label/rename it in your colors section you should be fine to go.

stav121 commented 6 years ago

Hello sir,

The whole repository has been reworked, so I'm closing this issue for now. In case you meet any new issues then please open a new Issue thread that is more up-to-date.