mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-30 00:04:59 +01:00
Use dbus-send which is faster than playerctl for media keys
(cherry picked from commit 38a7866309
)
This commit is contained in:
parent
a4852823f8
commit
dca845feac
|
@ -255,10 +255,10 @@ end)
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = gears.table.join(
|
globalkeys = gears.table.join(
|
||||||
-- Make multimedia keys work properly - mainly for spotify
|
-- Make multimedia keys work properly - mainly for spotify
|
||||||
awful.key({}, "XF86AudioPlay", function() awful.util.spawn("playerctl play-pause") end),
|
awful.key({}, "XF86AudioPlay", function() awful.util.spawn(os.getenv("HOME").."/.scripts/playerctl-fast play-pause") end),
|
||||||
awful.key({}, "XF86AudioStop", function() awful.util.spawn("playerctl play-pause") end),
|
awful.key({}, "XF86AudioStop", function() awful.util.spawn(os.getenv("HOME").."/.scripts/playerctl-fast play-pause") end),
|
||||||
awful.key({}, "XF86AudioPrev", function() awful.util.spawn("playerctl previous") end),
|
awful.key({}, "XF86AudioPrev", function() awful.util.spawn(os.getenv("HOME").."/.scripts/playerctl-fast previous") end),
|
||||||
awful.key({}, "XF86AudioNext", function() awful.util.spawn("playerctl next") end),
|
awful.key({}, "XF86AudioNext", function() awful.util.spawn(os.getenv("HOME").."/.scripts/playerctl-fast next") end),
|
||||||
|
|
||||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
{ description = "show help", group = "awesome" }),
|
{ description = "show help", group = "awesome" }),
|
||||||
|
|
3
setup
3
setup
|
@ -52,3 +52,6 @@ nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
||||||
add_to_file "alias nv='nvim'" "$HOME/.zshrc"
|
add_to_file "alias nv='nvim'" "$HOME/.zshrc"
|
||||||
add_to_file 'eval "$(starship init bash)"' "$HOME/.bashrc"
|
add_to_file 'eval "$(starship init bash)"' "$HOME/.bashrc"
|
||||||
add_to_file 'eval "$(starship init zsh)"' "$HOME/.zshrc"
|
add_to_file 'eval "$(starship init zsh)"' "$HOME/.zshrc"
|
||||||
|
|
||||||
|
add_to_file 'export PATH="$PATH:$HOME/.scripts"' "$HOME/.zshrc"
|
||||||
|
add_to_file 'export PATH="$PATH:$HOME/.scripts"' "$HOME/.bashrc"
|
||||||
|
|
Loading…
Reference in a new issue