The vermaden scripts.
vermaden / scripts Goto Github PK
View Code? Open in Web Editor NEWVarious scripts I wrote when using FreeBSD/Linux/UNIX systems for 15+ years.
Home Page: https://vermaden.wordpress.com
Various scripts I wrote when using FreeBSD/Linux/UNIX systems for 15+ years.
Home Page: https://vermaden.wordpress.com
The vermaden scripts.
Hi!
And why in the crown to run this script (desktop-kill-shit.sh) every second?
In https://vermaden.wordpress.com/2018/07/01/freebsd-desktop-part-12-configuration-openbox/:
* * * * ~/scripts/desktop-kill-shit.sh 1> /dev/null 2> /dev/null
Hello there,
The FreeBSD devs have decided, in their infinite wisdom, that NVMe devices should now be considered NDA devices by default:
https://man.freebsd.org/cgi/man.cgi?nda
This is instead of the previous standard of nvme
/ nvd
:
https://man.freebsd.org/cgi/man.cgi?nvme
As the manpages
reflect, one can mess with sysctl
knobs to force nda
devices to report as nvme
/ nvd
instead, but this is non-standard now.
I am not sure if/when smartmontools
devs will realize this change.
Currently, I have your sensors.sh
script hacked up, in a dirty way, to report temps from nvmecontrol
-- which is not ideal. The fact that a piece of software, designed specifically for nvme
devices, is now co-opted to do so for nda
devices is one seriously proper operation to confuse & mislead everybody. I haven't a clue why it was decided this is the correct course of action... there must be some seriously eccentric folks writing FreeBSD base code.
I am not experienced enough with shell scripting (zsh in particular), or the internal workings of smartmontools
, or rather 'smartctl', to figure out how to make it report info of nda
devices. But if you can figure it out, it would future-proof your excellent script.
Line 73 in be75c60
__conky_battery_separate.sh
doesn't exist in this repo, only __conky_battery.sh
.
Since the scripts are used in this great guide on FreeBSD desktop, I am wondering if it would be possible to share the rest of files from the guide on Github?
Hello,
I have been using some of your script and learning from them quite a bit.
I searched for a script to format a usb pen drive, e.g. fat32, but could not find any.
Would you consider adding such script?
Many thanks,
When I run lsblk with a drive (I tested with an external drive connected via usb) formatted on Windows as exfat, lsblk.sh will list the filesystem of the relevant formatted partition as ntfs instead of exfat. On Linux, lsblk -fs would list the relevant formatted partition as exfat.
When using -A or -S minimize does not work when multiple windows are associated to the same process.
Example:
> xdotool search --pid 69309
104857602
104857610
104857616
104857622
The following patch solves the problem:
--- desktop-pause.sh.old 2018-09-21 19:16:07.831708000 +0200
+++ desktop-pause.sh 2018-09-21 19:18:18.392168000 +0200
@@ -134,7 +134,9 @@
if [ "${MIN}" = "1" -a "${SIGNAL}" = "STOP" ]
then
- xdotool windowminimize $( xdotool search --pid ${PID} )
+ for i in `xdotool search --pid ${PID}`; do
+ xdotool windowminimize $i
+ done
echo "INFO: xdotool windowminimize \$( xdotool search --pid ${PID} )"
fi
kill -${SIGNAL} ${PID}
@@ -144,7 +146,9 @@
do
if [ "${MIN}" = "1" -a "${SIGNAL}" = "STOP" ]
then
- xdotool windowminimize $( xdotool search --pid ${PID} )
+ for i in `xdotool search --pid ${PID}`; do
+ xdotool windowminimize $i
+ done
echo "INFO: xdotool windowminimize \$( xdotool search --pid ${PID} )"
fi
kill -${SIGNAL} ${I}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.