usr

Modulate your userpace into POSIX-compliant shell scripts!
git clone git://clone.theohenson.com/usr.git
Log | Files | Refs | README

commit 97671611794c7a4a3909fa4774753ee34cbfd9ca
parent fa5a0312ecb37ecc27ba70290caca91ea9a99f0c
Author: Theo Henson <[email protected]>
Date:   Tue, 15 Dec 2020 13:43:59 -0500

More tmux stuff and scripts

Diffstat:
Mhome/.config/fish/config.fish | 1+
Mhome/.config/sxhkd/sxhkdrc | 2+-
Mhome/.config/tmux/tmux.conf | 2+-
Ahome/.local/bin/opt/range | 12++++++++++++
Mmodules/theo_scripts.mod.sh | 2+-
5 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/home/.config/fish/config.fish b/home/.config/fish/config.fish @@ -19,6 +19,7 @@ abbr -ag gof gofmt -s -w -e -l . abbr -ag vw nvim -c VimwikiIndex abbr -ag mi 'make && sudo make install' +abbr -ag t tmux abbr -ag ta tmux attach -t abbr -ag tks tmux kill-session -t abbr -ag tls tmux list-sessions diff --git a/home/.config/sxhkd/sxhkdrc b/home/.config/sxhkd/sxhkdrc @@ -34,7 +34,7 @@ control + Return # LAUNCH # python shell alt + shift + p - $TERMINAL -e python + $TERMINAL -e tmux attach -t py || $TERMINAL -e tmux new -s py /usr/bin/python3 # ranger fm alt + shift + r $TERMINAL -e ranger diff --git a/home/.config/tmux/tmux.conf b/home/.config/tmux/tmux.conf @@ -1,7 +1,7 @@ set -g default-terminal "screen-256color" set -g status-bg black set -g status-fg white -set -g prefix C-a set -g status-keys vi set -g default-shell /bin/fish set -s escape-time 0 +set -g prefix C-e diff --git a/home/.local/bin/opt/range b/home/.local/bin/opt/range @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +import sys + +if len(sys.argv) < 3: + print("bad args, run like this: {} <lower> <upper> [skip]".format(sys.argv[0])) + exit(1) +elif len(sys.argv) > 3: + for i in range(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3])): + print(i) +else: + for i in range(int(sys.argv[1]), int(sys.argv[2])): + print(i) diff --git a/modules/theo_scripts.mod.sh b/modules/theo_scripts.mod.sh @@ -25,5 +25,5 @@ theo_scripts_files() { .local/bin/opt/git_status_prompt .local/bin/opt/lock .local/bin/opt/lsearch .local/bin/opt/openup .local/bin/opt/randwall .local/bin/opt/runt .local/bin/opt/spt-mute.sh .local/bin/opt/spt-vol.sh .local/bin/opt/time_bar - .local/bin/opt/volume_bar" + .local/bin/opt/volume_bar .local/bin/opt/range .local/bin/opt/tku" }