Skip to content

Instantly share code, notes, and snippets.

@ar-lex
ar-lex / steam.sh
Last active June 3, 2023 03:15
Wrapper for Steam client to have correct scaling with Plasma Wayland
#!/usr/bin/env sh
if [ -z "$GDK_SCALE" ]; then
command -v wayland-info > /dev/null 2>&1
if [ $? -ne 0 ]; then
export GDK_SCALE=1
else
export GDK_SCALE=$(wayland-info | grep scale: | cut -d' ' -f6 | cut -d',' -f1 | sort -r -u | tr '\n' ' ' | cut -d' ' -f1)
fi
fi
@ar-lex
ar-lex / konsole-breeze-dark.css
Last active August 9, 2019 21:45
A style for Konsole tab bar that matches Breeze Dark Plasma theme
QTabBar,
QTabBar::tab
{
height: 20;
padding: 4;
border-top-width: 2;
border-top-style: solid;
border-top-color: #3b4045;
background-color: #232627;
color: #eff0f1;
@ar-lex
ar-lex / lightroom-setup.sh
Last active July 24, 2017 20:29
lightroom-setup.sh
#!/bin/bash
WPREFIX=$HOME/.wine-lightroom
LR_URL=http://download.adobe.com/pub/adobe/lightroom/win/5.x/Lightroom_5_LS11_win_5_7_1.exe
LR_SHA256=72bbe9c488bc685dc21ac0f9833276d552df231df4284740e7fb5b780ec95b3a
SRGB_URL=https://raw.githubusercontent.com/xorgy/graphicsmagick/master/profiles/sRGB%20Color%20Space%20Profile.ICM
SRGB_SHA256=2b3aa1645779a9e634744faf9b01e9102b0c9b88fd6deced7934df86b949af7e
@ar-lex
ar-lex / antox-crash.log
Created August 10, 2014 18:25
Antox unregistered crash on exit log
D/AndroidRuntime( 7558): Shutting down VM
W/dalvikvm( 7558): threadid=1: thread exiting with uncaught exception (group=0x41c5fce0)
E/AndroidRuntime( 7558): FATAL EXCEPTION: main
E/AndroidRuntime( 7558): Process: im.tox.antox, PID: 7558
E/AndroidRuntime( 7558): java.lang.NullPointerException
E/AndroidRuntime( 7558): at im.tox.antox.fragments.RecentFragment.onResume(RecentFragment.java:72)
E/AndroidRuntime( 7558): at android.support.v4.app.Fragment.performResume(Fragment.java:1543)
E/AndroidRuntime( 7558): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:974)
E/AndroidRuntime( 7558): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115)
E/AndroidRuntime( 7558): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
I/ActivityManager( 2243): Displayed com.android.gallery3d/.app.MovieActivity: +195ms
I/libblt_hw( 1774): Library closed (handle = 0, fd = 28)
I/libblt_hw( 1774): Library closed (handle = 6, fd = 53)
I/libblt_hw( 1774): Library closed (handle = 5, fd = 50)
D/dalvikvm( 4153): GC_EXPLICIT freed 119K, 55% free 3496K/7696K, paused 3ms+8ms, total 44ms
I/libblt_hw( 1774): Library opened (handle = 0, fd = 40)
D/ ( 4855): In STEOMXCodecsPlugin:: makeComponentInstance
D/ ( 4855): OMX.ST.VFM.H264Dec
W/STE-SYSLOG-mediaserver( 4855): Initializing ste-syslog
I/STE-SYSLOG-mediaserver( 4855): Logging to logcat messages from priority 5 (ANDROID_LOG_WARN)
@ar-lex
ar-lex / local_manifest.xml
Last active December 24, 2015 05:39
Local manifest to build CM-10.1 for GT-i8160.
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="CyanogenMod/android_frameworks_base" />
<remove-project name="CyanogenMod/android_frameworks_native" />
<remove-project name="CyanogenMod/android_hardware_libhardware" />
<remove-project name="CyanogenMod/android_hardware_libhardware_legacy" />
<remove-project name="CyanogenMod/android_packages_apps_Phone" />
<project path="frameworks/base" name="TeamCanjica/android_frameworks_base" remote="github" revision="cm-10.1" />
<project path="frameworks/native" name="TeamCanjica/android_frameworks_native" remote="github" revision="cm-10.1" />
<project path="hardware/libhardware" name="TeamCanjica/android_hardware_libhardware" remote="github" revision="cm-10.1" />
D/dalvikvm( 2106): GC_FOR_ALLOC freed 2111K, 24% free 8732K/11476K, paused 84ms, total 84ms
I/AudioService( 2106): AudioFocus requestAudioFocus() from android.media.AudioManager@419bf508
I/Choreographer( 3701): Skipped 33 frames! The application may be doing too much work on its main thread.
I/ActivityManager( 2106): Displayed com.android.gallery3d/.app.MovieActivity: +313ms
D/ ( 3900): In STEOMXCodecsPlugin:: Constructor
D/ ( 3900): In STEOMXCodecsPlugin:: dlopen passed
I/ENSLoader( 3900): Scanning directory /system/lib/ste_omxcomponents/ for STE ENS based components
W/ENSLoader( 3900): /system/lib/ste_omxcomponents/libspeech_processing.so is not loadable by STE ENS component loader
E/ENSLoader( 3900): failed to load /system/lib/ste_omxcomponents/libstagefright_soft_ste_aacdec.so: Cannot load library: soinfo_relocate(linker.cpp:1013): cannot locate symbol "_ZN7android7hexdumpEPKvj" referenced by "libstagefright_soft_ste_aacdec.so"...
W/ENSLoader( 3900): /system/lib/ste_omxcomponents/libstage
@ar-lex
ar-lex / fonts.conf
Created August 15, 2013 20:49
~/.config/fontconfig/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Times New Roman</family>
</prefer>
</alias>
<alias>
@ar-lex
ar-lex / Ubuntu.colorscheme
Last active January 9, 2022 09:41
~/.kde/share/apps/konsole/Ubuntu.colorscheme - Ubuntu Color Scheme for Konsole.
[Background]
Color=48,10,36
MaxRandomHue=0
MaxRandomSaturation=0
MaxRandomValue=0
[BackgroundIntense]
Color=89,18,67
[Color0]
@ar-lex
ar-lex / Ubuntu.colors
Last active April 24, 2017 23:33
Ubuntu Colour Palette for KDE.
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]