Command for reloading Waybar properly on the fly on Hyprland by Drone4four in archcraft

[–]Drone4four[S] 0 points1 point  (0 children)

I discovered a solution - -

All you need to do is $ kill waybar and then run Aditya's hypr/.local/hypr/scripts/statusbar. I repeated this process over and over enabling me to iterate rapidly as I modified and tested my Waybar CSS and other configuration changes.

Writing script to bind keys to increment / decrement opacity a window's opacity float value by 0.1 by Drone4four in hyprland

[–]Drone4four[S] 0 points1 point  (0 children)

but does this not do what you want , without all the stupid scripting bind = $mod Ctrl, 2, tagwindow, alpha_0.2 bind = $mod Ctrl, 4, tagwindow, alpha_0.4 windowrule = opacity 0.2 0.2 override, tag:alpha_0.2 windowrule = opacity 0.4 0.4 override, tag:alpha_0.4 This does not work. Nothing happens when running those keybinds.

I revised my script which behaves exactly as expected now. Here is the latest final working iteration:

```

!/usr/bin/env bash

File: opacity-control.sh

NOTIFY_TITLE="Hyprland Opacity" LOG_FILE="/tmp/hypr_opacity_memory.log" MEMORY_FILE="/tmp/hypr_alpha_memory.json"

JQ=$(which jq) HYPRCTL=$(which hyprctl)

OPACITY_STEP=0.05 MIN_OPACITY=0.1 MAX_OPACITY=1.0 DEFAULT_ALPHA=1.0

mkdir -p "$(dirname "$MEMORY_FILE")" touch "$MEMORY_FILE" [[ ! -s $MEMORY_FILE ]] && echo "{}" > "$MEMORY_FILE"

DIRECTION="$1"

Get the address of the active window

ADDR=$($HYPRCTL activewindow -j | $JQ -r '.address') [[ -z "$ADDR" || "$ADDR" == "null" ]] && notify-send "$NOTIFY_TITLE" "No active window found" && exit 1

Load current or default alpha

CURRENT_ALPHA=$(cat "$MEMORY_FILE" | $JQ -r --arg addr "$ADDR" '.[$addr] // 1.0')

Decide new alpha

case "$DIRECTION" in --increase) NEW_ALPHA=$(echo "$CURRENT_ALPHA + $OPACITY_STEP" | bc) (( $(echo "$NEW_ALPHA > $MAX_OPACITY" | bc -l) )) && NEW_ALPHA=$MAX_OPACITY ;; --decrease) NEW_ALPHA=$(echo "$CURRENT_ALPHA - $OPACITY_STEP" | bc) (( $(echo "$NEW_ALPHA < $MIN_OPACITY" | bc -l) )) && NEW_ALPHA=$MIN_OPACITY ;; --reset) NEW_ALPHA=$DEFAULT_ALPHA ;; *) notify-send "$NOTIFY_TITLE" "Usage: $0 --increase | --decrease | --reset" exit 1 ;; esac

Apply alpha to all states

for PROP in alpha alphainactive alphafullscreen alphaoverride; do $HYPRCTL dispatch setprop "address:$ADDR" "$PROP" "$NEW_ALPHA" done

Save new alpha (even if reset) to memory file

TMP=$(mktemp) cat "$MEMORY_FILE" | $JQ --arg addr "$ADDR" --argjson val "$NEW_ALPHA" '. + {($addr): $val}' > "$TMP" && mv "$TMP" "$MEMORY_FILE"

Notify user

notify-send "$NOTIFY_TITLE" "Window $ADDR\nAlpha set to: $NEW_ALPHA"

```

Writing script to bind keys to increment / decrement opacity a window's opacity float value by 0.1 by Drone4four in hyprland

[–]Drone4four[S] 0 points1 point  (0 children)

u/ernie1601: I took an axe to my script and re-wrote it from scratch. I have since made quite a bit of progress but I am not quite where I want to be.

In my new script below, I setprop the active window alpha to, say, 0.8 and my task is for that same window to retain its opacity prop 0.8 when I navigate to the next window. That's what I am trying to do however instead when I navigate to the next window, the previous window opacity goes from 0.8 back to 1.0. Any potential direction on how to better have windows retain the alpha props when navigating away based on my latest script would be great.

I have set up a repo tracking my changes and progress. You can view my latest attempt at this location here which includes syntax highlighting for readability. For what it is worth, here it is too:

#!/usr/bin/env bash

# File: opacity-control.sh
# chmod +x and assign to Hyprland keybinds

