Spyke

Posts

linuxmint·Linux Mint!byDadifer

I made a script to turn off backlight when the lid closes for a 2017 MacBook Air running Cinnamon

  1. sudo apt update && sudo apt install acpid xdotool

  2. sudo nano /etc/acpi/lid.sh

    a. Copy and paste the following code into the file:

#!/bin/bash

# Find the active screen backlight directory (usually intel_backlight or gmux_b>
BACKLIGHT_DIR=$(ls -d /sys/class/backlight/* | head -n 1)

if [ -z "$BACKLIGHT_DIR" ]; then
exit 1
fi

# Check if the lid is closed
if grep -q "closed" /proc/acpi/button/lid/*/state; then
# 4 cuts the power to the backlight completely
echo 4 > "$BACKLIGHT_DIR/bl_power"
else
# 0 restores normal power to the backlight
echo 0 > "$BACKLIGHT_DIR/bl_power"
fi

b. (Note: If your Mac names the lid something else, you can check it by running ls /proc/acpi/button/lid/).

  1. sudo chmod +x /etc/acpi/lid.sh

  2. sudo nano /etc/acpi/events/lid-button
    a. Write the following:
    event=button/lid.*
    action=/etc/acpi/lid.sh

  3. sudo systemctl restart acpid

  4. sudo nano /etc/systemd/logind.conf
    a. Delete the # from the line that says HandleLidSwitch=ignore
    b. Make sure the line ends in "ignore".

  5. sudo systemctl restart systemd-logind

Just wanted to document it because I didn't see a good rundown elsewhere.

View original on lemmy.world
4
leopardsatemyface·Leopards Ate My FacebyDadifer

Lesbians like me joined forces with conservatives. Now they're turning on us.

cross-posted from: https://lemmy.ca/post/68111168

When the “woke” mania swept the country in 2020, I took a step back and reevaluated where I stood and why I stood there. To my surprise, I found that I agreed with conservatives and libertarians on a number of issues. I opposed childhood gender transitions, unlawful and divisive DEI mandates, and the excesses of Critical Race Theory. I argued against biological males competing in women’s sports and being housed in women’s prisons. I did so loudly and publicly, losing many friends along the way. My stance wasn’t rooted in hate or fear but in a commitment to reason and fairness. My loyalty was to the truth, not to political tribes. Maintaining my integrity cost me greatly, but I believed it was worth it.

Lesbians like me joined forces with conservatives. Now they're turning on us.https://www.queermajority.com/essays-all/lesbians-like-me-joined-forces-with-conservativesOpen linkView original on lemmy.world
268

DeSantis threatens to suspend elected Orange County officials over ice funding

cross-posted from: https://50501.chat/post/511481

Pls share:

‼️‼️We have to keep showing up with courage and pushing back against state efforts to make us fund ICE.‼️‼️

https://www.wusf.org/politics-issues/2025-07-30/governor-desantis-says-he-will-suspend-orange-county-mayor-commission-if-needed

We stand with Mayor Demings and our commissioners! #bebravewithus #news #florida


Originally Posted By u/OCResistance At 2025-07-31 08:29:12 AM | Source


View original on lemmy.world
8
194
worldnews·World NewsbyDadifer

Trump Live Updates: China Tariffs, Ukraine-Russia War and More

F.B.I. Director Kash Patel said on Friday that agents had arrested a county judge in Milwaukee on charges of obstructing immigration enforcement. A spokesman for the U.S. Marshals confirmed the arrest of a sitting judge, a major escalation in the Trump administration’s battle with local authorities over deportations.

The bureau arrested Judge Hannah Dugan on suspicion that she “intentionally misdirected federal agents away from” an immigrant being pursued by federal authorities, Mr. Patel wroteon social media. He later deleted the post for reasons that were not immediately clear. An F.B.I. spokesman did not immediately respond to a request for comment.

Brady McCarron, a spokesman for the U.S. Marshals, confirmed that the judge had been arrested by F.B.I. agents on Friday morning. The charging document against the judge was not immediately available in federal court records.

The Trump administration has vowed to investigate and prosecute local officials who do not assist federal immigration enforcement efforts, denouncing what they call “sanctuary cities” for not doing more to assist federal apprehensions and deportations of millions of undocumented immigrants.

The Milwaukee case involves a frequent flashpoint in that debate, when immigration agents try to arrest undocumented immigrants who are appearing in state court. Local authorities often chafe at such efforts, arguing they endanger public safety if people dealing with relatively minor legal issues feel it is unsafe to enter courthouses.

In the first Trump administration, a local Massachusetts judge was indicted by the Justice Department on charges of obstructing immigration authorities. The charges were dropped after the judge agreed to refer herself to potential judicial discipline.

Trump Live Updates: China Tariffs, Ukraine-Russia War and Morehttps://www.nytimes.com/live/2025/04/25/us/trump-news?campaign_id=190&instance_id=153308&nl=from-the-times&regi_id=56414084&segment_id=196733&unlocked_article_code=1.CU8.fBZV.PcjgfMlQvnkc&user_id=f2c59c9aad7c3cd31352abaa45ab02b0&referringSource=articleShareOpen linkView original on lemmy.world
1