GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Joel Pomales (joelpomales@mastodon.social)'s status on Wednesday, 05-Mar-2025 09:57:48 JST Joel Pomales Joel Pomales

    #Linux hive mind. I asked this of off one of the LLMs. I don't code. All I want is to run a script that closes everything in the desktop

    #!/bin/bash

    # Check if wmctrl is installed, if not, install it
    if ! command -v wmctrl &> /dev/null
    then
    echo "wmctrl could not be found, installing..."
    sudo apt-get install wmctrl -y
    fi

    # Get a list of all window IDs and close each one
    for win_id in $(wmctrl -l | awk '{print $1}')
    do
    wmctrl -ic "$win_id"
    done

    echo "All windows have been closed."

    In conversation about 3 months ago from mastodon.social permalink
    • Embed this notice
      eshep (eshep@social.trom.tf)'s status on Wednesday, 05-Mar-2025 09:57:48 JST eshep eshep
      in reply to

      @joelpomales WOW ...so many things (potentially) wrong with that 😆

      What specifically did you ask it to receive such a definitive result? Did it know you'd be using apt to install things? Did it know what window manager you use, or that it was one running under X, not wayland? If it knew the window manager you were asking about, why not suggest a native solution instead of installing another program?

      This is the problem I have with current AI chats for most inquiries. For all the resources they have at their little robot fingertips, they seem to offer answers far less knowledgeable than what you can find yourself by simply searching through most any technical forum.

      In conversation about 3 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.