Automatically generate new wallpaper

Done from 0.

  1. It works

  2. It only setups one screen, the second one stays the same

  3. Sure, you can add me as a beta tester or debugger :stuck_out_tongue:

  4. I have a couple suggestions… but they might be tricky and they are related to point 2) and multiple resolutions

1 Like

Hmm, for multiple screens, try

osascript -e "tell application \"System Events\" tell every desktop set picture to \"$(dirname "$0")/wallpaper.png\" end tell end tell"

I would love to hear your other suggestions :slight_smile:

33:37: syntax error: Expected end of line but found “tell”. (-2741)

Also, I assume every time it overwrites the wallpaper.png file, right?

The suggestion is hat because I have 2 Displays, I want 2 different resolutions. I can modify the script so it downloads Devide 1 and Device 2…

and the apply each wallpaper1.png and wallpaper2.png to the correct display (I don’t know how to do that)

1 Like

Oh whoops.

I read the other page I was referencing too quickly…

To set it for all wallpapers, try this please

osascript -e “tell application \"System Events\" to tell every desktop to set picture to \“$(dirname “$0”)/wallpaper.png\”"

I’ll see what I can find for multiple monitors with different resolutions.

Maybe I can just do it custom for me, and you can add and explanation in the website as Advance if someone want to try.

1 Like

Good idea. Does that previous line work for setting all monitors to the same image?

Try this for your different monitors:

cd "$(dirname "$0")"
curl -s -A "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" -o "wallpaper1.png" "http://wkw.natural20design.com/?k=YOUR_API_KEY&d=1"
curl -s -A "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36" -o "wallpaper2.png" "http://wkw.natural20design.com/?k=YOUR_API_KEY&d=2"
osascript -e "tell application \"System Events\" to tell desktop 1 to set picture to \"$(dirname "$0")/wallpaper1.png\""
osascript -e "tell application \"System Events\" to tell desktop 2 to set picture to \"$(dirname "$0")/wallpaper2.png\""

The previous one didn’t work, but it did this one!!

Awesome!!!

1 Like

Can you try this please? This is just for the same wallpaper on every monitor. I just want to see if it works so I can put it on the website. I think the fancy quotes messed it up last time.

osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"$(dirname "$0")/wallpaper.png\""

It does work!

I’m going to play with the resolutions now :wink:

1 Like

Excellent! Thank you again so much for your help :slight_smile:

I’ve just edited crontab to run in a specific schedule. Let’s see how that works… :crossed_fingers:

1 Like

Hi!

I’m testing it in a Windows machine and it’s not working for me:

Downloading wallpaper
The system cannot find the path specified.
Setting wallpaper

Hi again Emucat!

Try step 3 again, which is to download this program. Also make sure to adjust the path in the batch file to point to the Wallpaper Changer exe.

-Ben

1 Like

Hello @Masayoshiro!!

Any chance to add the new kanjis from the content update?

2 Likes

Hello Emucat! Thank you for letting me know about this cool new 𝓀𝒶𝓃𝒿𝒾 𝓊𝓅𝒹𝒶𝓉𝑒. I’ve been out of the loop.

Yeah, an update sounds like a good idea. I have to leave for work real soon so I won’t be able to finish this until later. If you feel like helping, can you locate an ordering online that 1) follows a similar ordering that’s on the wallpaper generator, and 2) includes these characters? These are characters from WaniKani that I do not have in the wallpaper generator. Otherwise, I could always just put these new kanji at the bottom of the list ¯\_(ツ)_/¯

飴叩喉匂嬉嘘亮蓮聡綾隼輔颯胡諒蒙曙葵莉戴緋駿栞哺傲茜呆瑛遼龍弥脊那柴凛嘉遥靖瑠楓蒼哉萌瑞凌璃椎漣菅憧沙蔑汰狐藍唄湧

1 Like

Are the ones you are missing here?

