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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,7 @@
#! /bin/sh #! /bin/sh
# -*- sh -*-
file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png
grim -g "$(slurp)" $file \ grim -g "$(slurp)" $file \
&& wl-copy $file \ && wl-copy $file \
&& notify-send -i $file "File copied to clipboard" && notify-send -i $file "File copied to clipboard"

View File

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

View File

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