commit 6eab64b7fdc5dfc970d46548fbb5d01447eebe64 parent c001b061157e47cb54b4911139257edfc4ce5bc4 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 11 Feb 2019 08:16:12 +0100 Control mpd from dropdown mpc client Diffstat:
M | links/.config/i3/config | | | 7 | ++++++- |
A | links/bin/mpcdd | | | 4 | ++++ |
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/links/.config/i3/config b/links/.config/i3/config @@ -50,6 +50,11 @@ for_window [instance="fuzzylaunch"] resize set 625 450 for_window [instance="fuzzylaunch"] move scratchpad for_window [instance="fuzzylaunch"] border pixel 2 for_window [instance="fuzzylaunch"] sticky enable +for_window [instance="mpcdd"] floating enable +for_window [instance="mpcdd"] resize set 725 550 +for_window [instance="mpcdd"] move scratchpad +for_window [instance="mpcdd"] border pixel 2 +for_window [instance="mpcdd"] sticky enable # Set Xresources colors: set_from_resource $darkblack color0 #000000 @@ -145,7 +150,7 @@ bindsym XF86ScreenSaver exec --no-startup-id xlock bindsym XF86Sleep exec --no-startup-id zzz # mpd control -bindsym $mod+Control+Shift+m exec $term -e ncmpcpp +bindsym $mod+Control+Shift+m exec --no-startup-id ddspawn mpcdd bindsym $mod+Control+Shift+p exec --no-startup-id mpc toggle && pkill -RTMIN+14 i3blocks bindsym $mod+Control+Shift+n exec --no-startup-id mpc next && pkill -RTMIN+14 i3blocks bindsym $mod+Control+Shift+b exec --no-startup-id mpc prev && pkill -RTMIN+14 i3blocks diff --git a/links/bin/mpcdd b/links/bin/mpcdd @@ -0,0 +1,4 @@ +#!/bin/sh +SESSION=mpc +tmux attach -t "$SESSION" || \ + (tmux new-session -s "$SESSION" \; send-keys "ncmpcpp; exit" C-m)