Skip to content

Instantly share code, notes, and snippets.

-- Set match settings
local m = {}
-- difficulty: nil - game choice, 0 - beginner, 1 - amateur, ... 6 - Legend
m.difficulty = 6
-- extra time: nil - game choice, 0 - off, 1 - on
m.extra_time = 0
{
"languageserver": {
"haskell": {
"command": "hie-wrapper",
"rootPatterns": [
".stack.yaml",
"cabal.config",
"package.yaml"
],
"filetypes": [
@rektrex
rektrex / tmux.conf
Last active October 10, 2019 12:56
tmux config
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*:Tc"
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape
set -sg escape-time 0
set-option -g status-position bottom
bind-key -n S-Up set-option -g status
bind c new-window -c "#{pane_current_path}"
@rektrex
rektrex / dunstrc
Last active October 10, 2019 12:55
dunst config
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
@rektrex
rektrex / config.py
Created September 27, 2019 20:24
qutebrowser config
# Autogenerated config.py
# Documentation:
# qute://help/configuring.html
# qute://help/settings.html
# Uncomment this to still load settings configured via autoconfig.yml
# config.load_autoconfig()
# Enable JavaScript.
# Type: Bool
bind gd tabdetach
diff --git a/src/excmds.ts b/src/excmds.ts
index 4ec3249..62c1dc6 100644
--- a/src/excmds.ts
+++ b/src/excmds.ts
@@ -153,7 +153,6 @@ import { CmdlineCmds as BgCmdlineCmds } from "@src/background/commandline_cmds"
import { EditorCmds as BgEditorCmds } from "@src/background/editor"
import { messageActiveTab } from "@src/lib/messaging"
import { EditorCmds } from "@src/background/editor"
-import { flatten } from "@src/lib/itertools"
import { firefoxVersionAtLeast } from "@src/lib/webext"
set selection-clipboard clipboard
set window-title-home-tilde "true"
set font "Iosevka Term 12"
set default-bg "#282c34" #00
set default-fg "#202020" #01
set statusbar-fg "#FFFFFF" #04
set statusbar-bg "#383c4a" #01
#!/bin/bash
scrot /tmp/screen.png
convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
[[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png
i3lock -u -e -i /tmp/screen.png
rm /tmp/screen.png
@rektrex
rektrex / i3config
Last active September 27, 2019 20:22
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!