Skip to content

Instantly share code, notes, and snippets.

@ishtob
ishtob / qubes3.2-hidpi.rst
Created September 30, 2018 22:16 — forked from enkore/qubes3.2-hidpi.rst
How to Hi-DPI with Qubes R3.2 and KDE

I use KDE in dom0, it looks much better than XFCE and is imho much easier to use (type-ahead search in the start menu for starters). Also, contrary to XFCE, which is based on Gtk2, even the relatively old version shipped in dom0 has decent Hi-DPI support, as opposed to none at all in XFCE. The best gtk2 can do is scale in 100 % (!) steps.

Hi-DPI is still a bit cumbersome, especially if you switch between lo DPI and hi DPI (eg. builtin screen and external screen).

@ishtob
ishtob / main.c
Last active April 15, 2018 01:51
mitosis-mod
//#define COMPILE_RIGHT
#define COMPILE_LEFT
#include "mitosis.h"
#include "nrf_drv_config.h"
#include "nrf_gzll.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#include "nrf_drv_clock.h"
@echo on
set currentdir=%cd%
cd C:\Program Files (x86)\Windows Kits\10\Tools\x64
devcon.exe disable "PCI\VEN_1002&DEV_687F"
timeout /t 5
devcon.exe enable "PCI\VEN_1002&DEV_687F"
timeout /t 5
cd C:\xmr-stak-amd
START xmr-stak-amd.exe
FOR /L %%i IN (1,1,100) DO (
@echo on
set currentdir=%cd%
cd C:\Program Files (x86)\Windows Kits\10\Tools\x64
devcon.exe disable "PCI\VEN_1002&DEV_687F"
timeout /t 5
devcon.exe enable "PCI\VEN_1002&DEV_687F"
timeout /t 5
cd C:\miners
OverdriveNTool.exe -r0 -r1 -r2 -p0Vega56-0 -p1Vega56-1 -p2Vega56-2
timeout /t 5
void backlight_effect_solid_reactive(void)
{
// Relies on hue being 8-bit and wrapping
for ( int i=0; i<DRIVER_LED_TOTAL; i++ )
{
uint16_t offset2 = g_key_hit[i]<<2;
// stabilizer LEDs use spacebar hits
if ( i == 42 || // LC6, LD13
#include "lets_split.h"
#include "action_layer.h"
#include "eeconfig.h"
#ifdef AUDIO_ENABLE
#include "audio.h"
#endif
extern keymap_config_t keymap_config;
//Following line allows macro to read current RGB settings
extern rgblight_config_t rgblight_config;
#ifndef REV2_H
#define REV2_H
#include "../lets_split.h"
//void promicro_bootloader_jmp(bool program);
#include "quantum.h"
//void promicro_bootloader_jmp(bool program);
#include "lets_split.h"
#include "action_layer.h"
#include "eeconfig.h"
#ifdef AUDIO_ENABLE
#include "audio.h"
#endif
extern keymap_config_t keymap_config;
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.