commit c71250841198c0f2f5fb2c7007da860ebad2b231
parent 242824ffb970b8318c01de0fb4b8b030e764b311
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Mon, 2 Sep 2019 10:11:32 -0400
Add Music Player Shortcut
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/.config/i3/config b/.config/i3/config
@@ -19,6 +19,7 @@ set $screenlocker swaylock -c 85ad8580 -u
set $screenshot swaygrab
set $networkmenu $TERMINAL -e nmtui
set $file_manager $TERMINAL -e lf
+set $music_player $TERMINAL -e ncmpcpp
## System Commands
set $hibernate systemctl suspend
set $reboot systemctl reboot
@@ -120,6 +121,7 @@ for_window [class="^"] split toggle
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -ctrl intel_backlight -dec 10 && pkill -RTMIN+11 i3blocks
# music control
+ bindsym $mod+p exec --no-startup-id $music_player
bindsym XF86AudioPlay exec --no-startup-id mpc toggle && pkill -RTMIN+12 i3blocks
bindsym XF86AudioPrev exec --no-startup-id mpc prev && pkill -RTMIN+12 i3blocks
bindsym XF86AudioNext exec --no-startup-id mpc next && pkill -RTMIN+12 i3blocks