Merge branch 'textadept'

This commit is contained in:
Nico 2022-03-04 20:40:49 +00:00
commit 298d57b757
30 changed files with 5421 additions and 643 deletions

View File

@ -3,13 +3,12 @@ if status is-interactive
end
set -gx PATH ~/.local/bin ~/.luarocks/bin ~/.cargo/bin ~/projects/go/bin ~/games/launchers ~/x-tools/arm-kobo-linux-anueabihf/bin $PATH
set -gx EDITOR micro
set -gx VISUAL micro
set -gx EDITOR textadept
set -gx VISUAL textadept
set -gx VITASDK ~/.local/vitasdk
set -gx LEDGER_FILE ~/Documents/hledger/personal.journal
set -gx GOPATH ~/projects/go
set -gx PSION_PREFIX ~/software/psion-prefix
alias v=micro
alias vw="cd ~/vimwiki && micro index.md"
alias yt="mpv --ytdl-format='bestvideo[height<=1080]+bestaudio'"
alias psion="export WINEPREFIX=$PSION_PREFIX"

View File

@ -0,0 +1,42 @@
color_0 = 1d1d 1f1f 2121
color_1 = c5c5 c8c8 c6c6
color_2 = 8181 a2a2 bebe
color_3 = b5b5 bdbd 6868
color_4 = cccc 6666 6666
color_5 = a3a3 6868 5a5a
color_6 = b2b2 9494 bbbb
color_7 = dede 9393 5f5f
color_8 = f0f0 c6c6 7474
color_9 = b5b5 bdbd 6868
color_10 = 8a8a bebe b7b7
color_11 = 8a8a bebe b7b7
color_12 = 8181 a2a2 bebe
color_13 = cccc 6666 6666
color_14 = 9696 9898 9696
color_15 = 9696 9898 9696
color_16 = 1d1d 1f1f 2121
color_17 = c5c5 c8c8 c6c6
color_18 = 8181 a2a2 bebe
color_19 = b5b5 bdbd 6868
color_20 = cccc 6666 6666
color_21 = a3a3 6868 5a5a
color_22 = b2b2 9494 bbbb
color_23 = dede 9393 5f5f
color_24 = f0f0 c6c6 7474
color_25 = b5b5 bdbd 6868
color_26 = 8a8a bebe b7b7
color_27 = 8a8a bebe b7b7
color_28 = 8181 a2a2 bebe
color_29 = cccc 6666 6666
color_30 = 9696 9898 9696
color_31 = 9696 9898 9696
color_256 = e0e0 e0e0 e0e0
color_257 = 9696 9898 9696
color_258 = c5c5 c8c8 c6c6
color_259 = 1d1d 1f1f 2121
color_260 = a3a3 6868 5a5a
color_261 = 8181 a2a2 bebe
color_262 = b5b5 bdbd 6868
color_263 = dede 9393 5f5f
color_264 = 9696 9898 9696
color_265 = cccc 6666 6666

View File

