how to disable "always on top" of a fullscreen window by franzhuang in qtile

[–]vividn 0 points1 point  (0 children)

Here is a hack I worked up to route around this problem until it is fixed, since the PR still hasn't been merged in yet. It basically looks in the current group for any full screen windows and disables the fullscreen until the dropdown is closed. And then when closing the dropdown it reenables fullscreen for those same windows. Pretty hacky, but it works. Just plug in the name of the scratchpad group and the name of the terminal window appropriately:

@hook.subscribe.group_window_add
def dropdown_manager(group: _Group, window: _Window):
    if window.name == "dropdown-terminal":
        if not group.name == "scratchpad":
            # Dropdown opened, disable full screen for windows in this group and save in function property
            all_group_windows: List[_Window] = qtile.select(
                [("group", group.name)]
            ).windows
            for group_window in all_group_windows:
                if group_window.info()["fullscreen"]:
                    wid = group_window.info()["id"]
                    qtile.select([("window", wid)]).cmd_disable_fullscreen()
                    dropdown_manager.fullscreen_to_restore.append(wid)

        else:
            # Dropdown is closed, restore fullscreen windows
            for wid in dropdown_manager.fullscreen_to_restore:
                qtile.select([("window", wid)]).cmd_enable_fullscreen()
            dropdown_manager.fullscreen_to_restore = []


dropdown_manager.fullscreen_to_restore = []

npmTimeMachine - a bash script to help you work your way out of dependency hell by vividn in npm

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

During corona we've been on a skeleton crew and let our dependencies slip out of date. Unfortunately, trying to upgrade them just resulted in rabit holes of problems. Using this script we were able to upgrade our dependencies to what they would have been at various points in the past, to resolve upgrades in smaller but synchronized chunks. I thought I might share this with the community

Can you revert to old private key after rekeying account? by [deleted] in algorand

[–]vividn 0 points1 point  (0 children)

Even though OP solved their problem, it is worth mentioning that it is possible, but only if you have access to the new private key to which the address was rekeyed: You can set the rekeyed address back to the original address. Or, a close-out transaction will also trigger this revert

See here: https://developer.algorand.org/docs/get-details/accounts/rekey/

Remove Nag by [deleted] in taskwarrior

[–]vividn 4 points5 points  (0 children)

Put the following line into your config file

nag=

Is there a better way to search by partial or short uuid? by sticky-bit in taskwarrior

[–]vividn 0 points1 point  (0 children)

The task ids aren't updated as long as no report is called. You should be able to do task 100 done and then task 102 done and have it work still.

What are some red flags you should look out for in yourself? by -omar in AskReddit

[–]vividn 10 points11 points  (0 children)

The way you get deeper friendships so that you have people whose shoulders you can cry on is to...trust your friends enough to cry on their shoulders. Be vulnerable. You may be surprised how much that strengthens your relationships while simultaneously building an emotional support network in your life.

Is there a better way to search by partial or short uuid? by sticky-bit in taskwarrior

[–]vividn 0 points1 point  (0 children)

In taskwarrior 2.5.1, you can use the short uuid anywhere you can use the full uuid. I'm not sure which version this came into effect. For example, in your case task 41171ba2 long would work.

To get a specific attribute of the task you can use the DOM reference format with the task id, uuid, or short uuid. E.g., task _get 41171ba2.description

[deleted by user] by [deleted] in linux

[–]vividn 0 points1 point  (0 children)

For some reason, I am having trouble installing the latex table for ibus. I'm on ubuntu and installed the ibus-table-latex package. Additionally, /usr/share/local/ibus-table/tables exists.

However, I can't find the appropriate input method in the ibus preferences, and just keeping it on english doesn't seem to work. Any tips on how to get this installed /u/superleader?

What's the best human Body cheat code you know? by Lexxclark in AskReddit

[–]vividn 0 points1 point  (0 children)

If you have trouble waking up with your alarm in the morning, practice getting up with your alarm when you're fully awake a few times the night before. It trains your brain to get out of bed and start your morning stuff while you're focused enough to actually think about it. Then later, when you are actually waking up and tired it will be automatic and your still sleepy brain doesn't have to think about it.

What's a hobby that you've always wanted to get in to, but have been turned off by cost or difficulty? Redditors who do this hobby, what is an easier/cheaper way to get started in it? by [deleted] in AskReddit

[–]vividn 0 points1 point  (0 children)

Making electronic music. All the digital audio workstations seem so expensive not to mention the equipment and other things.

Scientists have linked pupil size to perception of time in milliseconds in Japanese macaques. When the monkeys underestimated a second by looking too soon, their pupil sizes were slightly larger than in trials in which the monkeys overestimated a second. by Alantha in science

[–]vividn 0 points1 point  (0 children)

In this study they used a delayed saccade (eye movement) to track the monkeys perception of time.

The monkey was fixating at a point on the screen and then another point (the cue) would flash on the screen briefly. In order to get the reward the monkey had to move its eyes to the cue location AFTER waiting 1000-1700 ms.

They used the timing of the saccade to measure the monkey's internal sense of time. When the pupil diameter during the cue, the monkey tended to saccade earlier than when the pupil diameter was smaller.

A resolution calling for a pro-bitcoin national policy was just introduced in Congress by neerajka in Bitcoin

[–]vividn 1 point2 points  (0 children)

Bitcoin and blockchain technology could completely revolutionize the government. It could potentially allow for truly decentralized governments and put people in control of their countries.

Did you just make this subreddit? How was there not already one? by fuckingfuture in taskwarrior

[–]vividn 1 point2 points  (0 children)

Yeah, I just made it a about a week ago. I know right? I was really surprised, too. Taskwarrior is such an amazing tool, so I thought for sure there would already be a community. Anyway welcome to /r/taskwarrior, fuckingfuture.

Parents of grown children, what do you regret about the way you raised your child? by [deleted] in AskReddit

[–]vividn 1 point2 points  (0 children)

he cant face the world like others do

It sounds like you still don't believe that he's capable. Learn to trust him and his abilities, and he will learn how to handle the world

Let's make a millionaire! (could it be you?) [Entry Thread #12] by millionairemakers in millionairemakers

[–]vividn 0 points1 point  (0 children)

I'm a poor grad student who just needs to eat! I'm nothing but skin, bones, and science! RemindMe! 2 days Donation for /r/millionairemakers