Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
use warnings;
use strict;
$ENV{LC_ALL} = 'C';
my $need_downgrade = `dpkg -l | grep ^i | awk '{print \$2}'`;
$need_downgrade =~ s/^\s+|\s+$//g;
my @final_cmd = ("sudo", "apt-get", "install", "--allow-downgrades", "--allow-change-held-packages", "--reinstall");

Why?

New Unity 7.7 is slightly broken:

  • Slightly broken UI/UX by non-clickable spaces between tray items. Especially for the power icon. I always click to the edge of the screen if I want to open the power menu. But in Unity 7.7 that does not work. Between the power icon and edge of the screen is a big non-clickable area.
  • Panel is too high. Maybe for Yaru that's ok, but Ambience looks really bad. I think the panel height and padding should be configurable.
  • Strange critical bug with fullscreen applications. When trying to exit fullscreen the graphical shell just freezes! This bug stable reproduces in Unity 7.7 and not reproducing in Unity 7.5.

Build old unity from sources

# Install build dependencies
sudo apt-get build-dep unity
diff --git a/panel/PanelIndicatorsView.cpp b/panel/PanelIndicatorsView.cpp
index 8bf3c80..114fb12 100644
--- a/panel/PanelIndicatorsView.cpp
+++ b/panel/PanelIndicatorsView.cpp
@@ -46,7 +46,7 @@ PanelIndicatorsView::PanelIndicatorsView()
{
opacity.DisableNotifications();
layout_->SetContentDistribution(nux::MAJOR_POSITION_END);
- layout_->SetLeftAndRightPadding(layout_->GetLeftPadding(), 6);
+// layout_->SetLeftAndRightPadding(layout_->GetLeftPadding(), 6);
import fs from 'fs';
import path from 'path';
import child_process from 'child_process';
const OUTPUT_PATH = "/tmp/android";
let code = fs.readFileSync('./META-INF/com/google/android/updater-script').toString();
code = code.replace(/,\s*(0[\d]+)\s*,/gim, ', "$1", ');
code = code.replace(/delete\(/gim, 'deleteFile(');
diff --git a/data/Makefile.am b/data/Makefile.am
index 6d19397d8..8f44fc3c3 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -80,7 +80,9 @@ filetypes_dist = \
filedefs/filetypes.vhdl \
filedefs/filetypes.xml \
filedefs/filetypes.yaml \
- filedefs/filetypes.zephir
+ filedefs/filetypes.zephir \
#include <stm32f10x.h>
#include <math.h>
#include <stdlib.h>
#include "printf.h"
#define EDID_I2C_ADDR 0x50
#define EDID_I2C_CLOCK 100000
static uint8_t monitor_edid[] = {
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x09, 0xd1, 0x43, 0x78, 0x45, 0x54, 0x00, 0x00, 0x2d, 0x14, 0x01, 0x03, 0x0e, 0x29, 0x17, 0x78, 0x2e, 0x3d, 0x85, 0xa6, 0x56, 0x4a, 0x9a, 0x24, 0x12, 0x50, 0x54, 0xa5, 0x6a, 0x80, 0x71, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x66, 0x21, 0x56, 0xaa, 0x51, 0x00, 0x1e, 0x30, 0x46, 0x8f, 0x33, 0x00, 0x9a, 0xe6, 0x10, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0xff, 0x00, 0x38, 0x42, 0x41, 0x30, 0x32, 0x30, 0x30, 0x31, 0x30, 0x31, 0x39, 0x0a, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32, 0x4c, 0x1e, 0x3f, 0x0e, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x42, 0x65, 0x6e, 0x51, 0x20, 0x47, 0x39, 0x32, 0x35, 0x48, 0x44, 0x41, 0x0a, 0x00, 0xd8, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x09, 0xd1, 0x43, 0x78, 0x45, 0x5