'一二三四五六七八九十口日月田目古吾冒明唱晶品呂昌早世胃旦胆凹凸旧' +
'自白百中千舌升昇丸寸専博占上下卓朝貝貞員見児元頑凡負万句肌旬的首' +
'乙乱直具真工左右有賄貢項刀刃切召昭則副別丁町可頂子孔了女好如母貫' +
'兄克小少大多夕外名石肖砕砂削光太器臭妙省厚奇川州順水氷永泉原願泳' +
'沼沖江汁潮源活消況河泊湖測土吐圧埼垣封涯寺時均火炎煩淡灯畑災灰点' +
'照魚漁里黒墨鯉量埋同洞胴向尚字守完宣安宴寄富貯木林森枠棚杏植枯朴' +
'村相机本札暦案燥未末味妹朱株若草苦寛薄葉模漠墓暮膜苗兆桃眺犬状黙' +
'然狩猫牛特告先洗介界茶合塔王玉宝珠現狂皇呈全栓理主注柱金鉢銅釣針' +
'銘鎮道導迅造迫逃辺巡車連軌輸前各格略客額夏処条落冗軍輝運冠夢坑高' +
'享塾熟亭京涼景鯨舎周週士吉壮荘売学覚栄書津牧攻敗枚故敬言警計獄訂' +
'討訓詰話詠詩語読調談諾諭式試域賊栽載茂成城誠威滅減桟銭浅止歩渉頻' +
'肯企歴武正証政定錠走超赴越是題堤建延誕礎婿衣裁装裏壊哀遠猿初布帆' +
'幅帽幕錦市姉肺帯滞刺制製転芸雨雲曇雷霜冬天橋立泣章競帝童瞳鐘商適' +
'滴敵北背比昆皆混渇喝旨脂毎敏梅海乾腹複欠吹炊歌軟次茨資姿諮賠培剖' +
'音暗識鏡境亡盲妄荒望方妨坊芳肪訪放激脱説鋭増贈東棟凍妊廷染燃賓歳' +
'県栃地池虫蛍蛇虹蝶独風己起妃改記包胞砲泡亀電竜滝豚遂家嫁豪腸場湯' +
'羊美洋詳鮮達差着唯焦礁集准進雑雌準奮奪確午許歓権観羽習翌曜濯困固' +
'国団因姻園回壇店庫庭庁床麻磨心忘忍認忌志誌忠患思恩応意想息憩恵恐' +
'惑感憂寡忙悦恒悼悟怖悔憎慣愉惰慎憾憶慕添必泌手看摩我義議犠抹抱搭' +
'抗批招拓拍打拘捨拐摘挑指持括揮推揚提損拾担拠描操接掲掛研戒械鼻刑' +
'型才財材存在乃携及吸扱丈史更硬又双桑隻護獲奴怒友抜投没設撃殻支技' +
'枝茎怪軽叔督寂淑反坂板返販爪妥乳浮将奨採菜受授愛払広拡鉱弁雄台怠' +
'治始胎窓去法会至室到致互棄育撤充銃硫流唆出山拙岩炭岐峠崩密蜜嵐崎' +
'入込分貧公松訟谷浴容溶欲裕鉛沿賞党堂常掌皮波婆披破被残殉殊殖列裂' +
'烈死葬瞬耳取趣最撮恥職聖敢聴懐慢漫買置罰寧濁環還夫扶渓規替賛潜失' +
'鉄迭臣姫蔵臓賢堅臨覧巨拒力男労募劣功勧努励加賀架脇脅協行律復得従' +
'徒待往征径彼役徳徹徴懲微街衡稿稼程税稚和移秒秋私秩秘称利梨穫穂稲' +
'香季委秀透誘穀菌米粉粘粒粧迷粋糧菊奥数類漆様求球救竹笑笠筋箱筆筒' +
'等算答策簿築人佐住位仲体悠件仕他伏伝仏休仮伯俗信佳依例個健側侍停' +
'値倒偵僧億儀償仙催仁侮使便倍優伐宿傷保褒傑付符府任賃代袋貸化花貨' +
'傾何荷俊傍久囚内柄肉腐座卒傘以似併瓶宮営善年夜液塚幣弊喚換融施旋' +
'遊旅物易尿尼尻泥塀履屋握屈掘堀居据層局遅漏刷尺尽沢訳択昼戸肩房扇' +
'炉戻涙雇顧啓示礼祥祝福祉社視奈尉慰款禁襟宗崇祭察擦由抽油宙届笛軸' +
'甲押岬挿申伸神捜果菓課裸析所祈近折哲逝誓暫漸断質訴昨詐作雪録尋急' +
'穏侵浸寝婦掃当争浄事唐糖康逮伊君群耐需端両満画歯曲曹遭槽斗料科図' +
'用庸備昔錯借惜措散庶遮席度渡奔噴墳憤焼暁半伴畔判券巻圏勝藤片版之' +
'乏芝不否杯矢矯族知智矛柔務霧班帰弓引弔強弱沸費第弟巧号朽誇汚与写' +
'身射謝老考孝教拷者煮著署暑諸賭峡狭挟追師帥官管父交効較校足促距路' +
'露跳躍践踏骨滑髄禍渦過阪阿際障随陪陽陳防院陣隊墜降階陛隣隔隠堕陥' +
'穴空控突究窒窃搾窮探深丘岳兵浜糸織縮繁縦線締維羅練緒続絵統絞給絡' +
'結終級紀紅納紡紛紹経紳約細累索総綿絹繰継緑縁網緊紫縛縄幼後幽幾機' +
'玄畜蓄弦擁滋慈磁系係孫懸却脚卸御服命令零齢冷領鈴勇通踊疑擬凝範犯' +
'厄危腕柳卵留貿印興酒酌酵酷酬酪酢酔配酸猶尊豆頭短豊鼓喜樹皿血盆盟' +
'盗温監鑑猛盛塩銀恨根即節退限眼良朗浪娘食飯飲飢餓飾館養飽既概慨平' +
'呼坪評刈希凶胸離殺純鈍辛辞梓宰壁避新親幸執報叫糾収卑碑陸睦勢熱陵' +
'核刻該劾述術寒醸譲壌嬢毒素麦青精請情晴清静責績積債漬表俵潔契喫害' +
'轄割憲生星姓性牲産隆峰縫拝寿鋳籍春泰奏実奉俸棒謹勤漢嘆難華垂睡乗' +
'剰今含吟念琴陰予序預野兼嫌鎌謙廉西価要腰票漂標遷覆煙南献門問閲閥' +
'間簡開閉閣閑聞潤欄闘倉創非俳排悲罪輩扉候決快偉違緯衛韓干肝刊汗軒' +
'岸幹芋宇余除徐叙途斜塗束頼瀬疎速整剣険検倹重動勲働種衝病痴症疾痢' +
'疲疫痛癖匿匠医匹区枢殴欧抑仰迎登澄発廃僚寮療彫形影杉彩彰顔須膨参' +
'惨修珍診文対紋蚊斉剤済斎粛塁楽薬率渋摂央英映赤赦変跡蛮恋湾黄横把' +
'色絶肥甘紺某謀媒欺棋旗期碁基甚勘堪貴遺遣舞無組粗租祖阻査助宜畳並' +
'普譜湿顕繊霊業撲僕共供異翼洪港暴爆恭選殿井囲耕亜悪円角触解再講購' +
'構溝論倫輪偏遍編冊典氏紙婚低抵底民眠捕浦舗補邸郭郡郊部都郵邦郷響' +
'郎廊盾循派脈衆段鍛后幻司伺詞飼舟舶航般盤搬船艦艇瓜弧孤益暇敷来気' +
'汽飛沈妻衰面革靴覇声呉娯誤蒸承極牙芽邪雅釈番審翻藩毛尾宅託為偽長' +
'張帳髪展喪巣単戦禅弾桜獣脳悩厳鎖挙誉猟鳥鳴鶴烏鳩鶏島暖媛援緩属嘱' +
'偶遇愚隅逆岡鋼綱剛缶陶揺謡就懇免逸晩勉象像馬駒験騎駐駆駅騒駄驚篤' +
'騰虎虜膚虚戯慮劇虐鹿薦慶麗熊能態演辱震振娠唇農濃送関咲鬼醜魂魔魅' +
'塊襲雰錬罷屯且藻隷癒丹潟謎椅翔贅芯酎俺闇枕綺鍋醤丼賂伎斐墟蜂拳遜' +
'狙噌誰呪也頃叱斬鍵巾爽阜庄瞭崖箸淀堰鰐隙貼蟹鬱々湧'

Unfortunately not. It’s weird, actually, like, I’m checking online at Jouyou and JLPT lists, and none of them seem to have 飴, for example. (飴 is the first one in my list above). Do you think I should just append the new ones to the bottom?

Also, I apparently had some extra kanji in the wallpaper program that weren’t even in Wanikani, lol. I’ll remove those later today.

1 Like

Yeah, whatever. Or if you find similar ones, just add them next to them

No news?

I really “need” to have my wallpaper correctly updated. No pressure :stuck_out_tongue_winking_eye:

Okayokayokay, I just posted a minor update with the new kanji ordering. Now, all the kanji shown are from and on Wanikani, and none of the non-Wanikani kanji remain.

But just so you don’t think your old friend has been sitting on his hands, you can go on to the website itself and see that it looks slightly different. More importantly, though, it looks even more different on the code side, but I’ll get into those changes more in the next major update. :wink:

1 Like