Skip to content

Instantly share code, notes, and snippets.

@jzbor
jzbor / tlp.conf
Created March 16, 2022 01:57
X1 Carbon 6th Gen TLP Configuration
# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration (version 1.4)
# See full explanation: https://linrunner.de/tlp/settings
#
# Settings are read in the following order:
#
# 1. Intrinsic defaults
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
# 3. /etc/tlp.conf - User configuration (this file)
#
@jzbor
jzbor / .vimrc
Created October 22, 2021 07:49
A custom vimrc
" ==== . V I M R C ====
" Disable polyglot for md (vimwiki)
let g:polyglot_disabled = ['markdown']
" YCM filetypes (has to be before plug hooks)
let ycm_types = {
\ 'python': 1,
\ 'cpp': 1,
\ 'cs': 1,
@jzbor
jzbor / dwm-riodraw-6.2.diff
Created February 10, 2021 23:13
[PATCH] Adding rio-like drawing (requires slop; backported from instantWM)
From 94a52292929bffe9723178601a542fbb118dccc1 Mon Sep 17 00:00:00 2001
From: jzbor <jzbor@posteo.net>
Date: Wed, 10 Feb 2021 23:38:41 +0100
Subject: [PATCH] Adding rio-like drawing (requires slop; backported from instantWM)
---
config.def.h | 2 ++
dwm.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 81 insertions(+)
@jzbor
jzbor / riot.sh
Last active March 8, 2021 18:37
Simple script to provide rio-like drawing functionallity for any X-WM (only works if the window is already floating)
#!/bin/sh
#
# Author: jzbor
# Dependencies: xdo, xwininfo (optional), xdg-xmenu (optional), xmenu (optional
#
# Usage:
# riot.sh
# riot.sh xterm
# riot.sh --focused
# riot.sh --select
@jzbor
jzbor / perf_report.txt
Last active November 30, 2020 20:46
Perf report for picom (issue #505)
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 33K of event 'cycles:u'
# Event count (approx.): 34189895039
#
# Overhead Command Shared Object Symbol
# ........ ............ ........................... ..................................................
@jzbor
jzbor / paccache_outdated.hook
Last active October 11, 2022 13:08
Pacman hooks to clean old package cache
# /etc/pacman.d/hooks/paccache_outdated.hook
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Cleaning pacman cache (outdated versions)