Config updates (hidpi adjustments, tweaks)

x1carbon
Jure Podgoršek 2018-05-22 17:26:20 +02:00
parent 52e3a43e7b
commit 11e2695395
7 changed files with 67 additions and 16 deletions

View File

@ -1,5 +1,5 @@
!!! Scaling, fonts !!! !!! Scaling, fonts !!!
Xft.dpi: 166 Xft.dpi: 210
Xft.autohint: 1 Xft.autohint: 1
Xft.lcdfilter: lcddefault Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull Xft.hintstyle: hintfull

View File

@ -12,7 +12,7 @@
set $mod Mod4 set $mod Mod4
# DPI scaling # DPI scaling
exec xrandr --dpi 166 exec xrandr --dpi 210
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
@ -20,7 +20,7 @@ exec xrandr --dpi 166
#font pango:Fira Code 10 #font pango:Fira Code 10
#font pango:Cantarell 10 #font pango:Cantarell 10
#font pango:Fira Mono, Icons 9 #font pango:Fira Mono, Icons 9
font pango:Iosevka Medium 10 font pango:Iosevka Medium 9
# This font is widely installed, provides lots of unicode glyphs, right-to-left # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -210,10 +210,10 @@ bar {
inactive_workspace #232323 #232323 #888888 inactive_workspace #232323 #232323 #888888
} }
#font pango:Fira Mono, Icons 10 #font pango:Fira Mono, Icons 10
font pango:FontAwesome Regular 11, Iosevka Medium 11 font pango:FontAwesome Regular 9, Iosevka Medium 9
strip_workspace_numbers yes strip_workspace_numbers yes
height 44 height 44
tray_padding 2 tray_padding 1
} }
# Colors # Colors
@ -258,7 +258,7 @@ exec_always "setxkbmap -layout us,si -option 'grp:win_space_toggle'"
exec_always "setxkbmap -option compose:caps" exec_always "setxkbmap -option compose:caps"
# gaps between windows # gaps between windows
gaps inner 13 gaps inner 9
gaps outer 0 gaps outer 0
smart_gaps on smart_gaps on
#smart_borders on #smart_borders on

View File

@ -21,8 +21,8 @@ transition=1
;gamma=0.8:0.7:0.8 ;gamma=0.8:0.7:0.8
; This can also be set individually for day and night since ; This can also be set individually for day and night since
; version 1.10. ; version 1.10.
gamma-day=0.8:0.7:0.8 gamma-day=0.9:0.8:0.9
gamma-night=0.6 gamma-night=0.7
; Set the location-provider: 'geoclue2' or 'manual' ; Set the location-provider: 'geoclue2' or 'manual'
; type 'redshift -l list' to see possible values. ; type 'redshift -l list' to see possible values.

View File

@ -1,5 +1,5 @@
[options] [options]
font = Fira Mono Medium 10 font = Fira Mono Medium 9
[colors] [colors]
#!!############################################## #!!##############################################

View File

@ -34,6 +34,11 @@ separator_block_width=15
#interval=5 #interval=5
#signal=10 #signal=10
[monitors]
#label=
interval=once
command="/home/g1smo/Sredstva/i3blocks-contrib/monitor_manager/monitor_manager"
[brightness] [brightness]
label= label=
color=#F8FF05 color=#F8FF05
@ -109,6 +114,11 @@ label=
color=#70E2FF color=#70E2FF
interval=3 interval=3
[key_layout]
label=
interval=30
command="/home/h1smo/Sredstva/i3blocks-contrib/key_layout/key_layout"
[battery2] [battery2]
#label=BAT #label=BAT
#label=⚡ #label=⚡

View File