@ -1,4 +1,5 @@
{
"\u003cMouseRight\u003e\u003cMouseLeft\u003e": "lua:initlua.gotofile",
"Alt-/": "lua:comment.comment",
"Ctrl-J": "lua:initlua.zettelInsert",
"CtrlUnderscore": "lua:comment.comment",

View File

@ -1,6 +0,0 @@
configuration {
modi: "run,window";
theme: "sidebar-mod";
font: "FantasqueSansMono 16";
terminal: "termite";
}

View File

@ -1,143 +0,0 @@
/**
* Base16 Tomorrow Night ROFI Color theme
* User: Chris Kempson (http://chriskempson.com)
* Copyright: Andrea Scarpino
*/
* {
selected-normal-foreground: @lightbg;
foreground: rgba ( 197, 200, 198, 100 % );
normal-foreground: @foreground;
alternate-normal-background: @lightbg;
red: rgba ( 204, 102, 102, 100 % );
selected-urgent-foreground: @background;
blue: rgba ( 129, 162, 190, 100 % );
urgent-foreground: @red;
alternate-urgent-background: @lightbg;
active-foreground: @blue;
lightbg: rgba ( 40, 42, 46, 100 % );
selected-active-foreground: @background;
alternate-active-background: @lightbg;
background: rgba ( 29, 31, 33, 100 % );
alternate-normal-foreground: @foreground;
normal-background: @background;
lightfg: rgba ( 224, 224, 224, 100 % );
selected-normal-background: @lightfg;
border-color: @foreground;
spacing: 2;
separatorcolor: @foreground;
urgent-background: @background;
selected-urgent-background: @red;
alternate-urgent-foreground: @red;
background-color: rgba ( 29, 31, 33, 0 % );
alternate-active-foreground: @blue;
active-background: @background;
selected-active-background: @blue;
}
window {
background-color: @background;
border: 1;
padding: 5;
}
mainbox {
border: 0;
padding: 0;
}
message {
border: 1px dash 0px 0px ;
border-color: @separatorcolor;
padding: 1px ;
}
textbox {
text-color: @foreground;
}
listview {
fixed-height: 0;
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
spacing: 2px ;
scrollbar: false;
padding: 2px 0px 0px ;
}
element {
border: 0;
padding: 1px ;
}
element normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
element selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
element alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
element alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
scrollbar {
width: 4px ;
border: 0;
handle-color: @normal-foreground;
handle-width: 8px ;
padding: 0;
}
sidebar {
border: 2px dash 0px 0px ;
border-color: @separatorcolor;
}
button {
spacing: 0;
text-color: @normal-foreground;
}
button selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
inputbar {
spacing: 0px;
text-color: @normal-foreground;
padding: 1px ;
children: [ prompt,textbox-prompt-colon,entry];
}
case-indicator {
spacing: 0;
text-color: @normal-foreground;
}
entry {
spacing: 0;
text-color: @normal-foreground;
}
prompt {
spacing: 0;
text-color: @normal-foreground;
}
textbox-prompt-colon {
expand: false;
str: ":";
margin: 0px 0.3000em 0.0000em 0.0000em ;
text-color: inherit;
}

View File

@ -1,113 +0,0 @@
/**
* User: qball
* Copyright: Dave Davenport
*/
* {
text-color: #ffeedd;
background-color: rgba(0,0,0,0);
dark: #1d1f21;
// Black
black: #1d1f21;
lightblack: #1d1f21;
//
// Red
red: #cc6666;
lightred: #cc6666;
//
// Green
green: #b5bd68;
lightgreen: #b5bd68;
//
// Yellow
yellow: #f0c674;
lightyellow: #f0c674;
//
// Blue
blue: #81a2be;
lightblue: #81a2be;
//
// Magenta
magenta: #b294bb;
lightmagenta: #b294bb;
//
// Cyan
cyan: #8abeb7;
lightcyan: #8abeb7;
//
// White
white: #ffffff;
lightwhite: #ffffff;
//
// Bold, Italic, Underline
highlight: bold #ffffff;
}
#window {
height: 100%;
width: 30em;
location: east;
anchor: east;
border: 0px 0px 0px 0px;
text-color: @lightwhite;
}
prompt {
padding: 0px 8px 0px 0px;
}
#mode-switcher {
border: 2px 0px 0px 0px;
background-color: @lightblack;
padding: 4px;
}
#button selected {
border-color: @lightgreen;
text-color: @lightgreen;
}
#inputbar {
background-color: @lightblack;
text-color: @lightgreen;
padding: 4px;
border: 0px 0px 2px 0px;
}
#mainbox {
expand: true;
background-color: #1c1c1cee;
spacing: 1em;
}
#listview {
padding: 0em 1em 1em 1em;
dynamic: false;
lines: 0;
}
#element {
padding: 0em 0em 0.2em 0em;
}
#element selected normal {
background-color: @blue;
}
#element normal active {
text-color: @lightblue;
}
#element normal urgent {
text-color: @lightred;
}
#element alternate normal {
}
#element alternate active {
text-color: @lightblue;
}
#element alternate urgent {
text-color: @lightred;
}
#element selected active {
background-color: @lightblue;
text-color: @dark;
}
#element selected urgent {
background-color: @lightred;
text-color: @dark;
}

View File

@ -1,5 +0,0 @@
#!/usr/bin/python
from sys import argv
from os.path import basename
print("# " + basename(argv[1]).replace("_"," ").split(".")[:1][0] + "\n")

View File

@ -1,3 +0,0 @@
#!/bin/bash
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false

View File

@ -1,32 +0,0 @@
#!/usr/bin/env python
"""
Generates an index of the connections between items in the zettel.
"""
import os
import re
base = "/home/nico/vimwiki/zettel/"
edges = [] # an 'edge' is a tuple of a point and a destination.
link_regex = re.compile(r'\[\[(.*?)\]\]')
# search is a function that is called recursively to build the list of reachable files
def search(f):
if os.path.exists(f) and f.split(".")[1] == "md":
fp = open(f,"r")
r = fp.read()
links = link_regex.findall(r)
for l in links: # all files mentioned as links in this one
edge = (f, l) # tuple of (src, dest)
if not (edge in edges):
edges.append(edge)
search(os.path.join(base, l))
search(os.path.join(base,"index.md"))
with open(os.path.join(base,"index"),"w+") as i:
for e in edges:
i.write(f"{os.path.basename(e[0])} {e[1]}\n")

View File

@ -1,2 +0,0 @@
#!/bin/bash
pactl load-module module-jack-sink client_name=pulse_sink_2 connect=yes

View File

@ -1,15 +0,0 @@
#!/bin/bash
pandoc --biblatex -t latex -s -i $1 -o $1.lytex
lilypond-book $1.lytex -o textmp
cd textmp
xelatex $1.tex
if [ -f "$1.bcf" ]
then
biber $1.bcf
xelatex $1.tex
fi
cp $1.pdf ..
cd ..
rm -rf textmp
rm $1.lytex

View File

@ -1,12 +0,0 @@
drives="$(lsblk -rpo "name,size,mountpoint,fstype" | awk -F'[ ]' '$4!=""&&$3==""{printf "%s (%s)\n", $1, $2}')"
[ -z "$drives" ] && exit 1
chosen="$(echo "$drives" | rofi -dmenu -i -p "Mount which drive?" | awk '{print $1}')"
[ -z "$chosen" ] && exit 1
stdout=$(udisksctl mount -b "$chosen")
if [ $? -eq 0 ]
then
notify-send Mount "$stdout"
else
notify-send Mount "Mounting Failed"
fi

View File

@ -1,18 +0,0 @@
#!/usr/bin/python
from time import strftime, localtime
import sys
import os
import re
r = re.compile('[^a-zA-Z]')
TEMPLATE = open("/home/nihilazo/Documents/05-Templates/document.md","r").read()
date = strftime("%Y-%m-%d", localtime())
title = sys.argv[1]
ftitle = r.sub('', title.strip().lower())
fname = "{}-{}.md".format(date,ftitle)
if not os.path.isfile(fname):
with open(fname,"w+") as f:
f.write(TEMPLATE.format(title=title, date=date))
os.system("nvim " + fname)

View File

@ -1,12 +0,0 @@
#!/bin/bash
sleep 0.2
STATUS=$(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled)
if [ "$STATUS" = "false" ]; then
echo "✘"
else
echo "✔"
fi

View File

@ -1,10 +0,0 @@
#!/bin/bash
STATUS=$(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled)
if [ "$STATUS" = "false" ]; then
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
else
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
fi

View File

@ -1,3 +0,0 @@
#!/bin/bash
gopass ls --flat | wofi --show dmenu | xargs --no-run-if-empty gopass show | wl-copy

View File

@ -1,4 +0,0 @@
#!/bin/sh
tmux new-session -d "nvim ~/vimwiki/index.md +'lcd ~/vimwiki'"
tmux new-window 'calcurse'
tmux -2 attach-session -d

View File

@ -1,7 +0,0 @@
#!/bin/sh
# Renames episodes of the adventure zone
IFS=
for i in *.mp3
do
mv $i $(echo $i | awk '{printf "%s %s %s.mp3",$1,$5,$7}' | sed 's/://')
done

View File

