48a0cb5c17cbfab48a27305754eca46a36cb1168
- Author
- Pavle Portic <pavle.portic@tilda.center>
- Committer
- Pavle Portic <pavle.portic@tilda.center>
- Date
Message
Switch cmus bindings to tcp socket in i3conf
Diff
1diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl
2index 278ff550e28e01c5c83fe8bd063a6982d3ee3ca6..054950d1919a48b3132fb9a60a07b7cc53eda0bc 100644
3--- a/dot_config/i3/config.tmpl
4+++ b/dot_config/i3/config.tmpl
5@@ -159,9 +159,9 @@ bindsym Shift+XF86MonBrightnessUp exec light -A 2
6 bindsym Shift+XF86MonBrightnessDown exec light -U 2
7
8 # Cmus controls
9-bindsym XF86AudioPlay exec "cmus-remote -u"
10-bindsym XF86AudioNext exec "cmus-remote -n"
11-bindsym XF86AudioPrev exec "cmus-remote -r"
12+bindsym XF86AudioPlay exec "cmus-remote --server localhost:3000 --passwd {{ .i3.bumblebee.cmus.passwd }} -u"
13+bindsym XF86AudioNext exec "cmus-remote --server localhost:3000 --passwd {{ .i3.bumblebee.cmus.passwd }} -n"
14+bindsym XF86AudioPrev exec "cmus-remote --server localhost:3000 --passwd {{ .i3.bumblebee.cmus.passwd }} -r"
15
16 # Take screenshot
17 bindsym Print exec pyazo
18@@ -179,7 +179,7 @@ hide_edge_borders smart
19 exec xcape -e 'Control_L=Escape'
20 exec_always python ~/.config/i3/i3-autoname-workspaces.py &
21 exec telegram-desktop >/dev/null 2>/dev/null &
22-exec roxterm -e cmus >/dev/null 2>/dev/null &
23+exec roxterm -e cmus --listen 0.0.0.0:3000 >/dev/null 2>/dev/null &
24 exec env GTK_THEME=Arc-Solid gtk-launch firefox >/dev/null 2>/dev/null &
25 exec gtk-launch thunderbird >/dev/null 2>/dev/null &
26
27@@ -216,6 +216,8 @@ bar {
28 date \
29 time \
30 -p engine.workspacewheel=False \
31+ cmus.server="localhost:3000" \
32+ cmus.passwd="{{ .i3.bumblebee.cmus.passwd }}" \
33 date.format="%a, %Y-%m-%d" \
34 time.format="%H:%M:%S" \
35 -t gruvbox-powerline