Turns any cup of coffee priced numpad into a macro-keyboard.
- Put or link
shitpadfile to~/.config/xkb/symbols,$ ln -s /usr/share/X11/xkb/keycodes/evdev ~/.config/xkb/symbols/shitpad - Config sway as below
| // ==UserScript== | |
| // @name Sway Popup Window Detector | |
| // @namespace https://dluciv.name/ | |
| // @version 0.1 | |
| // @description Detect "pop-up" windows because for some reason Wayland doesn't have a built-in way to do it??! | |
| // @author Maddison Hellstrom <github.com/b0o> | |
| // @author Dmitry Luciv <github.com/dluciv> | |
| // @include /^.*$/ | |
| // @grant none | |
| // @run-at document-start |
| #!/bin/zsh | |
| # Usage: rofi -modes xkdtype:rofi-xkb-type -show xkdtype | |
| # echo $(date) RETV: $ROFI_RETV INFO: $ROFI_INFO ARGS: $* >>/tmp/rofi-xkb-type.log | |
| nil="\0" | |
| sep="\x1f" | |
| # detect backend | |
| if [[ -n $WAYLAND_DISPLAY ]]; then |
| #!/usr/bin/env zsh | |
| mac_max_set=100.0 | |
| mac_max_get=100.0 | |
| # $ brew install blackhole-2ch switchaudio-osx | |
| # https://github.com/ExistentialAudio/BlackHole | |
| # https://github.com/deweller/switchaudio-osx | |
| # made my day. | |
| # But when first one is used within default output of multi-output device, AppleScript Fails to get output volume. |
| /ipv6 firewall filter | |
| add action=accept chain=input comment="Allow established connections" connection-state=established disabled=no | |
| add action=accept chain=input comment="Allow related connections" connection-state=related disabled=no | |
| add action=accept chain=input comment="Allow ICMP" disabled=no protocol=icmpv6 | |
| add action=accept chain=input comment="Allow UDP" disabled=no protocol=udp | |
| add action=drop chain=input comment="" disabled=no | |
| add action=accept chain=forward comment="Allow any to internet" disabled=no out-interface=sit1 | |
| add action=accept chain=forward comment="Allow established connections" connection-state=established disabled=no | |
| add action=accept chain=forward comment="Allow related connections" connection-state=related disabled=no | |
| add action=accept chain=forward comment="Allow ICMP" disabled=no protocol=icmpv6 |
| #!/usr/bin/env ruby | |
| # Author: Dmitry V. Luciv | |
| # License: WTFPL 2.0 http://wtfpl.net | |
| =begin | |
| When typing many \bibitem's manually, instead of using BibTeX and friends, | |
| it often becomes a pain to sort the bibliography in case when it should | |
| appear in order of citations. |
| #!/usr/bin/env python3 | |
| # -*- mode: python, coding: utf-8 -*- | |
| # | |
| # This incredible piece of code makes git a bit Polish, a bit Western Ukrainian, | |
| # пше прошу пана | |
| # Joke is based on fact that 'git' is 'пше' in qwerty/йцукен layouts | |
| # | |
| # (c) 2013 Alexander Solovyov under terms of WTFPL | |
| # (c) 2015 Dmitry Luciv under terms of WTFPL v 2 -- Python 3 translation |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |