Skip to content

Instantly share code, notes, and snippets.

Change Mod1 key to the Windows key in config.h
dwm's documentation refers to Mod1 as the modifier key that you must press to issue commands to it. On most keyboards, Mod1 is mapped to the left Alt key. Most new keyboards now come equipped with the Windows key. Since no known UNIX/X applications are known to use the Windows key, it is an excellent alternative mapping to issue commands to dwm.
In config.h, under the comment /* key definitions */, you can find the line
#define MODKEY Mod1Mask
In order to change dwm's modifier key to the Windows key, you can simply change its value definition to Mod4Mask.
#define MODKEY Mod4Mask
The following patch also produces the same result:
@bbtdev
bbtdev / lenovo-thinkpad-bluetooth-keyboard-with-trackpoint-linux-pairing
Last active August 3, 2019 09:11
lenovo-thinkpad-bluetooth-keyboard-with-trackpoint-linux-pairing
Another workaround for this is:
1. run sudo hcidump -at
2. launch bluetooth-wizard, select the device (keyboard) and click "Continue"
3. watch the output from hcidump in terminal, you'll see Passcode: somerandompasscode
4. type this passcode on bt keyboard and press ENTER
5. done, your keyboard is successfully paired
Problem is IMHO with bluetooth-wizard UI not displaying the popup with passcode prompt.
press Comman / or Fn Shift F1
it shows system keyboard shortcuts
if you are in an app(examle samsung internet) first it shows the app keyboard shortcuts
https://www.airbnb.com/s/siem-reap/homes?refinement_paths[]=%2Fhomes&current_tab_id=home_tab&selected_tab_id=home_tab&search_type=filter_change&place_id=ChIJeaiRjJoWEDER-rvlPvmqQKk&screen_size=large&checkin=2020-05-01&checkout=2020-05-31&room_types[]=Private%20room&amenities[]=5&amenities[]=4&amenities[]=47&amenities[]=78&amenities[]=7&price_max=2321
@bbtdev
bbtdev / wifi-cli-connection.txt
Created February 5, 2020 22:12 — forked from debxp/wifi-cli-connection.txt
Wifi connection from command line after a Debian minimal install
Create the file 'wpa_supplicant.conf'...
$ sudo nano /etc/wpa_supplicant.conf
Put the following in ti:
network={
ssid="your_wifi_name"
psk="your_wifi_password"
}
In the man page, we find out that word splitting is an expansion:
"There are seven kinds of expansion performed: brace expansion, tilde expansion, parameter and variable expansion,
command substitution, arithmetic expansion, WORD SPLITTING*, and pathname expansion.*
Also it describes that this expansion acts on: "results of parameter expansion, command substitution,and arithmetic
expansion that did not occur within double quotes".
Confirmed also by the BashGuide: "Word splitting is performed on the results of almost all unquoted expansions."
In both the guide and man page is specified that Word splitting is dependent on the IFS variable:
Ordering::Item.joins(:category)
.where(ordering_categories: {categorizable_type: "Ordering::Special"})
# ^ vezi cum e ordering_categories si nu doar categories, deci fac join la doar categories
Ordering::Category
joins("RIGHT JOIN ordering_specials ON ordering_specials.id = ordering_categories.id")
# join si pun eu fieldul de join
.where("ordering_specials.locked = ?", true)
.where("ordering_specials.menuable_type = ?", "Restaurant")
@bbtdev
bbtdev / elixir-rabbitmq-delayed-messages
Created June 29, 2020 06:28
elixir-rabbitmq-delayed-messages
defmodule Testing do
@moduledoc """
Documentation for `Testing`.
"""
@doc """
Hello world.
## Examples
https://thepopularman.com/how-i-stopped-hair-loss-and-regrew-hair-for-19-years-and-going-strong/
saw palmetto
bioperine -> This is because black pepper extract has been shown to render topical chemicals more effective