From a512afc0dc1ab7513a2788a3c42de1e25d320ac7 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 10 May 2021 10:30:44 +0200 Subject: [PATCH] music playpause script --- config.h/dwm/config.h | 3 +-- config.h/slstatus/slstatus | 2 +- email/.config/mutt/muttrc | 5 +++-- music/.local/bin/music_toggle | 10 ++++++++++ music/.ncmpcpp/error.log | 0 shell/.local/bin/update | 9 ++++++++- x/.xinitrc | 3 +++ 7 files changed, 26 insertions(+), 6 deletions(-) create mode 100755 music/.local/bin/music_toggle delete mode 100644 music/.ncmpcpp/error.log diff --git a/config.h/dwm/config.h b/config.h/dwm/config.h index 9469981..bff64b5 100644 --- a/config.h/dwm/config.h +++ b/config.h/dwm/config.h @@ -71,8 +71,7 @@ static const char *brightdown[] = { "xbacklight", "-dec", "5", NULL }; static const char *volume_mute[] = {"pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL}; static const char *volume_dec[] = {"pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL}; static const char *volume_inc[] = {"pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL}; -//static const char *toggle_music[] = {"quodlibet", "--play-pause", NULL}; -static const char *toggle_music[] = {"cmus-remote", "--pause", NULL}; +static const char *toggle_music[] = {"music_toggle", NULL}; static Key keys[] = { /* modifier key function argument */ diff --git a/config.h/slstatus/slstatus b/config.h/slstatus/slstatus index 84a2f11..b14e039 160000 --- a/config.h/slstatus/slstatus +++ b/config.h/slstatus/slstatus @@ -1 +1 @@ -Subproject commit 84a2f117a32f0796045941260cdc4b69852b41e0 +Subproject commit b14e039639ed28005fbb8bddeb5b5fa0c93475ac diff --git a/email/.config/mutt/muttrc b/email/.config/mutt/muttrc index d900b28..a556bc5 100644 --- a/email/.config/mutt/muttrc +++ b/email/.config/mutt/muttrc @@ -1,6 +1,6 @@ # Basic information set from="Mart Lubbers " -alternates "(mart@cs\.ru\.nl|mart@martlubbers\.net|Mart\.Lubbers@ru\.nl)" +alternates "(mart@cs\.ru\.nl|m\.lubbers@cs\.ru\.nl|mart@martlubbers\.net|Mart\.Lubbers@ru\.nl)" set use_from=yes set reverse_name=yes set envelope_from=yes @@ -21,7 +21,7 @@ macro attach B "firefox \"data:text/html;base64,$(base64 -w 0 <&0)\" # Set the correct msmtp account for the different addresses send2-hook '~f mart@martlubbers.net'\ 'set sendmail="checkattach.sh msmtp -a net"' -send2-hook '((~f m.lubbers@cs.ru.nl)|(~f m.lubbers@science.ru.nl)|(~f mart@cs.ru.nl))'\ +send2-hook '((~f m.lubbers@cs.ru.nl)|(~f m.lubbers@science.ru.nl)|(~f mart@cs.ru.nl)|(~f m.lubbers@cs.ru.nl))'\ 'set sendmail="checkattach.sh msmtp -a ru"' # Macro for switching to the ru address @@ -72,6 +72,7 @@ auto_view application/vnd.oasis.opendocument.text auto_view application/msword # Pager options +#set pager=/usr/share/vim/vim82/macros/less.sh set pager_index_lines=20 set pager_context=3 set pager_stop diff --git a/music/.local/bin/music_toggle b/music/.local/bin/music_toggle new file mode 100755 index 0000000..dc6b297 --- /dev/null +++ b/music/.local/bin/music_toggle @@ -0,0 +1,10 @@ +#!/bin/sh + +# Quodlibet is running +if ! quodlibet --status +then + quodlibet --play-pause + +fi + + diff --git a/music/.ncmpcpp/error.log b/music/.ncmpcpp/error.log deleted file mode 100644 index e69de29..0000000 diff --git a/shell/.local/bin/update b/shell/.local/bin/update index 84cc6f2..f9c8470 100755 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -9,4 +9,11 @@ cmd() { } sudo sh -c "$(cmd)" -sh -c "tlmgr update --self && tlmgr update --all && offlineimap -o -u ttyui && khal $NUL && khard $NUL && pass git pull origin master" +tlmgr update --self && tlmgr update --all +khal calendar $NUL +khard $NUL +pass git pull origin master +if ! tmux list-sessions +then + tmuxmail +fi diff --git a/x/.xinitrc b/x/.xinitrc index f910dad..34049da 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -26,5 +26,8 @@ fi # status bar slstatus & +# compositor +xcompmgr -a -c -l0 -t0 -r0 -o.00 & + # window manager while true; do dwm 1>/tmp/dwm.log 2>&1; done -- 2.20.1