aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-10-04 13:40:16 +0200
committerAdrian Kummerlaender2017-10-04 13:40:16 +0200
commit812a7abb72486519b075d2937692e4fd74488e34 (patch)
tree848cb214d76538a228d5874b1ac05ee398510c58
parent5eb8256dd631f2e0012fc57894a22157cb96388f (diff)
downloaddotfiles-812a7abb72486519b075d2937692e4fd74488e34.tar
dotfiles-812a7abb72486519b075d2937692e4fd74488e34.tar.gz
dotfiles-812a7abb72486519b075d2937692e4fd74488e34.tar.bz2
dotfiles-812a7abb72486519b075d2937692e4fd74488e34.tar.xz
dotfiles-812a7abb72486519b075d2937692e4fd74488e34.zip
Bind volume keys to pulseaudio control
-rw-r--r--fish/.config/fish/config.fish2
-rw-r--r--i3wm/.i3/config6
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