stav121 / i3wm-themer

🎨 Theme collection manager for i3-wm
MIT License
2.23k stars 244 forks source link

Failed to Overwrite Everything? #13

Closed Flash619 closed 6 years ago

Flash619 commented 6 years ago

I setup a fresh install, fresh i3 config, polybar config, etc..

The initial -c command completed without error.

When applying any themes I am faced with the following output.


[*] 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.
    [-] Failed to apply change: Overwrite *.background: .
    [-] Failed to apply change: Overwrite *.foreground: .
    [-] Failed to apply change: Overwrite *.cursorColor: .
    [-] Failed to apply change: Overwrite URxvt.background .
    [-] Failed to apply change: Overwrite URxvt*foreground .
    [-] Failed to apply change: Overwrite URxvt*cursorColor .
    [-] Failed to apply change: Overwrite URxvt.font .
    [-] Failed to apply change: Overwrite *.color0: .
    [-] Failed to apply change: Overwrite *.color1: .
    [-] Failed to apply change: Overwrite *.color2: .
    [-] Failed to apply change: Overwrite *.color3: .
    [-] Failed to apply change: Overwrite *.color4: .
    [-] Failed to apply change: Overwrite *.color5: .
    [-] Failed to apply change: Overwrite *.color6: .
    [-] Failed to apply change: Overwrite *.color7: .
    [-] Failed to apply change: Overwrite *.color8: .
    [-] Failed to apply change: Overwrite *.color9: .
    [-] Failed to apply change: Overwrite *.color10: .
    [-] Failed to apply change: Overwrite *.color11: .
    [-] Failed to apply change: Overwrite *.color12: .
    [-] Failed to apply change: Overwrite *.color13: .
    [-] Failed to apply change: Overwrite *.color14: .
    [-] Failed to apply change: Overwrite *.color15: .
    [-] Failed to apply change: Overwrite rofi.color-enabled .
    [-] Failed to apply change: Overwrite rofi.color-window .
    [-] Failed to apply change: Overwrite rofi.color-normal .
    [-] Failed to apply change: Overwrite rofi.color-active .
    [-] Failed to apply change: Overwrite rofi.color-urgent .
    [-] Failed to apply 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.
    [-] Failed to apply change: Overwrite new_window .
    [-] Failed to apply change: Overwrite new_float .
    [-] Failed to apply change: Overwrite new_window .
    [-] Failed to apply change: Overwrite client.background .
    [-] Failed to apply change: Overwrite client.focused .
    [-] Failed to apply change: Overwrite client.unfocused .
    [-] Failed to apply change: Overwrite client.focused_inactive .
    [-] Failed to apply change: Overwrite client.urgent .
    [-] Failed to apply change: Overwrite client.placeholder .
    [+] Located .config/polybar/config file in the theme directory.
    [+] Located ~/.config/polybar/config file.
    [-] Failed to apply change: Overwrite bottom .
    [+] Applied change: Overwrite height .
    [+] Applied change: Overwrite width .
    [-] Failed to apply change: Overwrite offset-x .
    [-] Failed to apply 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 .
    [-] Failed to apply change: Overwrite tray-transparent .
    [-] Failed to apply change: Overwrite tray-offset-x .
    [-] Failed to apply change: Overwrite tray-offset-y .
    [-] Failed to apply change: Overwrite tray-maxsize .
    [-] Failed to apply change: Overwrite tray-detached .
    [-] Failed to apply change: Overwrite tray-background .
    [-] Failed to apply change: Overwrite wm-restack .
    [-] Failed to apply change: Overwrite background .
    [-] Failed to apply change: Overwrite foreground .
    [+] Applied change: Overwrite ;override-redirect
    [-] Failed to apply change: Overwrite label-unfocused-background .
    [-] Failed to apply change: Overwrite label-unfocused-foreground .
    [-] Failed to apply change: Overwrite label-unfocused-underline .
    [-] Failed to apply change: Overwrite label-focused-background .
    [-] Failed to apply 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 .
    [-] Failed to apply change: Overwrite label-urgent-foreground .
    [-] Failed to apply 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.
    [-] Failed to apply change: Overwrite DMENU_NF= .
    [-] Failed to apply change: Overwrite DMENU_FN= .
    [-] Failed to apply change: Overwrite DMENU_SB= .
    [-] Failed to apply change: Overwrite DMENU_NB= .
    [-] Failed to apply change: Overwrite DMENU_SF= .
    [+] Located .config/compton.config file in the theme directory.
    [-] Failed to locate ~/.config/compton.conf in your configuration
    [+] Wallpaper set successfully
    [*] Restarting i3wm...
    [*] Success!
[!] Almost done, please use your appearance manager to set the wallpaper and GTK/Icon themes

[*] i3wmthemer finished

The theme does not load properly, and no visible changes are made to i3 as a result.

Running ArchLinux currently. Let me know if you need some more info.

stav121 commented 6 years ago

Good evening sir, sorry for the kinda late response.

The way that the script works is that it just replaces pre-existing lines in your configuration files , it does not add new files, which means that if (for example) the line that contains "*.color1:" in your Xresources is not there already the script will not add it at all (to avoid added unwanted features to people's setups).

So if that is your case I would recommend to recover your configuration files ( I hope you backed everything up as I mention in the README.md ) and just apply the theme you want "by hand". Anyways the script will not completely add a theme for you, it only replaces some "key" lines to get something close to the looks you look for. If you want to get the exact thing that you see in the screenshots you probably have to do it the manual way.

I hope this helps you somehow.

Flash619 commented 6 years ago

Well from my experience in Arch Linux, a fresh install does not generate a .Xresources or a .extended.Xresources file by default which causes the scripts to fail.

stav121 commented 6 years ago

Well in that case , straight copy-pasting one of my Xresources would probably work for you. (Considering you have the right fonts installed etc)

mipam007 commented 6 years ago

Hi There! Same issue on my side with Fedora 27. I have enclosed the log file. Can you guys point me to the right direction? Thanks a lot for good work :)

error-log.txt

stav121 commented 6 years ago

Hello @mipam007 , the log file doesn't really provide me that much info, but as far as I can tell, your files are found so you are probably missing some lines in your configurations. The script doesn't add any new lines, it only replaces pre-existing ones. So to be able to troubleshoot this you should check if the lines that fail to me replaced are already in your files. If they are not you should add them.

In any case, if you are looking to just use one of the themes, then you could just copy-paste the changes, it's not time consuming anyways and you will be able to customize your desktop even further.

mipam007 commented 6 years ago

Hi and THANKS for quick response! I will try to search them. I better read your issues again and found that you already answered this questions... sorry for another stupid question :)

stav121 commented 6 years ago

It's not a problem mate. If you still can't get it fixed you can consider posting your configs somewhere so I can take a quick look at them and suggest changes.

mipam007 commented 6 years ago

currently going through all those scripts and trying to understand where and how to distribute those bunch of files...

stav121 commented 6 years ago

Every line that needs to change per theme can be found under this directory: https://github.com/unix121/i3wm-themer/tree/master/templated_themes It's pretty much the same for every theme, so you can see what you are missing and add it.

stav121 commented 6 years ago

Hello guys,

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.