aboutsummaryrefslogtreecommitdiff
path: root/home/.config/i3/config
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-02-28 23:37:56 -0800
committerJakob Odersky <jakob@odersky.com>2017-02-28 23:37:56 -0800
commitcbfdbe795021a02a955aee741cec736293e4ac02 (patch)
tree9de41aa586f6c8484852e7e281cc3a151717cea1 /home/.config/i3/config
parent08f87da2cfdde295043ab9859786c92afd47b261 (diff)
downloaddotfiles-cbfdbe795021a02a955aee741cec736293e4ac02.tar.gz
dotfiles-cbfdbe795021a02a955aee741cec736293e4ac02.tar.bz2
dotfiles-cbfdbe795021a02a955aee741cec736293e4ac02.zip
Use signals to update i3blocks
Diffstat (limited to 'home/.config/i3/config')
-rw-r--r--home/.config/i3/config18
1 files changed, 9 insertions, 9 deletions
diff --git a/home/.config/i3/config b/home/.config/i3/config
index 1111ff2..faf95d0 100644
--- a/home/.config/i3/config
+++ b/home/.config/i3/config
@@ -137,7 +137,7 @@ bindsym $mod+x exec --no-startup-id dmenu_run # all executables
mode "common" {
bindsym t exec i3-sensible-terminal, mode "default"
- bindsym e exec emacsclient --alternate-editor='' --create-frame --no-wait --eval '(switch-to-buffer nil)', mode "default"
+ bindsym e exec emacsclient --alternate-editor='' --create-frame --no-wait , mode "default"
bindsym f exec firefox, mode "default"
bindsym p exec open-project, mode "default"
bindsym y exec passmenu, mode "default"
@@ -156,16 +156,16 @@ mode "setup" {
bindsym XF86LaunchA mode setup
# media keys
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ '-5%'
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ '+5%'
-bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
-bindsym XF86AudioPlay exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
-bindsym XF86AudioNext exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
-bindsym XF86AudioPrev exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ '-5%', exec pkill -SIGRTMIN+10 i3blocks
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ '+5%', exec pkill -SIGRTMIN+10 i3blocks
+bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle, exec pkill -SIGRTMIN+10 i3blocks
+bindsym XF86AudioPlay exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause, exec pkill -SIGRTMIN+10 i3blocks
+bindsym XF86AudioNext exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next, exec pkill -SIGRTMIN+10 i3blocks
+bindsym XF86AudioPrev exec --no-startup-id dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous, exec pkill -SIGRTMIN+10 i3blocks
# lighting
-bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -steps 1 -time 0 -dec 2
-bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -steps 1 -time 0 -inc 2
+bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -steps 1 -time 0 -dec 2, exec pkill -SIGRTMIN+10 i3blocks
+bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -steps 1 -time 0 -inc 2, exec pkill -SIGRTMIN+10 i3blocks
# GNOME desktop settings such as font sizes and touchpad settings
exec --no-startup-id gnome-shell