sup - initial commit

This commit is contained in:
Felix Van der Jeugt 2015-01-05 17:33:59 +01:00
parent 3df25d3dda
commit d70f1b36c0
6 changed files with 91 additions and 7 deletions

View File

@ -23,7 +23,7 @@ Mod=Mod4 # Use the super key as the main modifier
# herbstluft control # herbstluft control
hc keybind $Mod-Shift-q quit hc keybind $Mod-Shift-q quit
hc keybind $Mod-Shift-r reload hc keybind $Mod-Shift-r reload
hc keybind $Mod-Shift-c close hc keybind $Mod-q close
# application spawning # application spawning
hc keybind $Mod-Return spawn urxvtc hc keybind $Mod-Return spawn urxvtc
@ -33,6 +33,7 @@ hc keybind Scroll_Lock spawn dmenu_run
hc keybind $Mod-b spawn urxvtc -name ranger -e ranger hc keybind $Mod-b spawn urxvtc -name ranger -e ranger
hc keybind $Mod-Control-c spawn urxvtc -name weechat -e weechat hc keybind $Mod-Control-c spawn urxvtc -name weechat -e weechat
hc keybind $Mod-Control-n spawn urxvtc -name newsbeuter -e newsbeuter hc keybind $Mod-Control-n spawn urxvtc -name newsbeuter -e newsbeuter
hc keybind $Mod-Control-m spawn urxvtc -name sup -e sup
hc keybind XF86AudioMute spawn sound_control.sh toggle hc keybind XF86AudioMute spawn sound_control.sh toggle
hc keybind XF86AudioRaiseVolume spawn sound_control.sh up hc keybind XF86AudioRaiseVolume spawn sound_control.sh up
hc keybind XF86AudioLowerVolume spawn sound_control.sh down hc keybind XF86AudioLowerVolume spawn sound_control.sh down
@ -200,14 +201,9 @@ hc rule instance="pinentry-gtk-2" pseudotile=on
hc rule instance="Mail" tag=mail hc rule instance="Mail" tag=mail
hc rule title="weechat" tag=chat hc rule title="weechat" tag=chat
hc rule title="newsbeuter" tag=news hc rule title="newsbeuter" tag=news
hc rule title="sup" tag=mail
# }}} # }}}
# Weechat {{{
# }}} Weechat
# newsbeuter {{{
# }}} newsbeuter
# }}} Application Specific # }}} Application Specific
# unlock, just to be sure # unlock, just to be sure

43
sup/config.yaml Normal file
View File

@ -0,0 +1,43 @@
---
:editor: vim
:thread_by_subject: false
:edit_signature: false
:ask_for_from: false
:ask_for_to: true
:ask_for_cc: true
:ask_for_bcc: false
:ask_for_subject: true
:account_selector: true
:confirm_no_attachments: true
:confirm_top_posting: true
:jump_to_open_message: true
:discard_snippets_from_encrypted_messages: false
:load_more_threads_when_scrolling: true
:default_attachment_save_dir: '/home/felix/Temporary/'
:sent_source: sup://sent
:archive_sent: true
:poll_interval: 300
:wrap_width: 0
:slip_rows: 0
:col_jump: 2
:stem_language: english
:sync_back_to_maildir: true
:continuous_scroll: false
:always_edit_async: false
:accounts:
:default:
:name: Felix Van der Jeugt
:email: felix.vanderjeugt@gmail.com
:alternates:
- felix.vanderjeugt@12urenloop.be
:sendmail: "/usr/bin/msmtp --account=gmail -t --read-envelope-from"
:signature: "/home/felix/.signature"
:gpgkey: ''
:ugent:
:name: Felix Van der Jeugt
:email: felix.vanderjeugt@ugent.be
:sendmail: "/usr/bin/msmtp --account=ugent -t --read-envelope-from"
:signature: "/home/felix/.signature"
:gpgkey: ''
:alternates: []
:time_mode: 24h

6
sup/hooks/after-poll.rb Normal file
View File

@ -0,0 +1,6 @@
if num_inbox > 0
system "notify-send", \
"#{num_inbox_total_unread} unread messages (#{num_inbox} new)", \
from_and_subj_inbox.map {|p| "#{p[0]} - #{p[1]}"}.join("\n")
end

4
sup/hooks/before-poll.rb Normal file
View File

@ -0,0 +1,4 @@
say "Running mbsync..."
if not system "mbsync", "-a", "-qq"
say "mbsync unsuccesful."
end

1
sup/hooks/goto.rb Normal file
View File

@ -0,0 +1 @@
system "xdg-open #{uri} > /dev/null"

34
sup/sources.yaml Normal file
View File

@ -0,0 +1,34 @@
---
- !supmua.org,2006-10-01/Redwood/Maildir
uri: maildir:/home/felix/Mail/gmail/Inbox
usual: true
archived: false
sync_back: true
id: 1
labels:
- GMail
- !supmua.org,2006-10-01/Redwood/Maildir
uri: maildir:/home/felix/Mail/ugent/Inbox
usual: true
archived: false
sync_back: true
id: 3
labels:
- UGent
- !supmua.org,2006-10-01/Redwood/Maildir
uri: maildir:/home/felix/Mail/gmail/Sent
usual: true
archived: true
sync_back: true
id: 2
labels:
- GMail
- !supmua.org,2006-10-01/Redwood/Maildir
uri: maildir:/home/felix/Mail/ugent/Sent
usual: true
archived: true
sync_back: true
id: 4
labels:
- UGent
- !supmua.org,2006-10-01/Redwood/SentLoader {}