From 1297a2e0ec774a13c9900b63c2b4afbb6582a5d3 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Wed, 10 Oct 2018 17:19:29 +0700 Subject: multiple changes mostly to zsh and polybar --- .gitmodules | 3 + Makefile | 12 +- emacs/.emacs.d/init.el | 2 +- emacs/.emacs.d/myinit.org | 7 + i3wm/.config/polybar/config | 101 ++++++- i3wm/.config/polybar/launch.sh | 3 +- i3wm/.config/polybar/task_polybar.sh | 7 + spacemacs/.emacs.d | 1 + spacemacs/.spacemacs | 557 ----------------------------------- spacemacs/.spacemacs.old | 557 +++++++++++++++++++++++++++++++++++ zsh/.zfunc/_kitty | 14 + zsh/.zprofile | 4 + zsh/.zshrc | 39 ++- 13 files changed, 726 insertions(+), 581 deletions(-) create mode 100644 .gitmodules create mode 100755 i3wm/.config/polybar/task_polybar.sh create mode 160000 spacemacs/.emacs.d delete mode 100755 spacemacs/.spacemacs create mode 100755 spacemacs/.spacemacs.old create mode 100644 zsh/.zfunc/_kitty diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..9857a8e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "spacemacs/.emacs.d"] + path = spacemacs/.emacs.d + url = https://github.com/syl20bnr/spacemacs diff --git a/Makefile b/Makefile index 20c68b0..ab64726 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ all: emacs git i3wm vim x zsh -clean: uninstall_emacs uninstall_git \ - uninstall_i3wm uninstall_vim \ - uninstall_x uninstall_zsh +clean: uninstall_emacs uninstall_spacemacs \ + uninstall_git uninstall_i3wm \ + uninstall_vim uninstall_x uninstall_zsh -.PHONY: emacs git i3wm vim x zsh +.PHONY: emacs spacemacs git i3wm vim x zsh emacs: stow -t ~ emacs +spacemacs: + stow -t ~ spacemacs git: stow -t ~ git i3wm: @@ -21,6 +23,8 @@ zsh: uninstall_emacs: stow -Dt ~ emacs +uninstall_spacemacs: + stow -Dt ~ spacemacs uninstall_git: stow -Dt ~ git uninstall_i3wm: diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index d6941d5..fa6c5e8 100755 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -36,7 +36,7 @@ ("44961a9303c92926740fc4121829c32abca38ba3a91897a4eab2aa3b7634bed4" "fede08d0f23fc0612a8354e0cf800c9ecae47ec8f32c5f29da841fe090dfc450" "8e51e44e5b079b2862335fcc5ff0f1e761dc595c7ccdb8398094fb8e088b2d50" "7559ac0083d1f08a46f65920303f970898a3d80f05905d01e81d49bb4c7f9e39" default))) '(package-selected-packages (quote - (racer yaml-mode pkgbuild-mode zenburn-theme color-theme-modern base16-theme spacemacs-theme dumb-jump which-key use-package undo-tree try treemacs-projectile spaceline smartparens rainbow-delimiters org-plus-contrib nlinum magit ivy-hydra iedit fzf flycheck expand-region exec-path-from-shell doom-modeline diminish counsel-projectile company color-theme-sanityinc-solarized aggressive-indent)))) + (docker dockerfile-mode racer yaml-mode pkgbuild-mode zenburn-theme color-theme-modern base16-theme spacemacs-theme dumb-jump which-key use-package undo-tree try treemacs-projectile spaceline smartparens rainbow-delimiters org-plus-contrib nlinum magit ivy-hydra iedit fzf flycheck expand-region exec-path-from-shell doom-modeline diminish counsel-projectile company color-theme-sanityinc-solarized aggressive-indent)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/emacs/.emacs.d/myinit.org b/emacs/.emacs.d/myinit.org index 6f1bc42..f53fa4d 100755 --- a/emacs/.emacs.d/myinit.org +++ b/emacs/.emacs.d/myinit.org @@ -409,3 +409,10 @@ :ensure t :hook (rust-mode . cargo-minor-mode)) #+END_SRC +** Docker + #+BEGIN_SRC emacs-lisp + (use-package docker + :ensure t) + (use-package docker-compose-mode + :ensure t) + #+END_SRC diff --git a/i3wm/.config/polybar/config b/i3wm/.config/polybar/config index e84be51..21b5a30 100644 --- a/i3wm/.config/polybar/config +++ b/i3wm/.config/polybar/config @@ -17,7 +17,7 @@ ;========================================================== [colors] -n;background = ${xrdb:color0:#222} +;background = ${xrdb:color0:#222} background = #222 background-alt = #444 ;foreground = ${xrdb:color7:#222} @@ -28,13 +28,13 @@ secondary = #e60053 alert = #bd2c40 [bar/topbar] -;monitor = ${env:MONITOR:HDMI-1} +monitor = ${env:MONITOR:eDP-1} width = 100% height = 30 ;offset-x = 1% ;offset-y = 1% radius = 6.0 -fixed-center = false +fixed-center = true background = ${colors.background} foreground = ${colors.foreground} @@ -59,9 +59,9 @@ font-3 = "Font Awesome 5 Brands:style=Regular:pixelsize=8;1" font-4 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1" font-5 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1" -modules-left = i3 xwindow +modules-left = hostname xwindow modules-center = spotify -modules-right = filesystem backlight pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu +modules-right = taskwarrior tray-position = right tray-padding = 2 @@ -70,24 +70,82 @@ tray-padding = 2 tray-scale = 1 ;wm-restack = bspwm -;wm-restack = i3 +wm-restack = i3 -;override-redirect = true +override-redirect = false ;scroll-up = bspwm-desknext ;scroll-down = bspwm-deskprev -;scroll-up = i3wm-wsnext -;scroll-down = i3wm-wsprev +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize +[bar/topbar-second] +monitor = ${env:MONITOR:eDP-1} +width = 100% +height = 30 +;offset-x = 1% +;offset-y = 0 +;radius = 1.0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 10 +border-top-size = 0 +border-bottom-size = 0 +border-color = #00000000 + +padding-left = 2 +padding-right = 2 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=10;1 +font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = siji:pixelsize=10;1 +font-3 = "Font Awesome 5 Brands:style=Regular:pixelsize=8;1" +font-4 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1" +font-5 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1" + +modules-left = i3 +modules-center = +modules-right = filesystem backlight pulseaudio xkeyboard memory cpu wlan eth battery temperature date + +wm-restack = i3 + +override-redirect = false + +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/hostname] +type = custom/script +interval = 256 +format = "