i3: Managing Windows and Webcams for screencasting

  Рет қаралды 9,775

Luke Smith

Luke Smith

Күн бұрын

Пікірлер: 41
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
If you want to disable keybindings and the info panel on the webcam as well, just add these settings: --no-osc --no-input-default-bindings --input-conf=/dev/null Thanks to Micah who led me to this!
@LundMr1
@LundMr1 6 жыл бұрын
man mpv has a paragraf about File-specific Configuration Files: " In addition, the --use-filedir-conf option enables directory-specific configuration files. For this, mpv first tries to load a mpv.conf from the same directory as the file played and then tries to load any file-specific configuration." Thereby, you should be able to set other configurations or keybindings, if that make sense in you setup :)
@indiantechnologyguy
@indiantechnologyguy 4 жыл бұрын
My 2 cents. One thing bothering me was even I have disabled keyboard shortcut. I saw `[input] No key binding found for key 'Alt+1'.` and that keyboard shortcut did not work. I used simple hack in i3 config 'no_focus [title="video0 - mpv"]' this will not steal focus. and webcam script will work seamlessly.
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
I should say, to get the names and properties of windows so you can give them properties in i3wm, use the command `xprop`, which lets you click on a window and get its meta-data.
@mehalter
@mehalter 6 жыл бұрын
If you use the flag '--no-input-default-bindings' for mpv, all of the keyboard shortcuts will be disabled. Also the flag '--no-osc' will disable the on-screen controls and will leave you just the video. I personally prefer both so you are just left with a window just showing the video with no controls at all! Hope this is what you are looking for and helps!
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
Yeah I was going to add in the --no-input-default-bindings, but I actually have custom bindings that are not overwritten by that that I sort of want to get rid of as well. There doesn't seem to be an option to do that easily (other than making a file specific config that overwrites them I guess).
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
Actually thanks for noticing the --no-osc thing because it had slipped my reading of the manual!
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
Actually, actually, I guess to overwrite the custom configs I can just add --input-conf=/dev/null. That works. Thanks!
@mehalter
@mehalter 6 жыл бұрын
You can also set multiple profiles in your mpv config (wiki.archlinux.org/index.php/mpv#Profiles), you could have a profile set for no custom keybindings and call that profile in your camtoggle script. I believe that is the cleanest solution if you want your custom keybindings any other time you open mpv.
@mehalter
@mehalter 6 жыл бұрын
Oh true, you can just pass /dev/null as your config and that would save some typing. No problem! Great video by the way, love your stuff!
@tutituti4344
@tutituti4344 6 жыл бұрын
Sometimes you have to watch a video of a guy that looks like a drug dealer to learn some cool i3 tricks
@MGJoe93
@MGJoe93 6 жыл бұрын
Again a nice video about i3wm. Please show us more about your i3 settings and some tips. Thank you.
@a.phuyal320
@a.phuyal320 3 жыл бұрын
Can you help me Luke? In Manjaro i3, the browser is Palemoon. And then I installed Librewolf from Flathub. I want it to be associated with key binding mod+F2 and when I do that from the config file in .i3 folder, nothing happens. And yes Palemoon does not work either after I do that. Can you please help me with it?
@GoogleUser-id4sj
@GoogleUser-id4sj 4 жыл бұрын
Can we set the recording quality and fps when using the command mpv /dev/video0?
@pging8328
@pging8328 4 жыл бұрын
How are you managing to record your screen while using i3?
@cmcm6676
@cmcm6676 6 жыл бұрын
Is your .xdefaults / .Xresources file on github updated with the current color scheme ?
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
I used solarized colors in st, which doesn't ready my .Xdefaults file anymore.
@cmcm6676
@cmcm6676 6 жыл бұрын
Thanks, after some initial digging i found them.
@renarsgrigorjevs812
@renarsgrigorjevs812 6 жыл бұрын
Cool I like it :)
@carlosmontero7386
@carlosmontero7386 6 жыл бұрын
There's a way to change the camera's resolution?
@LundMr1
@LundMr1 6 жыл бұрын
Seems like you are learning new stuff every day - how the tårks are you doing that? Don't you have a PhD to finish?! Jeez :D
@pcfreak1992
@pcfreak1992 6 жыл бұрын
Did you try running the camtoggle command like this: sh -c "pkill .... || ..." ? This way it is only one command for i3 but it's launching the whole thing in the quotes in a subshell.
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
That wasn't working either. I'm not actually 100% what the problem is because come to think of it, I have a line that toggles printscreen which works just fine: bindsym $mod+Print exec --no-startup-id "killall screenkey || screenkey"
@troy6407
@troy6407 6 жыл бұрын
Meu careca favorito
@showyouathingortwo
@showyouathingortwo 6 жыл бұрын
Great tip
@MaximusRitterVon
@MaximusRitterVon 5 жыл бұрын
Has anyone a solution for the positioning in dwm?
@polypus74
@polypus74 4 жыл бұрын
Annoying (to me anyways) that the webcam window is focused when created, so in i3 config along with the for_window directives, you can also: no_focus [title="video0 - mpv"]
@Benrob0329
@Benrob0329 6 жыл бұрын
Put the command in quotes?
@Benrob0329
@Benrob0329 6 жыл бұрын
Also, you can load a custom profile with MPV that disables the keybindings and gui
@mandeep6ill
@mandeep6ill 6 жыл бұрын
blue border, i guess mod + Backspace is way too tiring :P btw how to make the right side border brighter man
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
It's automatic in i3. The side you're set to tile on automatically lights up.
@Redalef15
@Redalef15 6 жыл бұрын
>making a forum instead of anonymous imageboard Absolute botnet
@LukeSmithxyz
@LukeSmithxyz 6 жыл бұрын
>using a closed source imageboard that uses your cpu for mining bitshekels instead of a /comfy/ mid 2000s free software bulletin board
@Redalef15
@Redalef15 6 жыл бұрын
But there are like shitton open source imageboard engines on Github: github.com/imageboards
@jesperb.245
@jesperb.245 6 жыл бұрын
What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project. There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.
@IlKuchen
@IlKuchen 6 жыл бұрын
Pinguinguy most free software users have the alias linux="gnu slash Linux" in their brainrc
@jesperb.245
@jesperb.245 6 жыл бұрын
But then how do i refeer to the kernel?
@IlKuchen
@IlKuchen 6 жыл бұрын
I call it the kernel. It really works. What is Linus Job? He works on the Kernel. Where is Linus from? He is not from norway. What does he use to work on the Kernel? Linux, no Debian he finds that it is too hard to install.
@sunnychoppa2011
@sunnychoppa2011 5 жыл бұрын
hmm.. good point
Get My Arch Linux Ricing/Config Easy! (Smug + comfy edition)
4:20
Some bashrc recommendations and what I use
19:17
Luke Smith
Рет қаралды 114 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 1,3 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 57 МЛН
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 63 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2 МЛН
AI Will Make (Has Made) the Internet Mediocre...
12:14
Luke Smith
Рет қаралды 61 М.
Yep. Imagination is Demonic. (Unironically)
8:42
Luke Smith
Рет қаралды 84 М.
Richard Stallman Talks About Ubuntu
6:10
TFiR
Рет қаралды 1,4 МЛН
Uh, What are RSS feeds? NEWSBOAT
12:44
Luke Smith
Рет қаралды 68 М.
I Will Be Throwing Away My Computers.
11:56
Luke Smith
Рет қаралды 99 М.
Vimrc and Vim Plug-In Overview
13:24
Luke Smith
Рет қаралды 112 М.
Linux Terminal: Get Memory, Temp, CPU & Make Them Useful!
16:59
Luke Smith
Рет қаралды 93 М.
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 211 М.
Automating Everything in Linux with ENTR!
10:24
Luke Smith
Рет қаралды 194 М.
Malware development 101: Creating your first ever MALWARE
28:00
Leet Cipher
Рет қаралды 364 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 1,3 МЛН