summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dedup3
-rwxr-xr-x.local/bin/dotfiles3
-rwxr-xr-x.local/bin/dotman6
-rwxr-xr-x.local/bin/e3
-rwxr-xr-x.local/bin/http-dir29
-rwxr-xr-x.local/bin/p3
-rwxr-xr-x.local/bin/sh-prompt3
-rwxr-xr-x.local/bin/trim4
-rwxr-xr-x.local/bin/v4
-rw-r--r--.local/share/flatpak/overrides/org.mozilla.firefox5
-rw-r--r--.local/share/meson/cross/mingw-32.txt30
-rw-r--r--.local/share/meson/cross/mingw-64.txt30
-rw-r--r--.local/share/meson/native/clang.txt4
-rw-r--r--.local/share/meson/native/gcc.txt4
-rw-r--r--.local/share/meson/native/llvm.txt7
15 files changed, 138 insertions, 0 deletions
diff --git a/.local/bin/dedup b/.local/bin/dedup
new file mode 100755
index 0000000..912cb95
--- /dev/null
+++ b/.local/bin/dedup
@@ -0,0 +1,3 @@
+#!/usr/bin/awk -f
+
+!a[$0]++
diff --git a/.local/bin/dotfiles b/.local/bin/dotfiles
new file mode 100755
index 0000000..ae2bf64
--- /dev/null
+++ b/.local/bin/dotfiles
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@"
diff --git a/.local/bin/dotman b/.local/bin/dotman
new file mode 100755
index 0000000..21e2fb9
--- /dev/null
+++ b/.local/bin/dotman
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+export GIT_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/dotman/"
+export GIT_WORK_TREE="$HOME"
+
+exec git "$@"
diff --git a/.local/bin/e b/.local/bin/e
new file mode 100755
index 0000000..e341837
--- /dev/null
+++ b/.local/bin/e
@@ -0,0 +1,3 @@
+#!/bin/sh --
+
+exec "${EDITOR:-ed}" "$@"
diff --git a/.local/bin/http-dir b/.local/bin/http-dir
new file mode 100755
index 0000000..a1dd19d
--- /dev/null
+++ b/.local/bin/http-dir
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+
+import argparse
+import http.server
+import os
+import sys
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--bind', '-b', metavar='ADDRESS',default='', help='specify alternate bind address (default: all interfaces)')
+ parser.add_argument('--directory', '-d', default=os.getcwd(), help='specify alternate directory (default: current directory)')
+ parser.add_argument('port', action='store', default=8000, type=int,
+ nargs='?', help='specify alternate port (default: 8000)')
+ args = parser.parse_args()
+
+ class app(http.server.SimpleHTTPRequestHandler):
+ def __init__(self, request, client_address, server):
+ super().__init__(request, client_address, server, directory=args.directory)
+
+ with http.server.ThreadingHTTPServer((args.bind, args.port), app) as httpd:
+ try:
+ httpd.serve_forever()
+ except KeyboardInterrupt:
+ sys.exit()
+
+
+
+if __name__ == '__main__':
+ main()
diff --git a/.local/bin/p b/.local/bin/p
new file mode 100755
index 0000000..3b2aef1
--- /dev/null
+++ b/.local/bin/p
@@ -0,0 +1,3 @@
+#!/bin/sh --
+
+exec "${PAGER:-less}" "$@"
diff --git a/.local/bin/sh-prompt b/.local/bin/sh-prompt
new file mode 100755
index 0000000..ebc1057
--- /dev/null
+++ b/.local/bin/sh-prompt
@@ -0,0 +1,3 @@
+#!/bin/sh --
+
+printf "%u %s@%s %s $ " "$1" "$(id -un)" "$(uname -n)" "$(pwd|sed 's|'"$HOME"'|~|g')"
diff --git a/.local/bin/trim b/.local/bin/trim
new file mode 100755
index 0000000..d55063b
--- /dev/null
+++ b/.local/bin/trim
@@ -0,0 +1,4 @@
+#!/usr/bin/sed -f
+
+s/^[[:space:]]*//
+s/[[:space:]]*$//
diff --git a/.local/bin/v b/.local/bin/v
new file mode 100755
index 0000000..9a5f35f
--- /dev/null
+++ b/.local/bin/v
@@ -0,0 +1,4 @@
+#!/bin/sh --
+
+"${VISUAL:-${EDITOR:-vi}}" "$@"
+
diff --git a/.local/share/flatpak/overrides/org.mozilla.firefox b/.local/share/flatpak/overrides/org.mozilla.firefox
new file mode 100644
index 0000000..3f5fa93
--- /dev/null
+++ b/.local/share/flatpak/overrides/org.mozilla.firefox
@@ -0,0 +1,5 @@
+[Context]
+sockets=fallback-x11;!x11
+
+[Environment]
+MOZ_ENABLE_WAYLAND=1
diff --git a/.local/share/meson/cross/mingw-32.txt b/.local/share/meson/cross/mingw-32.txt
new file mode 100644
index 0000000..e43ae71
--- /dev/null
+++ b/.local/share/meson/cross/mingw-32.txt
@@ -0,0 +1,30 @@
+[binaries]
+c='i686-w64-mingw32-gcc'
+cpp='i686-w64-mingw32-g++'
+objc='i686-w64-mingw32-gcc'
+ar='i686-w64-mingw32-ar'
+strip='i686-w64-mingw32-strip'
+pkgconfig='i686-w64-mingw32-pkg-config'
+windres='i686-w64-mingw32-windres'
+exe_wrapper='wine64'
+cmake='cmake'
+
+[properties]
+# Directory that contains 'bin', 'lib', etc
+root='/usr/i686-w64-mingw32'
+# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries
+sys_root='/usr/i686-w64-mingw32/sys-root/mingw'
+
+[host_machine]
+system='windows'
+cpu_family='x86'
+cpu='x86'
+endian='little'
+
+[cmake]
+
+CMAKE_BUILD_WITH_INSTALL_RPATH='ON'
+CMAKE_FIND_ROOT_PATH_MODE_PROGRAM='NEVER'
+CMAKE_FIND_ROOT_PATH_MODE_LIBRARY='ONLY'
+CMAKE_FIND_ROOT_PATH_MODE_INCLUDE='ONLY'
+CMAKE_FIND_ROOT_PATH_MODE_PACKAGE='ONLY'
diff --git a/.local/share/meson/cross/mingw-64.txt b/.local/share/meson/cross/mingw-64.txt
new file mode 100644
index 0000000..458d8ef
--- /dev/null
+++ b/.local/share/meson/cross/mingw-64.txt
@@ -0,0 +1,30 @@
+[binaries]
+c='x86_64-w64-mingw32-gcc'
+cpp='x86_64-w64-mingw32-g++'
+objc='x86_64-w64-mingw32-gcc'
+ar='x86_64-w64-mingw32-ar'
+strip='x86_64-w64-mingw32-strip'
+pkgconfig='x86_64-w64-mingw32-pkg-config'
+windres='x86_64-w64-mingw32-windres'
+exe_wrapper='wine64'
+cmake='cmake'
+
+[properties]
+# Directory that contains 'bin', 'lib', etc
+root='/usr/x86_64-w64-mingw32'
+# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries
+sys_root='/usr/x86_64-w64-mingw32/sys-root/mingw'
+
+[host_machine]
+system='windows'
+cpu_family='x86_64'
+cpu='x86_64'
+endian='little'
+
+[cmake]
+
+CMAKE_BUILD_WITH_INSTALL_RPATH='ON'
+CMAKE_FIND_ROOT_PATH_MODE_PROGRAM='NEVER'
+CMAKE_FIND_ROOT_PATH_MODE_LIBRARY='ONLY'
+CMAKE_FIND_ROOT_PATH_MODE_INCLUDE='ONLY'
+CMAKE_FIND_ROOT_PATH_MODE_PACKAGE='ONLY'
diff --git a/.local/share/meson/native/clang.txt b/.local/share/meson/native/clang.txt
new file mode 100644
index 0000000..772dcc5
--- /dev/null
+++ b/.local/share/meson/native/clang.txt
@@ -0,0 +1,4 @@
+[binaries]
+c = 'clang'
+cpp = 'clang++'
+
diff --git a/.local/share/meson/native/gcc.txt b/.local/share/meson/native/gcc.txt
new file mode 100644
index 0000000..f9d73f2
--- /dev/null
+++ b/.local/share/meson/native/gcc.txt
@@ -0,0 +1,4 @@
+[binaries]
+c = 'gcc'
+cpp = 'g++'
+
diff --git a/.local/share/meson/native/llvm.txt b/.local/share/meson/native/llvm.txt
new file mode 100644
index 0000000..1390be4
--- /dev/null
+++ b/.local/share/meson/native/llvm.txt
@@ -0,0 +1,7 @@
+[binaries]
+c_ld = 'lld'
+cpp_ldd = 'lld'
+ar = 'llvm-ar'
+strip = 'llvm-strip'
+
+