summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/i3status/config4
-rw-r--r--.config/isync/mbsyncrc21
-rw-r--r--.config/mutt/muttrc22
-rw-r--r--.config/sway/config10
-rw-r--r--.config/systemd/user/mbsync.service9
-rw-r--r--.config/systemd/user/mbsync.timer10
6 files changed, 67 insertions, 9 deletions
diff --git a/.config/i3status/config b/.config/i3status/config
index d064a7c..b5f64fb 100644
--- a/.config/i3status/config
+++ b/.config/i3status/config
@@ -39,8 +39,8 @@ ethernet _first_ {
battery 0 {
format = "%status %percentage %remaining %emptytime"
#path = "/sys/class/power_supply/rk-bat/uevent"
- #path = "/sys/class/power_supply/cw2015-battery/uevent"
- path = "/sys/class/power_supply/BAT0/uevent"
+ path = "/sys/class/power_supply/cw2015-battery/uevent"
+ #path = "/sys/class/power_supply/BAT0/uevent"
}
tztime local {
diff --git a/.config/isync/mbsyncrc b/.config/isync/mbsyncrc
new file mode 100644
index 0000000..f138920
--- /dev/null
+++ b/.config/isync/mbsyncrc
@@ -0,0 +1,21 @@
+IMAPAccount main
+Host mail.mehdix.org
+User mehdi@mehdix.org
+PassCmd "pass mail/mx"
+SSLType IMAPS
+AuthMechs LOGIN
+
+IMAPStore main-remote
+Account main
+
+MaildirStore main-local
+Subfolders Verbatim
+Path ~/Maildir/main/
+Inbox ~/Maildir/main/Inbox
+
+Channel main
+Far :main-remote:
+Near :main-local:
+Patterns *
+Create Both
+SyncState *
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
index 741cdd4..92c650b 100644
--- a/.config/mutt/muttrc
+++ b/.config/mutt/muttrc
@@ -1,8 +1,26 @@
+# Main config for Maildir (by mbsync)
+set folder = "~/Maildir/main"
+set mbox_type = Maildir
+set spoolfile = +Inbox
+set record = +Sent
+set postponed = +Drafts
+set header_cache = ~/.cache/mutt
+
+# Some nice to have
+set sort = threads
+set sort_aux = reverse-last-date-received
+set date_format = "%y/%m/%d %I:%M%p"
+
+# HTML
+set mailcap_path = "~/.config/mutt/mailcap"
+auto_view text/html
+alternative_order text/plain text/enriched text/html
+
# Read imap_pass
source ~/.config/mutt/secret
# IMAP
-set spoolfile = imaps://mail.mehdix.org/
+#set spoolfile = imaps://mail.mehdix.org/
set imap_user = mehdi@mehdix.org
# SMTP
@@ -16,4 +34,4 @@ set smtp_url = smtp://$imap_user@mehdix.org:587/
lists sr.ht-discuss
set reply_to = "ask-yes"
-source ~/.config/mutt/`hostname`
+#source ~/.config/mutt/`hostname`
diff --git a/.config/sway/config b/.config/sway/config
index bb9c126..2e4eb3d 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -4,7 +4,7 @@ set $down j
set $up k
set $right l
set $mod Mod4
-set $term foot
+set $term foot-extra
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
@@ -25,10 +25,10 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
-exec swayidle -w \
- timeout 300 'swaylock -f -c 000000' \
- timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
- before-sleep 'swaylock -f -c 000000'
+#exec swayidle -w \
+# timeout 300 'swaylock -f -c 000000' \
+# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
+# before-sleep 'swaylock -f -c 000000'
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
diff --git a/.config/systemd/user/mbsync.service b/.config/systemd/user/mbsync.service
new file mode 100644
index 0000000..cebd702
--- /dev/null
+++ b/.config/systemd/user/mbsync.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Mailbox synchronization service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mbsync -ac ${HOME}/.config/isync/mbsyncrc
+
+[Install]
+WantedBy=default.target
diff --git a/.config/systemd/user/mbsync.timer b/.config/systemd/user/mbsync.timer
new file mode 100644
index 0000000..82ebb83
--- /dev/null
+++ b/.config/systemd/user/mbsync.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mailbox synchronization timer
+
+[Timer]
+OnBootSec=2m
+OnUnitActiveSec=5m
+Unit=mbsync.service
+
+[Install]
+WantedBy=timers.target