October 4, 2017 Leave a comment

found a nice screen blurring command that relies on ImageMagick

#!/bin/sh -e

# Take a screenshot
#scrot /tmp/screen_locked.png
import -window root /tmp/screen_locked.png

# Pixellate it 10x
mogrify -scale 10% -scale 1000% /tmp/screen_locked.png

# Lock screen displaying this image.
i3lock -i /tmp/screen_locked.png

# Turn the screen off after a delay.
sleep 60; pgrep i3lock && xset dpms force off

then we need xautolock, but there is no xautolock. so instead we try

which locks only from the command line, not from the .i3/config.  so we compile xautolock from source from

finally we need to add a line to an x startup script like .xsessionrc or .i3/config to add the line

exec xautolock -time 1 -locker '~/.local/bin/' &

Categories: Uncategorized

volume from mint command line

June 25, 2017 Leave a comment

pactl set-sink-volume 0 +15%

pactl set-sink-volume 0 -5dB
Categories: Uncategorized

Excel: unmerge when unmerge is greyed 0ut using format paintbrush

February 1, 2017 Leave a comment

one thing that may work is to use the format paintbrush to brush in from an unmerged cell

Categories: Uncategorized

Outlook locks up, “Research Pane”

November 4, 2016 Leave a comment

Once every couple of weeks, my Outlook 2010 freezes up.  Whatever I click, I get “Research Pane,” and nothing I type shows up.  I wondered if it was a keyboard issue, but other MS applications worked.  So after some Googling I found a solution.  Need to open VB (Alt-F11) and then the immediate window (Ctrl-G), and then type:

Application.Explorers(1).CommandBars("Research").Enabled = false

Originally found this as one of the results here:

Categories: Uncategorized

Useful git aliases

October 25, 2016 Leave a comment

Here’s some useful git configurations and aliases.  The way you make a git alias is as follows:

$ git config --global checkout
$ git config --global branch
$ git config --global commit
$ git config --global status

You can use git config to also set various items such as the diff.tool, which uses gvimdiff whenever you use git difftool.  This makes the diffs much more visually understandable since you can scroll and see more context.

alias.loga=log --oneline -15 --graph --decorate --all
alias.rev=remote -v
alias.lst=ls-tree --abbrev -l HEAD
core.pager=less -r
Categories: Uncategorized

PIXMA 100 setup

October 16, 2016 Leave a comment

this is a cheap and apparently old printer.  Important points:

  • It doesn’t connect to my WiFi — it needs a WPS button on the router
  • It doesn’t work with USB3 ports, needs to be connected to an older port
  • It needs to be rebooted prior it each printing session
  • The paper tray needs to be unfolded from the back, and the paper catcher needs to be unfolded from the front.
Categories: Uncategorized

no sound on ipad games

November 28, 2015 Leave a comment

check rotation lock, it is the same switch for mute, which can stop game sounds

Categories: Uncategorized