Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy #161

Merged
merged 1 commit into from
Jan 30, 2024
Merged

lazy #161

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading