• 0 Posts
  • 31 Comments
Joined 4 years ago
cake
Cake day: February 15th, 2021

help-circle



  • alias lt='ls -t | less'

    Good idea! I’ll steal that but I would rather be able to give a directory path as parameter (and show in colors, and don’t pause if less than 1 page of content, and support the scrolwheel), also piping ls forces it to be 1 single column so might as well show more details, personally I’m gonna use this instead:

    lt() { ls -t --color=always -Fgoh "$@" | less -RF --mouse; }
    




  • Ferk@lemmy.mltoLinux@lemmy.mlLibreOffice is pretty damn good
    link
    fedilink
    arrow-up
    3
    arrow-down
    3
    ·
    edit-2
    2 months ago

    Define lack of design. You mean theming? because Linux has way more customizable theming options than the proprietary alternatives, to fit all kinds of subjective tastes.

    You mean usability? it’s the one system that you can rice up to do absolutely whatever you want to do to fit your workflow, you can configure any key to automate literally anything a desktop can do.

    The catch is that you actually do have to get your hands dirty if you want to mold the system to your liking… as opposed to being your own tastes the ones molding to adapt to whichever the designer of the OS decided should be the new tacky fashion or workflow.




  • But, whichever command I put in autostart.sh will run as if I run in terminal with the & sign. E.g: dunst & to run in the background.

    Well, only if it’s one single command, if you have multiple commands inside of the script, they will still run sequentially (the next command will only run after the previous one completely closes) unless you add & to them as well.

    The difference is that dwm itself will not have to wait for the autostart.sh to complete before launching itself (thanks to it being run in the background with &)

    However, autostart_blocking.sh (which isn’t run with a &) will stop dwm from fully launching until the script completes… I guess this is useful if you need certain things to be set up before dwm actually starts… but it would potentially add a delay on dwm startup.




  • Ferk@lemmy.mltoLinux@lemmy.mlAuto Typing Script
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    Personaly I use KeepassXC autotype functionality for this kind of thing (since I’m already using it as a password manager anyway)… I have entries that are just notes and then have the autotype command be: {NOTES}{ENTER} so it types the content of the note and presses enter.

    The nice thing is that I can leverage the autotype dialogs from Keepass so I just need to remember 1 shortcut and it will open a dialog showing different Note options based on the title of the window I’m in. It also works across platforms (which is great if at work you still need to use Windows). However, Wayland is still not supported well.

    I haven’t tried to use date/time placeholders, but in theory, they are suported in the keepass documentation (no idea if keepassXC in particular supports them): https://keepass.info/help/base/placeholders.html (check out the {CMD:/CommandLine/Options/} placeholder that lets you run arbitrary commands and optionally have their output replace the placeholder, which is very powerful)

    In the auto-type docs they also have placeholders that even allow you to add delays, switch active windows, and press all kind of key combinations. Again, I’ve not tested if all of that works in KeepassXC but if not you can always use the official keepass app.


  • It was just an example of what I’m doing for my particular situation where I don’t have root access and I want some personal scripts for myself, I’m not saying you should choose the same location. If everyone is already sourcing the same file, I expect there’s already a shared storage you are maintaining that everyone has access to.

    About something breaking, I guess it’s up to you and your team if you prefer functions, but it also means not everyone will need to be annoyed when someone else’s code has a small syntax error. And also I expect the only errors you are able to get feedback about right now would be only structural syntax errors for the function declaration (I expect you don’t have unit tests or anything like that for your bash functions…) so technically a function could still be broken and you wouldn’t know until you use it.

    Scripts also give the advantage of being able to use other languages beyond bash, if perl/python or others are available.

    Anyway, you are free to have your reasons, I was just saying that root access is not necessarily needed.




  • Ferk@lemmy.mltoLinux@lemmy.mlI love the concept of SoulPad
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    But in there the virus and Megaman was part of the same software system/universe. What I’m arguing is that it would have been possible to set up 2 separate systems/universes, one is the one where Megaman is plugged, and the other one is one that has read/write access to all inputs/outputs of the first, without the first being able to detect that in any way.

    So… Megaman would be sent to the first and see no problem (or worse, see enemies that aren’t real to keep him distracted) while the other alternate OS would have no Megaman in it, but still it would be able to analyze all Megaman is doing in the first system/universe (sort of like in Matrix), and possibly even transmit/translate his actions in a modified way so that it serves a different purpose.


  • Ferk@lemmy.mltoLinux@lemmy.mlI love the concept of SoulPad
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    But it’s not something the plugged OS can do anything about, because the malware is not running on it. It’s an attack that uses hardware, you can’t use antivirus against that, you’d need a person to physically manipulate the circuitry in the keyboard/monitor or whatever peripheral that is being manipulated.


  • Ferk@lemmy.mltoLinux@lemmy.mlI love the concept of SoulPad
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    5 months ago

    Wouldn’t it be kind of insecure to be plugging your private data into public places?

    In theory, the publicly available terminals could very well have their own system under the hood, wired into the hardware, just so they can run some keylogging or recording of everything that goes through the peripherals, including the screen, without the plugged OS being able to know, right?

    The bad guys in those shows/games could have hijacked the terminals so they can take remote control of the inputs when an OS is inserted and wreak havoc. Dr. Wily could have messed with some terminals so that when Megaman saves its progress on them parts of his brain are saved with different data, so when it’s restored you’ll get a different/evil Megaman.