From d59cf1dbf5fb85accc87bc99f1c7a86a36d9b9bb Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Wed, 12 Oct 2022 16:55:14 -0400 Subject: [PATCH] update mediakeys for play/pause stuff --- autostart.conf | 3 --- conf.d/key_bindings.conf | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/autostart.conf b/autostart.conf index 47b02b7..705f931 100644 --- a/autostart.conf +++ b/autostart.conf @@ -35,9 +35,6 @@ exec --no-startup-id firefox # since I'm using thunderbird now, let's pause the neomutt start # Create a kitty workspace for mail #exec --no-startup-id "kitty --name mail neomutt" -# I still want a terminal to start by default, so to minimize the changes, I am going to "stupidly" -# reuse the mail terminal name, and just start a terminal w/o mutt -exec --no-startup-id "kitty --name mail" # start the auto run .desktop files exec --no-startup-id dex-autostart --autostart --environment i3 diff --git a/conf.d/key_bindings.conf b/conf.d/key_bindings.conf index c6b613e..931db64 100644 --- a/conf.d/key_bindings.conf +++ b/conf.d/key_bindings.conf @@ -16,6 +16,12 @@ bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ to bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status bindsym XF86AudioPause exec --no-startup-id mpc toggle +#Bind media player buttons +bindsym XF86AudioPlay exec "~/bin/mediakeys.sh play-pause"; +bindsym XF86AudioStop exec "~/bin/mediakeys.sh stop"; +bindsym XF86AudioPrev exec "~/bin/mediakeys.sh previous"; +bindsym XF86AudioNext exec "~/bin/mediakeys.sh next"; + # display clipboard contents via rofi bindsym Control+$alt+h exec rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'