diff options
| author | 2022-03-22 13:04:43 +0000 | |
|---|---|---|
| committer | 2022-03-22 13:04:43 +0000 | |
| commit | 4e6b5a9bf59e4f8aa7193a1304191495ee5c2cc9 (patch) | |
| tree | 7df7d0ac17d97506f049f4feb64805ed4837efc4 /bin | |
| parent | c8b9a5c77ff1ec11f7d773ba66f036f43e6e46ab (diff) | |
aliases: alias para configuração do kmonad para o akko
kbd_config: script levemente melhor trabalhado
autostart: mudança do modificador para Mod4, e criação do launch com
Mod1; adicionadas regras melhores; alias para inscrições no youtube-fzf;
atalho de explodir e rotacionar os frames; mudança de atalhos de Mod1
para launch
bar: script POSIX melhorado, e adição do underline na barra; a barra
agora mostra a tag atual
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/akko_config | 13 | ||||
| -rwxr-xr-x | bin/futurize | 33 | ||||
| -rwxr-xr-x | bin/kbd_config | 4 | ||||
| -rwxr-xr-x | bin/pasteurize | 33 |
4 files changed, 81 insertions, 2 deletions
diff --git a/bin/akko_config b/bin/akko_config new file mode 100755 index 0000000..baf06f4 --- /dev/null +++ b/bin/akko_config @@ -0,0 +1,13 @@ +#!/bin/sh + +pgrep -x xcape && pkill -x xcape +setxkbmap -layout us + +kbd="/dev/input/by-id/usb-ROYUAN_AKKO_Multi-modes_Keyboard-B-event-kbd" +file="$HOME/.config/kmonad/akko.kbd" + +if [ -L "$kbd" ]; then + kmonad "$file" & +else + echo 'keyboard not connected' +fi diff --git a/bin/futurize b/bin/futurize new file mode 100755 index 0000000..55e95bf --- /dev/null +++ b/bin/futurize @@ -0,0 +1,33 @@ +#!/usr/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'future==0.18.2' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('future==0.18.2', 'console_scripts', 'futurize')()) diff --git a/bin/kbd_config b/bin/kbd_config index 4a3c8ef..04395d0 100755 --- a/bin/kbd_config +++ b/bin/kbd_config @@ -7,5 +7,5 @@ export DISPLAY XAUTHORITY HOME xset r rate 250 40 setxkbmap -model abnt2 -layout br -variant abnt2 -option compose:ralt -option ctrl:nocaps -option altwin:menu_win -xmodmap .Xmodmap -pgrep -x xcape || xcape -e 'Control_L=Escape;Hyper_L=Tab;Hyper_R=ccedilla' +xmodmap "$HOME/.Xmodmap" +pgrep -x xcape || xcape -e 'Control_L=Escape;Super_L=Tab;Super_R=ccedilla' diff --git a/bin/pasteurize b/bin/pasteurize new file mode 100755 index 0000000..94d0042 --- /dev/null +++ b/bin/pasteurize @@ -0,0 +1,33 @@ +#!/usr/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'future==0.18.2' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('future==0.18.2', 'console_scripts', 'pasteurize')()) |
