From 5b99b872c1fb05e491befcecd498e80d173d5876 Mon Sep 17 00:00:00 2001 From: codepuncher Date: Tue, 30 Jan 2024 14:43:57 +0000 Subject: [PATCH] lazy --- bin/mpris-currently-playing | 2 +- tmux/layouts/dev.sh | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/bin/mpris-currently-playing b/bin/mpris-currently-playing index 3383428..dac8879 100755 --- a/bin/mpris-currently-playing +++ b/bin/mpris-currently-playing @@ -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}" diff --git a/tmux/layouts/dev.sh b/tmux/layouts/dev.sh index 5ea53f7..a6d797a 100755 --- a/tmux/layouts/dev.sh +++ b/tmux/layouts/dev.sh @@ -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