Update for making things work on Fedora 25

This commit is contained in:
Sanchayan Maity 2017-05-26 16:37:27 +05:30
parent 2bc05e63de
commit d162d9daa7
7 changed files with 21 additions and 22 deletions

View file

@ -28,7 +28,7 @@ font pango:System San Francisco Display 8
floating_modifier $mod floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Return exec gnome-terminal
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill

View file

@ -168,7 +168,7 @@ function get_imap_password(file)
end end
function get_pwd_victor() function get_pwd_victor()
local cmd = "gpg --use-agent --quiet --batch --decrypt ~/.victor.gpg" local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.victor.gpg"
local fd = io.popen(cmd, 'r') local fd = io.popen(cmd, 'r')
pass = fd:read("*a") pass = fd:read("*a")
fd:close() fd:close()
@ -176,7 +176,7 @@ function get_pwd_victor()
end end
function get_pwd_sanchayan() function get_pwd_sanchayan()
local cmd = "gpg --use-agent --quiet --batch --decrypt ~/.sanchayan.gpg" local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.sanchayan.gpg"
local fd = io.popen(cmd, 'r') local fd = io.popen(cmd, 'r')
pass = fd:read("*a") pass = fd:read("*a")
fd:close() fd:close()

View file

@ -5,25 +5,25 @@ port 587
protocol smtp protocol smtp
auth on auth on
tls on tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt tls_trust_file /etc/ssl/certs/ca-bundle.crt
account Sanchayan account Sanchayan
host smtp.gmail.com host smtp.gmail.com
from maitysanchayan@gmail.com from maitysanchayan@gmail.com
user maitysanchayan@gmail.com user maitysanchayan@gmail.com
passwordeval "gpg --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/sanchayan/.gnupg --decrypt ~/.sanchayan.gpg" passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/sanchayan/.gnupg --decrypt ~/.sanchayan.gpg"
account Victor account Victor
host smtp.gmail.com host smtp.gmail.com
from victorascroft@gmail.com from victorascroft@gmail.com
user victorascroft@gmail.com user victorascroft@gmail.com
passwordeval "gpg --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/sanchayan/.gnupg --decrypt ~/.victor.gpg" passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/sanchayan/.gnupg --decrypt ~/.victor.gpg"
account Toradex account Toradex
host smtp.office365.com host smtp.office365.com
from sanchayan.maity@toradex.com from sanchayan.maity@toradex.com
user sanchayan.maity@toradex.com user sanchayan.maity@toradex.com
passwordeval "gpg --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/sanchayan/.gnupg --decrypt ~/.toradex.gpg" passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/sanchayan/.gnupg --decrypt ~/.toradex.gpg"
# Set a default account # Set a default account
account default : Sanchayan account default : Sanchayan

View file

@ -48,14 +48,11 @@ macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>'
set send_charset="us-ascii:utf-8" set send_charset="us-ascii:utf-8"
set send_charset="utf-8" set send_charset="utf-8"
set editor="nano" set editor="emacsclient -t"
set date_format="%y-%m-%d %T" set date_format="%y-%m-%d %T"
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s" set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
folder-hook *[sS]ent* 'set index_format="%2C | %Z [%d] %-30.30t (%-4.4c) %s"'
folder-hook ! *[sS]ent* 'set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"'
set sleep_time = 0 set sleep_time = 0
set mailcap_path = ~/.mutt/mailcap set mailcap_path = ~/.mutt/mailcap
@ -81,4 +78,3 @@ set header_cache=~/Mail/mutt_cache/ # a much faster opening of mailboxes...
macro index D "<save-message>+/ACCOUNT/[Gmail].Trash<enter>" "Move message to the trash" macro index D "<save-message>+/ACCOUNT/[Gmail].Trash<enter>" "Move message to the trash"
source /etc/Muttrc.gpg.dist

View file

@ -1,10 +1,12 @@
#!/usr/bin/python3
import subprocess import subprocess
import sys
def mailpasswd(account): def mailpasswd(account):
path = "/home/sanchayan/.%s.gpg" % account path = "/home/sanchayan/.%s.gpg" % account
args = ["gpg", "--use-agent", "--quiet", "--batch", "-d", path] args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path]
try: try:
return subprocess.check_output(["gpg", "--batch", "-d", path]).strip() return subprocess.check_output(["gpg2", "--batch", "-d", path]).strip()
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
return "" return ""

View file

@ -35,7 +35,7 @@ type = Gmail
remoteuser = maitysanchayan@gmail.com remoteuser = maitysanchayan@gmail.com
remotepasseval = mailpasswd("sanchayan") remotepasseval = mailpasswd("sanchayan")
realdelete = yes realdelete = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt sslcacertfile = /etc/ssl/certs/ca-bundle.crt
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail','[Gmail]/Trash'] folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail','[Gmail]/Trash']
[Repository Victor-Remote] [Repository Victor-Remote]
@ -43,7 +43,7 @@ type = Gmail
remoteuser = victorascroft@gmail.com remoteuser = victorascroft@gmail.com
remotepasseval = mailpasswd("victor") remotepasseval = mailpasswd("victor")
realdelete = yes realdelete = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt sslcacertfile = /etc/ssl/certs/ca-bundle.crt
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail', '[Gmail]/Trash'] folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail', '[Gmail]/Trash']
[Repository Toradex-Remote] [Repository Toradex-Remote]
@ -52,7 +52,7 @@ remotehost = outlook.office365.com
remoteuser = sanchayan.maity@toradex.com remoteuser = sanchayan.maity@toradex.com
remotepasseval = mailpasswd("toradex") remotepasseval = mailpasswd("toradex")
realdelete = yes realdelete = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt sslcacertfile = /etc/ssl/certs/ca-bundle.crt
folderfilter = lambda folder: folder in ['INBOX', 'Sent'] folderfilter = lambda folder: folder in ['INBOX', 'Sent']
postsynchook = notmuch new postsynchook = notmuch new

View file

@ -18,6 +18,7 @@ values."
;; of a list then all discovered layers will be installed. ;; of a list then all discovered layers will be installed.
dotspacemacs-configuration-layers dotspacemacs-configuration-layers
'( '(
shell-scripts
python python
asm asm
;; ---------------------------------------------------------------- ;; ----------------------------------------------------------------
@ -37,7 +38,7 @@ values."
;; syntax-checking ;; syntax-checking
;; version-control ;; version-control
c-c++ c-c++
clojure rust
haskell haskell
gtags gtags
latex latex
@ -84,19 +85,19 @@ values."
;; List of themes, the first of the list is loaded when spacemacs starts. ;; List of themes, the first of the list is loaded when spacemacs starts.
;; Press <SPC> T n to cycle to the next theme in the list (works great ;; Press <SPC> T n to cycle to the next theme in the list (works great
;; with 2 themes variants, one dark and one light) ;; with 2 themes variants, one dark and one light)
dotspacemacs-themes '(spacemacs-dark dotspacemacs-themes '(monokai
spacemacs-dark
spacemacs-light spacemacs-light
solarized-light solarized-light
solarized-dark solarized-dark
monokai
leuven leuven
zenburn) zenburn)
;; If non nil the cursor color matches the state color. ;; If non nil the cursor color matches the state color.
dotspacemacs-colorize-cursor-according-to-state t dotspacemacs-colorize-cursor-according-to-state t
;; Default font. `powerline-scale' allows to quickly tweak the mode-line ;; Default font. `powerline-scale' allows to quickly tweak the mode-line
;; size to make separators look not too crappy. ;; size to make separators look not too crappy.
dotspacemacs-default-font '("Source Code Pro" dotspacemacs-default-font '("Cantarell"
:size 13 :size 16
:weight normal :weight normal
:width normal :width normal
:powerline-scale 1.1) :powerline-scale 1.1)