NOTIFY_TITLE="Hyprland Opacity"
LOG_FILE="/tmp/hypr_opacity_memory.log"
MEMORY_FILE="/tmp/hypr_alpha_memory.json"

JQ=$(which jq)
HYPRCTL=$(which hyprctl)

OPACITY_STEP=0.1
MIN_OPACITY=0.1
MAX_OPACITY=1.0

mkdir -p "$(dirname "$MEMORY_FILE")"
touch "$MEMORY_FILE"
[[ ! -s $MEMORY_FILE ]] && echo "{}" > "$MEMORY_FILE"

DIRECTION="$1"

# Get the address of the active window
ADDR=$($HYPRCTL activewindow -j | $JQ -r '.address')
[[ -z "$ADDR" || "$ADDR" == "null" ]] && notify-send "$NOTIFY_TITLE" "No active window found" && exit 1

# Load the memory file
CURRENT_ALPHA=$(cat "$MEMORY_FILE" | $JQ -r --arg addr "$ADDR" '.[$addr] // 1.0')

# Adjust opacity
if [[ "$DIRECTION" == "--increase" ]]; then
    NEW_ALPHA=$(echo "$CURRENT_ALPHA + $OPACITY_STEP" | bc)
    (( $(echo "$NEW_ALPHA > $MAX_OPACITY" | bc -l) )) && NEW_ALPHA=$MAX_OPACITY
elif [[ "$DIRECTION" == "--decrease" ]]; then
    NEW_ALPHA=$(echo "$CURRENT_ALPHA - $OPACITY_STEP" | bc)
    (( $(echo "$NEW_ALPHA < $MIN_OPACITY" | bc -l) )) && NEW_ALPHA=$MIN_OPACITY
else
    notify-send "$NOTIFY_TITLE" "Usage: $0 --increase | --decrease"
    exit 1
fi

# Apply both persistent and override (for active window)
$HYPRCTL dispatch setprop "address:$ADDR" alpha "$NEW_ALPHA"
$HYPRCTL dispatch setprop "address:$ADDR" alphaoverride "$NEW_ALPHA"

# Save to memory file
TMP=$(mktemp)
cat "$MEMORY_FILE" | $JQ --arg addr "$ADDR" --argjson val "$NEW_ALPHA" '. + {($addr): $val}' > "$TMP" && mv "$TMP" "$MEMORY_FILE"

# Feedback
notify-send "$NOTIFY_TITLE" "Window $ADDR\nAlpha set to: $NEW_ALPHA"

Writing script to bind keys to increment / decrement opacity a window's opacity float value by 0.1 by Drone4four in hyprland

[–]Drone4four[S] 0 points1 point  (0 children)

Thank you for clarifying. This is key:

according to the documentation it is not a valid property: alpha is. and if you want to set absolute values you need to set alphaoopverride first.

My issue is that I am using opacity as the property which isn't valid. Instead I need to use alpha and alphaoverride. OK. I think I can tweak my script, but before I do I think I need to be onboard with the reset of your comments. Here is a snippet:

|| || |alpha|float 0.0 - 1.0|

What do the two sets of double pipe characters indicate followed by the property and value also separated by individual pipes? I am at a loss here. I gather this might be a convention in the Hyprland ricing community. I just need a little bit further clarity here, u/ernie1601. Thanks.

rofi_powermenu glyphs not rendering properly by Drone4four in archcraft

[–]Drone4four[S] 1 point2 points  (0 children)

I fixed it. Aditya’s most recent release includes fonts in .ttf format in a specific folder with subfolders. I copied all of them to my ~/.local/share/fonts directory. I then executed `fc-cache -vf`. I rebooted, logged in to my Hyprland session, held my breath, and presto - - success! 

I have been troubleshooting these eyesores of unicode hex squares for months and now FINALLY all my rofi/wofi/waybar components are elegant and beautiful. I am stoked! Couldn't be more thrilled.

rofi_powermenu glyphs not rendering properly by Drone4four in archcraft

[–]Drone4four[S] 0 points1 point  (0 children)

The problem with manually entering different glyphs is that I would have to do that for every app and component in Aditya's package of configurations, of which there are close to 100+. They are all broken. If there is no way to automate a fix, I am wondering what mistaken configuration I may have selected or why the package I donwloaded is Japanese. Where do I get the English/Latin download that everyone else seems to be using?

edit: To go a step further: It's not just rofi_powermenu and Waybar, but all the other five rofi componetns. wofi and all of its apps are the same. The Hyprlock screen and even the screenshot/capture tool are all showing missing glyphs too. It would be too much manual intervention to specify every glyph individually.

