From 4ff2128ca916831308e75b946ebf4718af40b1e1 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 23 Sep 2025 14:24:49 +0200 Subject: [PATCH] updates --- cal/.local/bin/import_ics.bash | 3 +++ cal/.local/bin/unical.bash | 8 -------- email/.config/mutt/muttrc | 2 +- shell/.local/bin/tmuxmail | 2 +- shell/.local/bin/tmuxmailu | 10 ++++++++++ x/.config/mimeapps.list | 1 + x/.local/bin/music_toggle | 5 +++++ x/.xinitrc | 4 +++- 8 files changed, 24 insertions(+), 11 deletions(-) create mode 100755 cal/.local/bin/import_ics.bash delete mode 100755 cal/.local/bin/unical.bash create mode 100755 shell/.local/bin/tmuxmailu diff --git a/cal/.local/bin/import_ics.bash b/cal/.local/bin/import_ics.bash new file mode 100755 index 0000000..5afd9ce --- /dev/null +++ b/cal/.local/bin/import_ics.bash @@ -0,0 +1,3 @@ +#!/bin/bash +cat - | khal import --batch +vdirsyncer sync calendar/mart diff --git a/cal/.local/bin/unical.bash b/cal/.local/bin/unical.bash deleted file mode 100755 index a095cdd..0000000 --- a/cal/.local/bin/unical.bash +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -URL='http://persoonlijkrooster.ru.nl/ical?5f3a4d37&group=false&deduplicate=true&eu=dTUzMTE1OA==&t=9c210088-e219-427c-bbcc-256fddc28c30' -rm -f /home/mrl/.local/share/vdirsyncer/cal/uni/* -curl -sSL "$URL" | khal import --batch -a uni - - -URL='https://wasteapi.ximmio.com/api/CallIcal?cn=Gemeente%20Almere&x=53d8db94-7945-42fd-9742-9bbc71dbe4c1&ty=null&ua=11219&sd=2020-12-21&ed=2024-01-09&path=https://wasteapi.ximmio.com&ln=nl&nt=1130' -rm -f /home/mrl/.local/share/vdirsyncer/cal/vuilnis/* -curl -sSL "$URL" | khal import --batch -a vuilnis - diff --git a/email/.config/mutt/muttrc b/email/.config/mutt/muttrc index 55e66e4..7e86d3f 100644 --- a/email/.config/mutt/muttrc +++ b/email/.config/mutt/muttrc @@ -98,7 +98,7 @@ set tilde set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" # Address book -set query_command= "khard email --parsable '%s'" +set query_command= "khard email --parsable '%s' && notmuch-addrlookup --format=mutt '%s'" bind editor complete-query bind editor ^T complete macro index,pager A \ diff --git a/shell/.local/bin/tmuxmail b/shell/.local/bin/tmuxmail index 50d4ad0..88bf12f 100755 --- a/shell/.local/bin/tmuxmail +++ b/shell/.local/bin/tmuxmail @@ -2,7 +2,7 @@ tmux -f ~/.config/tmux/config\ new-session -s mail -d 'offlineimap -a net' \;\ split-window -h 'offlineimap -a ru' \;\ - split-window -v 'update' \;\ + split-window -v 'vdirsyncer sync' \;\ new-window 'mutt' \;\ new-session -s work \;\ attach-session -t mail \;\ diff --git a/shell/.local/bin/tmuxmailu b/shell/.local/bin/tmuxmailu new file mode 100755 index 0000000..50d4ad0 --- /dev/null +++ b/shell/.local/bin/tmuxmailu @@ -0,0 +1,10 @@ +#!/bin/sh +tmux -f ~/.config/tmux/config\ + new-session -s mail -d 'offlineimap -a net' \;\ + split-window -h 'offlineimap -a ru' \;\ + split-window -v 'update' \;\ + new-window 'mutt' \;\ + new-session -s work \;\ + attach-session -t mail \;\ + select-window -t:1 +exec tmux attach diff --git a/x/.config/mimeapps.list b/x/.config/mimeapps.list index 1dc0d73..ef86802 100644 --- a/x/.config/mimeapps.list +++ b/x/.config/mimeapps.list @@ -15,6 +15,7 @@ application/x-extension-xht=firefox-esr.desktop inode/directory=nemo.desktop application/x-gnome-saved-search=nemo.desktop text/x-arduino=arduino-arduinoide.desktop +x-scheme-handler/discord-1352351827206733974=discord-1352351827206733974.desktop [Added Associations] application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop; diff --git a/x/.local/bin/music_toggle b/x/.local/bin/music_toggle index a6eeafd..e5a9f93 100755 --- a/x/.local/bin/music_toggle +++ b/x/.local/bin/music_toggle @@ -14,3 +14,8 @@ if dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org then dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause fi + +if pidof -q strawberry +then + strawberry --play-pause +fi diff --git a/x/.xinitrc b/x/.xinitrc index 77b1cd8..dd314a9 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -1,5 +1,5 @@ #!/bin/bash -#To fix java applications in tiling (e.g. arduino) +#To fix (some) java applications in tiling (e.g. arduino) export _JAVA_AWT_WM_NONREPARENTING=1 # notifications @@ -26,6 +26,8 @@ signal-desktop --use-tray-icon --start-in-tray & # discord...................... discord --start-minimized & +# blueman +blueman-applet & # Other system wide xinit files if [ -f /etc/X11/xinit/xinitrc ]; then -- 2.20.1