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
like this :
#!/bin/bahs
while true
do
var1=$(fastfetch | grep Battery | cut -d':' -f2 | cut -d' ' -f2 | cut -d'%' -f1)
if [[ $var1 -le 15 ]]
then
notify-send "Battery low "
fi
sleep 3
done
Please big boys, donāt laugh at me for making an inefficient script I am not good in it
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.
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.
Cron does work though, but it just avoids parts of my scripts⦠and its becoming annoying
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 ]
then
notify-send "Battery low" "Battery level is ${battery_level}%!"
fi
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
then
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
dbus-launch
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 for dockur/windows?
https://aur.archlinux.org/packages/cpu-checker-bzr
Maintainer needed
I have general problems with VMās KVM, VirtualBox. BIOS settings are ok.
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.
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.
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"
Worked
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.
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.
Specifically, the section under ācommand line flagsā and āconfiguration fileā:
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
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