Skip to content

Commit

Permalink
Merge pull request #161 from codepuncher/2024-01-30
Browse files Browse the repository at this point in the history
lazy
  • Loading branch information
codepuncher authored Jan 30, 2024
2 parents cf338a8 + 5b99b87 commit 0251a01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bin/mpris-currently-playing
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ fi
TRACK="$(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/title/{n;p}' | cut -d '"' -f 2)"
ARTIST="$(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:org.mpris.MediaPlayer2.Player string:Metadata | sed -n '/artist/{n;n;p}' | cut -d '"' -f 2)"

echo "${ARTIST} - ${TRACK}"
echo "🎵 ${ARTIST} - ${TRACK}"
18 changes: 8 additions & 10 deletions tmux/layouts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@ if [[ -z "${THEME_DIR}" ]]; then
fi

TRELLIS_DIR="${PWD}/../trellis/"
PANE_THIRD_WORKING_DIRECTORY=''
PANE_THIRD_DIR=''
if [[ -d "${TRELLIS_DIR}" ]]; then
PANE_SECOND_WORKING_DIRECTORY="${TRELLIS_DIR}"
PANE_THIRD_WORKING_DIRECTORY="${THEME_DIR}"
PANE_SECOND_DIR="${TRELLIS_DIR}"
PANE_THIRD_DIR="${THEME_DIR}"
else
PANE_SECOND_WORKING_DIRECTORY="${THEME_DIR}"
PANE_SECOND_DIR="${THEME_DIR}"
fi

tmux \
split-window -v -p 25 -c "${PANE_SECOND_WORKING_DIRECTORY}"

if [[ -n "${PANE_THIRD_WORKING_DIRECTORY}" ]]; then
tmux \
split-window -h -c "${PANE_THIRD_WORKING_DIRECTORY}"
tmux split-window -v -p 25 -c "${PANE_SECOND_DIR}"
if [[ -n "${PANE_THIRD_DIR}" ]]; then
tmux split-window -h -c "${PANE_THIRD_DIR}"
fi

tmux \
select-pane -L \; \
select-pane -U \; \
send-keys nvim

0 comments on commit 0251a01

Please sign in to comment.