Compare commits

...

3 Commits

Author SHA1 Message Date
Nico 3f01a6db9d remove hella old scripts 2022-02-02 22:22:07 +00:00
Nico 9b0217821e hexchat colors 2022-02-02 22:21:15 +00:00
Nico ebf6869235 remove termite config as I no longer use it 2022-02-02 22:19:02 +00:00
19 changed files with 48 additions and 260 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 && textadept 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,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

@ -7,6 +7,9 @@
;; 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!
@ -25,5 +28,5 @@
(not= md nil) (io.open_file (.. dir "/" md))
(not= zettel nil) (io.open_file (.. dir "/" zettel)))))
(tset textadept.menu.context_menu (+ 1 (length textadept.menu.context_menu))
(table.insert textadept.menu.context_menu 1
["Follow Link" _G.follow-link])