Laptop stuff

laptop
Elias Almqvist 2 years ago
parent 48173f4975
commit aa5b33eeea
  1. 2
      emacs/.config/emacs/config.el
  2. 58
      emacs/.config/emacs/init.el
  3. 6
      eww/.config/eww/eww.yuck
  4. 8
      oh-my-zsh/.oh-my-zsh/aliases.sh
  5. 1
      zathura/.config/zathura/zathurarc

@ -6,7 +6,7 @@
(load-theme 'doom-tomorrow-night t)
;; Font size
(set-face-attribute 'default nil :height 140 :family "Fira Code")
(set-face-attribute 'default nil :height 120 :family "Fira Code")
;; Enable line numbers
(global-display-line-numbers-mode 1)

@ -1,3 +1,33 @@
;; Melpa
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(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.
'(custom-safe-themes
'("e3daa8f18440301f3e54f2093fe15f4fe951986a8628e98dcd781efbec7a46f2" "7a424478cb77a96af2c0f50cfb4e2a88647b3ccca225f8c650ed45b7f50d9525" "02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "a44e2d1636a0114c5e407a748841f6723ed442dc3a0ed086542dc71b92a87aee" "7e377879cbd60c66b88e51fad480b3ab18d60847f31c435f15f5df18bdb18184" default))
'(elcord-display-buffer-details nil)
'(elcord-display-elapsed t)
'(elcord-editor-icon "emacs_material_icon")
'(elcord-idle-message "Thinking...")
'(elcord-idle-timer 300)
'(elcord-quiet t)
'(elcord-use-major-mode-as-main-icon nil)
'(package-selected-packages
'(editorconfig-generate evil-smartparens smartparens web-mode sublimity typescript-mode glsl-mode format-all hl-todo elcord evil-tabs evil-commentary format-all auto-complete editorconfig haskell-mode counsel ivy go-mode rust-mode use-package treemacs-evil treemacs projectile doom-themes lsp-mode evil)))
(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.
)
(add-to-list 'load-path "~/.config/emacs/elpa/arm-mode")
(require 'arm-mode)
;; Evil mode (vim binds)
(require 'evil)
(evil-mode t)
@ -27,34 +57,6 @@
;; Disable backup files etc.
(setq make-backup-files nil)
;; Melpa
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(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.
'(custom-safe-themes
'("e3daa8f18440301f3e54f2093fe15f4fe951986a8628e98dcd781efbec7a46f2" "7a424478cb77a96af2c0f50cfb4e2a88647b3ccca225f8c650ed45b7f50d9525" "02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "a44e2d1636a0114c5e407a748841f6723ed442dc3a0ed086542dc71b92a87aee" "7e377879cbd60c66b88e51fad480b3ab18d60847f31c435f15f5df18bdb18184" default))
'(elcord-display-buffer-details nil)
'(elcord-display-elapsed t)
'(elcord-editor-icon "emacs_material_icon")
'(elcord-idle-message "Thinking...")
'(elcord-idle-timer 300)
'(elcord-quiet t)
'(elcord-use-major-mode-as-main-icon nil)
'(package-selected-packages
'(evil-smartparens smartparens web-mode sublimity typescript-mode glsl-mode format-all hl-todo elcord evil-tabs evil-commentary format-all auto-complete editorconfig haskell-mode counsel ivy go-mode rust-mode use-package treemacs-evil treemacs projectile doom-themes lsp-mode evil)))
(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.
)
;; LSP
(require 'use-package)
(use-package lsp-mode

@ -104,7 +104,7 @@
;; Control widget (container)
(defwidget control []
(box :class "control" :spacing 12 :space-evenly false :orientation "v"
(music)
;; (music)
(volume)
(wifi)
(bat)
@ -165,8 +165,8 @@
)
)))
(defvar volume false)
(defpoll current-volume :interval "1ms" "amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'")
(defpoll muted-volume :interval "1ms" "amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $4 }' | tr -d '%'")
(defpoll current-volume :interval "180ms" "amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'")
(defpoll muted-volume :interval "180ms" "amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $4 }' | tr -d '%'")
;; Battery Widgets ;;
(defwidget bat []

@ -12,9 +12,13 @@ alias vi="nvim"
# alias idea="export _JAVA_AWT_WM_NONREPARENTING=1 idea"
# Shortcuts
alias todo="task"
# alias todo="task"
alias armas="arm-none-eabi-as -march=armv6-m -g"
alias armld="arm-none-eabi-ld -T \"/usr/share/eterm8/md407-ram.x\""
alias armgdb="arm-none-eabi-gdb"
# Laptop stuff
alias setbri="xrandr --output eDP-1 --brightness"
alias lsbat="echo \"Power: $(cat /sys/class/power_supply/BAT0/capacity)\"%"
alias lsbat="cat /sys/class/power_supply/BAT0/capacity"
alias lsnet="nmcli | grep "^wlp" | sed 's/\ connected\ to\ //g' | cut -d ':' -f2"

@ -5,3 +5,4 @@ set adjust-open "width"
include gruvbox-dark
set guioptions none

Loading…
Cancel
Save