This commit is contained in:
Geoffrey Frogeye 2018-05-21 10:57:19 +02:00
parent 4a7b5985a6
commit 57f9edbf56
8 changed files with 47 additions and 16 deletions

View file

@ -56,9 +56,9 @@ bindsym XF86AudioLowerVolume exec pactl set-sink-mute @DEFAULT_SINK@ false; exec
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ true
bindsym $mod+F7 exec pactl suspend-sink @DEFAULT_SINK@ 1; exec pactl suspend-sink @DEFAULT_SINK@ 0
# Re-synchronize bluetooth headset
bindsym $mod+F8 exec mpc prev
bindsym $mod+F9 exec mpc toggle
bindsym $mod+F10 exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioNext exec mpc next
bindsym $mod+F11 exec urxvtc -e 'pacmixer'
bindsym $mod+F12 exec urxvtc -e 'pacmixer'
@ -364,7 +364,7 @@ bindsym $mod+F5 exec --no-startup-id xautolock -enable
#exec --no-startup-id gnome-keyring-daemon # Password remembering
exec --no-startup-id urxvtd -q -f # urxvt daemon
exec --no-startup-id numlockx on # Activate Num lock
exec --no-startup-id unclutter # Hide mouse cursor after some time
exec --no-startup-id unclutter -root # Hide mouse cursor after some time
#exec --no-startup-id dunst # Notifications (handled by systemd)
exec --no-startup-id keynav # Keyboard cursor controller
#exec --no-startup-id $HOME/.config/i3/clipmenud # Clipboard manager

26
config/i3/multimediaKey Executable file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Send a key event to the current multimedia application or to MPD
# Currently since I did not found a way to test if a keystroke
# is grabbed by a windows or not, we test if MPD is playing
echo 8 "$1" "$2" "$(xdotool getactivewindow)" >> /tmp/dbg
if [ $# != 2 ]; then
echo "Usage: $0 KEY MPC_COMMAND"
exit 1
fi
if [ $(mpc status | wc -l) -ne 1 ]; then
# If mpd is running
mpc $2
else
# If mpd is not running
# echo "$1" "$2" "$(xdotool getactivewindow)" >> /tmp/dbg
xdotool key --window $(xdotool getactivewindow) $1
echo xdotool key --window $(xdotool getactivewindow) $1 >> /tmp/dbg
fi
exit 0

View file

@ -18,7 +18,7 @@ local_timezone = Europe/Paris
[default]
default_calendar = "Personnel"
default_command = interactive
default_command = calendar
highlight_event_days = True
show_all_days = True
timedelta = 7d

View file

@ -0,0 +1 @@
/home/geoffrey/.local/share/systemd/user/mbsync.timer