fix: i3 control for mpd

This commit is contained in:
Tobias Reisinger 2020-02-13 20:43:43 +01:00
parent e5bbfaa082
commit 1ae08204a4

View file

@ -65,19 +65,19 @@ font pango:monospace 12
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
height 20
tray_output HDMI-1
colors {
background $bg-color
separator $separator-color
# border background text
focused_workspace $bg-color $bg-color $text-color
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
}
status_command i3status -c ~/.config/i3/i3status.config
}
#bar {
# height 20
# tray_output HDMI-1
# colors {
# background $bg-color
# separator $separator-color
# # border background text
# focused_workspace $bg-color $bg-color $text-color
# inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
# urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
# }
# status_command i3blocks # i3status -c ~/.config/i3statusconfig
#}
### MODES
@ -116,6 +116,7 @@ mode "$mode_refresh_rate" {
bindsym $mod+Return exec alacritty
bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -show
bindsym $mod+p exec --no-startup-id rofi-pass
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@ -171,29 +172,26 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
bindsym --release $mod+Print exec "import /tmp/screenshot.png"
bindsym --release $mod+Print exec "import /tmp/screenshot.png && xclip -t image/png /tmp/screenshot.png -selection clipboard"
# Enter Mode
bindsym $mod+r mode "resize"
bindsym $mod+Pause mode "$mode_system"
bindsym $mod+m mode "$mode_refresh_rate"
# Pulse Audio controls
#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
#bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioPause exec --no-startup-id mpc pause
bindsym XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioRaiseVolume exec --no-startup-id mpc volume +1
bindsym XF86AudioLowerVolume exec --no-startup-id mpc volume -1
#bindsym XF86AudioMute exec --no-startup-id mpc toggleoutput
### i3 gaps
gaps outer 0
gaps inner 5
smart_gaps on
gaps inner 10
gaps outer -10
### Launchers
@ -212,10 +210,10 @@ exec sleep 8; riot-desktop
exec ckb-next -b
exec steam-runtime -silent -tcp
exec transmission-gtk -m
#exec obs --startreplaybuffer --minimize-to-tray
# Wallpaper
exec_always feh --bg-fill ~/Pictures/Wallpaper/active_wallpaper
# Eyecandy
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec_always --no-startup-id feh --bg-fill ~/Pictures/wallpaper/active_wallpaper
exec conky --daemonize --config="$HOME/.config/conky/clock.conf"
exec conky --daemonize --config="$HOME/.config/conky/cpu_ram_storage.conf"