Change keyboard layout in Developer Console of a chromebook - linux

I have a Acer Chromebook that is running in Developer Mode. In ChromeOS and cosh I have a German keyboard. When I want to switch to Ubuntu (strg+alt+f2) I have to login to the Developer Console with the login account chronos. But here the keyboard layout/setting is EN-US. After typing in the commands crouton/ubuntu starts and the keyboard layout is German again.
How can I change/switch the keyboard layout in the Developer Console?
Is there a shell command for it?

The Developer Console, crosh, is a unix console, and unix commands generally apply. I'm not sure what the relevant command is offhand, but you can probably find it with some Google-fu.
Alternatively, the developer console is also accessible by pressing Ctrl-Alt-T, which opens crosh in a tab instead, then typing shell.
You can then change keyboard layouts using Chrome OS's graphical interface.
Check Chrome Options
Add a new language and select the corresponding keyboard layout
The status bar now reflects the current keyboard layout
Clicking it will allow you to switch layouts

Related

Can I use same software after switching Window Manager or Desktop Environment in Linux

Suppose I am using Kubuntu.
So I have Kwin as Window Manager and
KDE as Desktop Environment.
I use VSCode and other software.
I am switching to other Desktop Environment and Window Manager alongside Kwin and KDE.
Note: This means I will have both KDE and other Desktop Environments installed on my computer and I will switch between these from login screen. [Same for window manager]
Now, If I switch to Cinnamon Desktop Environment or GNOME Desktop Environment or any other Desktop Environment.
or if I switch to i3, bspwm, dwm Tiling Window Manager or Fluxbox, Openbox Stacking/Floating Window Manager.
or switched both Desktop Environment and Window Manager.
Now can I use the same VSCode and other softwares on these different Desktop Environment and Window Manager? or do I need to install same software for each of these Desktop Environments and Window Managers?
All your self installed programs will work fine in whatever environment you choose.
For maximum compatibility, you should still prefer x11 over Wayland as display server - for example screen sharing in ms teams needs x11, last time I checked. This depends on your personal needs.
Although you can always start any program from a terminal, we usually like to have a graphical menu of some kind that lists all available GUI apps. Desktop environments all contain their own menu.
If you go down the window manager route, you are expected to install a launcher yourself (such as dmenu or rofi), and configure keyboard shortcuts to launch each one of your favorite apps.
I recommend watching DistroTube on YouTube for lots of good info about tiling window managers and Linux in general.

Hide icons status bar MIUI 13

I am trying to hide some status bar icons on MIUI 13.
Do you know of a way to hide icons such as Roaming, Mute, DND...?
I tried these without success:
adb shell settings put secure icon_blacklist zen,mute,volume
Using the SystemUI Tuner app, grating all permissions.
Using the Activity Launcher and opening the System UI demo mode.
ADB AppControl
Old question but I faced the same issue so here is how I fixed it.
First you must have the Developer status enabled.
Then enable the following settings in the Developer options:
USB debugging
Wireless debugging
USB debugging (Security settings)
Restart phone and connect it to your computer where ABD is downloaded
Open terminal where ADB is unzipped
Do the following commands:
./adb devices
This should list the device and show it connected
./adb shell settings put secure icon_blacklist nfc,zen,volume
This will hide, respectively, the nfc icon, the dnd moon crescent icon and the muted bell icon

Atom IDE opening chrome developer tools

Whenever i open atom IDE, chrome developer tools window loads in it. How can i start Atom normally for coding
Check the screenshot
I think you have set Atom as the current default URI handler, so seek in the settings for URI handlers
and select the third option, never become the default atom//:URI handler.
This will work and if not try reinstalling Atom.

Switch application fullscreen mode programmatically on Linux Mate / Ubuntu

I have an application that runs on a Raspberry Pi with Linux Mate and a touch screen. The normal users control the application via touch screen and should usually only see my application. I have defined a keyboard shortcut in Mate that allows me to toggle the fullscreen mode which can be used when I am remotely connected to the PI and have a keyboard.
From time to time it is, however, necessary for the normal user to access the desktop. Since the Raspberry Pi has no keyboard connected, the (local) user can't use the keyboard shortcut.
For this reason I would like to add a button to my application that would allow the user to toggle fullscreen mode.
As far as I understand this is a function of the Gnome 2 desktop (which Linux Mate uses). I have no idea how to access this from my program and can't find any information on it.
My application is written in .NET Core with Avalonia UI but the function would not necessarily have to be integrated in my application. I could as well call an external script or utility program.
Any idea how to accomplish this?
A friend gave me the tip to check out the wmctrl program. The sources of this program led me to the XLib or XCB library and setting the window to _NET_WM_STATE_FULLSCREEN.
I guess this could be done in .NET by P/Invoking the native lib. Then again it seems much easier to write a shell script that determines the windows ID and calls the wmctrl utility and call that script from the .net application.

How to debug JavaScript code with mobile browsers

I know about firebug and the developer tools for the major modern desktop browsers, but I can't find any way of debugging JavaScript code on mobile browsers.
What are some high level techniques I can use to debug code on mobile browsers?
Android devices can be put into developer mode by going through settings>Phone status then tapping on "Build number" 7 times. This allows you to do a bunch of things (see step 5) including USB debugging. (Some devices might have Build number under Software Info)
To activate USB debugging, look in Settings for the newly appeared "{ } Developer Options", open this and switch on USB debugging. Connect your device using a direct USB connection.
In Chrome on your desktop, in the usual developer tools panel used for debugging, look in the menu for more tools>remote devices. With Discover USB devices selected, you should now see your mobile device on the side.
Select it to see a list of all the chrome tabs you have open and the ability to enter URLs directly.
Selecting one of the links will open up a new window with a mirror of your device screen on the left and all the familiar chrome debug tools on the right. You can still control your device directly or use the mouse on the mirrored screen. It even rotates.
full details on remote debugging from google and how to enable developer mode (link as above) from askvg.com
Android provides a tool set for these purposes:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3
Apple does it a similar way:
https://developer.apple.com/safari/tools/
Tutorial: https://css-tricks.com/using-chrome-devtools-to-debug-javascript-in-any-browser-with-ghostlab-2/
You can debug on Safari Mobile with any iPhone/iPad. In Developer menu you can find your device and you can then debug your code with inspector.
If you have an Android Device instead, you can debug on Chrome Desktop (remember to active the debug mode) with chrome://inspect
On the IPhone you can go into settings>Safari>advanced and turn web inspector on
Sometimes I get bugs reported by customers that are not reproducible every time or in our testing. For such cases I recommend Lucky Orange. It records the user activity and also has the option to record console messages.
PS - I'm not an affiliate, I use them for my own projects and like it.
Another solution for basic debugging (which many times is all is needed), is having a console polyfill on mobile without the need to plug into USB on desktop.
mobileConsole is such a console polyfill.
Hope it helps someone, I found it useful.

Resources