My Dotfiles

My dotfiles

Window Managers: AwesomeWM & i3



install: apt-get install awesome

chose_theme = "default-modified"


awesome -k

Awesome tags:

1: start
2: code
3: internet
4: idea
5: agile
6: office
7: irc
8: root
9: other

Open apps at startup using:


Open Applications in ONLY this specific tag:

  1. free to open any app

  2. code

  • terminal split vertically in two (top)
  • emacs (bottom)
  • zeal (right)
  1. chromium in incognito

  2. VYM

  3. Emacs in agile-mode

  4. libreoffice, planner, calendar, gnome-commander, nautilus, documents, dictionary, zotero, etc

  5. telegram, mutt, slack, irc, shared calendar, dropbox cli, twitter

  6. terminal in root mode

  7. mpv, etc

** Background awesome wm: /usr/share/awesome/themes/default/background.png # Change the background.png with own file! /Pictures/wallpaper/background.png

** Tag tables:

-- Each screen has its own tag table.
awful.tag({ "1: start", "2: terms", "3: internet", "4: idea", "5: docs", "6: office", "7: irc", "8: root", "9: other" }, s, awful.layout.layouts[1])

** Disable that iritating right-click menu popup

Comment this line: – awful.button({ }, 3, function () mymainmenu:toggle() end),

** Open Apps using keyboard combinations (Ctrl + Super + “x”)

