Communist

joined 4 years ago
MODERATOR OF
[–] Communist@lemmy.ml 1 points 1 month ago

I intend to switch to thunder when they add hold for peek https://github.com/thunder-app/thunder/issues/1160

then i'll be done with sync myself, I highly recommend thunder if you like sync

[–] Communist@lemmy.ml 47 points 2 months ago (1 children)

I desperately want to know what he thinks his worst idea is

[–] Communist@lemmy.ml 3 points 2 months ago* (last edited 2 months ago)

I'll eat my shoe if they do anything of real note

it'll be better than not doing anything but not much

[–] Communist@lemmy.ml 2 points 2 months ago* (last edited 2 months ago)

Yes, belief without evidence is peak narcissism in my eyes

it is the definition of delusion

[–] Communist@lemmy.ml 1 points 2 months ago (2 children)

Yes, they shouldn't because they have no evidence and are therefore arrogantly asserting something they have no reason to believe

[–] Communist@lemmy.ml 2 points 2 months ago (4 children)

I never denied the possibility, I denied we should believe in those things

it sounds incredibly arrogant to me to assume you know something without evidence

[–] Communist@lemmy.ml 0 points 2 months ago* (last edited 2 months ago) (6 children)

No neither do astrophysicists, they think it might be true with healthy skepticism

or they have proven it true with observation, neither of which applies to religion

are you confident you're not the arrogant one?

[–] Communist@lemmy.ml 1 points 2 months ago* (last edited 2 months ago) (19 children)

be·lief noun

  1. an acceptance that a statement is true or that something exists.

"his belief in the value of hard work"

\2. trust, faith, or confidence in someone or something.

"I've still got belief in myself"

I don't believe in anything without evidence and if I do I seek to correct that

belief without evidence is a failure of the mind

[–] Communist@lemmy.ml 1 points 2 months ago* (last edited 2 months ago) (21 children)

i don't assume the vast majority of astrophysics is true

neither do astrophysicists

[–] Communist@lemmy.ml 2 points 2 months ago (23 children)

Evidence exists for astrophysics

[–] Communist@lemmy.ml 2 points 2 months ago* (last edited 2 months ago) (25 children)

I do not, why would I?

nobody asserts that, they assert that we don't know, which is accurate it is religion that asserts it happened through magic

[–] Communist@lemmy.ml 0 points 2 months ago (1 children)

Because science doesn't assert all hypothesis are true

2
submitted 2 months ago* (last edited 2 months ago) by Communist@lemmy.ml to c/linux@lemmy.ml
 

I use the following oneliner to switch sinks:

wpctl set-default $(pw-cli i $(pactl list short sinks | awk '{print $2}' | sd 'easyeffects_sink\n' '' | sd "$(pactl get-default-sink)\n" '' | rg '.' || echo "$(pactl get-default-sink)" | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true ) | rg -oP 'id: \K\w+') && notify-send --urgency=low --icon=/usr/share/icons/Flat-Remix-Red-Dark/panel/audio-volume-high-symbolic.svg "$(pactl list sinks | rg -A 1 "Name: $(pactl get-default-sink)" | rg Description: | sd ' Description: ' '')" -h string:x-canonical-private-synchronous:sink-state && pw-play --volume=0.2 /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga &!

This is great, however, i'd like it if the sink menu showed the descriptions for selection instead of the actual sink names

I've started a script like the following:

RET=$(pactl list sinks | rg Description: | sd '	Description: ' '') | tofi
case $RET in
	pactl list sinks | rg Description: | sd '	Description: ' '') pactl list short sinks | awk '{print $2}'
esac

but that doesn't seem to work at all, any ideas for how to get this working?

edit: I found a better solution

$sinkswitch = wpctl set-default $(pw-cli i $(pactl list sinks | rg --fixed-strings -B 1 "$(pactl list sinks | rg Description: | sd ' Description: ' '' | sd 'Easy Effects Sink' '' | sd --fixed-strings "$(pactl list sinks | rg -A 1 "Name: $(pactl get-default-sink)" | rg Description: | sd ' Description: ' '')" '' | rg '.' || echo "$(pactl list sinks | rg -A 1 "Name: $(pactl get-default-sink)" | rg Description: | sd ' Description: ' '')" | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true )" | rg Name: | awk '{print $2}' ) | rg -oP 'id: \K\w+') && notify-send --urgency=low --icon=/usr/share/icons/Flat-Remix-Red-Dark/panel/audio-volume-high-symbolic.svg "$(pactl list sinks | rg -A 1 "Name: $(pactl get-default-sink)" | rg Description: | sd ' Description: ' '')" -h string:x-canonical-private-synchronous:sink-state && pw-play --volume=0.2 /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga &!

2
submitted 3 months ago* (last edited 3 months ago) by Communist@lemmy.ml to c/fuck_ai@lemmy.world
 

I have no idea why, I've made a single comment here one time and never asked for this, but I promise to be a benevolent dictator

 

cross-posted from: https://lemmy.ml/post/13397153

I'm just trying to control my smartlights with a script, it seems to be having a lot of problems, I really don't know what I'm doing, i'd appreciate any help I can get

Once I have a script that can individually turn lights on/off i can edit the rest myself, I just can't get the base functionality working.

1
submitted 5 months ago* (last edited 5 months ago) by Communist@lemmy.ml to c/python@lemmy.ml
 

I'm just trying to control my smartlights with a script, it seems to be having a lot of problems, I really don't know what I'm doing, i'd appreciate any help I can get

Once I have a script that can individually turn lights on/off i can edit the rest myself, I just can't get the base functionality working.

 

I'm trying to improve the clipboard sync situation, i've realized that if I can make it so that a bindsym only applies when an xwayland window is in focus, I can basically do

bindsym --release Control+c exec "xclip -o | wl-copy"

And it'll automatically sync the clipboard... however, I can't find a way to make the bindsym only run on xwayland windows, as, if this runs on a wayland window, it'll just overwrite the wayland clipboard with the last xwayland clipboard.

I've discovered you can match all xwayland windows with "swaymsg [shell='xwayland']" but I can't figure out how to make a bindsym only work if that is in focus

edit: I figured out the following:

bindsym --release Control+c exec swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .shell' | grep -Eq 'xwayland' && xclip -o | wl-copy

^^ that SHOULD WORK in theory, but it doesn't, because xclip outputs what it remembers as soon as the command starts, and as a result, the string gets messed up... I cannot figure out for the life of me why running "xclip -o | wl-copy" fixes it but not that. please help.

bindsym --release Control+c exec swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .shell' | grep -Eq 'xwayland' && [xclip -o | wl-copy]

^^does not fix it, unfortunately

here's an issue tracker: https://github.com/swaywm/sway/issues/7958

 

What's stopping us from using the api to post all of reddit here in a massive one-time merger?

Obviously the Lemmy devs would have to do it, but would there be legal issues? I think it would solve most of the problems with Lemmy, really.

view more: next ›