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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Joel Pomales (joelpomales@mastodon.social)'s status on Wednesday, 05-Mar-2025 09:57:48 JSTJoel PomalesJoel 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 conversationabout 3 months ago from mastodon.socialpermalink
  • 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.