Setting the window size and location for Opera

For a number of years my web browser of choice has been Firefox; however, the release of Version 57 (Quantum) broke all the “legacy” add-ons that I was using. (See: “Farewell past, happy dreams of days gone by”) My solution to this dilemma was to switch to a different browser and I found that Opera had all the features and plug-ins that I required. However, one thing that didn’t work “out of the box” in Opera was its inability to remember the size and location of its window.

“Farewell past, happy dreams of days gone by”
Giuseppe Verdi, La Traviata

Opera opened in a window that was centered on the screen, which was acceptable, but at much too small a size to be useful. This meant always having to grab a corner of the app’s window and drag it across the screen, to make the window bigger, before getting down to any useful task. So, the trick was to have Opera open with a customized size and location.

There are a lot of posts on the web complaining that this feature is currently unavailable and/or has been removed from an earlier version of Opera; however, there doesn’t seem to be a cohesive post providing a workaround. Fortunately, there are several posts discussing various command-line options that can be used with Opera and other browsers. By combining the information from a number of such posts, I was able to develop a command that would open Opera at a fixed size and in a fixed location on the screen.

I use a program launcher in the panel to open the browser so my procedure was as follows:

(1) Right-click on the program launcher for Opera and select Edit

(2) In the Command field, expand the command from opera %U to:

opera %U --window-size=1500,900 --window-position=80,80

(3) Click on OK to save the changes

Now, when Opera is launched from the icon in the panel, the browser opens in a window of 1500×900 pixels located 80 pixels from the left side of the screen, and 80 pixels from the top of the screen.

While the above-noted pixel values (the generic parameters are in the form x,y) work for my display, obviously these may be changed to suit a different screen size and user preference.

References:

Opera
https://www.opera.com

Opera’s Command Line Options
https://www.opera.com/docs/switches/

Sizing Problem with Opera Beta Browser [SOLVED]
https://forum.peppermintos.com/index.php?topic=5383.0

Thread: Opera Window Position/Size
https://forums.opensuse.org/showthread.php/393065-Opera-Window-Position-Size

List of Chromium Command Line Switches
https://peter.sh/experiments/chromium-command-line-switches/

Advertisements
Posted in Web browser | Tagged , , | Leave a comment

Manually Updating LineageOS on a Moto G3 Smartphone

Previously, I had updated the Lineage OS 14.1 custom ROM installed on my Moto G3 smartphone using the over-the-air (OTA) facility included in Settings – About phone – LineageOS updates (see Updating LineageOS). This still requires installing Gapps and re-rooting the phone, so I decided to document the completely manual process for updating the OS.
Continue reading

Posted in Android, Moto G3 | Tagged , , | Leave a comment

Activating the scanner on a Brother DCP7020 multi-function laser printer

I recently did a clean install of Linux Mint onto my computer and installed the drivers for my Brother DCP7020 multi-function laser printer. The printer worked fine but attempting to run the scanner with Simple Scan produced the error “Failed to Scan – No scanners available”.
Continue reading

Posted in Mint | Tagged , , | Leave a comment

Sort folders before files in LibreOffice

A recent update to LibreOffice seems to have changed the order in which files and folders are displayed in the File-Open dialogue box. Previously, all the sub-folders were listed ahead of the files in the current folder. Now, files and folders are listed together in alphabetical order. Changing this behaviour is simple, but non-intuitive.
Continue reading

Posted in Applications, LibreOffice | Leave a comment

Tweaking Cinnamon’s menu in Linux Mint

One of life’s current mysteries is how to edit Cinnamon’s menu system in Linux Mint Version 19 (Tara). The trick is either to run cinnamon-menu-editor in Terminal or navigate to Menu – Right-click – Configure – Menu – Open the menu editor. (Note the link at the bottom of the first section – Layout and content – of the window.)
Continue reading

Posted in Mint, Tweaks | Tagged , , | Leave a comment

Installing Wine in Linux Mint Tara

Anyone wishing to install Wine in Linux Mint Version 19 (Tara), and looking at the entries produced by a search in Software Manager, is faced with a fairly bewildering choice of installation options. I don’t claim to know the most efficient means of installing Wine, but I did find a procedure that worked on my 64-bit system.
Continue reading

Posted in Applications, Commands, Mint, Wine | Tagged , | 6 Comments

Vertical Scroll Bars in Linux Mint Tara

The latest release of Linux Mint (Version 19 – Tara) uses the Mint-Y theme. Unfortunately this provides a thin scroll bar in LibreOffice Writer, does not display the single line up/down controls, and offers, to my mind, a rather strange method for navigating through the text.
Continue reading

Posted in LibreOffice, Mint, Tweaks | Tagged , , | 3 Comments