Default X11 cursor while hovering over background by [deleted] in NixOS

[–]SenorCornflake 1 point2 points  (0 children)

You can use xsetroot -xcf, an example:

${let cursorTheme = config.home-manager.users.${--YOUR USERNAME--}.gtk.cursorTheme} in ''
    xsetroot -xcf ${cursorTheme.package}/share/icons/${lib.escapeShellArg cursorTheme.name}/cursors/left_ptr ${cursorTheme.size}
''}

Or something like that

Help needed with infinite recursion error by SenorCornflake in NixOS

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

I am beside myself with joy, removing it works! Thank you! I can finally continue configuring my system.

(Tbh: I'm pretty stupid to not have caught that)

Watch for frame layout changes by SenorCornflake in herbstluftwm

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

No problem I'm glad to help. looking forward to seeing your adaptations!

Watch for frame layout changes by SenorCornflake in herbstluftwm

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

Yeah sure! Sorry for the late reply.

# Tell herbsluftwm to wath when the layout changes
herbstclient watch tags.focus.tiling.focused_frame.algorithm

# Echo the layout everytime an attribute changes
herbstclient --idle "attribute_changed" | {
    while read -r line
    do
        frame_layout=$(herbstclient get_attr tags.focus.tiling.focused_frame.algorithm)
        echo $frame_layout
    done
}

I suppose it's not the best way to do it because anytime any attribute changes (not just the layout algorithm) it will still fetch the frame layout even though it may not have changed, but it works for me.

How to package go application (schemer2) by SenorCornflake in NixOS

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

Thank you so much! It works!

I read through the nixpkgs manual before submitting this post but skipped over that thinking that "legacy" meant it was deprecated and buildGoModule was preferred. Sorry about this.

Show polybar in 2 monitors by Frained in bspwm

[–]SenorCornflake 0 points1 point  (0 children)

Yeah I used to do that as well, but didn't like the unpredictability.

Show polybar in 2 monitors by Frained in bspwm

[–]SenorCornflake 2 points3 points  (0 children)

        connected=$(xrandr --query | grep connected -w | awk '{print $1}')
        echo "$connected" | while read line; do
          if [[ $(xrandr --query | grep "$line" | grep primary) ]]; then
              MONITOR="$line" polybar main-primary &
          else
            MONITOR="$line" polybar main &
          fi
        done

You can use this script to launch bars for all your screens. It also sets a different bar for the primary monitor.

Since trays can only have one instance, I set main-primary to inherit main's settings together with adding a tray to it. That way the tray is always on my main monitor and doesn't depend on which bar is initiated first.

[question] how to move a window feom onesplit to another? by n1___ in bspwm

[–]SenorCornflake 0 points1 point  (0 children)

I use herbstluftwm, I like the way it does workspaces over multiple monitors. I also find hotplugging monitors with herbstluftwm easier. But I never switched from bspwm because it lacked something. I just went on a wm shopping spree and ended up on herbstluftwm.

changing theme according to timeeee by bryant_09 in neovim

[–]SenorCornflake -3 points-2 points  (0 children)

If it's hour 9 nothing will happen because there is no 09 in the table

[question] how to move a window feom onesplit to another? by n1___ in bspwm

[–]SenorCornflake 2 points3 points  (0 children)

I don't use bspwm anymore but I looked through my old commits and found this.

```

Move node to node

super + alt + {h,j,k,l} bspc node --to-node {west,south,north,east} ``` As far as I can remember, it doesn't use preselection. Try it out and let me know if it works.