mpc stuff

This commit is contained in:
NaiJi ✨ 2024-02-11 23:48:02 +04:00
parent 9fa0dcdf7a
commit 69ad31d0f3
1 changed files with 2 additions and 1 deletions

View File

@ -221,11 +221,12 @@ mode "$mode_system" {
} }
bindsym $mod+Shift+M mode "$mode_media" bindsym $mod+Shift+M mode "$mode_media"
set $mode_media (p)lay, (r)ecord, (s)top set $mode_media (p)lay, (u)pdate music, (r)ecord, (s)top
mode "$mode_media" { mode "$mode_media" {
bindsym p exec mpv $(xclip -o), mode "default" bindsym p exec mpv $(xclip -o), mode "default"
bindsym r exec /home/naiji/.local/bin/ffmpeg-util record, mode "default" bindsym r exec /home/naiji/.local/bin/ffmpeg-util record, mode "default"
bindsym s exec /home/naiji/.local/bin/ffmpeg-util stop && notify-send -e -t 1000 -i video "ffmpeg" "done", mode "default" bindsym s exec /home/naiji/.local/bin/ffmpeg-util stop && notify-send -e -t 1000 -i video "ffmpeg" "done", mode "default"
bindsym u exec systemctl --user restart mpd.service && mpc update && mpc clear && mpc add / && mpc play, mode "default"
# exit system mode: "Enter" or "Escape" # exit system mode: "Enter" or "Escape"
bindsym Return mode "default" bindsym Return mode "default"