Added emacs modeline like feature.

This commit is contained in:
James Patrick 2019-12-11 00:52:23 -05:00
parent 15442e30f0
commit 578b14331f
14 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,6 @@
#! env zsh
# -*- sh -*-
REPORT=`dirname $0`/report
if [ -z "$1" ] || [ -z "$2" ] ; then
@ -12,3 +14,4 @@ if [[ -e $2 ]] ; then
fi
$REPORT info "Symlinked `ln -svf $1 $2`"

View File

@ -1,4 +1,5 @@
#! env zsh
# -*- sh -*-
R='\033[0;31m'
Y='\033[0;33m'
G='\033[0;32m'
@ -21,3 +22,4 @@ if [[ -z $2 ]] ; then
else
format $1 $2
fi

View File

@ -1,4 +1,5 @@
#! env zsh
# -*- sh -*-
REPORT=`dirname $0`/report
if [[ -z $1 ]] ; then
@ -18,3 +19,4 @@ fi
$REPORT info "Deleting $1"
rm $1

View File

@ -1,4 +1,5 @@
#!/bin/sh
# -*- zsh -*-
local_hook="$HOME"/.git_template.local/hooks/post-merge
[ -f "$local_hook" ] && . "$local_hook"
@ -6,3 +7,4 @@ local_hook="$HOME"/.git_template.local/hooks/post-merge
.git/hooks/ctags >/dev/null 2>&1 &
make update

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# -*- sh -*-
# cmds=($(bluetoothctl help | cut -d' ' -f1 | sed 's/[\x01-\x1F\x7F]//g' | sed 's/\[[0-9];[0-9]\+m//g'))
# unset "cmds[2]"

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# -*- sh -*-
STATUS="$(playerctl status)"
MSG="$(playerctl metadata --format '{{xesam:title}} - {{xesam:artist}}')"

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# -*- sh -*-
OPTIONS=" Lock
鈴 Sleep

View File

@ -1,4 +1,5 @@
#! /bin/sh
# -*- sh -*-
# Lifted from https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
# usage: import-gsettings <gsettings key>:<settings.ini key> <gsettings key>:<settings.ini key> ...

View File

@ -1,4 +1,5 @@
#! /bin/sh
# -*- sh -*-
rofi \
-show drun \
-p run \

View File

@ -1,2 +1,3 @@
#! /bin/sh
# -*- sh -*-
clipman --selector="rofi" --select

View File

@ -1,4 +1,5 @@
#! /bin/sh
# -*- sh -*-
gopass ls --flat \
| rofi -dmenu -p pass -i \
| xargs --no-run-if-empty gopass show -c

View File

@ -1,4 +1,5 @@
#! /bin/sh
# -*- sh -*-
file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png
grim -g "$(slurp)" $file \

View File

@ -1,4 +1,6 @@
#!/bin/bash
# -*- sh -*-
#
while read IN
do
[[ ! $IN =~ ^[+-]?[0-9]+$ ]] && IN=0

View File

@ -1,4 +1,5 @@
#!/bin/bash
# -*- sh -*-
message="$@"
case "$OSTYPE" in