mirror of https://github.com/E-Almqvist/dotfiles
commit
0ad3d6be6f
Before Width: | Height: | Size: 2.6 MiB After Width: | Height: | Size: 1.8 MiB |
@ -0,0 +1,54 @@ |
||||
# -*- mode: gitignore; -*- |
||||
*~ |
||||
\#*\# |
||||
/.emacs.desktop |
||||
/.emacs.desktop.lock |
||||
*.elc |
||||
auto-save-list |
||||
tramp |
||||
.\#* |
||||
|
||||
# Org-mode |
||||
.org-id-locations |
||||
*_archive |
||||
|
||||
# flymake-mode |
||||
*_flymake.* |
||||
|
||||
# eshell files |
||||
/eshell/history |
||||
/eshell/lastdir |
||||
|
||||
# elpa packages |
||||
/elpa/ |
||||
|
||||
# reftex files |
||||
*.rel |
||||
|
||||
# AUCTeX auto folder |
||||
/auto/ |
||||
|
||||
# cask packages |
||||
.cask/ |
||||
dist/ |
||||
|
||||
# Flycheck |
||||
flycheck_*.el |
||||
|
||||
# server auth directory |
||||
/server/ |
||||
|
||||
# projectiles files |
||||
.projectile |
||||
|
||||
# directory configuration |
||||
.dir-locals.el |
||||
|
||||
# network security |
||||
/network-security.data |
||||
|
||||
# Cache etc |
||||
.cache/ |
||||
projectile-bookmarks.eld |
||||
.lsp-session-v1 |
||||
*.dat |
@ -0,0 +1,28 @@ |
||||
;; User |
||||
(setq user-full-name "E. Almqvist" |
||||
user-mail-address "elalmqvist@gmail.com") |
||||
|
||||
;; Theme |
||||
(load-theme 'doom-tomorrow-night t) |
||||
|
||||
;; Font size |
||||
(set-face-attribute 'default nil :height 140 :family "Fira Code") |
||||
|
||||
;; Enable line numbers |
||||
(global-display-line-numbers-mode 1) |
||||
|
||||
;; Indentation |
||||
(setq |
||||
indent-tabs-mode t |
||||
tab-width 4 |
||||
) |
||||
(define-key evil-insert-state-map (kbd "TAB") 'tab-to-tab-stop) |
||||
|
||||
;; TODO keywords etc |
||||
;; (setq hl-todo-keyword-faces |
||||
;; '(("TODO" . "#EB4034") |
||||
;; ("FIXME" . "#EB4034") |
||||
;; ("DEBUG" . "#3B5742") |
||||
;; ("NOTE" . "#32a852") |
||||
;; ("BUG" . "#FCBA03") |
||||
;; ("STUB" . "#4287F5"))) |
@ -0,0 +1,133 @@ |
||||
;; Evil mode (vim binds) |
||||
(require 'evil) |
||||
(evil-mode t) |
||||
|
||||
;; Projectile (Project management) |
||||
(projectile-mode +1) |
||||
;; Recommended keymap prefix on macOS |
||||
;; (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map) |
||||
;; Recommended keymap prefix on Windows/Linux |
||||
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) |
||||
|
||||
;; Treemacs |
||||
(with-eval-after-load 'treemacs |
||||
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action)) |
||||
(global-set-key (kbd "M-d") 'treemacs) ;; Alt + d to open treemacs |
||||
|
||||
|
||||
;; Startup stuff |
||||
(setq inhibit-startup-message nil |
||||
visible-bell nil) ;; Don't the bell thing |
||||
|
||||
;; Remove ugly bars |
||||
(menu-bar-mode -1) |
||||
(tool-bar-mode -1) |
||||
(scroll-bar-mode -1) |
||||
|
||||
;; 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)) |
||||
'(package-selected-packages |
||||
'(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 |
||||
:hook ((c-mode ; clangd |
||||
c++-mode ; clangd |
||||
c-or-c++-mode ; clangd |
||||
java-mode ; eclipse-jdtls |
||||
js-mode ; ts-ls (tsserver wrapper) |
||||
js-jsx-mode ; ts-ls (tsserver wrapper) |
||||
typescript-mode ; ts-ls (tsserver wrapper) |
||||
python-mode ; pyright |
||||
web-mode ; ts-ls/HTML/CSS |
||||
haskell-mode ; haskell-language-server |
||||
lisp-mode ; |
||||
rust-mode ; |
||||
go-mode ; |
||||
) . lsp-deferred) |
||||
:commands lsp |
||||
:config |
||||
(setq lsp-auto-guess-root t) |
||||
(setq lsp-log-io nil) |
||||
(setq lsp-restart 'auto-restart) |
||||
(setq lsp-enable-symbol-highlighting nil) |
||||
(setq lsp-enable-on-type-formatting nil) |
||||
(setq lsp-signature-auto-activate nil) |
||||
(setq lsp-signature-render-documentation nil) |
||||
(setq lsp-eldoc-hook nil) |
||||
(setq lsp-modeline-code-actions-enable nil) |
||||
(setq lsp-modeline-diagnostics-enable nil) |
||||
(setq lsp-headerline-breadcrumb-enable nil) |
||||
(setq lsp-semantic-tokens-enable nil) |
||||
(setq lsp-enable-folding nil) |
||||
(setq lsp-enable-imenu nil) |
||||
(setq lsp-enable-snippet nil) |
||||
(setq read-process-output-max (* 1024 1024)) ;; 1MB |
||||
(setq lsp-idle-delay 0.5)) |
||||
|
||||
;; Ivy |
||||
(ivy-mode) |
||||
(setq ivy-use-virtual-buffers t) |
||||
(setq ivy-use-selectable-prompt t) |
||||
(setq enable-recursive-minibuffers t) |
||||
;; enable this if you want `swiper' to use it |
||||
;; (setq search-default-mode #'char-fold-to-regexp) |
||||
(global-set-key "\C-s" 'swiper) |
||||
(global-set-key (kbd "C-c C-r") 'ivy-resume) |
||||
(global-set-key (kbd "<f6>") 'ivy-resume) |
||||
(global-set-key (kbd "M-x") 'counsel-M-x) |
||||
(global-set-key (kbd "M-f") 'counsel-find-file) |
||||
(global-set-key (kbd "<f1> f") 'counsel-describe-function) |
||||
(global-set-key (kbd "<f1> v") 'counsel-describe-variable) |
||||
(global-set-key (kbd "<f1> o") 'counsel-describe-symbol) |
||||
(global-set-key (kbd "<f1> l") 'counsel-find-library) |
||||
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol) |
||||
(global-set-key (kbd "<f2> u") 'counsel-unicode-char) |
||||
(global-set-key (kbd "C-c g") 'counsel-git) |
||||
(global-set-key (kbd "C-c j") 'counsel-git-grep) |
||||
(global-set-key (kbd "C-c k") 'counsel-ag) |
||||
(global-set-key (kbd "C-x l") 'counsel-locate) |
||||
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox) |
||||
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history) |
||||
|
||||
;; Editorconfig |
||||
(editorconfig-mode 1) |
||||
|
||||
;; Autocomplete |
||||
(ac-config-default) |
||||
|
||||
;; Evil Commentary (comment thing) |
||||
(evil-commentary-mode) |
||||
|
||||
;; HL TODO FIXME DEBUG STUB NOTE BUG |
||||
(hl-todo-mode) |
||||
|
||||
;; Formatter (format-all) |
||||
(global-set-key (kbd "M-g") 'format-all-buffer) |
||||
(add-hook 'prog-mode-hook #'format-all-ensure-formatter) |
||||
|
||||
;; Elcord |
||||
(elcord-mode) |
||||
|
||||
;; Loading config stuff |
||||
(load "$HOME/.config/emacs/config.el") |
@ -0,0 +1,2 @@ |
||||
;;; -*- lisp-data -*- |
||||
(("/home/elal/Projects/game/euclid/")) |
@ -0,0 +1,182 @@ |
||||
// Font stuff |
||||
$font-size: 16px; |
||||
$icon-size: 18px; |
||||
$logo-size: 22px; |
||||
|
||||
// Basic colors |
||||
$black: #121212; |
||||
$red: #f7768c; |
||||
$green: #9ece6a; |
||||
$yellow: #e0af68; |
||||
$blue: #aabbff; |
||||
$magenta: #ad8ee6; |
||||
$cyan: #449dab; |
||||
$white: #787c99; |
||||
|
||||
// Colors |
||||
$bg-color: #181818; |
||||
$bg-alt-color: #242424; |
||||
$fg-color: #ebdbb2; |
||||
$fg-alt-color: #635c4b; |
||||
$fg-sel-color: $blue; |
||||
$border-color: #484848; |
||||
|
||||
$fg-accent: $blue; |
||||
|
||||
// Misc |
||||
$anim-transition: 150ms; |
||||
|
||||
* { |
||||
all: unset; //Unsets everything so you can style everything from scratch |
||||
font-family: "Fira Code"; |
||||
// color: $fg-color; |
||||
} |
||||
|
||||
tooltip { |
||||
color: $fg-alt-color; |
||||
background-color: $bg-alt-color; |
||||
} |
||||
|
||||
.bar-1, .bar-2 { |
||||
background-color: $bg-color; |
||||
color: $fg-color; |
||||
border-right: solid 1px $border-color; |
||||
padding: .3rem; |
||||
} |
||||
|
||||
.segment-end { |
||||
} |
||||
|
||||
// Styles on classes (see eww.yuck for more information) |
||||
button { |
||||
transition-property: opacity, color; |
||||
transition-duration: $anim-transition; |
||||
} |
||||
|
||||
// Workspaces |
||||
.workspaces { |
||||
// background-color: $bg-alt-color; |
||||
// padding: .3rem; |
||||
// border: solid 1px $black; |
||||
// border-radius: $font-size; |
||||
} |
||||
|
||||
.workspaces > button { |
||||
font-size: $font-size; |
||||
margin: 4px; |
||||
} |
||||
|
||||
.workspaces > button:hover { |
||||
color: $fg-accent; |
||||
opacity: 0.8; |
||||
} |
||||
|
||||
button.active { |
||||
font-weight: bold; |
||||
color: $blue; |
||||
} |
||||
button.inactive { opacity: 0.2; } |
||||
|
||||
// Generic stuff |
||||
scale trough { |
||||
all: unset; |
||||
background-color: $bg-alt-color; |
||||
border-radius: 5px; |
||||
min-height: 60px; |
||||
min-width: 4px; |
||||
margin: .3rem 0 .3rem 0; |
||||
} |
||||
|
||||
// Menu |
||||
.powermenu { |
||||
transition: color $anim-transition; |
||||
// border-right: solid 1px $border-color; |
||||
padding: .5rem .2rem .3rem .2rem; |
||||
} |
||||
|
||||
.quit, .lock, .reboot, .poweroff { |
||||
// padding: .5rem .2rem .3rem .2rem; |
||||
} |
||||
|
||||
// Colors for the buttons |
||||
.lock:hover { color: $white; } |
||||
.quit:hover { color: $green; } |
||||
.reboot:hover { color: $yellow; } |
||||
.poweroff:hover { color: $red; } |
||||
|
||||
.pm-active { |
||||
// background-color: $bg-alt-color; |
||||
// border-radius: 5px; |
||||
} |
||||
|
||||
.pm-inner { |
||||
padding: .2rem 0; |
||||
} |
||||
|
||||
// Control |
||||
.control { |
||||
margin-bottom: $logo-size; |
||||
padding: .5rem; |
||||
margin: 0 .5rem 0 .5rem; |
||||
font-family: Material Icons; |
||||
font-size: 1.6em; |
||||
border-radius: 5px; |
||||
} |
||||
.icon { |
||||
opacity: 0.4; |
||||
margin: 0 .2rem; |
||||
font-size: $icon-size; |
||||
font-family: Material Icons; |
||||
padding: 0 1px; |
||||
} |
||||
|
||||
.icon:hover { |
||||
opacity: 1.0; |
||||
// color: red; |
||||
} |
||||
|
||||
// Volume stuff |
||||
.volbar trough highlight { |
||||
background-color: $fg-accent; |
||||
border-radius: 5px; |
||||
} |
||||
|
||||
// Time |
||||
.time { |
||||
font-size: 11px; |
||||
font-weight: bold; |
||||
border-top: solid 2px $border-color; |
||||
color: $fg-alt-color; |
||||
padding: 1rem 0; |
||||
padding-bottom: 0rem; |
||||
margin: .5rem 0 .5rem 0; |
||||
} |
||||
|
||||
// Logo button |
||||
.logo { |
||||
margin: 0 .8rem; |
||||
margin-top: 6px; |
||||
font-size: $logo-size; |
||||
opacity: 0.5; |
||||
} |
||||
|
||||
.logo-seperator { |
||||
border-bottom: 2px solid $border-color; |
||||
padding-bottom: .4rem; |
||||
} |
||||
|
||||
// Color overrides |
||||
.red { |
||||
color: $red; |
||||
opacity: 0.8; |
||||
} |
||||
|
||||
|
||||
// Music widget |
||||
.musicmenu { |
||||
// background-color: $bg-alt-color; |
||||
} |
||||
|
||||
.mm-inner { |
||||
color: $blue; |
||||
} |
Binary file not shown.
@ -0,0 +1,12 @@ |
||||
#!/usr/bin/bash |
||||
|
||||
status=$(playerctl status &>/dev/stdout) |
||||
|
||||
if [[ "$status" == "No players found" ]] |
||||
then |
||||
echo "false" |
||||
else |
||||
echo "true" |
||||
fi |
||||
|
||||
|
Before Width: | Height: | Size: 2.2 MiB After Width: | Height: | Size: 313 KiB |
Loading…
Reference in new issue