-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2de9e23
commit f0458e6
Showing
9 changed files
with
59 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/env zsh | ||
#!/usr/bin/env sh | ||
|
||
dbus-send --session \ | ||
dbus-send --session \ | ||
--dest=$1 \ | ||
--type=method_call \ | ||
--print-reply \ | ||
$2 \ | ||
--type=method_call \ | ||
--print-reply \ | ||
$2 \ | ||
org.freedesktop.DBus.Introspectable.Introspect | tail -n +2 | sed -e "s/^ *string//" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/usr/bin/env zsh | ||
|
||
#!/usr/bin/env sh | ||
|
||
get_sink_input_info.hs | jq 'select(.application_process_id == "'"$thePID"'")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
XDG_CURRENT_DESKTOP='Unity' $@ | ||
XDG_CURRENT_DESKTOP='Unity' "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
source ~/.lib/login.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
source ~/.lib/shellenv.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
# This is necessary for tramp. | ||
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return | ||
source ~/.lib/shellrc.sh | ||
source ~/.lib/zsh.sh | ||
|
||
test -r ~/.custom.sh && source ~/.custom.sh | ||
source_if_exists ~/.this-machine.sh | ||
|
||
function emacs_ansi_term_support { | ||
echo -e "\033AnSiTu" "$LOGNAME" # $LOGNAME is more portable than using whoami. | ||
echo -e "\033AnSiTc" "$(pwd)" | ||
if [ $(uname) = "SunOS" ]; then | ||
# The -f option does something else on SunOS and is not needed anyway. | ||
hostname_options=""; | ||
else | ||
hostname_options="-f"; | ||
fi | ||
# XXX/TODO: This disables correct setting of the current directory | ||
# when in an sshed shell when inside of emacs | ||
# echo -e "\033AnSiTh" "$(hostname $hostname_options)" # Using the -f option can # | ||
# cause problems on some OSes. | ||
} | ||
|
||
if environment_variable_exists INSIDE_EMACS; then | ||
if [[ $INSIDE_EMACS == *"term"* ]] | ||
then | ||
add-zsh-hook precmd emacs_ansi_term_support | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters