Showing posts from July, 2018

Solution to Unity Desktop Fullscreen Graphical Glitch

You may find that your out of the box installation of Unity Desktop has the following glitch:

Connect a second screenFullscreen a window on one of those screensDo something on the other screen e.g. focusing or maximising a window The exact actions that cause an issue aren't very consistent.


Install CompizConfigUtility → WorkaroundsSet "Force full screen redraws (buffer swap) on repaint" to true.

Custom Date Display in Unity Desktop (and probably some others)

I found that the date and time displayed by Unity Desktop can be customised.In dconf-editor (or in the terminal) com.indicator.datetime contains many options about date formatting.Set time-format to custom. This allows custom-time-format to be used for formatting.Set custom-time-format to a format string.When I discovered this was possible, it was difficult to find out the exact properties the format string could have. Not all of the placeholders are intuitive: `%w %d/%b/%Y %R`. It's easier to work it out with context from snippets online but I wanted a complete list of the options I had available.It turns out the C function called strftime is used, which means the syntax can easily be looked up on the internet or in the manpages.This reminded me of PHP's date format function, but it's different and not just the lack of percent signs.