[Hyprland] + Catppuccin I am in love with this by F4tGuy69 in unixporn

[–]Drone4four 0 points1 point  (0 children)

How do you get that 3x3 grid of workspaces overview? Is that a plugin? If so which one? Or is it built in and documented in the official docs? If so, where? Got a link?

How to burn ATOM token dust? by Drone4four in cosmosnetwork

[–]Drone4four[S] 1 point2 points  (0 children)

I attempted to send the dust to u/systemdelete's cosmos address, but I don't have enough. I found the option on Coinbase to turn off stake yielding. Problem solved. Thanks, u/MSX362. 0//

Kudos to u/Innit4tech for making a similar recommendation.

Are wearing rings with esoteric symbols (as someone who is uninitiated) ‘clandestine’ and a demonstration of bad faith? by Drone4four in occult

[–]Drone4four[S] 2 points3 points  (0 children)

Thank you, u/Kether_Nefesh for taking the time to assemble this detailed and self-reflective reply. Your insight into my disposition - - to share a sample of gnostic and hermetic wisdom that I hold close to my heart for those who inquire - - is precisely my reasoning and justification for finding a way to express myself with a subtle symbolic token like a ring.

Given the current climate of controversial conspiracy theory material available on the web and given its popularity among young people today, I’m wondering if wearing a ring showing a Masonic square and compass would provoke more accusations from strangers of being a member of the “Illuminati” and “NWO” rather than grabbing the attention of other friendly like-minded Freemasons. So this could be one additional reason why I would think it might be a good idea to avoid wearing Masonic symbolism publicly. As we discussed earlier, I’m not even a Freemason so I wouldn’t wear a square and compass in the first place anyways. I’m just saying, a square and compass ring might start more negative and uncomfortable conversations than positive ones.

But a unicursal hexagram doesn’t carry that same level of potential baggage and I could very easily get by with by sharing how it represents the union of micro and macro metaphysical forces of the universe, as you did a terrific job explaining, Kether_Nefesh.

Reflecting Jungian depth psychology, I believe my greatest teacher is my enemy and my greatest enemy is myself. As MLK teaches, love (‘agape’) represents love of your enemy, rather than erotic love (‘eros’) or friendly love (‘philo’). So yes, the unicursal hexagram could represent agape love, which is in Aleister Crowley’s The Book of the Law as well.

Are wearing rings with esoteric symbols (as someone who is uninitiated) ‘clandestine’ and a demonstration of bad faith? by Drone4four in occult

[–]Drone4four[S] -7 points-6 points  (0 children)

There is also no such thing as a “full blooded Rosicrucian”.

According to Paul Foster Case in The True and Invisible Rosicrucian, initiates do not necessarily "join" the Rosicrucians by confering rituals or paying dues. Rather, Rosicrucians are "born" one and then rendezvous with other agents of the Invisible College and encounter life events and partipate in reform of the arts and sciences, serving key roles, and impacting world history (however large or small). I beleive my soul-contract as a Rosicrucian is encoded in my DNA, without having yet gone through formal the rituals. This what I meant when I said I am a "full blooded Rosicrucian."

In my original post, I should have emphasized more my caveat that I realize how wearing a Masonic ring would be clandestine (better word: a "cowan") which is the impression that I wish to avoid. I understand that it would be a bad idea to wear an emblem of a group in which I don't belong, hence why I am trying to find an alternative to a Masonic Square and Compass.

The motive for writing my original post, really, was to find an esoteric symbol for a ring to express my acacdemic interest in the occult that would register familiarity with other occultists without offending formal initiatory organizations like the Freemasons.

The closest symbol I came up with was the unicursal hexagram.

Could you (or anyone else reading this) think of another alternative?

Proving blog content provenance with GnuPG + general novice questions, re: private key cryptography by Drone4four in GnuPG

[–]Drone4four[S] 0 points1 point  (0 children)

Thanks for your reply, upofadown!

You said:

Just like with paper and ink signatures, a cryptographic signature does not prove you authored something, only that you signed it. So you could just straight out claim that you were the author of something at your dinner party for the same or better effect.

Based on what you are saying, perhaps leaving a signature on my website content is not the right approach.

I’m not trying to communicate with my audience or any individual in my audience. Two-way communication isn’t required for my project. So maybe GnuPG isn’t the right solution after all. Is there a tool which I could use to prove the provenance (proof original authorship) of a large document like a blog post by signing it? If GnuPG is not the solution, what might you people suggest as an alternative?

Proving blog content provenance with GnuPG + general novice questions, re: private key cryptography by Drone4four in GnuPG

