Search found 1101 matches
- Tue May 07, 2024 1:15 am
- Forum: Scripts
- Topic: How to handle carriage return input in sed?
- Replies: 13
- Views: 426
Re: How to handle carriage return input in sed?
The sed "i" command inserts a string into the file and ends it with a newline. So shouldn't inserting a newline give you TWO blank lines? No, it doesn't insert the newline character passed to it with the INSERTTEXT variable. It discards it. Here a short demo that might help to understand ...
- Mon May 06, 2024 2:58 pm
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
X thinks the monitor is still turned on, in my case. Question was if the display visibly turns off or not. Does it? X will tell you that the display is still "connected" and "enabled", and that's not a contradiction. Where did you find what X "thinks"? Don't know if th...
- Mon May 06, 2024 2:22 pm
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
t turns off and disables the internal display on lid close Third attempt: Marv 's Fujitsus (and my Fujitsu, Acer, HP and Lenovo) all turn off the internal display without the need for any software. I read that this is done via magnets in the display frame. Or are you saying that this mechanism does...
- Mon May 06, 2024 1:27 pm
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
@MochiMoppel The current code should address your concerns I tried my best to answer all your questions. In return it would have been nice to have my own questions answered here in the forum. This is what the forum is for. One of my questions was What is the benefit of running something like xrandr...
- Mon May 06, 2024 6:45 am
- Forum: Scripts
- Topic: How to handle carriage return input in sed?
- Replies: 13
- Views: 426
Re: How to handle carriage return input in sed?
geo_c I think I now understand your problem. Your original code is fine, however when the user, after the ' Enter text to insert' prompt, just pushed the Enter key, without entering any other text, the INSERTTEXT variable remains empty, And when this variable remains empty, then sed just sees a <nu...
- Mon May 06, 2024 3:51 am
- Forum: Scripts
- Topic: How to handle carriage return input in sed?
- Replies: 13
- Views: 426
Re: How to handle carriage return input in sed?
...because that's what you instructed sed to do.
Try
Code: Select all
sed -i "${LINENUM}i${INSERTTEXT}" ${TASKS_DIR}"${*}"
- Wed May 01, 2024 12:21 am
- Forum: Fossapup64
- Topic: How to make a sound every time you click something?
- Replies: 8
- Views: 453
Re: How to make a sound every time you click something?
Alright, I asked around and a xbindkeys expert gave me this tip: You have to prevent xbindkeys to grab the key before replaying the mouse click. Something like this should do the trick : "pkill xbindkeys; sleep 0.1; xdotool click 1; play sound.mp3 & xbindkeys" b:1 This is a little bit...
- Tue Apr 30, 2024 1:11 am
- Forum: Users
- Topic: How to convert PNG image to PDF?
- Replies: 11
- Views: 375
Re: How to convert PNG image to PDF?
As for the changes in dc:
I suggest to replace this tool with something more "stable", to make the code backward compatible, e.g. with bc (provided the syntax hasn't changed as well).
Even better - and faster - would be to use POSIX compatible shell arithmetic and substitution.
- Tue Apr 30, 2024 12:17 am
- Forum: Users
- Topic: How to convert PNG image to PDF?
- Replies: 11
- Views: 375
Re: How to convert PNG image to PDF?
This one from my repo probably, (gtk3 supported version .deb package from rcrsn51), perhaps someone can make it "Puppy-compatible" :?: https://github.com/doglinux/book-worm/raw/master/amd64/peasypdf-gtk3_5.0_all.deb Maybe the same person who made it Puppy-incompatible ;) ? Xdialog3 .. no ...
- Mon Apr 29, 2024 11:18 pm
- Forum: Forum Organization & Structure Council
- Topic: Slow access times....
- Replies: 58
- Views: 2497
- Mon Apr 29, 2024 10:42 am
- Forum: Forum Organization & Structure Council
- Topic: Slow access times....
- Replies: 58
- Views: 2497
- Mon Apr 29, 2024 8:02 am
- Forum: Users
- Topic: How to convert PNG image to PDF?
- Replies: 11
- Views: 375
How to convert PNG image to PDF?
My tax office requires all attachments to be in PDF format. I now have various image files in PNG format which I want to convert. The challenge: The resulting PDFs should have exactly the same dimensions as the source files. Normally PDF printing/converting offers to select a page size, e.g. A4 or l...
- Sun Apr 28, 2024 11:43 am
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
For open issues/questions see my previous post.
- Sun Apr 28, 2024 5:05 am
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: How to prevent suspend when laptop lid closed?
The question is not connected or not but enabled or not. I made it the question.because it seems to me that this is the only question that a user and the code can reliably answer. "Enabled" is very ambiguous. One example, tested on a netbook (HP Mini 210) and a notebook (Acer Aspire ONE 7...
- Sat Apr 27, 2024 2:13 pm
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
https://github.com/puppylinux-woof-CE/woof-CE/pull/4278 I hope the logic is correct, this will need some testing :) Maybe something like this, before or after the initial case "$DISABLE_SUSPEND" ... esac command: # Do not suspend if external monitor connected [ $(xrandr -q | grep -c ' con...
- Sat Apr 27, 2024 1:08 am
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
I was not aware that it does not work in F96-CE_4 . I didn't have a computer that has a lid to close at the time the distro was being developed. My current PC doesn't have a lid either and on netbooks I usually have an external monitor attached where I keep the lid open to improve cooling. I never ...
- Fri Apr 26, 2024 2:57 am
- Forum: Beginners Help
- Topic: BookwormPup: how to prevent suspend when laptop lid closed? (Solved)
- Replies: 27
- Views: 578
Re: Prevent suspend when laptop lid closed
I don't use BookwormPup64 ..but it might be similar to other puppies. I use Fossapup64 and on this system - and all the previous puppies I've used - there has been a file called 00000080 in the directory /etc/acpi/LID On previous puppies it has been this file which controls what happens when the LI...
- Fri Apr 19, 2024 2:20 am
- Forum: Beginners Help
- Topic: How to prevent rox from opening when mounting a drive? (solved)
- Replies: 6
- Views: 724
Re: How to prevent rox from opening when mounting a drive?
wizard I went through your linked posts and I noticed, that the most simple solution (click on a drive icon to mount) was dismissed by a user who doesn't use drive icons. However if I understand dellus correctly he uses the drive icons to mount. The only annoyance is the automatic opening of a ROX ...
- Mon Apr 15, 2024 1:07 am
- Forum: Off-Topic Area
- Topic: Microsoft Forever!
- Replies: 6
- Views: 495
Microsoft Forever!
@MochiMoppel Is this the keyboard you are referring to? .... Mind you it did take up a lot of space. No.Your photo shows the "Elite", the successor that had a different key layout, which made it 5 cm less wide than the original model. This is mine: NaturalKeyboard.jpg It also comes with a...
- Sat Apr 13, 2024 2:24 am
- Forum: Off-Topic Area
- Topic: Microsoft Forever!
- Replies: 6
- Views: 495
Microsoft Forever!
Over the years I used various PCs, quite a number of storage devices and all kinds of mice and trackballs. Sooner or later they all ended up as garbage. With one exception: my keyboard. Yesterday I noticed that it is its 30th birthday. A Microsoft Natural Keyboard, manufactured 1994, "MICROSOFT...
- Fri Apr 12, 2024 1:48 am
- Forum: Scripts
- Topic: terminal todo list
- Replies: 33
- Views: 1920
- Wed Apr 10, 2024 1:04 am
- Forum: woof-CE
- Topic: Global icons generator
- Replies: 5
- Views: 602
Re: Global icons generator
i realize i just need globicons in /root/.config/rox.sourceforge.net/ROX-Filer/globicons so my question to you "if you know the anser" is why is there 2 globicons in different places ? Because Puppy devs love to ride dead horses? :lol: Seriously, I don't know. ROX deprecated the /root/Cho...
- Tue Apr 09, 2024 1:28 am
- Forum: Users
- Topic: Persistently Strange Behavior.... (Open location after running Pfind) [SOLVED]
- Replies: 14
- Views: 653
Re: Persistently Strange Behavior.... (Open location after running Pfind) [SOLVED]
But what about the rox-filer itself? It's my favorite file manager and it worked well until this forum thread. Now I've opened it, selected a file, right-clicked another one, and - déjà vu! - got the context menu for the first. You understand the gtk mechanics far better than me. Do you have any th...
- Tue Apr 09, 2024 12:42 am
- Forum: woof-CE
- Topic: Global icons generator
- Replies: 5
- Views: 602
- Mon Apr 08, 2024 1:52 am
- Forum: Beginners Help
- Topic: Keyboard Shortcuts to Open and Close Apps? (Solved)
- Replies: 7
- Views: 477
- Mon Apr 08, 2024 1:24 am
- Forum: woof-CE
- Topic: Global icons generator
- Replies: 5
- Views: 602
Re: Global icons generator
Hello all while i was running LunarPup and HunPup i notice that the file globicons in /root/Choices/ROX-filer/globicons and /root/.config/rox.sourceforce.net/ROX-filer/globicons have some wrong info about the files and paths so i decide to make a globicons generate to fix that issue Firstly: Nice a...
- Sun Apr 07, 2024 7:13 am
- Forum: F96-CE
- Topic: what's a pnm file, how do i read it, pls?
- Replies: 7
- Views: 355
Re: what's a pnm file, how do i read it, pls?
It's just a normal and valid PNM file, readable with mtPaint, Viewnior and - of course - MMview
- Sat Apr 06, 2024 4:32 am
- Forum: Beginners Help
- Topic: Problem with Youtube in Palemoon
- Replies: 11
- Views: 634
- Tue Apr 02, 2024 1:14 am
- Forum: Programming
- Topic: Drawing a line on screen
- Replies: 28
- Views: 2459
Re: Drawing a line on screen
Not a joke anymore: Lines for Puppy 4.x Looking back at the original post, this was the challenge: " What we need for a horizontal line is a window with a colored background, no text, no decoration, 1px high and as wide as the screen. " We now know what does not work: urxvt, yad and step ...
- Sat Mar 30, 2024 2:04 pm
- Forum: BookwormPup
- Topic: BookwormPup64 10.0.6
- Replies: 830
- Views: 177463
Re: BookwormPup64 10.0.6
BKWP64 v10.0.6.jpg Neofetch reads /etc/os-release , symlinked to /usr/lib/os-release , which is outdated in more than one way: NAME=Puppy VERSION=" 10.0.5 " ID=debian VERSION_ID=10.0.5 PRETTY_NAME="BookwormPup64 10.0.5" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:puppy:pup...