globalkeys = awful.util.table.join(globalkeys,

– this is to be able to spawn emacs using key combination Control + Super + E

awful.key({ modkey, "Control" }, "e",
function ()
{description = "open a terminal", group = "launcher"}),

– this is to have a dark blue screen lock when the user types Control + Super + L

awful.key({ modkey, "Control" }, "a", function () awful.spawn("i3lock -u -c 000040") end,
{description = "open a terminal", group = "launcher"}),

– this is start VYM when the user types Control + Super + Y

awful.key({ modkey, "Control" }, "y", function () awful.spawn("vym") end,
{description = "open a terminal", group = "launcher"}),

– this is start Planner when the user types Control + Super + P

awful.key({ modkey, "Control" }, "p", function () awful.spawn("planner") end,
{description = "open a terminal", group = "launcher"}),

– this is start Mutt when the user types Control + Super + M

awful.key({ modkey, "Control" }, "m", function () awful.spawn("mutt") end,
{description = "open a terminal", group = "launcher"}),

– this is start LibreOffice when the user types Control + Super + L

awful.key({ modkey, "Control" }, "l", function () awful.spawn("libreoffice") end,
{description = "open a terminal", group = "launcher"}),

– this is start LibreOffice when the user types Control + Super + O

awful.key({ modkey, "Control" }, "o", function () awful.spawn("postman") end,
{description = "open a terminal", group = "launcher"}),

– open a incognito chromium webbrowser

awful.key({ modkey, "Control" }, "w", function () awful.spawn("chromium --incognito") end,
{description = "open a terminal", group = "launcher"})


** Change the background of the terminal

– black background with white text

terminal = "x-terminal-emulator -bg black -fg white"

** Run apps at start – autorun

if autorun then
   	for app = 1, #autorunApps do

– Autorun programs

autorun = true
autorunApps =

** Remove layouts

– Table of layouts to cover with, order matters.

awful.layout.layouts = {
	--    awful.layout.suit.fair,
	--    awful.layout.suit.fair.horizontal,
	--    awful.layout.suit.spiral,
	--    awful.layout.suit.spiral.dwindle,
	--    awful.layout.suit.max.fullscreen,
	--    awful.layout.suit.corner.nw,
		-- awful.layout.suit.corner.sw,


apt install i3

Favorite font

font pango:System San Francisco Display 10

Start compton

exec compton

Always open thunar window manager when i3 starts

exec_always thunar # open window manager

Key bindings

Print key = printscreen

bindsym Print exec bash /home/alin/bin/alinscreencapture

S+Print = printscreen, open in a photo manipulation program, save.

bindsym Shift+Print exec bash /home/alin/bin/alinscreencaptureandedit

Open a design app

bindsym $mod+Shift+d exec bash /home/alin/bin/designer

Open telegram

bindsym $mod+Shift+t exec bash /home/alin/bin/telegram


Mutt settings for icloud email (*)

set imap_user = "user"
set from = ""
set smtp_url = "smtp://"

set folder = "imaps://"
set spoolfile = "imaps://"
set postponed = "+Drafts"
set record = "+Sent Messages"

set imap_pipeline_depth=0

set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"


Useful terminal commands for working with emacs:

emacs -nw = new emacs window

watch tree = watch tree in terminal for 3 min


C-x C-q (cont..)

C-x C-s = edit files and folders as a file

A-/ auto-complete cycle

emacs checklist:

  • medium, jekyll
  • erc
  • mutt
  • slack
  • excel
  • notes / remember
  • calendar gcal.el
  • codepad
  • ipython
  • python compiler
  • neotree
  • google maps
  • google translate
  • google here *search
  • eshell
  • hackernews
  • battery (laptop)
  • dashboard
  • bookmarks
  • trump (webdav, ssh, )
  • dropbox
  • email
  • telegram
  • firefox-mode
  • playerctl
  • alin_modes
  • emacs wm
  • templates
  • web server (w/ broweser sync)
  • sync content with mobile and ipad via calendar and dropbox/mega/box
  • excel updates
  • artist mode
  • org-mind-map
  • github
  • emmet mode (always on)


IDEAS to implement:

  • emacs + google calendar:

emacs files:

  • (dropbox.el)
  • (dropbox.el)
  • (dropbox.el in sync with gcal.el)
  • Done (sync with dropbox.el)
  • all 4 sinced with trello


Compilation example

emacs compile python ~/py/working/src/

M-x compile (enter)

python ~/py/working/src/


Emacs config and other daemons

Theme and settings

; setup theme
(load-theme 'misterioso) ; 'tango-dark

; remove menu, tab and scroll
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode 0)

;text increasing
(text-scale-adjust 1)

; start emacs in fullscreen mode
(add-hook 'emacs-startup-hook 'toggle-frame-maximized)

; open browser where the cursor is
(defun webbrowser-visit-thing-at-point()
(start-process "emacs-webbrowser-visit-thing-at-point-process" "*Messages*" "/home/rider/.emacs.d/x/webbrowserwrapper" (thing-at-point 'url)))
(global-set-key [f2] 'webbrowser-visit-thing-at-point)

; use left, right arrows to visit another frame
(global-set-key (kbd "C-c <left>") 'previous-multiframe-window)
(global-set-key (kbd "C-c <right>") 'next-multiframe-window) integration

(add-to-list 'load-path ".emacs.d/roaming/codepad.el") ;; replace PATH with the path to codepad.el
(autoload 'codepad-paste-region "codepad" "Paste region to" t)
(autoload 'codepad-paste-buffer "codepad" "Paste buffer to" t)
(autoload 'codepad-fetch-code "codepad" "Fetch code from" t)

Run a workflow in multi-windows

// Mx- RET notes

(defun notes() (interactive) ;(find-file “”) (find-file “/home/alin/.emacs.d/notes”) (split-window-right) (find-file “/home/alin/Work/”)

   ;(find-file "/home/alin/.config/awesome/rc.lua")
   ;  (split-window-right)
   ;  (split-filet "/home/alin/work/")
   ;(find-file "/home/alin/.emacs.d/init.el")

   ;(find-file "/home/alin/work/start.m")

Call “notes”: f2

 (defun file-notes()
  	    (find-file (concat (getenv "HOME") "/.emacs.d/notes")))
    (global-set-key [f3] 'file-notes)
    (global-set-key (kbd "<XF86Search>") 'file-notes)
    (global-set-key (kbd "<XF86AudioRaiseVolume>") 'file-notes)

// M-x RET alin_start

(defun alin_start()

;(find-file "")
(find-file "/home/user/.emacs.d/init.el")
(find-file "/home/alin/work/planning/")
;  (split-window-right)
;  (split-filet "/home/alin/work/")
(find-file "/home/alin/work/")
(find-file "/home/alin/work/")
;(add-hook 'emacs-startup-hook 'alin_start)

;(add-hook 'text-mode-hook 'auto-fill-mode)
  • change files path with your own

Dash-at-point (Zeal integration)

Use Zeal app with XF86WebCam (f8) key to open “zeal-at-point”

;(global-set-key "bla" 'zeal-at-point)
(global-set-key [f1] 'zeal-at-point)
(global-linum-mode t)

;; Use multiple docsets
;(add-to-list 'zeal-at-point-mode-alist '(python-mode . ("python" "django")))


(add-to-list 'load-path "~/.emacs.d/neotree")
    (require 'neotree)
(global-set-key [f8] 'neotree-toggle)

(setq misterioso (if (display-graphic-p) 'icons 'arrow)) ; neo-theme


Add tasks in OrgMode

  • A-Return = *

** A- -> = sub-bullets

  • A-arows up/down = Move

  • TODO S- -> = To Do

  • DONE S- <- = Done

Checkbox [1/2]

"["/"]" C-c, C-c adds number of items in checklist

”[”%”]” C-c, C-c adds procentage

  • checkbox

  • checkbox checked (C-c, C-c)

  • checkbox 3


C-c C-d = Add deadlines

  • go home

DEADLINE: <2017-07-16 Sun>


C-c C-c = Add tags


Cursor tab = hide

S-tab = hide more


C-x C-s = save

Agenda view

Start agenda view C-c [

A-x org-agenda

C-0 = back to original file

q = exit screen

  • case sensitive (“m” for all or “M” for TODO)

C-h t = tutorial


Stop the terminal bell:

Can be placed in a script or in i3 config file:

xset b off

Configure git:

  git config --global "Alin Mechenici"
  git config --global "alin at my email dot smth"

Create a new repository:

   git clone
   cd repo
   git add
   git commit -m "add README"
   git push -u origin master

Existing folder: cd existing_folder

 git init
 git remote add origin
 git add .
 git commit -m "Initial commit"
 git push -u origin master

Existing Git repository

 cd existing_repo
 git remote add origin
 git push -u origin --all
 git push -u origin --tags