Off Topic Chit Chat - (Silliness factor 5)

Could you rephrase that? What exactly are you trying to do?

I am newbie some times :

 fastfetch | grep Battery | cut -d':' -f2 | cut -d' ' -f2

and I do sometimes these kinds of stupid things :joy:
like this :

while true 
    var1=$(fastfetch | grep Battery | cut -d':' -f2 | cut -d' ' -f2 | cut -d'%' -f1)
    if [[ $var1 -le 15 ]] 
        notify-send "Battery low "
    sleep 3 

Please big boys, don’t laugh at me for making an inefficient script I am not good in it :face_holding_back_tears:

And I think systemd timer can be a better choice

My battery is dead.
I want a cronjob to notify me when the battery percentage gets to 50 .
Wanted to use crontab for this ,
Something like * * * * SLEEP 30: notify-send $(batt)
But unfortunately this is not working.

1 Like

I was hoping for this to be a last resort. I was also thinking of something similar.
But since I also wanted a multitude of scripts to run, I would have loved if cron handled the timing.

1 Like

Cron does work though, but it just avoids parts of my scripts… and its becoming annoying :sob:

Well, I’m no programmer, but a quick search found me this script to cron every few minutes

battery_level=`acpi -b | grep -P -o '[0-9]+(?=%)'`
if [ $battery_level -le 50 ]
    notify-send "Battery low" "Battery level is ${battery_level}%!"

Maybe? power management - How can I get an alert when my battery is about to die in Linux Mint? - Unix & Linux Stack Exchange

this script ie is easily adaptable to give a warning at 50%

Nice read and script,
Below the script… author suggests “Cron” it

Cron is actually the problem.
—>Its like cron doesn’t really work on wayland , not sure but display server errors arise and such

Mar 30 17:46:01 takashi CROND[243133]: (yada) CMDOUT (Cannot autolaunch D-Bus without X11 $DISPLAY)
Mar 30 17:46:01 takashi CROND[243133]: (yada) CMDEND (sleep 1; notify-send "hello")
Mar 30 17:46:01 takashi CROND[243133]: pam_unix(crond:session): session closed for user yada

Exact error

Okay. Found this:

export DISPLAY=:0.0

if you see

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0


xhost +

Error pops up somewhere else, with the solution to install the pass package.

Authorization required, but no authorization protocol specified

xhost:  unable to open display ":0.0"

I think we are getting closer,
there is also

came across this,

seems we can setup windows on docker leveraging kvm and automating the annoying install process. This could be useful for stuff like updating BIOS I guess where vendors only make windows .exe installer to update bios.


Did we need it :thinking: for dockur/windows?

Maintainer needed :smiley:

I have general problems with VM’s KVM, VirtualBox. BIOS settings are ok. :slight_smile:

1 Like

Sounds cool but I’m divested of Google so no G hardware either.
I use LineageOS myself. Fairly simple to install as well, even for first-timers.

1 Like

I wonder if Bank apps work with graphen os?

Edit. I already read that they have reports on each country and banks. I don’t see mine there. Probably have to pass.

Actually, if google wallet works, it would be fine (GPay or similar).

Otherwise I am going with a Motorola, if I need one.

Yeah, a lot of banking / financial apps check the SecurityNet and other “safety” flags that get tripped when installing custom roms. It’s a bit of a convoluted situation though because some people’s banking apps don’t check that, and some custom roms don’t trip those flags.
When I first installed LineageOS (19) on my phone, it didn’t trip any of those safety flags. However, when I installed LinageOS (19) with microG (a distinct custom rom), it did trip that flag.
Now I just use my bank’s website in a browser on my phone. At least that works.

1 Like

After many a failed attempts.

crontab -e

* * * * * sleep 1; eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME Hyprland)/environ)"; notify-send "Took me longer than expected"


1 Like

I’ve been working with current Nvidia drivers 550 and trying my best to work with Wayland which has been difficult. Issues include terrible lag in certain applications (Obsidian/ Brave for example), complete missing elements in certain applications. Gaming has been affected (heavy ghosting and glitching)

After some research, I’m convinced that Wayland is the best way forward but it would be great to see ways that other Nvidia users are working around these major issues that are basically making the platform unusable.

For gaming I have found this AUR patch to be incredibly effective so far - AUR (en) - xorg-xwayland-explicit-sync-git

There are improvements all the time but does anyone have any other tweaks that have worked. The lag in the applications has been the hardest thing to work around. Any tips appreciated.

1 Like

Patience is the biggest tip I can come up with, since I can’t game any more. Updates are coming out daily that improve performance under Wayland. It’s all incremental.

Just remember that this is Linux, hence we’re all lab rats. :wink:


Specifically, the section under ‘command line flags’ and ‘configuration file’:

1 Like

your wattling for this come may Explicit Sync Wayland Protocol Merged, Wayland Protocols 1.34 released | GamingOnLinux you are basically waiting for the nvidia part

1 Like

My 12 yrs old brother knows French ,

Hmm… Seems like I also need to learn some foreign languages other than just English, It would be amazing to see how much typos I would do, referring to how much typos I already do in English :stuck_out_tongue: :rofl: