From 812a7abb72486519b075d2937692e4fd74488e34 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 4 Oct 2017 13:40:16 +0200 Subject: Bind volume keys to pulseaudio control --- fish/.config/fish/config.fish | 2 +- i3wm/.i3/config | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 19572c5..67f0781 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -7,7 +7,7 @@ set fish_greeting "" alias ls='ls -h --color --group-directories-first' alias csi='csi -q' -alias mp3-dl='youtube-dl --extract-audio --audio-format mp3' +alias mp3-dl='youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s"' alias weather='curl wttr.in/Karlsruhe' eval (dircolors -c ~/.dir_colors) diff --git a/i3wm/.i3/config b/i3wm/.i3/config index 222711d..6725ae0 100644 --- a/i3wm/.i3/config +++ b/i3wm/.i3/config @@ -141,6 +141,10 @@ mode "gaps" { bindsym Escape mode "default" } +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 1 +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-mute 0 0 && pactl set-sink-volume 0 +10% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-mute 0 0 && pactl set-sink-volume 0 -10% + for_window [class="^.*"] border pixel 4; for_window [title="^dictionary$"] border pixel 8, floating enable; for_window [title="VimWiki"] border pixel 8, floating enable, move to scratchpad; @@ -152,7 +156,7 @@ exec --no-startup-id export $(gnome-keyring-daemon) exec --no-startup-id urxvtd exec --no-startup-id twmnd exec --no-startup-id nm-applet -exec --no-startup-id volumeicon +exec --no-startup-id pasystray exec --no-startup-id feh --bg-center ~/.background.jpg exec --no-startup-id gvim -geometry 120x35 --servername VIMWIKI -c ":set title titlestring=VimWiki" -c ":set autowriteall" -c ":set noswapfile" ~/wiki/0.wiki exec --no-startup-id zeal -- cgit v1.2.3