This particular script here checks of Chromium is running, if it does, it becomes the focused window. If it is not running, it will be started.
#!/bin/sh
if wmctrl -l | grep -v grep | grep "Chromium" > /dev/null then
wmctrl -a 'Chromium'
else
chromium-browser
fi
This assumes wmctrl is installed.
Another thing I’ve had to look up twice regarding latex.
When saving a figure as pdf in MatLab, margins are enourmous. This one fixes by running pdfcrop -margins 10 figure.pdf figure.pdf.
RT @standupmaths: They even name it after themselves. RT @EvidenceMatters: Medical researcher discovers integration, gets 75 citations - …
Hurra lite pengar tillbaka från SJ! Men tycker det är fult att man bara får hälften så mycket i kontanter som man skulle fått i värdebevis.
Jättelång och uppdaterad lista med böcker jag skulle vilja ha.
I woke up and turned on my SynMaster this morning, after there being no problems the evening before, the screen was black (as when it’s off) except for a flash every 5 seconds, where the contents of what the screen should show was shown, for about a tenth of a second. It kept doing this, flashing the contents every 5 seconds. I tried pulling out the cables and putting them back in again. I tried restarting the computer. Changing source (from DVI to VGA) made you see it black but every 5 seconds you could see the “VGA”-box in the top left corner. If I pressed the MENU-button to bring up the OSD menu, I could see the screen contents with the menu above it flash in those every 5 seconds.
I called the support. They suggested I’d drain it of power. That means pulling out the power cable and pressing the power button a few times. Then put the cable back in and see if it worked. It didn’t.
The support technician didn’t knot what the problem might be, so he said they’d send me a new screen, along with a box for me to send my screen to them.