deviantfero / wpgtk

:flower_playing_cards: a colorscheme, wallpaper and template manager for *nix
http://deviantfero.github.io/wpgtk/
GNU General Public License v2.0
2.05k stars 49 forks source link

Argument -r does "nothing" #233

Closed EmiMidnight closed 2 years ago

EmiMidnight commented 3 years ago

According to the arguments list, -r is supposed to restore the last theme and set the wallpaper. It does that, but also brings up the GUI, which is a bit annoying as i'm using it in my i3 boot script. I wasn't sure if it was a bug, but considering leaving it out has the exact same effect, and there also seems to be no code actually parsing the -r flag, i'm gonna assume this was not the intention.

deviantfero commented 3 years ago

wpgtk produces a ~/.config/wpg/wpg_init.sh file which you're suposed to call in your init script, this is the content of that file:

#!/usr/bin/env bash
wpg -rs 'sakura.jpg' 'sakura.jpg'

you're not suposed to call wpg -r by itself, but you're right, that should throw an error or simply not load the gui at all

deviantfero commented 3 years ago

being addressed on #222