Skip Navigation

Posts
34
Comments
401
Joined
10 mo. ago

Install Guix

  • What camera/doorbell did you end up ordering?

  • Yeah, I used to give myself buzz cuts. 1 length all around. Not too difficult.

  • Wat. Naow...

    looks left - Someone installing Guix

    looks right - Someone browsing their Immich library on Librewolf

    looks behind - Someone commenting about how we shouldn't support facists

    looks across the street - Google, Apple, Facebook, Walmart, MAGA, OBEY, SLEEP, MARRY AND REPRODUCE

    Well... fuck.

  • I'm still new to HA, but it seems like since Config is an event I can't check if the previous state was from "unknown". That only works for things that have values? I think?

  • I've considered a safe, but I've heard the paper contents may mold if left in there too long. Currently too lazy to manage that.

  • Ask Lemmy.

  • Uh, don't think so. Here's what the whole automation looks like.

     yaml
        
    alias: Inovelli switch 
    description: ""
    triggers:
      - trigger: state
        entity_id:
          - event.inovelli_on_off_switch_config
    conditions:
      - condition: state
        entity_id: switch.inovelli_on_off_switch_load_control
        state:
          - "on"
          - "off"
        for:
          hours: 0
          minutes: 3
          seconds: 0
    actions:
      - choose:
          - conditions:
              - condition: state
                entity_id: event.inovelli_on_off_switch_config
                attribute: event_type
                state: multi_press_1
            sequence:
              - action: script.inovelli_switch_turn_on
                metadata: {}
                data: {}
    mode: single
    
      

    • Wait for a Config button press (different than on/off rocker button)
    • Check if main rocker button has been in "on" or "off" state for at least 3 minutes
    • If yes, then run script

    The main on/off switch is unaffected by this automation. (Double checked to make sure I could turn on and off the fan quickly.)

  • Aaaah, ok! Here's what I added based on your uptime idea.

     yaml
        
    conditions:
      - condition: state
        entity_id: switch.inovelli_on_off_switch_load_control
        state:
          - "on"
          - "off"
        for:
          hours: 0
          minutes: 3
          seconds: 0
    
      

    I'm using if the switch has been in the "on" or "off" state for 3 minutes or more as my gate. (Since during the reboot the state is either "unavailable" or "unknown".)

    Seems to be working so far! Thanks!

  • Big problem: I've spent too much time trying to install Seafile in my environment.

    Prevent it from getting worse: Maybe just use Filebrowser?

  • Oooooh, ok. TIL.

    At least Arch and Debian seem to use top from procps-ng. Good to know.

  • ^^^^ get to posting, OP! These comms aren't gonna fill themselves!

  • I missed this part during my first read:

    This screen allows you to customise which fields are displayed in the currently selected window. Use cursor keys (or Alt + j and k) to move up and down this list, d to toggle whether a field is displayed and s to choose the field by which the window is sorted.

    and when I tried it, it seemed like my commands weren't doing anything... so in case anyone else finds this helpful...

    How to sort columns in top.

    • Launch top
    • Press f (not SHIFT+F)
    • Use arrow keys or alt+j / alt+k to select a column
    • Press s to sort by the column you've currently selected
      • note: you won't get any obvious feedback, this is normal... I guess
      • look at the top line: whose current sort field is $COLUMN_NAME
      • this line will change when you press s
    • Press q to exit the Fields Management screen
    • Selected column should now be sorted from largest to smallest

    At this point, top may not look like it sorted the selected column. It may be helpful to tell top to highlight the currently sorted column. Press x to do this.

    Now it should be easier to tell which column was sorted.

  • Wait... what?

     
        
    $ top --version
    top from procps-ng 4.0.5-dirty
    
      

    The following utilities are provided by procps:

    • free - Report the amounts of free and used memory in the system
    • hugetop - Report hugepage usage of processes and the system as a whole
    • kill - Send a signal to a process based on PID
    • pgrep - List processes based on name or other attributes
    • pkill - Send a signal to a process based on name or other attributes
    • pmap - Report the memory map of a process
    • ps - Report process information including PID and resource usage
    • pwdx - Report the current working directory of a process
    • skill - Obsolete version of pgrep/pkill
    • slabtop - Display kernel slab cache information in real time
    • snice - Renice a process
    • sysctl - Read or write kernel parameters at run-time
    • tload - Graphical representation of system load average
    • top - Dynamic real-time view of running processes
    • uptime - Display how long the system has been running
    • vmstat - Report virtual memory statistics
    • w - Report logged in users and what they are doing
    • watch - Execute a program periodically, showing output fullscreen

    https://gitlab.com/procps-ng/procps

    Oh, so these guys manage top and a few other common utilities.

  • I would often just grab htop because I had no idea how to read the CPU usage out of top.

    lol, same! 1t gets me 90% of the functionality I use in htop.

  • Wow. wat. This is top??

    The only reason I use htop is because I never bothered to learn top. I'm totally down to avoid downloading and installing another utility though. The time to learn top is TODAY!

  • According to People, Mark Zuckerberg did not clap along with the rest of the audience at Eilish’s comment.

  • OK, now I'm updating.

  • linuxmemes @lemmy.world

    Some TODO app called Emacs?

  • linuxmemes @lemmy.world

    Need another cup of coffee

  • Linux @lemmy.ml

    Installing Guix as a Complete GNU/Linux System - System Crafters

    systemcrafters.net /craft-your-system-with-guix/full-system-install/
  • Selfhosted @lemmy.world

    Google Drive alternative?

  • Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com

    Guides for downloading streams?

  • Selfhosted @lemmy.world

    PewDiePie: I'm DONE with Google

  • Linux @lemmy.ml

    App recommendations for CalDAV VJOURNAL?

  • Asklemmy @lemmy.ml

    Home alarm systems, yah or nah?

  • Linux @lemmy.ml

    How to install Tailscale on VanillaOS?

  • Linux @lemmy.ml

    Is there a way to force update VanillaOS 2.0 Orchid?

  • Ask Lemmy @lemmy.world

    Folks from metric countries, how does Dominic Toretto live his life? What distance at a time?

  • Funny @sh.itjust.works

    Don't do it

  • Mastodon @lemmy.ml

    Can you send a DM in Mastodon?

  • Ask Lemmy @lemmy.world

    Thoughts on WebDAV, CardDAV, and CalDAV hosting?