Skip to content

Instantly share code, notes, and snippets.

@rszyma
rszyma / kanata-tray-schema.json
Last active March 6, 2024 21:39
kanata-tray config.toml schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"preset": {
"type": "object",
"properties": {
"kanata_executable": {
"type": "string",
"description": "A path to a kanata executable."
},
@rszyma
rszyma / increment_version.sh
Created February 3, 2024 09:26
shell-semver script for vscode-kanata
#!/bin/bash
# Increment a version string using Semantic Versioning (SemVer) terminology.
# Parse command line options.
while getopts ":Mmp" Option
do
case $Option in
M ) major=true;;
@rszyma
rszyma / xkb_polish_colemak
Last active August 6, 2023 21:16
Polish Colemak-DHm xkb keymap
// Append content of this file to /usr/share/X11/xkb/symbols/pl
// To show custom layouts in system keyboard options,
// you need to modify /usr/share/X11/xkb/rules/evdev.xml
xkb_symbols "colemak_dhm_normalangle_ansi" {
name[Group1]= "Polish (Colemak-DHm) [normal angle]";
@rszyma
rszyma / obsidian_hide_titlebar_on_maximize.md
Last active February 9, 2022 22:45
Obsidian css + javascript mod to auto hide titlebar when the window is maximized.

Installation:

  1. Enable CSS Snippets: Options > Appearance > CSS Snippets
  2. Create a new css file in the snippets folder with the following content:
.body-fullscreen {
  padding-top: 0 !important;
}
.titlebar-fullscreen {
  display: none !important;
}