Tag Info

Hot answers tagged

2

1. Script to swap all windows from screen 1 --> screen 2 and vice versa The script assumes the screens are of the same vertical resolution, and the left screen is the primary one. The horizontal resolutions of both screens is searched by the script. How to set up The script needs wmctrl to be installed: sudo apt-get install wmctrl Copy the script ...


1

Ok, I figured it out. I created 2 scripts, the first runs the script in screen: #!/bin/bash screen -S server $HOME/rubix/start.sh The next is what the first runs, which you can see above.


1

The highest screen resolution of 1366 x 768 in Systems Settings -> Displays is correct. The Dell Latitude E7240 Notebook comes with a display with a resolution of 1366 x 768 pixels and a screen size of 12.5 inches. Even with the screen resolution set to 1366 x 768, it's sometimes going to be difficult to read text on the screen without being rather close to ...


1

Assuming the change in resolution is both causing the error and the trigger to run your script, periodicalloy checking the resolution and run your script if it changes should do the job: #!/usr/bin/env python3 import subprocess import time command = "</path/to/script_to_run>" def get_res(): # get resolution xr = ...


1

Your GRUB has been mistakenly installed on your USB stick. If you plug in your USB and restart it should work. To fix this, I used to remove the USB stick during installation when the GRUB settings popped up, went one step back then continued from there.


1

There are 2 places you can adjust these setings: the Brightness and lock dialog and the power dialog. In the power settings dialog, change the option "suspend when inactive for" to "don't suspend". In the brightness and lock dialog, change the option "Turn screen off when inactive for:" to "never". Also make sure "Lock" is OFF


1

Finally got this to work. Looking at some code samples of screen usage, it seems that the -X parameter expects the word: stuff before the actual command, and also the command has to be wrapped in double quotes ("xyz"). Also to make the command run, the Enter keystroke has to be sent along with it. Going off this article on inserting special characters, I ...



Only top voted, non community-wiki answers of a minimum length are eligible