@ -1,4 +0,0 @@
#!/bin/bash
pidof squeekboard || squeekboard &
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true

View File

@ -1,13 +0,0 @@
COLS="name,type,size,mountpoint"
drives=$(lsblk -rpo "name,size,mountpoint" | awk -F'[ ]' '$1!~"/dev/sda.|/dev/sdb."&&$3!=""&&NR!=1{printf "%s (%s)\n",$1, $3}')
[ -z "$drives" ] && exit
chosen=$(echo "$drives" | rofi -dmenu -i -p "Unmount which drive?" | awk '{print $1}')
[ -z "$chosen" ] && exit
stdout=$(udisksctl unmount -b "$chosen")
if [ $? -eq 0 ]
then
notify-send "Mount" "$stdout"
else
notify-send "Mount" "Unmounting Failed"
fi

View File

@ -1,19 +0,0 @@
#!/usr/bin/env python
import sys
from i3ipc import Connection
i3 = Connection()
ws = i3.get_workspaces()
for w in ws:
if w.focused == True:
current = w
if sys.argv[1] == "next":
i3.command(f"workspace {current.num + 1}")
elif sys.argv[1] == "prev":
if current.num == 1:
pass
else:
i3.command(f"workspace {current.num - 1}")

View File

@ -1,97 +0,0 @@
[options]
#allow_bold = true
#audible_bell = false
#clickable_url = true
#dynamic_title = true
font=FantasqueSansMono 14
#fullscreen = true
#geometry = 640x480
#icon_name = terminal
#mouse_autohide = false
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# "system", "on" or "off"
#cursor_blink = system
# "block", "underline" or "ibeam"
#cursor_shape = block
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = true
#
[hints]
#font = Monospace 12
#foreground = #dcdccc
#background = #3f3f3f
#active_foreground = #e68080
#active_background = #3f3f3f
#padding = 10
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
[colors]
# Base16 Tomorrow Night
# Author: Chris Kempson (http://chriskempson.com)
foreground = #c5c8c6
foreground_bold = #c5c8c6
cursor = #c5c8c6
cursor_foreground = #1d1f21
background = #1d1f21
# 16 color space
# Black, Gray, Silver, White
color0 = #1d1f21
color8 = #969896
color7 = #c5c8c6
color15 = #ffffff
# Red
color1 = #cc6666
color9 = #cc6666
# Green
color2 = #b5bd68
color10 = #b5bd68
# Yellow
color3 = #f0c674
color11 = #f0c674
# Blue
color4 = #81a2be
color12 = #81a2be
# Purple
color5 = #b294bb
color13 = #b294bb
# Teal
color6 = #8abeb7
color14 = #8abeb7
# Extra colors
color16 = #de935f
color17 = #a3685a
color18 = #282a2e
color19 = #373b41
color20 = #b4b7b4
color21 = #e0e0e0

View File

@ -0,0 +1,32 @@
(var fennel (include "fennel"))
;; config stuff
(view:set_theme "base16-tomorrow-night" {:font "Fantasque Sans Mono" :size 14})
(set view.wrap_mode view.WRAP_WORD)
;; add uxntal lexer
(tset textadept.file_types.extensions "tal" "uxntal")
;; set uxntal build commands
(set textadept.run.compile_commands.uxntal "/home/nico/.local/bin/uxnasm \"%f\" \"%f.rom\"")
(set textadept.run.run_commands.uxntal "/home/nico/.local/bin/uxnemu \"%f.rom\"")
;; extensions!
;; markdown link matching pattern
(var markdown-link "%[[^%]]+%]%(([^%)]+)%)")
;; zettel link matching pattern
(var zettel-link "%[%[([^%]]+)%]%]")
(fn _G.follow-link []
"opens the file (in a new tab) of the markdown or zettelkasten link under the cursor"
(let [(line cpos) (buffer.get_cur_line)
md (line:match markdown-link)
zettel (line:match zettel-link)
dir (string.match buffer.filename "(.+)/.+%..+" )]
(if
(not= md nil) (io.open_file (.. dir "/" md))
(not= zettel nil) (io.open_file (.. dir "/" zettel)))))
(table.insert textadept.menu.context_menu 1
["Follow Link" _G.follow-link])