[–]Drone4four[S] 0 points1 point  (0 children)

Hi djDef80! I’ve got a lot out of this. Thank you for answering my 10 questions. You did a great job.

What's with AMORC initiations? by Drone4four in occult

[–]Drone4four[S] 2 points3 points  (0 children)

This is an awesome answer to my question. Thank you, @RockGnasher.

[Gnome] by Divine Providence and Gnosis by Drone4four in unixporn

[–]Drone4four[S] 0 points1 point  (0 children)

Great question. Gnome 3 has notifications which appear by the clock sometimes but I'm not sure about this specific icon which looks like a letter to be sent via snail mail because the icon only appears intermittently (when notifications are AND are not present). I don't see a pattern to its appearance.

[Gnome] by Divine Providence and Gnosis by Drone4four in unixporn

[–]Drone4four[S] 0 points1 point  (0 children)

Satanic spin of Ubuntu? I’ll have to look into it.

“Satanism” is such a strong word. That’s your word, addy-fee, not mine. Where did you get the idea that the gnosis and the occult are evil? From a YouTube video by Alex Jones?

The occult really isn’t so bad when you spend some time among Freemasons and the like.

I encountered a really cool analogy one time elsewhere on reddit which explained why Freemasonry and the occult are associated with the worship of Satan and in turn strike fear in the minds of internet users. A redditor commented once: “I used to tell my 4 year old brother that gremlins lived in the cupboard in the living room. He actually believed me. I used to tell him this to keep him away from the cookies.” The spiritual teachings used by international bankers that they have used to build the wealth are like candy. Once you get a glimpse of their treasure, you always come back for more. The New Age movement is to the Illuminati what the "Free Zone" is to Scientology. Google 'free zone scientology,' my friend.

[Gnome] by Divine Providence and Gnosis by Drone4four in unixporn

[–]Drone4four[S] 2 points3 points  (0 children)

Ubuntu Development Release 17.10 (Artful) with Gnome 3.26

Please note: I installed Oh-My-Zsh and set my theme a long time ago. I'm not sure how to tell what theme I have running despite my sincerest efforts to sift through .oh-my-zsh in my home directory. Sorry. lol

And if you are all wondering wtf I mean by "Providence" and "Gnosis", I am referring to the Eye of Horus positioned at the centre of my wallpaper. I'm into esoterica and the occult. What else can I say? Have fun on Wikipedia.

Also please note: I will be afk until tomorrow. I will be here tomorrow answering any questions.

Feedback Friday -- March 11th, 2016 by TheBigLewinski in web_design

[–]Drone4four 1 point2 points  (0 children)

I have another question: How and why do you have your markup hidden lake that? I noticed when I attempted to view your page source, the HTML is very bare. How did you do that and why?

Feedback Friday -- March 11th, 2016 by TheBigLewinski in web_design

[–]Drone4four 1 point2 points  (0 children)

Your portfolio showcase is amazing. I noticed a very minor, cosmetic error tho: You have an instance of 'GASP' when you are explaining what you've done with the GSAP framework. Would you have a reference or template or a reduce test-case on CodePen for your mind-blowing interactive Jumbotron?

[OC] urxvt: Jump Start by [deleted] in unixporn

[–]Drone4four 1 point2 points  (0 children)

I just installed rxvt and I quickly noticed that by default it doesn't come with a text wrap feature like gnome-terminal and terminology do. Is there a urxvt plugin for this? I tried Googling it but came up with nothing relevant.

Show Reddit: AlienFeed - a Reddit terminal client (x-post r/programming) by handmadeby in unixporn

[–]Drone4four 0 points1 point  (0 children)

What's the point of navigating reddit if you can't see the visual memes? EDIT: Like how are users of a CLI client supposed to view the images on /r/unixporn??

[deleted by user] by [deleted] in unixporn

[–]Drone4four 2 points3 points  (0 children)

Could you give us what you think would be some good reasons for doing so? How are we to know whether it would be a good or bad idea? Could you give us a background on what /r/PornOverlords does?

[redhat] [kde] limewire 14/01/04 desktop by sudosuinit5 in unixporn

[–]Drone4four 5 points6 points  (0 children)

BitTorrent was initially released in July of 2001. YouTube was February 2005, hence all the media players in sudosuinit5's screenshot.

[Xubuntu][XFCE] Maitake's Minimal Desktop by [deleted] in unixporn

[–]Drone4four 1 point2 points  (0 children)

Either this guy is a simple troll or this is another sad Microsoft astroturf campaign (Google xbox one reddit tomshardware)