Skip Navigation
Security
  • Wait, are you setting up PPAs? If you're using a user-friendly distro, either flathub should be enabled by default or the AUR is easily accessible with pamac or the chaotic-AUR. If software availability is a problem, I don't know what to tell you; I think you started with a more difficult distribution than you intended to. PPAs suck.

  • Pls pls pls....
  • The classical music world has been through this before, with Richard Wagner. Orchestras in Israel wouldn't play his music for decades, but eventually, even they relented. It's good music. Well, I mean, between the boring halves of hours, anyway, it's good music.

  • Looking for a minimal distro for a virtual machine
  • How important is the Windows-style desktop? If the VM is designed for one thing and one thing only, I'd pick any minimal WM that can alt-tab, say JWM, and then just add Firefox and Thunderbird to the autostart file.

  • xkcd #2914: Eclipse Coolnesss
  • Having seen a total eclipse before, I know solar eclipses are in danger of being overhyped. IMO, they probably aren't worth driving across the country. But if all you need is a 3 to 5 hour drive to get to the path of totality, I think you should absolutely do it. They're legit. Not, like, life changing, but legit. Find a place with a few trees so you can watch the crescent shadows and maybe hear some wildlife freak out.

  • Americans, mostly women, are becoming more liberal: Gallup
  • If you find a Lemmy community where you can be yourself without getting encircled by screeching harpies, let me know. I haven't been at home on social media since before Ruqqus got overrun by neo-Nazis.

  • Americans, mostly women, are becoming more liberal: Gallup
  • Most of Lemmy only knows what conservatism is based on the strawman they get from other lefties, and even if they did know what conservatives actually believe, the vast majority of Lemmy users are incapable of evaluating someone else's viewpoint on its own terms; they will declare it internally inconsistent when it is merely inconsistent with their own values.

    You're asking a question with the presumption of empathy. That makes you a good person. It also makes you an outcast here.

  • Why can't I get eww to load this literal variable? [Solved]

    Edit: TL;DR, a literal can't contain multiple children. The opening bracket that starts the literal must be closed at the end of the literal, with no other yuck appended.

    I've been playing with Elkowar's Wacky Widgets in an attempt to replace tint2 on openbox. Specifically, I've been working on a taskbar widget. So far, I've managed to make a few bash scripts to generate all the necessary yuck (and png files) to create a rudimentary icon-only taskbar that updates itself every time _NET_ACTIVE_WINDOW changes. I've confirmed that the yuck works when I manually copy/paste the output of the bash script into eww.yuck.

    Anyway, I've assigned this script to a deflisten variable called "tasks". When I run "eww state" in a terminal, I confirm that "tasks" is indeed defined (and regularly updated) with yuck that looks like this.

    spoiler

    (box :tooltip Xfce4-terminal (eventbox :onclick ~/.config/eww/scripts/taskbaractions.sh 0x120000a 0x120000a (image :image-height 16 :path /home/prunerye/.config/eww/scripts/iconstorage/Xfce4-terminal.png))) (box :tooltip Geany (eventbox :onclick ~/.config/eww/scripts/taskbaractions.sh 0xe00010 0x120000a (image :image-height 16 :path /home/prunerye/.config/eww/scripts/iconstorage/Geany.png))) (box :tooltip Thunar (eventbox :onclick ~/.config/eww/scripts/taskbaractions.sh 0x140000d 0x120000a (image :image-height 16 :path /home/prunerye/.config/eww/scripts/iconstorage/Thunar.png)))

    (Unrelated, but why doesn't eww recognize "~/" in image filepaths?)

    But when I use "tasks" to generate my taskbar widget with a literal, nothing appears, save for a slight overall change in the spacing on my topbar, though this happens inconsistently. Here is the relevent yuck.

    spoiler

    (defwidget task_bar [] (box :orientation "horizontal" :space-evenly true :spacing 2 :halign "start" (literal :content tasks)))

    Here's the full tree:

    spoiler

    (defwindow main :class "main" :monitor 0 :geometry (geometry :x "0px" :y "0px" :width "100%" :height "16px" :anchor "top center") :vexpand false :stacking "fg" :windowtype "dock" :wm-ignore true :reserve (struts :distance "16px" :side "top") (topbar))

    (defwidget topbar [] (box :orientation "h" :space-evenly false (foo) (task_bar) (bar)))

    (deflisten tasks ~/.config/eww/scripts/taskbarliteral.sh)

    (defwidget task_bar [] (box :orientation "horizontal" :space-evenly true :spacing 2 :halign "start" (literal :content tasks)))

    I found a possibly related closed issue at https://github.com/elkowar/eww/issues/871 but the issue doesn't provide much detail.

    Any idea what I'm doing wrong?

    Edit: Lemmy does funny things with ` quotes. Click the view source button to see raw text.

    Edit2: I booted up my openbox/eww setup this morning and was shocked to find a working task bar when I opened a window... but only the first window. Once I open a second window, my taskbar is blank.

    Edit3: Edit2 was my eureka moment. Why would only the first window load? I now have a suspicion that eww literals are treated as parents that can't have more than one child; when I shifted the literal's parent "box" into the bash script, the task bar suddenly worked! The new task_bar defwidget looks like this.

    spoiler

    (defwidget task_bar [] (literal :content tasks))

    And "tasks" is now defined as

    spoiler

    (box :orientation "horizontal" :space-evenly true :spacing 2 :halign "start" (box :tooltip Xfce4-terminal (eventbox :onclick ~/.config/eww/scripts/taskbaractions.sh 0x120000a 0x120000a (image :image-height 16 :path /home/prunerye/.config/eww/scripts/iconstorage/Xfce4-terminal.png))) (box :tooltip Geany (eventbox :onclick ~/.config/eww/scripts/taskbaractions.sh 0xe00010 0x120000a (image :image-height 16 :path /home/prunerye/.config/eww/scripts/iconstorage/Geany.png))) (box :tooltip Thunar (eventbox :onclick ~/.config/eww/scripts/taskbaractions.sh 0x140000d 0x120000a (image :image-height 16 :path /home/prunerye/.config/eww/scripts/iconstorage/Thunar.png))) )

    0
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PR
    prunerye @slrpnk.net
    Posts 1
    Comments 75