@@ -132,6 +132,7 @@ alias show='apt show' | |||||
alias lynx='lynx -vikeys' | alias lynx='lynx -vikeys' | ||||
alias lsa='ls -laF' | alias lsa='ls -laF' | ||||
alias doihave='apt list --installed' | alias doihave='apt list --installed' | ||||
alias email='neomutt' | |||||
# Utilities | # Utilities | ||||
alias ins='sudo apt-get install' | alias ins='sudo apt-get install' | ||||
@@ -1,16 +1,46 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
setxkbmap -option ctrl:swapcaps -option tilde:swapescape | |||||
source ~/.profile | source ~/.profile | ||||
# Setup statusbar and mail | |||||
speaker_muted=🔇 | |||||
speaker_low=🔈 | |||||
speaker_medium=🔉 | |||||
speaker_high=🔊 | |||||
brightness_symbol=🔅 | |||||
DELAY=1m | |||||
while true; do | |||||
mbsync -a | |||||
sleep $DELAY | |||||
done & | |||||
while true; do | |||||
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') | |||||
volume_amount=$(printf $volume | tr -d %) | |||||
if [ $volume_amount = 0 ]; then | |||||
volume_symbol=$speaker_muted | |||||
elif [ $volume_amount -lt 30 ]; then | |||||
volume_symbol=$speaker_low | |||||
elif [ $volume_amount -lt 70 ]; then | |||||
volume_symbol=$speaker_medium | |||||
else | |||||
volume_symbol=$speaker_high | |||||
fi | |||||
xsetroot -name "📧Messages $(find ~/Mail -path '*/INBOX/new' -type f | wc -l) | | |||||
$volume_symbol$volume | $(date +"%c")" | |||||
sleep $DELAY | |||||
done & | |||||
setxkbmap -option ctrl:swapcaps -option tilde:swapescape | |||||
picom -b | picom -b | ||||
~/.fehbg | ~/.fehbg | ||||
xbindkeys -f $HOME/Source/configs/xbindkeysrc | xbindkeys -f $HOME/Source/configs/xbindkeysrc | ||||
mkfifo /tmp/torrents.fifo | |||||
# aria2 downloads should be resumed here | |||||
( mru update; mru updatedirs ) & | ( mru update; mru updatedirs ) & | ||||
# relaunch DWM if the binary changes, otherwise bail | |||||
# Relaunch DWM if the binary changes, otherwise bail | |||||
csum=$(sha1sum $(which dwm)) | csum=$(sha1sum $(which dwm)) | ||||
new_csum="" | new_csum="" | ||||
while true | while true | ||||
@@ -18,7 +48,6 @@ do | |||||
if [ "$csum" != "$new_csum" ] | if [ "$csum" != "$new_csum" ] | ||||
then | then | ||||
csum=$new_csum | csum=$new_csum | ||||
dwm-statusbar & | |||||
dwm | dwm | ||||
else | else | ||||
exit 0 | exit 0 | ||||
@@ -0,0 +1,7 @@ | |||||
### Additional steps ### | |||||
Create passwords file in ~/.config for personal email, work email, etc. It's to | |||||
prevent passwords from being stored in repo. | |||||
@@ -1 +1,18 @@ | |||||
abook | |||||
isync | |||||
neomutt | |||||
cmus | |||||
ncmpcpp | |||||
mpd | |||||
nnn | |||||
sxiv | |||||
mpv | |||||
abiword | |||||
zathura | |||||
vim | |||||
git | |||||
compton | |||||
feh | |||||
trash-cli | |||||
pulseaudio | |||||
wmctrl |
@@ -2,7 +2,7 @@ | |||||
IMAPAccount mailfence-immanuel | IMAPAccount mailfence-immanuel | ||||
Host imap.mailfence.com | Host imap.mailfence.com | ||||
User immanuel | User immanuel | ||||
PassCmd "pass email/mailfence.com | head -n 1" | |||||
PassCmd "grep 'personal:' ~/.config/passwords | cut -d ' ' -f 2 | head -n 1" | |||||
Port 993 | Port 993 | ||||
# CertificateFile ~/.config/protonmail/bridge/cert.pem | # CertificateFile ~/.config/protonmail/bridge/cert.pem | ||||
SSLType IMAPS | SSLType IMAPS | ||||
@@ -67,3 +67,29 @@ Channel mailfence-immanuel-drafts | |||||
Channel mailfence-immanuel-sent | Channel mailfence-immanuel-sent | ||||
Channel mailfence-immanuel-trash | Channel mailfence-immanuel-trash | ||||
Channel mailfence-immanuel-junk | Channel mailfence-immanuel-junk | ||||
# Work account | |||||
IMAPAccount work-immanuel | |||||
Host outlook.office365.com | |||||
User immanuel@brashinc.com | |||||
PassCmd "grep 'work:' ~/.config/passwords | cut -d ' ' -f 2 | head -n 1" | |||||
Port 993 | |||||
SSLType IMAPS | |||||
# SSLVersions TLSv1.2 | |||||
# Remote storage | |||||
IMAPStore work-immanuel-remote | |||||
Account work-immanuel | |||||
PathDelimiter / | |||||
# Local storage | |||||
MaildirStore work-immanuel-local | |||||
Path ~/Mail/work/ | |||||
Inbox ~/Mail/work/INBOX | |||||
SubFolders Verbatim | |||||
Channel work-immanuel-inbox | |||||
Far :work-immanuel-remote: | |||||
Near :work-immanuel-local: | |||||
Patterns * | |||||
Create Both |
@@ -47,8 +47,9 @@ set sort_re | |||||
# Mailboxes to show in the sidebar. | # Mailboxes to show in the sidebar. | ||||
mailboxes =ALL-INBOX | |||||
# mailboxes =ALL-INBOX | |||||
mailboxes =personal/INBOX =personal/archive =personal/sent =personal/drafts =personal/junk =personal/trash | mailboxes =personal/INBOX =personal/archive =personal/sent =personal/drafts =personal/junk =personal/trash | ||||
mailboxes =work/INBOX | |||||
# mailboxes =work/"[Gmail]INBOX" =work/"[Gmail]/Spam" =work/"[Gmail]/Trash" =work/"[Gmail]/All Mail" =work/Reference | # mailboxes =work/"[Gmail]INBOX" =work/"[Gmail]/Spam" =work/"[Gmail]/Trash" =work/"[Gmail]/All Mail" =work/Reference | ||||
# mailboxes =hussar | # mailboxes =hussar | ||||
# mailboxes =hussar/archive =hussar/sent =hussar/drafts =hussar/junk =hussar/trash | # mailboxes =hussar/archive =hussar/sent =hussar/drafts =hussar/junk =hussar/trash | ||||