Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Uncategorized Entries with no category
 |
Posted 04-25-2025 at 06:17 PM by the dsc (linux-related notes)
Updated 04-25-2025 at 06:40 PM by the dsc
Uses imagemagick, ffprobe, and ffpmeg.
Code:
#!/bin/bash
[[ -z "$1" ]] && echo "Usage: $0 input.webp" && exit 1
if ! file "${1}" | grep "Web/P image" ; then
echo "File $1 is not a webp" ; exit 1 ; fi
if (( `identify "${1}" | wc -l` < 2 )) ; then
echo "File $1 is not an animated webp" ; exit 1 ; fi
...
|
Member
|
|
Views 68
Comments 0
|
 |
Posted 03-25-2025 at 04:39 PM by the dsc (linux-related notes)
Updated 03-25-2025 at 04:41 PM by the dsc
Quote:
Originally Posted by the dsc
I got it working!
I've made a new config file for these sensors, more or less as shown in this thread on arch linux' forums, just adapting to a mere dual core, whereas the one in the thread seems to be a bazillion cores or something.
Quote:
Originally Posted by graysky
Here is the solution, 2 steps:
1) ID what each chip is reporting
2) Reassign it to what you want
Step 1
Run sensors with the -u switch to see what options are available:
...
|
Member
|
|
Views 36
Comments 0
|
 |
Posted 10-25-2024 at 09:56 PM by the dsc (linux-related notes)
Updated 10-25-2024 at 09:59 PM by the dsc
Code:
#!/bin/bash
# Create a temporary file
temp_file=$(mktemp /tmp/shellcheck.XXXXXX)
# Run shellcheck with script, directing output to the temporary file
script -q -c "shellcheck ${1}" "$temp_file"
# Display the output using less, preserving colors
less -r "$temp_file"
# Clean up the temporary file
rm "$temp_file"
I had an earlier version of this, an one-liner...
|
Member
|
|
Views 252
Comments 0
|
 |
Posted 10-21-2024 at 10:31 AM by the dsc (linux-related notes)
Updated 10-21-2024 at 10:32 AM by the dsc
I think that I might have wanted to be possible for one thing or another, several times ever since I've started using Openbox (a long time ago, almost right before the final version came out), but I thought such thing would most likely involve some external script to handle most of it, which I don't recall whether I even ever tried to implement for anything. It would have been probably something very specifically developed to a given use-case rather than something more readily adaptable to more...
|
Member
|
|
Views 136
Comments 0
|
 |
Posted 05-20-2024 at 11:47 AM by the dsc (linux-related notes)
Updated 05-20-2024 at 11:48 AM by the dsc
While one can do something even more efficient with pure keybindings, or maybe merely first launching the normal window and then a private one, I thought that it was interesting. AFAIK it can't be done purely on Openbox' menu's functionalities alone.
Code:
#!/bin/bash
xinput query-state 9 2>/dev/null | grep "key\[50\]=down\|key\[62\]=down\|key\[37\]=down\|key\[105\]=down" && incognito="--incognito"
echo ${incognito/--} | aosd_cat
...
|
Member
|
|
Views 637
Comments 0
|
All times are GMT -5. The time now is 07:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|