Fixed Powerline gaps by using powerline default font for termite, vim keybindings for i3 window-focus, scrot instead of i3-scrot

clean_emacs
TuDatTr 2018-03-15 11:32:26 +01:00
parent 709020c441
commit f4a1e27deb
No known key found for this signature in database
GPG Key ID: 0DA1B0B23302CA72
6 changed files with 63 additions and 41 deletions

View File

@ -6,7 +6,7 @@ I'm using:
- [[https://github.com/Airblader/i3][i3-gaps]] - [[https://github.com/Airblader/i3][i3-gaps]]
- [[https://www.archlinux.org/][Arch Linux]] - [[https://www.archlinux.org/][Arch Linux]]
- [[https://github.com/nana-4/materia-theme][Materia Theme]] - [[https://github.com/nana-4/materia-theme][Materia Theme]]
- [[http://zsh.sourceforge.net][Z shell]] - [[http://zsh.sourceforge.net][zsh]]
** TODOS: ** TODOS:
@ -98,9 +98,20 @@ rm -rf ~/.*bash* # remove bash-stuff from your home directory.. don't do it if y
*** Setting up Emacs *** Setting up Emacs
I tried to make this as easy as possible. All packages should be installed automatically. I tried to make this as easy as possible. All packages should be installed automatically.
*** Setups *** Font setup
Setting up some programs. Full git [[https://github.com/powerline/fonts][here]].
**** "installing" the dotfiles. #+BEGIN_SRC sh
git clone # clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
#+END_SRC
*** "Installing" the dotfiles.
Take a look at already existing files and delete them if necessary. Take a look at already existing files and delete them if necessary.
#+BEGIN_SRC sh #+BEGIN_SRC sh
git clone https://github.com/TuDatTr/dotfiles .dotfiles && cd .dotfiles git clone https://github.com/TuDatTr/dotfiles .dotfiles && cd .dotfiles
@ -125,3 +136,4 @@ This project is license under the GPL-3.0 License - see LICENSE file for details
- [[https://www.reddit.com/r/unixporn/][unixporn - the home for *NIX customisation!]] - [[https://www.reddit.com/r/unixporn/][unixporn - the home for *NIX customisation!]]
- [[https://uigradients.com][uiGradients - Beautiful colored gradients]] - [[https://uigradients.com][uiGradients - Beautiful colored gradients]]
- [[http://terminal.sexy/][terminal.sexy - Terminal Color Scheme Designer]] - [[http://terminal.sexy/][terminal.sexy - Terminal Color Scheme Designer]]
- [[https://github.com/powerline/fonts][powerline]]

View File

@ -54,6 +54,15 @@ A list of installed packages and details about them.
(use-package swiper) (use-package swiper)
;; (use-package yasnippet) is a dep ;; (use-package yasnippet) is a dep
#+END_SRC #+END_SRC
#+BEGIN_SRC emacs-lisp
(custom-set-variables
'(package-selected-packages
(quote
(powerline ledger-mode smartparens rainbow-mode rainbow-delimiters ox-twbs material-theme google-this flycheck eclim counsel auto-complete-auctex auto-complete auctex anaconda-mode use-package)))
'(truncate-lines t))
#+END_SRC
* Themes * Themes
Using the [[https://github.com/cpaulik/emacs-material-theme][Material]]-Theme. Using the [[https://github.com/cpaulik/emacs-material-theme][Material]]-Theme.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -74,6 +83,8 @@ Changes the Emacs background to the terminals defaults. (Generally)
'((".*" "~/.emacs-saves/" t))) '((".*" "~/.emacs-saves/" t)))
#+END_SRC #+END_SRC
* Functions * Functions
All the functions I use. All the functions I use.
** Cut/Copy and Paste by Boruch Baum ** Cut/Copy and Paste by Boruch Baum
@ -154,6 +165,16 @@ Function is not currently used since I still have to figure out how to make it w
(unless (display-graphic-p (selected-frame)) (unless (display-graphic-p (selected-frame))
(set-face-background 'default "unspecified-bg" (selected-frame)))) (set-face-background 'default "unspecified-bg" (selected-frame))))
#+END_SRC #+END_SRC
Copy word
#+BEGIN_SRC emacs-lisp
(defun copy-word (&optinal arg)
"Copy words at point into kill-ring"
(interactive "P")
(copy-thing 'backward-word 'forward-word arg)
)
#+END_SRC
* Modes * Modes
** Window Modes ** Window Modes
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -199,6 +220,7 @@ Enable syntax highlighting in Org-mode.
(setq org-src-fontify-natively t))) (setq org-src-fontify-natively t)))
#+END_SRC #+END_SRC
Enable
Enable automatic translation of special characters Enable automatic translation of special characters
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(add-hook 'org-mode-hook (add-hook 'org-mode-hook
@ -258,25 +280,13 @@ Globaly highlight the current line in a slightly darker shade of grey.
** Ledger ** Ledger
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ledger-reports '(ledger-reports
(quote (quote
(("budget" "ledger -f MyBudget.ledger bal Brieftasche$ Girokonto$") (("balance" "%(binary) -f %(ledger-file) bal Brieftasche Girokonto")
("bal" "%(binary) -f %(ledger-file) bal") ("bal" "%(binary) -f %(ledger-file) bal")
("reg" "%(binary) -f %(ledger-file) reg") ("reg" "%(binary) -f %(ledger-file) reg")
("payee" "%(binary) -f %(ledger-file) reg @%(payee)") ("payee" "%(binary) -f %(ledger-file) reg @%(payee)")
("account" "%(binary) -f %(ledger-file) reg %(account)")))) ("account" "%(binary) -f %(ledger-file) reg %(account)"))))
'(package-selected-packages
(quote
(ledger-mode smartparens rainbow-mode rainbow-delimiters ox-twbs material-theme google-this flycheck eclim counsel auto-complete-auctex auto-complete auctex anaconda-mode use-package))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
) )
#+END_SRC #+END_SRC
@ -289,6 +299,7 @@ Globaly highlight the current line in a slightly darker shade of grey.
(define-key map (kbd "C-c M-w") 'copy-to-xclipboard) (define-key map (kbd "C-c M-w") 'copy-to-xclipboard)
(define-key map (kbd "C-c C-w") 'cut-to-xclipboard) (define-key map (kbd "C-c C-w") 'cut-to-xclipboard)
(define-key map (kbd "C-c M-y") 'paste-from-xclipboard) (define-key map (kbd "C-c M-y") 'paste-from-xclipboard)
(define-key map (kbd "C-c w") 'copy-word)
map) map)
"my-keys-minor-mode keymap.") "my-keys-minor-mode keymap.")

View File

@ -118,6 +118,8 @@ exec --no-startup-id setxkbmap -option "ctrl:swapcaps"
############################################################################### ###############################################################################
################################# Keybindings ################################# ################################# Keybindings #################################
############################################################################### ###############################################################################
# shutdown
bindsym $mod+Shift+s exec poweroff
# start a terminal # start a terminal
bindsym $mod+Return exec termite bindsym $mod+Return exec termite
@ -142,26 +144,25 @@ bindsym $mod+b exec env GTK_THEME=Materia:light waterfox
bindsym $mod+e exec pcmanfm bindsym $mod+e exec pcmanfm
bindsym $mod+m exec thunderbird bindsym $mod+m exec thunderbird
bindsym Print exec --no-startup-id i3-scrot bindsym Print exec --no-startup-id scrot
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w bindsym Shift+Print --release exec --no-startup-id scrot -f
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s bindsym control+Shift+Print --release exec --no-startup-id scrot -s
bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
# change focus # change focus
bindsym $mod+j focus left bindsym $mod+h focus left
bindsym $mod+k focus down bindsym $mod+j focus down
bindsym $mod+l focus up bindsym $mod+k focus up
bindsym $mod+semicolon focus right bindsym $mod+l focus right
# move focused window # move focused window
bindsym $mod+Shift+j move left bindsym $mod+Shift+h move left
bindsym $mod+Shift+k move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+l move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+semicolon move right bindsym $mod+Shift+l move right
# split orientation # split orientation
bindsym $mod+h split h;exec notify-send 'tile horizontally' bindsym $mod+c split h;exec notify-send 'tile horizontally'
bindsym $mod+v split v;exec notify-send 'tile vertically' bindsym $mod+v split v;exec notify-send 'tile vertically'
bindsym $mod+q split toggle bindsym $mod+q split toggle
@ -174,9 +175,6 @@ bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows # change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle bindsym $mod+space focus mode_toggle
# toggle sticky
bindsym $mod+Shift+s sticky toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
@ -199,10 +197,10 @@ bindsym $mod+Shift+r restart
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode # These bindings trigger as soon as you enter the resize mode
bindsym j resize shrink width 5 px or 5 ppt bindsym h resize shrink width 5 px or 5 ppt
bindsym k resize grow height 5 px or 5 ppt bindsym k resize grow height 5 px or 5 ppt
bindsym l resize shrink height 5 px or 5 ppt bindsym j resize shrink height 5 px or 5 ppt
bindsym semicolon resize grow width 5 px or 5 ppt bindsym l resize grow width 5 px or 5 ppt
# exit resize mode: Enter or Escape # exit resize mode: Enter or Escape
bindsym $mod+g mode "default" bindsym $mod+g mode "default"

View File

@ -51,7 +51,7 @@ bottom = true
radius = 6.0 radius = 6.0
fixed-center = true fixed-center = true
background = ${colors.background} background = #00000000
foreground = ${colors.foreground} foreground = ${colors.foreground}
line-size = 0 line-size = 0

View File

@ -1,9 +1,9 @@
[options] [options]
allow_bold = true allow_bold = true
#audible_bell = false audible_bell = false
#clickable_url = true clickable_url = true
dynamic_title = true #dynamic_title = false
font = Dejavu Sans Mono 12 font = Droid Sans Mono for Powerline
#fullscreen = true #fullscreen = true
#geometry = 640x480 #geometry = 640x480
#icon_name = terminal #icon_name = terminal

View File

@ -38,6 +38,7 @@ alias org="e ~/Nextcloud/orgs/man.org"
alias neofetch="neofetch --block_range 0 16" alias neofetch="neofetch --block_range 0 16"
alias diff="diff -s" alias diff="diff -s"
alias budget="e ~/Nextcloud/orgs/Budget/MyBudget.ledger" alias budget="e ~/Nextcloud/orgs/Budget/MyBudget.ledger"
alias q="exit"
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Variables # Variables