Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View cristianovitorino's full-sized avatar

Cristiano Vitorino cristianovitorino

View GitHub Profile
@cristianovitorino
cristianovitorino / gmk67_linux.md
Created February 6, 2024 22:42 — forked from Joao-Peterson/gmk67_linux.md
Using GMK67 keyboard in linux with key remaps!

GMK67 with Linux!

Recently i bought a zuoya gmk67 keyboard, it doesn't have a function keys row and has a know for volume control. Unfortunately, if you plug your gmk67 in a linux machine you will notice that using fn+1 will not produce f1 as expected, it will produce a screen brightness decrease, and if you change the physical switch in the back for the macOS mode, the function keys now work, but the modifier keys don't, quite stressful.

Fear not, you can either remap the keys, as in this gist, or alter your system configuration so the keyboard functions normally, as seen in the gist Using GMK67 keyboard in linux. Function keys not working with Fn!.

For this gist, we can simply remap some keys while the physical switch in the back is in windows mode. For that let's install keyd, a remapping tool daemon.

Install

@cristianovitorino
cristianovitorino / gmk67_linux.md
Created February 6, 2024 22:33 — forked from Joao-Peterson/gmk67_linux.md
Using GMK67 keyboard in linux. Function keys not working with Fn!

GMK67 with Linux!

Recently i bought a zuoya gmk67 keyboard, it doesn't have a function keys row and has a know for volume control. Unfortunately, if you plug your gmk67 in a linux machine you will notice that using fn+1 will not produce f1 as expected, it will produce a screen brightness decrease, and if you change the physical switch in the back for the macOS mode, the function keys now work, but the modifier keys don't, quite stressful.

Fear not, you can either alter your system configuration so the keyboard functions normally, as in this gist, or remap the keys, as seen in the gist Using GMK67 keyboard in linux with key remaps!.

For this gist we are going to alter the configuration for the apple hid driver on linux, since this keyboard uses it, and alter the functionality of the Fn key.

This is tested on archlinux, for any other distro you might have to figure out yourself the correponding commands!

@cristianovitorino
cristianovitorino / gmk67-manual.md
Created January 25, 2024 13:33 — forked from Joao-Peterson/gmk67-manual.md
GMK67 manual (English)
@cristianovitorino
cristianovitorino / .font.conf
Created November 26, 2021 06:20 — forked from AhmedMostafa16/.font.conf
My .font.conf for perfect font rendering
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>~/.fonts</dir>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@cristianovitorino
cristianovitorino / Emojis.md
Last active April 14, 2020 23:17 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup by Rafael Xavier de Souza - rxaviers

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@cristianovitorino
cristianovitorino / Marks + Scratchpad = Awesome.md
Last active February 29, 2020 02:56
Marks + Scratchpad = Awesome

Author: lygaret

By creating bindings that set a mark on a window, you can manage individual windows in the scratchpad, and have bindings that hide/show a particular window.

bindsym $mod+Shift+Mod4+0 mark "alpha", move scratchpad
bindsym $mod+Mod4+0 [con_mark="alpha"] scratchpad show

With those two bindings, I can move a window into the scratchpad, but do so with the ability to explicitly call it back. I have the full number row set up that way, and also a bunch of assignments to do this to certain apps.

@cristianovitorino
cristianovitorino / Space as Modifier for i3-gaps.md
Last active February 28, 2020 13:40
[i3-gaps] Space as Modifier for i3-gaps
Author: Nilo Dantas - n1lo
Revision: Cristiano Vitorino - cristianovitorino
Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post
How to use Cedilha on US Keyboard on ArchLinux
###################################################################################################
1) Put: English (US, alt. intl.) on your system keyboard layout.
###################################################################################################