The easy one.
void bubblesort(int *arr)
{
sort sort sort;
#! /usr/bin/env nix-shell | |
#! nix-shell -i python2 -p python27 | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2014 Alexey Kutepov a.k.a. rexim | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation files | |
# (the "Software"), to deal in the Software without restriction, |
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
#!/usr/bin/env bash | |
# This is my switch-focus-or-create-ws-script. If there is no more window left | |
# or right of the current one will switch to the next workspace. So far, at | |
# least, when moving to the right, this leads to creation of new workspaces. | |
out="$(hyprctl dispatch movefocus $1)" | |
winno_on_cur_ws="$(hyprctl workspaces -j | \ | |
jq '.[] | select(.id == '$(hyprctl activeworkspace -j | jq '.id')')' | \ | |
jq '.windows')" |