This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Author : Aditya Shakya | |
* Mail : adi1090x@gmail.com | |
* Github : @adi1090x | |
* Twitter : @adi1090x | |
* | |
*/ | |
configuration { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"configversion":"2.0","nmaps":{"/":"fillcmdline find","?":"fillcmdline find -?","N":"findnext -1",",<Space>":"nohlsearch","n":"findnext 1","j":"scrollpage 0.5","s":"scrollpage 0.5","d":"scrollpage -0.5","x":"tabclose","a":"hint -b","m":"bmark","h":"tabprev","l":"tabnext",";x":"hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet(\"xdotool mousemove --sync \" + window.devicePixelRatio * pos.x + \" \" + window.devicePixelRatio * pos.y + \"; xdotool click 1\")}",";X":"hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet(\"xdotool mousemove --sync \" + window.devicePixelRatio * pos.x + \" \" + window.devicePixelRatio * pos.y + \"; xdotool keydown ctrl+shift; xdotool click 1; xdotool keyup ctrl+shift\")}","<A-p>":"pin","<A-m>":"mute toggle","<F1>":"help","o":"fillcmdline open","O":"current_url open","w":"fillcmdline winopen","W":"current_url winopen","t":"fillcmdline tabopen","]]":"followpage next","[[":"followpage prev","[c":"urlincrement -1","]c":"urlinc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimpy, std/macros, ast_pattern_matching, sequtils, unittest, strutils | |
let py = pyBuiltinsModule() | |
macro pyInjectMethods*(obj, memFuncs: untyped): untyped = | |
obj.expectKind nnkIdent | |
memFuncs.expectKind nnkStmtList | |
var stmts = newStmtList() | |
for mem_func in memFuncs.children: | |
memFunc.matchAst: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimpy, ./macros # the macros in the other GIST | |
assert(pyImport("sys").version_info.major.to(int) >= 3) | |
let | |
lark = pyImport("lark") | |
idt = pyImport("lark.indenter") | |
tree_grammar = """ | |
?start: _NL* tree | |
tree: NAME _NL [_INDENT tree+ _DEDENT] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: ft=cfg | |
# | |
# This is the configuration file of "rifle", ranger's file executor/opener. | |
# Each line consists of conditions and a command. For each line the conditions | |
# are checked and if they are met, the respective command is run. | |
# | |
# Syntax: | |
# <condition1> , <condition2> , ... = command | |
# | |
# The command can contain these environment variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this template is borrowed from nvim-lspconfig | |
local on_windows = vim.loop.os_uname().version:match("Windows") | |
local function join_paths(...) | |
local path_sep = on_windows and "\\" or "/" | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end | |
vim.cmd([[set runtimepath=$VIMRUNTIME]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
(progn ;;init forms | |
(ros:ensure-asdf) | |
#+quicklisp(ql:quickload '(swank com.google.base asdf uiop cffi unix-opts) :silent t)) | |
(in-package :cl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ============================================================================= | |
// | |
// Waybar configuration | |
// | |
// Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration | |
// | |
// ============================================================================= | |
{ | |
// ------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this template is borrowed from nvim-lspconfig | |
local on_windows = vim.loop.os_uname().version:match("Windows") | |
local function join_paths(...) | |
local path_sep = on_windows and "\\" or "/" | |
local result = table.concat({ ... }, path_sep) | |
return result | |
end | |
vim.cmd([[set runtimepath=$VIMRUNTIME]]) |
OlderNewer