@ -65,6 +65,12 @@ This function should only modify configuration layer settings."
;; Disable flychecker ;; Disable flychecker
(syntax-checking :variables syntax-checking-enable-by-default nil) (syntax-checking :variables syntax-checking-enable-by-default nil)
;; Markdown preview
(markdown :variables markdown-live-preview-engine 'vmd)
;; Disable tern port files
(javascript :variables javascript-disable-tern-port-files t)
) )
;; List of additional packages that will be installed without being ;; List of additional packages that will be installed without being
@ -109,6 +115,25 @@ It should only modify the values of Spacemacs settings."
;; This setq-default sexp is an exhaustive list of all the supported ;; This setq-default sexp is an exhaustive list of all the supported
;; spacemacs settings. ;; spacemacs settings.
(setq-default (setq-default
;; If non-nil then enable support for the portable dumper. You'll need
;; to compile Emacs 27 from source following the instructions in file
;; EXPERIMENTAL.org at to root of the git repository.
;; (default nil)
dotspacemacs-enable-emacs-pdumper nil
;; File path pointing to emacs 27.1 executable compiled with support
;; for the portable dumper (this is currently the branch pdumper).
;; (default "emacs")
dotspacemacs-emacs-pdumper-executable-file "emacs"
;; Name of the Spacemacs dump file. This is the file will be created by the
;; portable dumper in the cache directory under dumps sub-directory.
;; To load it when starting Emacs add the parameter `--dump-file'
;; when invoking Emacs 27.1 executable on the command line, for instance:
;; ./emacs --dump-file=~/.emacs.d/.cache/dumps/spacemacs.pdmp
;; (default spacemacs.pdmp)
dotspacemacs-emacs-dumper-dump-file "spacemacs.pdmp"
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's ;; If non-nil ELPA repositories are contacted via HTTPS whenever it's
;; possible. Set it to nil if you have no way to use HTTPS in your ;; possible. Set it to nil if you have no way to use HTTPS in your
;; environment, otherwise it is strongly recommended to let it set to t. ;; environment, otherwise it is strongly recommended to let it set to t.
@ -129,7 +154,7 @@ It should only modify the values of Spacemacs settings."
;; If non-nil then Spacelpa repository is the primary source to install ;; If non-nil then Spacelpa repository is the primary source to install
;; a locked version of packages. If nil then Spacemacs will install the ;; a locked version of packages. If nil then Spacemacs will install the
;; lastest version of packages from MELPA. (default nil) ;; latest version of packages from MELPA. (default nil)
dotspacemacs-use-spacelpa nil dotspacemacs-use-spacelpa nil
;; If non-nil then verify the signature for downloaded Spacelpa archives. ;; If non-nil then verify the signature for downloaded Spacelpa archives.
@ -164,7 +189,7 @@ It should only modify the values of Spacemacs settings."
;; directory. A string value must be a path to an image format supported ;; directory. A string value must be a path to an image format supported
;; by your Emacs build. ;; by your Emacs build.
;; If the value is nil then no banner is displayed. (default 'official) ;; If the value is nil then no banner is displayed. (default 'official)
dotspacemacs-startup-banner 'official dotspacemacs-startup-banner 'random
;; List of items to show in startup buffer or an association list of ;; List of items to show in startup buffer or an association list of
;; the form `(list-type . list-size)`. If nil then it is disabled. ;; the form `(list-type . list-size)`. If nil then it is disabled.
@ -409,6 +434,10 @@ It should only modify the values of Spacemacs settings."
;; emphasis the current one). (default 'all) ;; emphasis the current one). (default 'all)
dotspacemacs-highlight-delimiters 'all dotspacemacs-highlight-delimiters 'all
;; If non-nil, start an Emacs server if one is not already running.
;; (default nil)
dotspacemacs-enable-server nil
;; If non-nil, advise quit functions to keep server open when quitting. ;; If non-nil, advise quit functions to keep server open when quitting.
;; (default nil) ;; (default nil)
dotspacemacs-persistent-server nil dotspacemacs-persistent-server nil
@ -450,7 +479,8 @@ It should only modify the values of Spacemacs settings."
;; Either nil or a number of seconds. If non-nil zone out after the specified ;; Either nil or a number of seconds. If non-nil zone out after the specified
;; number of seconds. (default nil) ;; number of seconds. (default nil)
dotspacemacs-zone-out-when-idle 210 ;;dotspacemacs-zone-out-when-idle 210
dotspacemacs-zone-out-when-idle nil
;; Run `spacemacs/prettify-org-buffer' when ;; Run `spacemacs/prettify-org-buffer' when
;; visiting README.org files of Spacemacs. ;; visiting README.org files of Spacemacs.
@ -465,6 +495,13 @@ It is mostly for variables that should be set before packages are loaded.
If you are unsure, try setting them in `dotspacemacs/user-config' first." If you are unsure, try setting them in `dotspacemacs/user-config' first."
) )
(defun dotspacemacs/user-load ()
"Library to load while dumping.
This function is called while dumping Spacemacs configuration. You can
`require' or `load' the libraries of your choice that will be included
in the dump."
)
(defun dotspacemacs/user-config () (defun dotspacemacs/user-config ()
"Configuration for user code: "Configuration for user code:
This function is called at the very end of Spacemacs startup, after layer This function is called at the very end of Spacemacs startup, after layer
@ -512,7 +549,7 @@ before packages are loaded."
`((".*" ,temporary-file-directory t))) `((".*" ,temporary-file-directory t)))
;; Orgmode line wrap ;; Orgmode line wrap
(setq org-startup-truncated t) ;;(setq org-startup-truncated t)
;; Use react mode instead of js2 mode ;; Use react mode instead of js2 mode
;;(add-to-list 'auto-mode-alist '("\\.js$" . react-mode)) ;;(add-to-list 'auto-mode-alist '("\\.js$" . react-mode))
@ -534,6 +571,10 @@ before packages are loaded."
;; Web mode indent level ;; Web mode indent level
(setq web-mode-markup-indent-offset 4) (setq web-mode-markup-indent-offset 4)
(setq sgml-basic-offset 4) (setq sgml-basic-offset 4)
;; Word wrap orgmode
(add-hook 'org-mode-hook #'(lambda ()
(visual-line-mode)))
) )
(defun dotspacemacs/emacs-custom-settings () (defun dotspacemacs/emacs-custom-settings ()
@ -548,7 +589,7 @@ This function is called at the very end of Spacemacs initialization."
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
(quote (quote
(auctex smartparens helm helm-core multiple-cursors ghub spaceline ivy evil zenburn-theme yasnippet-snippets yapfify ws-butler winum which-key wgrep web-mode web-beautify volatile-highlights vi-tilde-fringe uuidgen use-package undo-tree toc-org tao-theme tagedit symon suscolors-theme string-inflection spaceline-all-the-icons solarized-theme smex smeargle slim-mode scss-mode sayid sass-mode rvm rudel ruby-tools ruby-test-mode ruby-refactor ruby-hash-syntax rubocop rspec-mode robe rjsx-mode restart-emacs request rbenv rake rainbow-delimiters pyvenv pytest pyenv-mode py-isort pug-mode powerline popwin pippel pipenv pip-requirements phpunit phpcbf php-extras php-auto-yasnippets persp-mode password-generator paradox overseer orgit org-projectile org-present org-pomodoro org-mime org-download org-bullets org-brain open-junk-file neotree nameless move-text mmm-mode minitest markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative link-hint less-css-mode json-mode js2-refactor js-doc ivy-xref ivy-purpose ivy-hydra indent-guide importmagic impatient-mode hy-mode hungry-delete hl-todo highlight-parentheses highlight-numbers highlight-indentation helm-make gruvbox-theme goto-chg google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe git-gutter-fringe+ gh-md geiser fuzzy font-lock+ flycheck-pos-tip flx-ido floobits fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-org evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-cleverparens evil-args evil-anzu emmet-mode elisp-slime-nav editorconfig dumb-jump drupal-mode diminish diff-hl define-word dakrone-light-theme cython-mode counsel-projectile counsel-css company-web company-tern company-statistics company-php company-auctex company-anaconda column-enforce-mode coffee-mode clojure-snippets clojure-cheatsheet clj-refactor clean-aindent-mode cider-eval-sexp-fu chruby centered-cursor-mode bundler browse-at-remote auto-yasnippet auto-highlight-symbol auto-compile auctex-latexmk all-the-icons-dired aggressive-indent adaptive-wrap ace-window ace-link ac-ispell)))) (string-inflection phpcbf link-hint importmagic hl-todo anaconda-mode helm magit cider zenburn-theme yasnippet-snippets yapfify ws-butler winum which-key wgrep web-mode web-beautify volatile-highlights vmd-mode vi-tilde-fringe uuidgen use-package toc-org tao-theme tagedit symon suscolors-theme spaceline-all-the-icons solarized-theme smex smeargle slim-mode scss-mode sayid sass-mode rvm rudel ruby-tools ruby-test-mode ruby-refactor ruby-hash-syntax rubocop rspec-mode robe rjsx-mode restart-emacs request rbenv rake rainbow-delimiters queue pyvenv pytest pyenv-mode py-isort pug-mode popwin pippel pipenv pip-requirements phpunit php-extras php-auto-yasnippets persp-mode password-generator paradox overseer orgit org-projectile org-present org-pomodoro org-mime org-download org-bullets org-brain open-junk-file neotree nameless move-text mmm-mode minitest markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative less-css-mode json-navigator json-mode js2-refactor js-doc ivy-xref ivy-purpose ivy-hydra indent-guide impatient-mode hungry-delete highlight-parentheses highlight-numbers highlight-indentation helm-make helm-core gruvbox-theme google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe git-gutter-fringe+ ghub gh-md geiser fuzzy font-lock+ flycheck-pos-tip flx-ido floobits fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-org evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-cleverparens evil-args evil-anzu epc emmet-mode elisp-slime-nav editorconfig dumb-jump drupal-mode diminish diff-hl define-word dakrone-light-theme cython-mode counsel-projectile counsel-css company-web company-tern company-statistics company-php company-auctex company-anaconda column-enforce-mode clojure-snippets clojure-cheatsheet clj-refactor clean-aindent-mode cider-eval-sexp-fu chruby centered-cursor-mode bundler browse-at-remote auto-yasnippet auto-highlight-symbol auto-compile auctex-latexmk all-the-icons-dired aggressive-indent adaptive-wrap ace-window ace-link ac-ispell))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

