summaryrefslogtreecommitdiffstats
path: root/src/bin/mpris-prev.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/mpris-prev.rs')
-rw-r--r--src/bin/mpris-prev.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bin/mpris-prev.rs b/src/bin/mpris-prev.rs
index 82b85ee..7c6ecee 100644
--- a/src/bin/mpris-prev.rs
+++ b/src/bin/mpris-prev.rs
@@ -10,9 +10,7 @@ use zbus::Connection;
#[tokio::main]
async fn main() -> Result<(), main_error::MainError> {
- i3blocks::run::<Previous>(Default::default())
- .await
- .map_err(Into::into)
+ i3blocks::run::<Previous>().await.map_err(Into::into)
}
pub struct Previous;
@@ -42,7 +40,7 @@ impl Update for Previous {
async fn update(value: Self::Value, block: Arc<Mutex<Block>>) -> Result<bool, Error> {
let mut block = block.lock().await;
- block.full_text = value.then_some("󰒮 ".into()).unwrap_or_default();
+ block.full_text = value.then_some(" 󰒮 ".into()).unwrap_or_default();
Ok(true)
}
}