I hereby claim:
- I am grafov on github.
- I am grafov (https://keybase.io/grafov) on keybase.
- I have a public key ASAUg76BXpiydF8Zf2e2qaTYNRo1cPkHNvrOB5cK7-Z0DQo
To claim this, I am signing this object:
// Not for copypaste! It is only part of keymap.c! | |
// You should adapt the code above for your keyboard especially for your layers. | |
// WARNING! You could be banned in Valve games because the feautre treated by Valve as a cheat. | |
// | |
// It uses two user hooks: layer_state_set_user() and process_record_user() as defined by QMK. | |
// Example enum with layers. | |
enum layers { | |
DEFAULT_LAYER, | |
GAME_LAYER, |
(require 'ansi-color) | |
;; Shows haredoc for the selected or word. | |
(defun haredoc () | |
"Run the haredoc with the current word under the cursor and display | |
the results in a new buffer." | |
(interactive) | |
(let* ((current-word | |
(if (use-region-p) ;; Use region or the current word | |
(setq current-word (buffer-substring-no-properties (region-beginning) (region-end))) |
# Copypaste it to your ~/.config/sway/config | |
set $TBALL 1149:4128:Kensington______Kensington_Expert_Mouse | |
# Turns on scrolling with the ball when right bottom button pressed. | |
input $TBALL { | |
scroll_method on_button_down | |
scroll_button 273 | |
} |
#!/bin/bash | |
sudo cpupower frequency-set -g performance >/dev/null | |
xrandr --output HDMI-0 --mode 1920x1080 --rate 60 --primary --output DVI-I-1 --off | |
feh -d --recursive --randomize --bg-scale /usr/share/backgrounds /usr/share/wallpapers 2>/dev/null | |
killall compton | |
nvidia-settings -l | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path" | |
"path/filepath" | |
"strings" |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path" | |
"path/filepath" | |
"strings" |
# It uses fzf: https://github.com/junegunn/fzf | |
function fcd | |
cd ~ | |
if [ (count $argv) -ge 1 ] | |
cd (dirname (fzf -q "$argv")) | |
return | |
end | |
cd (dirname (fzf)) | |
end |
#!/bin/dash | |
AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3" | |
#OPTS='-z 1.5 -u "$AGENT"' | |
OPTS="-z 1.8" | |
HISTORY=.rofi-wwwsearch-history | |
if [ "$1" = "" ] | |
then |
#!/bin/dash | |
AGENT="Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3" | |
#OPTS=-u "$AGENT" -z 1.5 | |
OPTS="-z 1.5" | |
HISTORY=.rofi-www-history | |
if [ "$1" = "" ] | |
then | |
URL=`cat $HISTORY | rofi -hide-scrollbar -dmenu -p "URL: "` |
I hereby claim:
To claim this, I am signing this object: