Changeset 7b427be in dotfiles
- Timestamp:
- May 18, 2020, 4:58:06 PM (4 years ago)
- Branches:
- master
- Children:
- 93219db
- Parents:
- caef369
- git-author:
- Mikhail Kirillov <w96k@…> (04/18/20 19:36:10)
- git-committer:
- Mikhail Kirillov <w96k@…> (05/18/20 16:58:06)
- Files:
-
- 2 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
X/.Xdefaults
rcaef369 r7b427be 1 URxvt.termName: rxvt 1 URxvt.termName: rxvt-256color 2 2 3 3 !TomorrowNightEighties … … 38 38 *.color15: #393939 39 39 40 ! Xterm 41 XTerm.vt100*faceName: Fira Code 42 XTerm*faceSize: 9 43 XTerm*renderFont: true 44 40 45 ! URxvt 41 URxvt.font: xft:terminus 46 URxvt.font: xft: Fira Mono:style=Regular:size=10.5 47 URxvt.boldFont: xft:Fira Mono:style=Bold:size=10.5 48 URxvt.italicFont: xft:Fira Mono:style=Light:size=10.5 49 URxvt.letterSpace: -1 42 50 URxvt.scrollBar: false 51 URxvt.urlLauncher: icecat 43 52 URxvt.underlineURLs: True 44 53 URxvt.cursorBlink: True 45 Urxvt.cursorUnderline: True54 nUrxvt.cursorUnderline: True 46 55 Urxvt.visualBell: True 47 56 Urxvt.fading: 50 48 57 Urxvt.fadeColor: #ff0000 49 58 59 ! Emacs 60 Emacs.fontBackend: xft 61 Emacs.font: Fira Code:size=14 62 63 ! Font Settings 50 64 Xft.autohint: 0 51 65 Xft.lcdfilter: lcddefault 52 Xft.hintstyle: hint slight53 Xft.hinting: 066 Xft.hintstyle: hintfull 67 Xft.hinting: 1 54 68 Xft.antialias: 1 55 69 Xft.rgba: rgb 56 57 70 ! Change cursor 58 71 Xcursor.theme: Adwaita -
emacs/.emacs
rcaef369 r7b427be 47 47 48 48 (org-babel-load-file "~/.emacs-config.org") 49 50 (custom-set-faces51 ;; custom-set-faces was added by Custom.52 ;; If you edit it by hand, you could mess it up, so be careful.53 ;; Your init file should contain only one such instance.54 ;; If there is more than one, they won't work right.55 '(highlight-indentation-face ((t (:inherit git-gutter+-unchanged)))))56 (custom-set-variables57 ;; custom-set-variables was added by Custom.58 ;; If you edit it by hand, you could mess it up, so be careful.59 ;; Your init file should contain only one such instance.60 ;; If there is more than one, they won't work right.61 '(package-selected-packages62 (quote63 (emojify zzz-to-char yasnippet-snippets vue-mode use-package-ensure-system-package pos-tip org-mime org-journal mwim mood-line magit-gitflow keycast js2-mode jinja2-mode intero git-gutter+ flymd flycheck-lilypond fennel-mode epresent elpy counsel column-enforce-mode color-theme-sanityinc-tomorrow browse-kill-ring auto-package-update aggressive-indent)))) -
emacs/.emacs-config.org
rcaef369 r7b427be 17 17 #+END_SRC 18 18 * Внешний вид 19 ** Назначение шрифта 19 ** Назначение шрифта и лигатур 20 20 А также отступа между строк 21 21 #+BEGIN_SRC emacs-lisp 22 22 ;;; Set font 23 ;; (add-to-list 'default-frame-alist '(font . "terminus-10")) 24 ;; (set-face-attribute 'default nil :font "-xos4-Terminus-normal-normal-normal-*-16-*-*-*-c-80-iso10646-1") 23 ;;(set-frame-font "terminus 12" nil t) 24 (add-to-list 'default-frame-alist '(font . "Fira Code-10.5")) 25 (set-frame-font "Fira Code-10.5" nil t) 25 26 (setq-default line-spacing 0) 26 #+END_SRC 27 27 28 (use-package fira-code-mode 29 :ensure 30 :config (global-fira-code-mode)) 31 32 (global-prettify-symbols-mode) 33 #+END_SRC 28 34 ** Назначение темы 29 35 Вы ее в видите в блоках кода … … 38 44 ** Отображение номера строк 39 45 #+BEGIN_SRC emacs-lisp 40 ;;; Display numbers 41 (use-package display-line-numbers42 :init43 (setq display-line-numbers-type 'relative)44 (global-display-line-numbers-mode))46 ;;; Отображение номера строки ненужно из-за наличия avy-jump 47 ;; (use-package display-line-numbers 48 ;; :init 49 ;; (setq display-line-numbers-type 'relative) 50 ;; (global-display-line-numbers-mode)) 45 51 #+END_SRC 46 52 ** Мод-лайн 47 53 #+BEGIN_SRC emacs-lisp 48 (use-package mood-line 49 :ensure t 50 :config 51 (setq mood-line-show-encoding-information t) 52 (mood-line-mode)) 54 (custom-set-faces 55 '(mode-line ((t (:background "#2d2d2d" :foreground "#cccccc" :box (:line-width 1 :color "#2d2d2d" :style released-button) :weight bold :height 1.0 :family "Fira Code"))))) 53 56 #+END_SRC 54 57 ** Подсвечивать текущую строку … … 58 61 (global-hl-line-mode)) 59 62 #+END_SRC 63 ** Эмодзи (для telega.el) 64 #+BEGIN_SRC emacs-lisp 65 (use-package emojify 66 :config 67 (global-emojify-mode) 68 (global-emojify-mode-line-mode)) 69 #+END_SRC 60 70 * Редактирование кода в общем 61 71 ** Линтер Flymake [built-in] 62 72 #+BEGIN_SRC emacs-lisp 63 ;;; Live-checking text 64 ;; (use-package flymake 65 ;; :config (flymake-mode)) 66 #+END_SRC 67 73 ;;; Live-checking text 74 ;; (use-package flymake 75 ;; :config (flymake-mode)) 76 77 (global-flycheck-mode) 78 #+END_SRC 68 79 ** Дерево отмен 69 80 #+BEGIN_SRC emacs-lisp … … 80 91 :ensure t 81 92 :config (global-aggressive-indent-mode)) 93 #+END_SRC 94 ** SSH 95 #+BEGIN_SRC emacs-lisp 96 (use-package ssh-agency) 82 97 #+END_SRC 83 98 ** Система контроля версий … … 144 159 ** Прыжки 145 160 #+BEGIN_SRC emacs-lisp 146 (use-package a ce-jump-mode161 (use-package avy 147 162 :config 148 (define-key global-map (kbd "C-c s") 'ace-jump-mode)) 163 (define-key global-map (kbd "C-c s") 'avy-goto-char) 164 (define-key global-map (kbd "C-c l") 'avy-goto-line)) 149 165 #+END_SRC 150 166 ** Поиск (ivy + swiper + councel) … … 184 200 (ivy-mode 1)) 185 201 #+END_SRC 186 187 202 ** Автодополнение 188 203 #+BEGIN_SRC emacs-lisp … … 199 214 :hook ((prog-mode . company-mode)) 200 215 :bind (:map company-active-map 201 202 216 ("C-n" . company-select-next) 217 ("C-p" . company-select-previous))) 203 218 204 219 (use-package company-quickhelp … … 212 227 :diminish 213 228 :bind (("s-p" . projectile-command-map) 214 229 ("C-c p" . projectile-command-map)) 215 230 :config 216 231 (projectile-global-mode)) … … 221 236 (use-package dumb-jump 222 237 :bind (("M-g o" . dumb-jump-go-other-window) 223 224 225 226 238 ("M-g j" . dumb-jump-go) 239 ("M-g i" . dumb-jump-go-prompt) 240 ("M-g x" . dumb-jump-go-prefer-external) 241 ("M-g z" . dumb-jump-go-prefer-external-other-window))) 227 242 #+END_SRC 228 243 … … 257 272 (use-package yasnippet 258 273 :diminish 274 :defer 259 275 :config (yas-global-mode 1)) 260 276 261 277 (use-package yasnippet-snippets 262 278 :ensure t 279 :defer 263 280 :diminish 264 281 :after yasnippet) … … 294 311 #+END_SRC 295 312 ** Показывать пробелы 296 #+BEGIN_SRC emacs-lisp 297 ;; (use-package whitespace-mode 298 ;; :config 299 ;; (progn 300 ;; ;; Make whitespace-mode with very basic background coloring for whitespaces. 301 ;; ;; http://ergoemacs.org/emacs/whitespace-mode.html 302 ;; (setq whitespace-style (quote (face spaces tabs newline space-mark tab-mark newline-mark ))) 303 304 ;; ;; Make whitespace-mode and whitespace-newline-mode use “¶” for end of line char and “▷” for tab. 305 ;; (setq whitespace-display-mappings 306 ;; ;; all numbers are unicode codepoint in decimal. e.g. (insert-char 182 1) 307 ;; '( 308 ;; (space-mark 32 [183] [46]) ; SPACE 32 「 」, 183 MIDDLE DOT 「·」, 46 FULL STOP 「.」 309 ;; (newline-mark 10 [182 10]) ; LINE FEED, 310 ;; (tab-mark 9 [9655 9] [92 9]) ; tab 311 ;; ))) 312 ;; (global-whitespace-mode)) 313 Не работает 314 #+BEGIN_SRC emacs-lisp 315 (use-package whitespace 316 :config 317 (progn 318 (setq whitespace-style (quote (face indentation indentation::space indentation::tab))) 319 (setq whitespace-space 'underline) 320 (setq whitespace-display-mappings 321 '((space-mark 32 [183] [46]) 322 (tab-mark 9 [9655 9] [92 9]) 323 ))) 324 (global-whitespace-mode)) 313 325 #+END_SRC 314 326 * Языки программирования … … 326 338 (use-package paredit) 327 339 #+END_SRC 328 *** Библиотеки329 **** Работа со строками330 #+BEGIN_SRC emacs-lisp331 ;;; Emacs Lisp string manipulation332 (use-package s)333 #+END_SRC334 340 *** Автокомлпит Scheme 335 341 #+BEGIN_SRC emacs-lisp … … 339 345 *** REPL Scheme 340 346 #+BEGIN_SRC emacs-lisp 341 (use-package geiser 342 :config 343 (defun geiser-guile--version (binary) 344 "3.0.2")) 347 (use-package geiser) 345 348 #+END_SRC 346 349 ** Python … … 410 413 (setq-default js2-basic-offset 2) 411 414 (add-hook 'js2-mode-hook 412 413 414 415 416 417 415 (lambda () 416 (define-key js-mode-map (kbd "C-x C-e") 'nodejs-repl-send-last-expression) 417 (define-key js-mode-map (kbd "C-c C-j") 'nodejs-repl-send-line) 418 (define-key js-mode-map (kbd "C-c C-r") 'nodejs-repl-send-region) 419 (define-key js-mode-map (kbd "C-c C-l") 'nodejs-repl-load-file) 420 (define-key js-mode-map (kbd "C-c C-z") 'nodejs-repl-switch-to-repl)))) 418 421 #+END_SRC 419 422 *** Node.js REPL … … 462 465 (progn 463 466 (setq parinfer-extensions 464 465 466 467 468 469 467 '(defaults ; should be included. 468 pretty-parens ; different paren styles for different modes. 469 lispy ; If you use Lispy. With this extension, you should install Lispy and do not enable lispy-mode directly. 470 paredit ; Introduce some paredit commands. 471 smart-tab ; C-b & C-f jump positions and smart shift with tab & S-tab. 472 smart-yank)) ; Yank behavior depend on mode. 470 473 (add-hook 'clojure-mode-hook #'parinfer-mode) 471 474 (add-hook 'emacs-lisp-mode-hook #'parinfer-mode) … … 509 512 (interactive) 510 513 (comint-send-string 511 512 513 514 (inferior-lisp-proc) 515 (format "(lume.hotswap \"%s\")\n" 516 (substring (file-name-nondirectory (buffer-file-name)) 0 -4)))))) 514 517 #+END_SRC 515 518 * Языки декларирования … … 537 540 :config 538 541 (setq org-todo-keywords 539 540 542 (quote ((sequence "TODO(t)" "MIGRATE(m)" "|" "DONE(d)") 543 (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE" "MEETING")))) 541 544 (setq org-todo-keyword-faces 542 543 544 545 546 547 548 549 545 (quote (("TODO" :foreground "red" :weight bold) 546 ("NEXT" :foreground "blue" :weight bold) 547 ("DONE" :foreground "forest green" :weight bold) 548 ("WAITING" :foreground "orange" :weight bold) 549 ("HOLD" :foreground "magenta" :weight bold) 550 ("CANCELLED" :foreground "forest green" :weight bold) 551 ("MEETING" :foreground "forest cyan" :weight bold) 552 ("PHONE" :foreground "blue" :weight bold))))) 550 553 #+END_SRC 551 554 *** Пункты списка для org-mode … … 560 563 ;;; Org-mode Setup 561 564 (setq org-agenda-files (list 562 565 "~/Documents/life.org")) 563 566 #+END_SRC 564 567 *** Техника pomodoro … … 593 596 (autoload 'lilypond-mode "lilypond-mode") 594 597 (setq auto-mode-alist 595 598 (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) 596 599 (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))) 597 600 … … 702 705 *** Плавный скролл 703 706 #+BEGIN_SRC emacs-lisp 704 ;; Smooth scrolling705 (setq redisplay-dont-pause nil706 scroll-margin 10707 scroll-step 1708 scroll-conservatively 10000709 scroll-preserve-screen-position 100)707 ;; Smooth scrolling 708 ;; (setq redisplay-dont-pause nil 709 ;; scroll-margin 10 710 ;; scroll-step 1 711 ;; scroll-conservatively 10000 712 ;; scroll-preserve-screen-position 100) 710 713 #+END_SRC 711 714 ** Which-key … … 724 727 *** Guix 725 728 #+BEGIN_SRC emacs-lisp 726 (use-package guix-autoloads 727 :after geiser 728 :config 729 (setq guix-repl-use-latest t) 730 (setq guix-guile-program "guile")) 729 ;; (use-package guix-autoloads) 731 730 732 731 (use-package edit-indirect) … … 779 778 #+BEGIN_SRC emacs-lisp 780 779 ;;; PDF Tools 781 ;; (use-package pdf-tools 782 ;; :if window-system 783 ;; :config (pdf-tools-install)) 784 #+END_SRC 785 ** Экспорт в HTML 786 #+BEGIN_SRC emacs-lisp 787 ;;; Export to html 788 (use-package htmlize) 780 (use-package pdf-tools 781 :if window-system 782 :config (pdf-tools-install)) 789 783 #+END_SRC 790 784 ** Управление финансами -
guix/.bash_profile
rcaef369 r7b427be 1 # Add npm to PATH 2 export PATH="~/.nodejs/bin/:$PATH" 1 export PATH=~/.config/guix/current:$PATH 3 2 4 # Add .bin to PATH 5 export PATH="~/.bin/:$PATH" 6 7 export PATH="~/.local/bin/:$PATH" 8 export PATH="~/usr/local/bin/:$PATH" 9 10 # Add ruby gems to PATH 11 export PATH=$PATH:/home/w96k/.gem/ 12 export PATH=$PATH:/home/w96k/.gem/ruby/2.5.0/bin/ 13 14 # Not used in waylad 15 #setxkbmap -layout us,ru -option grp:win_space_toggle -option 'ctrl:swapcaps' 16 17 #sh export GDK_CORE_DEVICE_EVENTS=1 18 19 export ALTERNATE_EDITOR="" 20 export EDITOR="emacsclient -t" # $EDITOR opens in terminal 21 export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode 22 23 export GUIX_PROFILE="$HOME/.guix-profile" 24 . "$GUIX_PROFILE/etc/profile" 25 26 #source "$HOME/.guix-profile/etc/profile" 27 #source "$HOME/.config/guix/current/etc/profile" 28 29 streaming() { 30 INRES="1280x720" # input resolution 31 OUTRES="1280x720" # output resolution 32 FPS="10" # target FPS 33 GOP="20" # i-frame interval, should be double of FPS, 34 GOPMIN="10" # min i-frame interval, should be equal to fps, 35 THREADS="2" # max 6 36 CBR="1000k" # constant bitrate (should be between 1000k - 3000k) 37 QUALITY="ultrafast" # one of the many FFMPEG preset 38 AUDIO_RATE="44100" 39 STREAM_KEY="$1" # use the terminal command Streaming streamkeyhere to stream your video to twitch or justin 40 SERVER="live-sjc" # twitch server in California, see http://bashtech.net/twitch/ingest.php to change 41 42 ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -f flv -ac 2 -ar $AUDIO_RATE \ 43 -vcodec libx264 -g $GOP -keyint_min $GOPMIN -b:v $CBR -minrate $CBR -maxrate $CBR -pix_fmt yuv420p\ 44 -s $OUTRES -preset $QUALITY -tune film -acodec libmp3lame -threads $THREADS -strict normal \ 45 -bufsize $CBR "rtmp://$SERVER.twitch.tv/app/$STREAM_KEY" 46 } 47 48 [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ 49 . /usr/share/bash-completion/bash_completion 50 51 52 # Colored ls 53 export LS_OPTIONS='--color=auto' 54 eval "`dircolors`" 55 alias ls='ls $LS_OPTIONS' 56 57 alias python='python3' 58 59 # Autocomplete bash 60 complete -cf sudo 61 set -o history 62 set -o notify 63 shopt -q -s cdspell 64 shopt -s autocd 65 66 # Wayland vars 67 export XDG_SESSION_TYPE=wayland 68 export SDL_VIDEODRIVER=wayland 69 export _JAVA_AWT_WM_NONREPARENTING=1 70 export MOZ_ENABLE_WAYLAND=1 71 72 if test -z "${XDG_RUNTIME_DIR}"; 73 then 74 export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir 75 if ! test -d "${XDG_RUNTIME_DIR}"; then 76 mkdir "${XDG_RUNTIME_DIR}" 77 chmod 0700 "${XDG_RUNTIME_DIR}" 78 fi 79 fi 80 81 # Bash completion (You need to have bash-completion package installed) 82 if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then 83 84 # Check for recent enough version of bash. 85 if [ ${BASH_VERSINFO[0]} -gt 4 ] || \ 86 [ ${BASH_VERSINFO[0]} -eq 4 -a ${BASH_VERSINFO[1]} -ge 1 ]; then 87 [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \ 88 . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" 89 if shopt -q progcomp && [ -r /gnu/store/9i5d4dsxip5mfrrda0z2mypjg77ypm27-bash-completion-2.8/share/bash-completion/bash_completion ]; then 90 # Source completion code. 91 . /gnu/store/9i5d4dsxip5mfrrda0z2mypjg77ypm27-bash-completion-2.8/share/bash-completion/bash_completion 92 fi 93 fi 94 fi 95 96 97 #if [ "$(tty)" = "/dev/tty1" ]; then 98 #herd start && 99 # exec sway 100 #fi 101 102 if [ -f .bashrc ] 103 then 104 . .bashrc 105 fi 3 # Honor per-interactive-shell startup file 4 if [ -f ~/.bashrc ]; then . ~/.bashrc; fi -
guix/.bashrc
rcaef369 r7b427be 20 20 source /etc/bashrc 21 21 22 function color_prompt {23 local __user_and_host="\[\033[01;35m\]\u"24 local __cur_location="\[\033[01;34m\]\w"25 local __git_branch_color="\[\033[01;36m\]"26 #local __git_branch="\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`"27 local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'28 local __prompt_tail="\[\033[30m\]$"29 local __last_color="\[\033[00m\]"30 local __guix_env="\[\033[01;32m\][env]"31 if [ -n "$GUIX_ENVIRONMENT" ]32 then33 export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__guix_env $__prompt_tail$__last_color "34 else35 export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color "36 fi37 }38 39 color_prompt40 41 42 set colored-stats on43 44 22 # Adjust the prompt depending on whether we're in 'guix environment'. 23 if [ -n "$GUIX_ENVIRONMENT" ] 24 then 25 PS1='\u@\h \w [env]\$ ' 26 else 27 PS1='\u \w\$ ' 28 fi 29 alias ls='ls -p --color=auto' 30 alias ll='ls -l' 31 alias grep='grep --color=auto' -
guix/.config/fontconfig/fonts.conf
rcaef369 r7b427be 2 2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 3 3 <fontconfig> 4 <match> 5 <test name="family"><string>sans-serif</string></test> 6 <edit name="family" mode="prepend" binding="strong"> 7 <string>Google Noto</string> 8 </edit> 9 </match> 10 <match> 11 <test name="family"><string>serif</string></test> 12 <edit name="family" mode="prepend" binding="strong"> 13 <string>Google Noto</string> 14 </edit> 15 </match> 16 <match> 17 <test name="family"><string>monospace</string></test> 18 <edit name="family" mode="prepend" binding="strong"> 19 <string>Fira Code</string> 20 </edit> 21 </match> 4 22 5 <match> 6 <test name="family"><string>sans-serif</string></test> 7 <edit name="family" mode="prepend" binding="strong"> 8 <string>Terminus</string> 9 </edit> 10 <edit name="family" mode="append" binding="strong"> 11 <string>Terminus</string> 12 13 </edit> 14 </match> 15 <match> 16 <test name="family"><string>serif</string></test> 17 <edit name="family" mode="prepend" binding="strong"> 18 <string>Terminus</string> 19 </edit> 20 </match> 21 <match> 22 <test name="family"><string>monospace</string></test> 23 <edit name="family" mode="prepend" binding="strong"> 24 <string>Terminus</string> 25 </edit> 26 </match> 27 28 <match target="font"> 23 <match target="font"> 29 24 <edit name="antialias" mode="assign"> 30 25 <bool>true</bool> 31 26 </edit> 32 </match>33 <match target="font">34 27 <edit name="hinting" mode="assign"> 35 28 <bool>true</bool> 36 29 </edit> 30 <edit mode="assign" name="embeddedbitmap"> 31 <bool>true</bool> 32 </edit> 33 <edit mode="assign" name="hintstyle"> 34 <const>hintfull</const> 35 </edit> 36 <edit mode="assign" name="lcdfilter"> 37 <const>lcddefault</const> 38 </edit> 39 <edit mode="assign" name="rgba"> 40 <const>rgb</const> 41 </edit> 37 42 </match> 38 39 43 </fontconfig> -
guix/.config/guix/channels.scm
rcaef369 r7b427be 1 1 (cons* 2 3 2 (channel 4 3 (name 'w96k) 5 (url "https://git.sr.ht/~w96k/dotfiles")) 6 7 (channel 8 (name 'doujinhub) 9 (url "https://git.sr.ht/~w96k/doujinhub")) 10 11 (channel 12 (name 'cl-guix) 13 (url "https://gitlab.com/hu.moonstone/cl-guix.git") 4 (url "https://git.sr.ht/~w96k/dotfiles") 14 5 (branch "master")) 15 16 6 ;; (channel 17 ;; (name 'nonguix) 18 ;; (url "https://gitlab.com/nonguix/nonguix")) 19 20 ;; (channel 21 ;; (name 'Brett) 22 ;; (url "https://git.sr.ht/~brettgilio/cfg")) 23 7 ;; (name 'guix-home-manager) 8 ;; (url "https://framagit.org/tyreunom/guix-home-manager") 9 ;; (branch "master")) 24 10 %default-channels) -
guix/.zprofile
rcaef369 r7b427be 1 export GUIX_PROFILE="$HOME/.guix-profile" 2 source "$HOME/.guix-profile/etc/profile" 3 4 # Wayland vars 5 export XDG_SESSION_TYPE=wayland 6 export SDL_VIDEODRIVER=wayland 7 export _JAVA_AWT_WM_NONREPARENTING=1 8 export MOZ_ENABLE_WAYLAND=1 9 10 if test -z "${XDG_RUNTIME_DIR}"; 11 then 12 export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir 13 if ! test -d "${XDG_RUNTIME_DIR}"; then 14 mkdir "${XDG_RUNTIME_DIR}" 15 chmod 0700 "${XDG_RUNTIME_DIR}" 16 fi 17 fi 18 19 streaming() { 20 INRES="1280x720" # input resolution 21 OUTRES="1280x720" # output resolution 22 FPS="10" # target FPS 23 GOP="20" # i-frame interval, should be double of FPS, 24 GOPMIN="10" # min i-frame interval, should be equal to fps, 25 THREADS="2" # max 6 26 CBR="1000k" # constant bitrate (should be between 1000k - 3000k) 27 QUALITY="ultrafast" # one of the many FFMPEG preset 28 AUDIO_RATE="44100" 29 STREAM_KEY="$1" # use the terminal command Streaming streamkeyhere to stream your video to twitch or justin 30 SERVER="live-sjc" # twitch server in California, see http://bashtech.net/twitch/ingest.php to change 31 32 ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -f flv -ac 2 -ar $AUDIO_RATE \ 33 -vcodec libx264 -g $GOP -keyint_min $GOPMIN -b:v $CBR -minrate $CBR -maxrate $CBR -pix_fmt yuv420p\ 34 -s $OUTRES -preset $QUALITY -tune film -acodec libmp3lame -threads $THREADS -strict normal \ 35 -bufsize $CBR "rtmp://$SERVER.twitch.tv/app/$STREAM_KEY" 36 } 37 38 GUIX_PROFILE="/home/w96k/.config/guix/current" 39 . "$GUIX_PROFILE/etc/profile" 40 41 42 export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale 43 44 # Add npm to PATH 45 export PATH="$PATH:$HOME/.nodejs/bin/" 46 47 # Add .bin to PATH 48 export PATH="~$PATH:/.bin/" 49 50 export PATH="$PATH:$HOME/.local/bin/" 51 export PATH="$PATH:$HOME/usr/local/bin/" 52 53 # Add ruby gems to PATH 54 export PATH=$PATH:/home/w96k/.gem/ 55 export PATH=$PATH:/home/w96k/.gem/ruby/2.5.0/bin/ 56 57 export PATH=$HOME/.config/guix/current/bin:$PATH 58 59 #sh export GDK_CORE_DEVICE_EVENTS=1 60 61 export ALTERNATE_EDITOR="" 62 export EDITOR="emacsclient -t" # $EDITOR opens in terminal 63 export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode 64 65 #[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ 66 # . /usr/share/bash-completion/bash_completion 67 68 # Colored ls 69 export LS_OPTIONS='--color=auto' 70 eval "`dircolors`" 71 alias ls='ls $LS_OPTIONS' 72 73 alias python='python3' 74 75 if [ -f .zshrc ] 76 then 77 . ~/.zshrc 78 fi 79 80 81 if [ "$(tty)" = "/dev/tty1" ]; then 82 tor & 83 exec sway 84 fi 1 # Honor system-wide environment variables 2 source /etc/profile -
guix/fresh.scm
rcaef369 r7b427be 2 2 ;; by the graphical installer. 3 3 4 (use-modules (gnu)) 5 (use-service-modules desktop networking ssh xorg) 4 (use-modules (gnu) 5 (srfi srfi-1)) 6 7 ;;(use-modules (non-gnu packages lua-fennel)) 8 (use-service-modules 9 desktop 10 networking 11 ssh 12 xorg 13 sound 14 dbus 15 nix) 16 (use-package-modules wm lisp bash fonts) 6 17 7 18 (operating-system … … 26 37 (packages 27 38 (append 28 (list (specification->package "ratpoison") 29 (specification->package "xterm") 30 (specification->package "nss-certs")) 39 (map specification->package 40 '("ratpoison" 41 "xterm" 42 "stumpwm" 43 "nix" 44 "nss-certs" 45 "glibc-utf8-locales" 46 "font-dejavu" 47 "font-terminus" 48 "font-fira-code" 49 "font-fira-mono")) 50 (list sbcl stumpwm `(,stumpwm "lib")) 31 51 %base-packages)) 32 (services 33 (append 34 (list (service xfce-desktop-service-type) 35 (service openssh-service-type) 36 (service tor-service-type) 37 (set-xorg-configuration 38 (xorg-configuration 39 (keyboard-layout keyboard-layout)))) 40 %desktop-services)) 52 53 (services (cons* 54 (service openssh-service-type) 55 (service tor-service-type) 56 57 ;;Wacom tablet support 58 (service inputattach-service-type 59 (inputattach-configuration 60 (device "/dev/ttyS4") 61 (device-type "wacom"))) 62 63 (extra-special-file "/bin/bash" 64 (file-append bash "/bin/bash")) 65 66 (service nix-service-type) 67 (set-xorg-configuration 68 (xorg-configuration 69 (keyboard-layout keyboard-layout))) 70 %desktop-services)) 71 41 72 (bootloader 42 73 (bootloader-configuration … … 44 75 (target "/dev/sda") 45 76 (keyboard-layout keyboard-layout))) 46 (mapped-devices 47 (list (mapped-device 48 (source 49 (uuid "84d2acc1-048c-4bae-b776-1f888c364a66")) 50 (target "cryptroot") 51 (type luks-device-mapping)))) 77 (swap-devices (list "/dev/sda1")) 52 78 (file-systems 53 (cons* (file-system 54 (mount-point "/") 55 (device "/dev/mapper/cryptroot") 56 (type "ext4") 57 (dependencies mapped-devices)) 58 %base-file-systems))) 79 (cons* (file-system 80 (mount-point "/") 81 (device 82 (uuid "c184f446-df67-4103-b28e-465ac8776f10" 83 'ext4)) 84 (type "ext4")) 85 (file-system 86 (mount-point "/media/hdd/") 87 (device 88 (uuid "71cb0818-baf3-4f7f-8bc2-7e2b0cca3488" 89 'ext4)) 90 (type "ext4")) 91 92 %base-file-systems))) -
wm/.stumpwmrc
rcaef369 r7b427be 1 1 (in-package :stumpwm) 2 (load "~/quicklisp/setup.lisp")2 ;;(load "~/quicklisp/setup.lisp") 3 3 4 4 (setq *startup-message* "Welcome to your lovely LISP-machine") 5 5 6 ;; Shepherd (with emacs daemon)7 (run-shell-command "shepherd")8 9 6 (set-prefix-key (kbd "C-t")) 10 7 11 (set-module-dir "~/stumpwm/contrib") 12 ;;(ql:quickload :clx-truetype) 8 (set-module-dir "~/.stumpwm.d/modules") 9 10 (load-module :ttf-fonts) 11 (setf xft:*font-dirs* '("/run/current-system/profile/share/fonts/")) 12 (setf clx-truetype:+font-cache-filename+ (concat (getenv "HOME") "/.fonts/font-cache.sexp")) 13 (xft:cache-fonts) 14 (set-font (make-instance 'xft:font :family "Fira Code" :subfamily "Bold" :size 10.5)) 13 15 14 16 (load-module "battery-portable") … … 19 21 (load-module "shell-command-history") 20 22 (load-module "app-menu") 23 (load-module "swm-gaps") 21 24 ;;(load-module "screenshot") 22 ;;(load-module "ttf-fonts")23 25 24 26 ;;(clx-truetype:cache-fonts) … … 27 29 28 30 (setf *mode-line-pad-x* 8 29 *mode-line-pad-y* 231 *mode-line-pad-y* 0 30 32 *mode-line-timeout* 1 31 33 *mouse-focus-policy* :click … … 34 36 *normal-border-width* 0 35 37 *mode-line-border-width* 1 36 *transient-border-width* 038 *transient-border-width* 1 37 39 *mode-line-position* :top 38 40 *time-modeline-string* "%d.%m.%y %k:%M" … … 59 61 )) 60 62 61 62 ;; launch Web browser 63 ;; (defcommand next () () 64 ;; "Start Next or switch to it, if it is already running." 65 ;; (run-or-raise "next" '(:class "Next"))) 66 ;; (define-key *root-map* (kbd "B") "next") 63 (set-normal-gravity :top) 64 (set-win-bg-color "#2d2d2d") 67 65 68 66 (defcommand icecat () () 69 "Start Next or switch to it, if it is already running."70 (run-or-raise "icecat" '(:class "IceCat")))71 (define-key *root-map* (kbd " B") "icecat")67 "Start Next or switch to it, if it is already running." 68 (run-or-raise "icecat" '(:class "IceCat"))) 69 (define-key *root-map* (kbd "b") "icecat") 72 70 73 71 ;; launch terminal … … 82 80 ;; Change emacs to emacsclient 83 81 (defcommand emacsclient () () 84 "Start Urxvt or switch to it, if it is already running."85 82 (run-or-raise "emacsclient -c -a emaces" '(:class "Emacs"))) 86 (define-key *root-map* (kbd "e") "emacsclient -c -a emaces") 83 (defcommand emacs () () 84 (run-or-raise "emacs" '(:class "Emacs"))) 85 (define-key *root-map* (kbd "e") "emacs") 87 86 88 87 ;; Volume Management … … 92 91 (define-key *top-map* (kbd "XF86AudioMute") "amixer -q sset Master toggle")) 93 92 93 ;; Printscreen 94 (defcommand printscreen () () 95 (message "Print screen region") 96 (run-shell-command "xfce4-screenshooter")) 97 98 (define-key *top-map* (kbd "SunPrint_Screen") "printscreen") 99 94 100 ;; Mode-line 95 101 (enable-mode-line (current-screen) (current-head) t) 96 102 97 98 103 ;; Gaps 99 (load-module "swm-gaps") 100 (setf swm-gaps:*inner-gaps-size* 8) 101 (setf swm-gaps:*outer-gaps-size* 4) 102 ;;(swm-gaps:toggle-gaps) 103 104 ;; Golden Ratio 105 ;;(load-module "swm-golden-ratio") 106 ;;(swm-golden-ratio:toggle-golden-ratio) 104 ;; (setf swm-gaps:*inner-gaps-size* 0) 105 ;; (setf swm-gaps:*outer-gaps-size* 2) 106 ;; (swm-gaps:toggle-gaps) 107 107 108 108 (setf (getenv "GDK_CORE_DEVICE_EVENTS") "1") … … 122 122 123 123 ;; Clipboard history 124 (define-key *root-map* (kbd "C-y") "show-clipboard-history")125 (clipboard-history:start-clipboard-manager)124 ;; (define-key *root-map* (kbd "C-y") "show-clipboard-history") 125 ;; (clipboard-history:start-clipboard-manager) 126 126 127 127 ;; Shell history 128 (setf shell-command-history:*shell-command-history-file*129 "/home/w96k/.cache/stumpwm/shell-command-history")128 ;; (setf shell-command-history:*shell-command-history-file* 129 ;; "/home/w96k/.cache/stumpwm/shell-command-history") 130 130 131 131 ;; Menu 132 (setq app-menu:*app-menu*133 '(("Midnight Commander" "mc ~")134 ("Telegram" "telegram-desktop")135 ("Icecat" icecat)136 ("Next" next)137 ("Terminal" urxvt)138 ("Deluge" "deluge")))132 ;; (setq app-menu:*app-menu* 133 ;; '(("Midnight Commander" "mc ~") 134 ;; ("Telegram" "telegram-desktop") 135 ;; ("Icecat" icecat) 136 ;; ("Next" next) 137 ;; ("Terminal" urxvt) 138 ;; ("Deluge" "deluge"))) 139 139 140 (define-key *root-map* (kbd "q") "show-menu")140 ;; (define-key *root-map* (kbd "q") "show-menu") 141 141 142 ;; Show / Hide mode-line143 (define-key *root-map* (kbd "M") "mode-line")142 ;; ;; Show / Hide mode-line 143 ;; (define-key *root-map* (kbd "M") "mode-line") 144 144 145 145
Note:
See TracChangeset
for help on using the changeset viewer.