View File

@ -0,0 +1,14 @@
-- local fennel = require("fennel")
-- fennel.path = "/home/nico/.textadept/?.fnl"
-- table.insert(package.loaders or package.searchers, fennel.searcher)
-- local config = require("config")
view:set_theme("base16-tomorrow-night", {font="Fantasque Sans Mono", size=14})
view.wrap_mode = view.WRAP_WORD
-- add uxntal lexer
textadept.file_types.extensions["tal"] = "uxntal"
-- set uxntal build commands
textadept.run.compile_commands.uxntal = "/home/nico/.local/bin/uxnasm \"%f\" \"%f.rom\""
textadept.run.run_commands.uxntal = "/home/nico/.local/bin/uxnemu \"%f.rom\""

View File

@ -0,0 +1,45 @@
-- uxntal LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('uxntal')
-- opcodes
local words =
P("BRK") + P("LIT") + P("INC") + P("POP") +
P("DUP") + P("NIP") + P("SWP") + P("OVR") +
P("ROT") + P("EQU") + P("NEQ") + P("GTH") +
P("LTH") + P("JMP") + P("JCN") + P("JSR") +
P("STH") + P("LDZ") + P("STZ") + P("LDR") +
P("STR") + P("LDA") + P("STA") + P("DEI") +
P("DEO") + P("ADD") + P("SUB") + P("MUL") +
P("DIV") + P("AND") + P("ORA") + P("EOR") +
P("SFT")
lex:add_rule('keyword', token(lexer.KEYWORD, words * S(" rk2")^-3))
-- numbers
lex:add_rule('number', token(lexer.NUMBER, S("$#") * lexer.xdigit^1))
-- comments
local comment = token(lexer.COMMENT, lexer.range('( ', ' )'))
lex:add_rule('comment', comment)
-- address references
local ref = token(lexer.IDENTIFIER, S(";.,") * (lexer.word + S('&/-_'))^1)
lex:add_rule('reference', ref)
-- labels
local label = token(lexer.LABEL, S("@&") * (lexer.word + S('&/-_'))^1)
lex:add_rule('label', label)
return lex

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,112 @@
-- Base16 Theme: Tomorrow Night
-- http://chriskempson.com/projects/base16/
-- Theme author: Chris Kempson (http://chriskempson.com)
-- Template Repository: https://github.com/rgieseke/base16-textadept
-- Template adapted from Textadept's default templates
-- Copyright 2007-2020 Mitchell mitchell.att.foicica.com. MIT licensed.
local view, colors, styles = view, lexer.colors, lexer.styles
-- Base16 colors
colors.base00 = 0x211f1d
colors.base01 = 0x2e2a28
colors.base02 = 0x413b37
colors.base03 = 0x969896
colors.base04 = 0xb4b7b4
colors.base05 = 0xc6c8c5
colors.base06 = 0xe0e0e0
colors.base07 = 0xffffff
colors.base08 = 0x6666cc
colors.base09 = 0x5f93de
colors.base0A = 0x74c6f0
colors.base0B = 0x68bdb5
colors.base0C = 0xb7be8a
colors.base0D = 0xbea281
colors.base0E = 0xbb94b2
colors.base0F = 0x5a68a3
-- Default font.
if not font then
font = WIN32 and 'Courier New' or OSX and 'Monaco' or
'Bitstream Vera Sans Mono'
end
if not size then size = not OSX and 10 or 12 end
-- Predefined styles.
styles.default = {
font = font, size = size, fore = colors.base05, back = colors.base00
}
styles.line_number = {fore = colors.base04, back = colors.base00}
--styles.control_char =
styles.indent_guide = {fore = colors.base03}
styles.call_tip = {fore = colors.base04, back = colors.base01}
styles.fold_display_text = {fore = colors.base01}
-- Token styles.
styles.class = {fore = colors.base0A}
styles.comment = {fore = colors.base03}
styles.constant = {fore = colors.base09}
styles.embedded = {fore = colors.base0F, back = colors.base01}
styles.error = {fore = colors.base08, italics = true}
styles['function'] = {fore = colors.base0D}
styles.identifier = {}
styles.keyword = {fore = colors.base0E}
styles.label = {fore = colors.base08}
styles.number = {fore = colors.base09}
styles.operator = {fore = colors.base05}
styles.preprocessor = {fore = colors.base0B}
styles.regex = {fore = colors.base0C}
styles.string = {fore = colors.base0B}
styles.type = {fore = colors.base0A}
styles.variable = {fore = colors.base08}
styles.whitespace = {}
-- Multiple Selection and Virtual Space
--view.additional_sel_alpha =
--view.additional_sel_fore =
--view.additional_sel_back =
--view.additional_caret_fore =
-- Caret and Selection Styles.
view:set_sel_fore(true, colors.base06)
view:set_sel_back(true, colors.base02)
--view.sel_alpha =
view.caret_fore = colors.base05
view.caret_line_back = colors.base01
--view.caret_line_back_alpha =
-- Fold Margin.
view:set_fold_margin_color(true, colors.base00)
view:set_fold_margin_hi_color(true, colors.base00)
-- Markers.
--view.marker_fore[textadept.bookmarks.MARK_BOOKMARK] = colors.base00
view.marker_back[textadept.bookmarks.MARK_BOOKMARK] = colors.base0B
--view.marker_fore[textadept.run.MARK_WARNING] = colors.base00
view.marker_back[textadept.run.MARK_WARNING] = colors.base0E
--view.marker_fore[textadept.run.MARK_ERROR] = colors.base00
view.marker_back[textadept.run.MARK_ERROR] = colors.base08
for i = view.MARKNUM_FOLDEREND, view.MARKNUM_FOLDEROPEN do -- fold margin
view.marker_fore[i] = colors.base00
view.marker_back[i] = colors.base03
view.marker_back_selected[i] = colors.base02
end
-- Indicators.
view.indic_fore[ui.find.INDIC_FIND] = colors.base09
view.indic_alpha[ui.find.INDIC_FIND] = 255
view.indic_fore[textadept.editing.INDIC_BRACEMATCH] = colors.base06
view.indic_fore[textadept.editing.INDIC_HIGHLIGHT] = colors.base07
view.indic_alpha[textadept.editing.INDIC_HIGHLIGHT] = 64
view.indic_fore[textadept.snippets.INDIC_PLACEHOLDER] = colors.base04
-- Call tips.
view.call_tip_fore_hlt = colors.base06
-- Long Lines.
view.edge_color = colors.base02
-- Add red, green, and yellow for diff lexer.
colors.red = colors.base08
colors.green = colors.base0B
colors.yellow = colors.base0E

View File

@ -1,65 +0,0 @@
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.7
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events
# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.
#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable
"gopass ls --flat | rofi -dmenu | xargs --no-run-if-empty gopass show -c"
Mod4+p
"i3lock -c 000000"
Mod4+l
"maim -s /tmp/$(date +%s).png"
Print
#"xterm -geom 50x20+20+20"
# Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
# alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a release event starts rxvt
#"rxvt"
# release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
# Control + b:2 + Release
##################################
# End of xbindkeys configuration #
##################################

View File

@ -1,46 +0,0 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
nvidia-settings --load-config-only
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
~/.screenlayout/layout.sh
#xrandr --output DP-0 --brightness 0.5
exec startxfce4

View File

@ -1,11 +0,0 @@
export PATH=~/.local/bin:~/.luarocks/bin:~/.cargo/bin:~/projects/go/bin:~/games/launchers:~/x-tools/arm-kobo-linux-anueabihf/bin:$PATH
export EDITOR=micro
export VISUAL=micro
export VITASDK=~/.local/vitasdk
export LEDGER_FILE=~/Documents/hledger/personal.journal
export GOPATH=~/projects/go
export PSION_PREFIX=~/software/psion-prefix
alias v=micro
alias vw="cd ~/vimwiki && micro index.md"
alias yt="mpv --ytdl-format='bestvideo[height<=1080]+bestaudio'"
alias psion="export WINEPREFIX=$PSION_PREFIX"