Move to solarized light and wayland gnome

This commit is contained in:
Marco Thomas
2022-02-16 00:22:50 +01:00
parent 6669361098
commit f9e93fa666
26 changed files with 179 additions and 167 deletions

View File

@@ -2,55 +2,19 @@
dots for my lenovo yoga slim 7i pro 「itomori」, managed with =gnu stow=. dots for my lenovo yoga slim 7i pro 「itomori」, managed with =gnu stow=.
Files can be =stow='ed and un'=stow='-ed with =stow.sh=. Files can be =stow='ed and un'=stow='ed with =stow.sh=.
It will link all dotfiles to their correct place. It will link all dotfiles to their correct place.
[[./screen.png]] * dotfiles
All files in =files/= are currently being used and =stow='ed.
Configuration for my =i3= are found in =tiling-wm=.
* colors * fonts
** main Should be installed manually or via system package manager.
+ fg: #5c6773 Fallsback are provided in =fallback-fonts/=
+ bg: #ffffff + JuliaMono (Regular, Italic)
** colorful + Noto Sans CJK JP
+ red: #FF3333 + Noto Color Emoji
+ green: #A6CC70
+ yellow: #e7c547
+ blue: #55b4d4
+ magenta: #A37ACC
+ cyan: #95E6CB
** custom ui colors
+ dark bg alt: #222222
+ light bg alt: #eeeeee
* an incomplete list of dependencies: * legacy packages
** main environment
+ emacs 💜
+ i3-gaps
+ alacritty
+ zsh
+ dunst
+ polybar
+ rofi
+ xlock
** main programs
+ discord
+ spotify
+ seafile-applet
+ keepassxc
+ okular
** control stuff
+ [[https://github.com/bulletmark/libinput-gestures][libinput-gestures]]
+ pactl
+ playerctl
+ light
+ feh
+ nm-applet
+ xdotool
+ wmctrl
+ redshift-gtk
** special stuff
+ fcitx5 (=fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-mozc fcitx5-qt=) + fcitx5 (=fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-mozc fcitx5-qt=)
+ hunspell-de (=hunspell-en= should be installed)
** GTK theming
+ papirus icons
+ materia gtk theme

Binary file not shown.

Binary file not shown.

View File

@@ -12,9 +12,9 @@ to =~/.emacs.d=).
This file replaces itself with the actual configuration at first run. This file replaces itself with the actual configuration at first run.
#+BEGIN_SRC emacs-lisp :tangle no #+BEGIN_SRC emacs-lisp :tangle no
(require 'org) (require 'org)
(find-file (concat (getenv "HOME") "/dots/files/emacs/.emacs.d/init.org")) (find-file (concat (getenv "HOME") "/.dots/files/emacs/.emacs.d/init.org"))
(org-babel-tangle) (org-babel-tangle)
(load-file (concat (getenv "HOME") "/dots/files/emacs/.emacs.d/init.el")) (load-file (concat (getenv "HOME") "/.dots/files/emacs/.emacs.d/init.el"))
#+END_SRC #+END_SRC
It tangles the org-file, so that this file is overwritten with the actual It tangles the org-file, so that this file is overwritten with the actual
@@ -53,7 +53,7 @@ the =after-save-hook= ensuring to always tangle and byte-compile the
#+BEGIN_SRC emacs-lisp :tangle yes #+BEGIN_SRC emacs-lisp :tangle yes
(defun tangle-init () (defun tangle-init ()
(when (equal (buffer-file-name) (when (equal (buffer-file-name)
(expand-file-name (concat (getenv "HOME") "/dots/files/emacs/.emacs.d/init.org"))) (expand-file-name (concat (getenv "HOME") "/.dots/files/emacs/.emacs.d/init.org")))
;; Avoid running hooks when tangling. ;; Avoid running hooks when tangling.
(let ((prog-mode-hook nil)) (let ((prog-mode-hook nil))
(org-babel-tangle)))) (org-babel-tangle))))
@@ -247,7 +247,7 @@ I mainly use these fonts:
+ Noto Emoji to show emojis in emacs + Noto Emoji to show emojis in emacs
+ Noto JP for japanese characters + Noto JP for japanese characters
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(set-face-attribute 'default nil :font "JuliaMono" :height 110) (set-face-attribute 'default nil :font "JuliaMono" :height 80)
(set-fontset-font t 'unicode "Noto Color Emoji" nil 'prepend) (set-fontset-font t 'unicode "Noto Color Emoji" nil 'prepend)
(set-fontset-font t 'unicode "Noto Sans Mono CJK JP" nil 'append) (set-fontset-font t 'unicode "Noto Sans Mono CJK JP" nil 'append)
#+end_src #+end_src
@@ -308,7 +308,7 @@ Show me both line and column counter in my bar.
*** Theme *** Theme
Setting my beloved =ayu= light theme with some icons. Setting my beloved light theme with some icons.
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package doom-themes (use-package doom-themes
:straight (doom-themes :type git :host github :repo "hlissner/emacs-doom-themes" :straight (doom-themes :type git :host github :repo "hlissner/emacs-doom-themes"
@@ -316,9 +316,8 @@ Setting my beloved =ayu= light theme with some icons.
:config :config
(setq doom-themes-enable-bold t (setq doom-themes-enable-bold t
doom-themes-enable-italic t doom-themes-enable-italic t
doom-ayu-light-brighter-comments t doom-solarized-light-padded-modeline t)
doom-ayu-light-padded-modeline t) (load-theme 'doom-solarized-light t)
(load-theme 'doom-ayu-light t)
(doom-themes-org-config) (doom-themes-org-config)
(doom-themes-treemacs-config)) (doom-themes-treemacs-config))
#+end_src #+end_src
@@ -331,7 +330,8 @@ Use =doom-modeline= as a bar... together with icons and nyan cat!
:config :config
(doom-modeline-mode 1) (doom-modeline-mode 1)
(setq doom-modeline-indent-info t (setq doom-modeline-indent-info t
doom-modeline-buffer-file-name-style 'file-name)) doom-modeline-buffer-file-name-style 'file-name
doom-modeline-height 10))
(use-package all-the-icons (use-package all-the-icons
:straight t) :straight t)
@@ -341,6 +341,7 @@ Use =doom-modeline= as a bar... together with icons and nyan cat!
:init :init
(nyan-mode) (nyan-mode)
(nyan-start-animation) (nyan-start-animation)
(nyan-toggle-wavy-trail)
:config :config
(setq nyan-cat-face-number 4)) (setq nyan-cat-face-number 4))
#+end_src #+end_src
@@ -410,7 +411,7 @@ Sometimes I want to see all of my files.
treemacs-recenter-after-tag-follow t treemacs-recenter-after-tag-follow t
treemacs-tag-follow-delay 1) treemacs-tag-follow-delay 1)
(treemacs-follow-mode t) (treemacs-follow-mode t)
(treemacs-load-theme "Default") (treemacs-load-theme "doom-colors")
(dolist (face '(treemacs-root-face (dolist (face '(treemacs-root-face
treemacs-git-unmodified-face treemacs-git-unmodified-face
treemacs-git-modified-face treemacs-git-modified-face

View File

@@ -0,0 +1,3 @@
PATH=$PATH:$HOME/.dots/scripts:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.local/bin
EDITOR=vim
VISUAL=vim

View File

@@ -18,16 +18,15 @@ endif
call plug#begin() call plug#begin()
Plug 'ayu-theme/ayu-vim' " color scheme Plug 'altercation/vim-colors-solarized' " color scheme
Plug 'tpope/vim-sleuth' " heuristic file indendation Plug 'tpope/vim-sleuth' " heuristic file indendation
Plug 'jiangmiao/auto-pairs' " pair completion Plug 'jiangmiao/auto-pairs' " pair completion
call plug#end() call plug#end()
" ============================== Colors " ============================== Colors
syntax on syntax on
let ayucolor="light" set background=light
colorscheme ayu colorscheme solarized
set termguicolors
hi Normal guibg=NONE ctermbg=NONE hi Normal guibg=NONE ctermbg=NONE
" ============================== General " ============================== General

View File

@@ -1,41 +0,0 @@
Xft.dpi: 140
! Font
XTerm.vt100.faceName: xft:JuliaMono:antialias=true
XTerm.vt100.faceSize: 10
! Remove Scrollbar
XTerm.vt100.scrollBar: false
! Resize Term Font
XTerm.vt100.translations: #override \n\
Ctrl <Key> minus: smaller-vt-font() \n\
Ctrl <Key> plus: larger-vt-font()
! colors
*background: #fafafa
*foreground: #5c6773
! Black + DarkGrey
*color0: #000000
*color8: #686868
! DarkRed + Red
*color1: #ff3333
*color9: #f27983
! DarkGreen + Green
*color2: #a6cc70
*color10: #bae67e
! DarkYellow + Yellow
*color3: #e7c547
*color11: #ffcc66
! DarkBlue + Blue
*color4: #55b4d4
*color12: #5ccfe6
! DarkMagenta + Magenta
*color5: #a37acc
*color13: #d4bfff
! DarkCyan + Cyan
*color6: #95e6cb
*color14: #95e6cb
! LightGrey + White
*color7: #c7c7c7
*color15: #ffffff

View File

@@ -23,22 +23,22 @@ GIT="%{$fg[red]%}\$vcs_info_msg_0_"
NAME="%B%{$fg[yellow]%}%m%b " NAME="%B%{$fg[yellow]%}%m%b "
# fi # fi
case $TERM in case $TERM in
(*xterm* | rxvt | alacritty) (*xterm* | rxvt | alacritty)
# Write some info to terminal title. # Write some info to terminal title.
# This is seen when the shell prompts for input. # This is seen when the shell prompts for input.
function precmd { function precmd {
print -Pn "\e]0;%(1j,%j job%(2j|s|) - ,)%~ - $TERM\a" print -Pn "\e]0;%(1j,%j job%(2j|s|) - ,)%~\a"
} }
# Write command and arguments to terminal title. # Write command and arguments to terminal title.
# This is seen while the shell waits for a command to complete. # This is seen while the shell waits for a command to complete.
function preexec { function preexec {
printf "\033]0;%s\a" "$1 - $TERM" printf "\033]0;%s\a" "$1"
} }
;; ;;
esac esac
export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} " export PROMPT="${NAME}${DIR}${GIT} ${ICON}%{$reset_color%} "
zstyle ':vcs_info:git:*' formats '|%b ' zstyle ':vcs_info:git:*' formats '|%b '
@@ -122,10 +122,10 @@ export FZF_DEFAULT_OPTS='
--layout=reverse --layout=reverse
--bind=tab:down --bind=tab:down
--bind=btab:up --bind=btab:up
--color=fg:#575f66,bg:#ffffff,hl:#a6cc70 --color=fg:#657B83,bg:#FDF6E3,hl:#859900
--color=fg+:#575f66,bg+:#ffffff,hl+:#a6cc70 --color=fg+:#657B83,bg+:#FDF6E3,hl+:#859900
--color=info:#575f66,prompt:#575f66,pointer:#575f66 --color=info:#657B83,prompt:#657B83,pointer:#657B83
--color=marker:#575f66,spinner:#575f66,header:#575f66' --color=marker:#657B83,spinner:#657B83,header:#657B83'
## fzf Bindings in zsh (C-r and C-t) ## fzf Bindings in zsh (C-r and C-t)
if [[ -x $(which fzf 2> /dev/null) ]] if [[ -x $(which fzf 2> /dev/null) ]]

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 MiB

View File

@@ -24,4 +24,4 @@ if [ "$(hostname)" = "itomori" ]; then
fi fi
# reload wallpaper etc # reload wallpaper etc
$HOME/dots/scripts/reload_desktop.sh $HOME/.dots/scripts/reload_desktop.sh

View File

@@ -6,7 +6,7 @@ systemctl restart --user dunst
# bar # bar
killall -q polybar killall -q polybar
while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done
$HOME/dots/scripts/polybar/polybar.sh $HOME/.dots/scripts/polybar/polybar.sh
# wallpaper # wallpaper
feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper.png feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper.png

View File

@@ -3,7 +3,7 @@
FILES_DIR=$PWD/files FILES_DIR=$PWD/files
OPTS=$1 OPTS=$1
echo "You are about to stow all config files and fonts." echo "You are about to stow all config files."
echo "Do you want to proceed? [y]" echo "Do you want to proceed? [y]"
read proceed read proceed
@@ -16,8 +16,3 @@ echo "Stowing configs..."
cd $FILES_DIR cd $FILES_DIR
stow ${OPTS} -v --ignore="init.org" --target="$HOME" * stow ${OPTS} -v --ignore="init.org" --target="$HOME" *
echo "Done!" echo "Done!"
echo "Stowing fonts..."
cd ../
stow ${OPTS} -v --target="$HOME/.local/share/fonts" fonts
echo "Done!"

View File

@@ -24,30 +24,56 @@ font:
family: JuliaMono family: JuliaMono
style: Regular style: Regular
# # Ayu light
# colors:
# primary:
# background: '#ffffff'
# foreground: '#5c6773'
#
# normal:
# black: '#000000'
# red: '#FF3333'
# green: '#A6CC70'
# yellow: '#e7c547'
# blue: '#55b4d4'
# magenta: '#A37ACC'
# cyan: '#95E6CB'
# white: '#C7C7C7'
#
# bright:
# black: '#686868'
# red: '#F27983'
# green: '#BAE67E'
# yellow: '#FFCC66'
# blue: '#5CCFE6'
# magenta: '#D4BFFF'
# cyan: '#95E6CB'
# white: '#FFFFFF'
colors: colors:
primary: primary:
background: '#ffffff' background: '0xfdf6e3'
foreground: '#5c6773' foreground: '0x586e75'
normal: normal:
black: '#000000' black: '0x073642'
red: '#FF3333' red: '0xdc322f'
green: '#A6CC70' green: '0x859900'
yellow: '#e7c547' yellow: '0xb58900'
blue: '#55b4d4' blue: '0x268bd2'
magenta: '#A37ACC' magenta: '0xd33682'
cyan: '#95E6CB' cyan: '0x2aa198'
white: '#C7C7C7' white: '0xeee8d5'
bright: bright:
black: '#686868' black: '0x002b36'
red: '#F27983' red: '0xcb4b16'
green: '#BAE67E' green: '0x586e75'
yellow: '#FFCC66' yellow: '0x657b83'
blue: '#5CCFE6' blue: '0x839496'
magenta: '#D4BFFF' magenta: '0x6c71c4'
cyan: '#95E6CB' cyan: '0x93a1a1'
white: '#FFFFFF' white: '0xfdf6e3'
background_opacity: 1 background_opacity: 1

View File

@@ -59,12 +59,12 @@
[urgency_low] [urgency_low]
background="#222222" background="#222222"
foreground="#ffffff" foreground="#ffffff"
timeout = 3 timeout = 5
[urgency_normal] [urgency_normal]
background="#333333" background="#222222"
foreground="#ffffff" foreground="#ffffff"
timeout = 3 timeout = 5
[urgency_critical] [urgency_critical]
background="#222222" background="#222222"

View File

@@ -124,10 +124,7 @@ set $white "#ffffff"
set $fg "#5c6773" set $fg "#5c6773"
set $black "#222222" set $black "#222222"
set $grey "#eeeeee" set $grey "#eeeeee"
set $green "#a6cc70"
set $red "#ff3333" set $red "#ff3333"
set $blue "#55b4d4"
set $yellow "#e7c547"
# class border backgr. text indicator child_border # class border backgr. text indicator child_border
client.focused $black $black $white $grey $grey client.focused $black $black $white $grey $grey

View File

@@ -41,8 +41,8 @@ padding = 3
module-margin = 3 module-margin = 3
modules-left = logo i3 polywins modules-left = logo i3 polywins
modules-center = modules-center = date
modules-right = spotify backlight conservation battery date modules-right = spotify backlight conservation battery
[module/i3] [module/i3]
strip-wsnumbers = true strip-wsnumbers = true
@@ -149,6 +149,8 @@ label = %percentage%%
# ramp-1 =  # ramp-1 = 
ramp-0 =  ramp-0 = 
enable-scroll = true
[module/polywins] [module/polywins]
type = custom/script type = custom/script
exec = ~/dots/scripts/polybar/polywins.sh 2>/dev/null exec = ~/dots/scripts/polybar/polywins.sh 2>/dev/null

View File

@@ -25,7 +25,7 @@ bind-key r source-file ~/.tmux.conf
set-window-option -g window-status-current-format "[#I:#W]" set-window-option -g window-status-current-format "[#I:#W]"
set-window-option -g window-status-format "#I:#W" set-window-option -g window-status-format "#I:#W"
set-window-option -g window-status-current-style fg="#A6CC70",bg="#fafafa",bold set-window-option -g window-status-current-style fg="#586e75",bg="#fdf6e3",bold
set -g status-bg "#fafafa" set -g status-bg "#fdf6e3"
set -g status-fg "#49535f" set -g status-fg "#586e75"

69
tiling-wm/x11/.Xresources Normal file
View File

@@ -0,0 +1,69 @@
! Font
XTerm.vt100.faceName: xft:JuliaMono:antialias=true
XTerm.vt100.faceSize: 10
! Remove Scrollbar
XTerm.vt100.scrollBar: false
! Resize Term Font
XTerm.vt100.translations: #override \n\
Ctrl <Key> minus: smaller-vt-font() \n\
Ctrl <Key> plus: larger-vt-font()
! solarized light colors
#define S_base03 #002b36
#define S_base02 #073642
#define S_base01 #586e75
#define S_base00 #657b83
#define S_base0 #839496
#define S_base1 #93a1a1
#define S_base2 #eee8d5
#define S_base3 #fdf6e3
*background: S_base3
*foreground: S_base00
*fadeColor: S_base3
*cursorColor: S_base01
*pointerColorBackground:S_base1
*pointerColorForeground:S_base01
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
#define S_magenta #d33682
#define S_violet #6c71c4
#define S_blue #268bd2
#define S_cyan #2aa198
#define S_green #859900
!! black dark/light
*color0: S_base02
*color8: S_base03
!! red dark/light
*color1: S_red
*color9: S_orange
!! green dark/light
*color2: S_green
*color10: S_base01
!! yellow dark/light
*color3: S_yellow
*color11: S_base00
!! blue dark/light
*color4: S_blue
*color12: S_base0
!! magenta dark/light
*color5: S_magenta
*color13: S_violet
!! cyan dark/light
*color6: S_cyan
*color14: S_base1
!! white dark/light
*color7: S_base2
*color15: S_base3

View File

@@ -3,10 +3,11 @@
# set xresources # set xresources
xrdb -merge $HOME/.Xresources xrdb -merge $HOME/.Xresources
# map CAPS to ~ # keyboard
setxkbmap eu setxkbmap eu
setxkbmap -option caps:none # setxkbmap -option caps:none
xmodmap -e "keycode 66 = grave asciitilde" # xmodmap -e "keycode 66 = grave asciitilde"
setxkbmap -option caps:swapescape
# energy options # energy options
xset s off xset s off
@@ -20,19 +21,15 @@ xset r rate 300 50
xset m 1 xset m 1
# path # path
export PATH=$PATH:$HOME/dots/scripts:$HOME/.cargo/bin:$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin export PATH=$PATH:$HOME/.dots/scripts:$HOME/.cargo/bin:$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin
# editor # editor
export EDITOR="nvim" export EDITOR="vim"
export VISIAL=${EDITOR} export VISIAL=${EDITOR}
# anthy # fcitx
export GTK_IM_MODULE='xim' export GTK_IM_MODULE='xim'
export QT_IM_MODULE='ibus' export QT_IM_MODULE='ibus'
export SDL_IM_MODULE='ibus' export SDL_IM_MODULE='ibus'
export XMODIFIERS='@im=ibus' export XMODIFIERS='@im=ibus'
export WINIT_UNIX_BACKEND=x11 export WINIT_UNIX_BACKEND=x11
# ssh agent - requires gnome keyring
# eval $(systemctl --user show-environment | grep SSH_AUTH_SOCK)
# export SSH_AUTH_SOCK