2
.zshrc
View File

@ -55,7 +55,7 @@ alias ffon="sudo cp /etc/resolv.conf.ff /etc/resolv.conf"
alias gitclean="git fetch -p && for branch in \$(git branch -vv | grep ': gone]' | gawk '{print \$1}'); do git branch -D \$branch; echo 'deleted \$branch'; done" alias gitclean="git fetch -p && for branch in \$(git branch -vv | grep ': gone]' | gawk '{print \$1}'); do git branch -D \$branch; echo 'deleted \$branch'; done"
#alias llc="sshfs 10.0.0.203:/Users/g1smo/Projects/LickList ~/ll -oauto_cache,reconnect,no_readahead -o Ciphers=arcfour -o Compression=no" #alias llc="sshfs 10.0.0.203:/Users/g1smo/Projects/LickList ~/ll -oauto_cache,reconnect,no_readahead -o Ciphers=arcfour -o Compression=no"
alias llc="sudo mount -t nfs -o noacl,nocto,rsize=32768,wsize=32768,noatime,nodiratime 10.0.0.203:/Users/g1smo/Projects/LickList ~/ll" alias llc="sudo mount -t nfs -o noacl,nocto,rsize=32768,wsize=32768,noatime,nodiratime 10.0.0.203:/Users/g1smo/Projects/LickList ~/ll"
alias llcc="sudo mount -t nfs -o noacl,nocto,rsize=32768,wsize=32768,noatime,nodiratime 192.168.8.103:/Users/g1smo/Projects/LickList ~/ll" alias llcc="sudo mount -t nfs -o noacl,nocto,rsize=32768,wsize=32768,noatime,nodiratime 192.168.8.106:/Users/g1smo/Projects/LickList ~/ll"
alias lld="sudo umount -l ~/ll" alias lld="sudo umount -l ~/ll"
alias sctl="systemctl" alias sctl="systemctl"