Looking for a calendar display widget, synchable w/google if possible [SOLVED]

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

Because in the lower part of the conky config there is nothing.. the lua script provides the text and graphics.. you turned that off.. so you need to enter some text in the lower part to size the conky window a bit bigger!
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 7:56 pm Because in the lower part of the conky config there is nothing.. the lua script provides the text and graphics.. you turned that off.. so you need to enter some text in the lower part to size the conky window a bit bigger!
Im not certain of the proper format in which to add that.

As everything disappeared when the lua script was commented out, does this mean that background is being generated by the lua script?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

No, because the lua is not loaded, there is nothing to present to the conky window and now the conky window is at it's minimum! Mostly a little teeny tiny 4x4 pixel window (or something like that).
As soon as you enter a bunch of text in the lower part of the conky script, the window resizes to the text added.
Just enter a bunch of text!

Btw, were is your signature? ;)
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 8:12 pm Btw, were is your signature? ;)
I knew I forgot something >.<
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

It doesn't work! :shock:
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 8:12 pm No, because the lua is not loaded, there is nothing to present to the conky window and now the conky window is at it's minimum! Mostly a little teeny tiny 4x4 pixel window (or something like that).
As soon as you enter a bunch of text in the lower part of the conky script, the window resizes to the text added.
Just enter a bunch of text!
I started widget with this edit:

Code: Select all

--	lua_load = './cal.lua',
--	lua_draw_hook_post = 'main',

};
conky.text = [[
please display calendar
]];
I see the text "please display calendar" in white in the top left corner of screen with no outline/boarder/background

How do I get the working calendar in here instead of this test text?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 8:18 pm It doesn't work! :shock:
I just got a kernel upgrade and rebooted system, but the script is in startup applications.

I just did a manual restart and got a terminal confirmation it's running if you would check the button again please
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

I think my mistake was I set startup applications to just run the inxi-report script. I have just had chatgpt3.5 generate an xdotool bash .sh script to auto open a terminal, pause, type in cd .inxi-report, pause type in ./inxi-report.sh, pause, then minimize the terminal window. The startup application is now running this launch-inxi.sh and I believe I should be good on future reboots.
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

For the conky part, it seems the problem is the lua script. That's Bleys part to solve.. ;)

For the inxi part. I know there is a flaw in my script and i'm already try to solve it. Start it from the terminal works great, starting it from auto application it does not start the server script. Has something to do with path to the server script.
How you have set it up now is bonkers! haha.. now you have always an open terminal.. i want it to run without terminal open! But solution is underway..
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 8:42 pm How you have set it up now is bonkers! haha.. now you have always an open terminal.. i want it to run without terminal open! But solution is underway..
Being a new Linux user and not being a coder I have no finesse. This was a brute force solution of desperation lol. Here is the xdotool script if you are curious what the bot generated:

Code: Select all

#!/bin/bash

# Open terminal
xdotool key ctrl+alt+t

# Wait for 2 seconds
sleep 2

# Type 'cd .inxi-reports' and press Enter
xdotool type 'cd .inxi-reports'
xdotool key Return

# Wait for 2 seconds
sleep 2

# Type './inxi-report.sh' and press Enter
xdotool type './inxi-report.sh'
xdotool key Return

# Wait for 2 seconds
sleep 2

# Minimize the terminal window
xdotool key ctrl+super+h
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

I know xdotool, use it often. It is indeed brute force!
But bow down to your master, young coder, i have found the solution! :mrgreen:

I suspect you have not changed the inxi-report.conf, if not, then you can replace all your files.
Otherwise the important ones to replace are inxi-report.sh and server.

inxi-report-v1.2.tar.gz
(7.39 KiB) Downloaded 33 times
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 9:17 pm I know xdotool, use it often. It is indeed brute force!
But bow down to your master, young coder, i have found the solution! :mrgreen:

I suspect you have not changed the inxi-report.conf, if not, then you can replace all your files.
Otherwise the important ones to replace are inxi-report.sh and server.


inxi-report-v1.2.tar.gz
I have replaced everything with the contents of this new tar.gz

Do I now stop using the xdotool script and just launch inxi-report.sh via startup apps?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

It seems you have 2 instances running... execute killall webfsd on terminal and then make a normal autostart application. Without terminal.
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Wed Jan 24, 2024 9:38 pm It seems you have 2 instances running... execute killall webfsd on terminal and then make a normal autostart application. Without terminal.

Code: Select all

logansfury@OptiPlex-5040:~$ killall webfsd
webfsd(1120): Operation not permitted
logansfury@OptiPlex-5040:~$
was this supposed to happen?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

Probably need sudo.. sudo killall webfsd
Image
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

Whoopdiehoo, it works! :D

Your http server is also ready... (this topic gets pretty alround, or messy :lol: )
Doubbelclick on the script and it starts, doubleclick again and it stops. It has a file called status that holds the text online or offline so you can make something in conky like this:
http-server = ${exec cat ~/.http-server/status}

.http-server-v1.0.tar.gz
(1.07 KiB) Downloaded 17 times


edit: don't forget to open port 1179 ! And for more help with this, i think it's better to go pm..
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

WOOOHOOO!!!!

I went back to the beautiful calendar I got from Bleys, and fed it's .lua file into chatgpt3.5 and asked the bot to make the background transparent. It found a setting set to "alpha" that it told me to edit to zero "0". I did so and the background is GONE!!
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Koentje »

Let me guess... local bg_alpha=0.5 ? ;)
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Koentje wrote: Mon Jan 29, 2024 10:09 pm Let me guess... local bg_alpha=0.5 ? ;)
Correct, that line was set to

Code: Select all

local bg_alpha = alpha
I edited to:

Code: Select all

local bg_alpha = 0
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Looking for a calendar display widget, synchable w/google if possible

Post by Logansfury »

Now I'm in a conundrum as I am torn between using my 3 month calendar and using Bleys which is beautiful, has off-colored weekend numbers and nicer formatting, although it is a little bit smaller than each of the three individual calendars in the triple set.
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
Post Reply

Return to “Compiz, Conky, Docks & Widgets”