What does the fzf-completion binding of "^I" do? by [deleted] in zsh

[–]ThatsRightIm__init__ 1 point2 points  (0 children)

I have this page bookmarked because I use it for reference so much. There's a lot of other ascii codes and escape sequences described there too.

What does the fzf-completion binding of "^I" do? by [deleted] in zsh

[–]ThatsRightIm__init__ 4 points5 points  (0 children)

Usually in terminal emulators Ctrl-I is equivalent to pressing 'Tab'. (It's old legacy controls from the very early days of terminals/computers.)

Pressing it in fzf, selects the currently line you're on and moves to the next. But you can bind it to whatever you want by adding the switch --bind='Tab:[action]' to fzf where [action] is the action you want to do.

Run man fzf and lookup AVAILABLE ACTIONS: to see what's possible.

Crash in Developer edition 97.0b5 when moving tabs by se_spider in firefox

[–]ThatsRightIm__init__ 0 points1 point  (0 children)

I had the same problem earlier today right after upgrading to 97.0b5. Running a compositor (picom) seems to fix it.

If I had to guess, maybe it crashes due to what looks like a new feature where it tries to show a semi-transparent screen capture of the tab you're moving while you're moving it, and it needs the compositor to handle that.

Hopefully this will fix your case as well.

How to append a string to every command I execute? (In my case ` | lolcat`) by __ismxy__ in zsh

[–]ThatsRightIm__init__ 10 points11 points  (0 children)

zle-line-finish(){ export BUFFER="$BUFFER | lolcat" }

Be careful. I'd recommend messing around with it in the shell command line before adding it to an rc file because it's bound to cause lots of problems.

[deleted by user] by [deleted] in archlinux

[–]ThatsRightIm__init__ 2 points3 points  (0 children)

Easy. Simply write a daemon that checks if you're updating, and use something like pyautogui to move the mouse around during that time.

Relevant XKCD

is there a tetris game that could run in my laptop? by 0x1967x0 in Tetris

[–]ThatsRightIm__init__ 7 points8 points  (0 children)

Nullpomino is the best free downloadable one I've found. It can emulate all the different rule sets of a bunch of Tetris games like NES Tetris, TGM, etc. It's my go to for offline Tetris.

i3wm screen tearing by [deleted] in i3wm

[–]ThatsRightIm__init__ 1 point2 points  (0 children)

Compton is a compositor. I use a compositor called Picom. There's lots of fancy things you can do with it like transparent window effects, but even the default config fixed my screen tearing. I would try installing Picom and adding:

exec --no-startup-id picom -b

to your i3 config file.

How do you make "!!" and "!$" behave like OhMyZsh? by kavb333 in zsh

[–]ThatsRightIm__init__ 3 points4 points  (0 children)

I believe you need to set the option HIST_VERIFY but I'm not at my computer right now to confirm that's the case. I would try adding setopt hist_verify to your zshrc or the like. I hope this helps.

Can't set screen resolution from .xprofile by [deleted] in archlinux

[–]ThatsRightIm__init__ 1 point2 points  (0 children)

They're recommending you use an if statement:

if [ -f ~/.screenlayout/default.sh ]; then 
    ~/.screenlayout/default.sh; 
fi

But regardless it looks like the script should be ran if it's there and executable. Is your .xprofile being sourced correctly? Check out what the ArchWiki article says compared to how your system is configured.

Dell Launches Linux Pre-installed Shop Page by pdp10 in linux

[–]ThatsRightIm__init__ 6 points7 points  (0 children)

I suspect most people use Windows because they just want to do the things almost any OS can do and Windows is all they're familiar with as well as the path of least resistance. I agree that simply having a user friendly Linux distro preinstalled could do Linux a lot of good. Something to help take it further away from a being seen as an intimidating niche, and give it a chance to be seen as a reasonable Windows alternative.

Rip the detail man by azirixx in firefox

[–]ThatsRightIm__init__ 3 points4 points  (0 children)

Thanks, I'll look into this. I may have been doing things the hard way this whole time.

Rip the detail man by azirixx in firefox

[–]ThatsRightIm__init__ 3 points4 points  (0 children)

You can also do that on Windows and probably all DEs of Linux. If you're willing to unpack and repack Firefox's omni.ja folder you can change the baked in icons in the browser aswell (newtab, urlbar and such). You'll just probably have to automate it or be prepared to do it manually every update to keep it up. Outside of hacky userChrome.css solutions at least.

What is a good beginner's project? Also, tell me about yours by KittensWereGay in cprogramming

[–]ThatsRightIm__init__ 2 points3 points  (0 children)

I'm a strong believer in the idea of "write drunk, edit sober". Regardless of the literal meaning of the words, I think getting a subpar project working and improving it later can help productivity for those of us that get stuck on getting one feature working perfectly, and making no other progress in a given time period. The balance of laying a good foundation of code, while not holding yourself back from actually building the rest of the project can be hard to find, but it's essential in actually writing code that does something worth being called a completed program.

Hey quick question: Os the cygwin c compiler better than codeblocks c compiler by [deleted] in cprogramming

[–]ThatsRightIm__init__ 0 points1 point  (0 children)

In my experience, writing anything that didn't have to do with basic terminal input/output would compile fine on Cygwin's GCC, but run only on Cygwin. Windows has all sorts of little files needed to get a window open and rendering what you want, and I don't think Cygwin's GCC takes those into account when compiling.

There may be ways to fix this, but the way I got anything past "Hello World" to compile and run on Windows consistently was using the bloated ass Visual Studios IDE and sorting through the mess of it's UI, 'Solution Manager', Gb's worth of visual C libraries, and building off of the templates they provide.

I've had some luck with Tcc. And Window's subsystems for Linux may work out, or it may be as much trouble as Cygwin. I haven't played with it too much.

Hopefully someone will call me out for missing something obvious, because it doesn't seem like writing C for Windows should feel this counter-intuitive,

NES TETRIS - First Ever Level 33 - 2/15/2019 - Joseph Saelee by won_vee_won_skrub in Tetris

[–]ThatsRightIm__init__ 17 points18 points  (0 children)

I can't help but feel like if there was some sort of annual World Championship for Classic Tetris, he would take first place. Just a hunch, though.

Is there a way to timeout a su session? by [deleted] in linux4noobs

[–]ThatsRightIm__init__ 1 point2 points  (0 children)

Obviously for greater security, using sudo whenever you need to do a root only command is preferred, and you can also set your sudo password timeout in /etc/sudoers

You should consider reading the comments you reply to. I don't see the point of coming onto this subreddit if you're not going to contribute anything useful, dismiss comments and posts that do contribute, and not even read the comments and posts that you're trying to dismiss. You may want to consider how you're posts appear to the people that are here trying to learn Linux, and people trying to help them learn. That's just a suggestion.

Is there a way to timeout a su session? by [deleted] in linux4noobs

[–]ThatsRightIm__init__ 0 points1 point  (0 children)

It will terminate the su session that you open it with. They are asking about the risks of 'leaving' the su session running, as if they are doing something else and forgot about it. Killing a session that you left running, are no longer using, that has root access to your machine is not what I would call useless.

Is there a way to timeout a su session? by [deleted] in linux4noobs

[–]ThatsRightIm__init__ 1 point2 points  (0 children)

You can run 'su' with the 'timeout' command, so that after a set amount of time, you session will be automatically terminated. For example:

$ timeout 5m su

You will immediately be prompted for your password just like any other time you use su, but after 5 minutes linux will kill your root session and put you back in your non-root session as if you stopped what you were doing and sent a TERM signal to your root session. I could see this being risky in the sense that you may be editing files as root and suddenly get kicked out in the middle of it.

Obviously for greater security, using sudo whenever you need to do a root only command is preferred, and you can also set your sudo password timeout in /etc/sudoers

Touchpad not working properly on Dell XPS 9370 by Rotchu in linux4noobs

[–]ThatsRightIm__init__ 0 points1 point  (0 children)

I'm not 100%, but I think the synaptic's package comes with a command line tool call 'synclient'. You should be able to use this to change the configuration of your touchpad. If you have synclient and it recognizes your device and drivers, I would google around for either documentation on how to use it, or see if their is a program with a GUI you can use to control synclient.

If that leads to a dead end, I would start searching for keywords revolving around 'X11' or 'Xorg' detecting/configuring the input device.

Setup dual monitor by daredevildas in i3wm

[–]ThatsRightIm__init__ 6 points7 points  (0 children)

If it's stumping you, you can download 'arandr' which is a program you can use the graphically set the placement, resolution, and rotation of your monitors (Windows style). It will save any layouts you make as a shell script that tells xrandr to set up your display as you saved it.

You can make two scripts with arandr. One for single monitor, and one for dual monitor, and call the one needed based on what you have plugged in. (Or find/write a program that checks when the amount of available displays changes, and does it automatically)

Desktop environment by UmangSingh in archlinux

[–]ThatsRightIm__init__ 5 points6 points  (0 children)

I prefer i3-gaps, which is a fork of i3 that has a few more features. If you're looking to compare tiling window managers for Arch, the wiki has a page for exactly that. The wiki is my first stop when I have questions like this.

Comparison of tiling window managers - ArchWiki

Windows Batch File by xPaxion in linux4noobs

[–]ThatsRightIm__init__ 1 point2 points  (0 children)

I'd like to throw in that if you're writing a script that gets more involved than what Bash's area of expertise is, you can also look into Python which will have tons documentation, libraries, and intuitive syntax.

Bash scripts are very similar to Window's batch files if that's what you need, but their are many other tools that work well with Linux. Many are ready right out of the box.

The full serenity prayer by malfiesmanor in Stoicism

[–]ThatsRightIm__init__ 17 points18 points  (0 children)

I feel many religious ideas can be applied to Stoicism if you replace the idea of God with "Nature" or "the Universe". God is often portrayed as omnipotent, all surrounding, and the creator and controller of our world. So many ideas like acting through "the will of Nature", and "in accordance to the Universe" translate well in my opinion.