Browse Source

Trunking a few changes

Simon Watson 2 years ago
parent
commit
1e5e86621f
4 changed files with 17 additions and 4 deletions
  1. 2 2
      bashrc/bashrc-all
  2. 6 2
      emacs/.emacs-all
  3. 5 0
      emacs/elisp/rclone.el
  4. 4 0
      lemonbar/swatson-casana/startLemon.sh

+ 2 - 2
bashrc/bashrc-all

@@ -28,8 +28,8 @@ fi
 
 BAT_PATH=$(which bat)
 if [ ! -z "$BAT_PATH" ]; then
-    export MANPAGER="$BAT_PATH"
-    alias cat="$BAT_PATH"
+    export MANPAGER="$BAT_PATH --color never"
+    alias cat="$BAT_PATH --color never"
 fi
 
 # Platform agnostic aliases

+ 6 - 2
emacs/.emacs-all

@@ -42,7 +42,11 @@
 (straight-use-package 'yasnippet)
 (straight-use-package
  '(janet-mode :type git :host github
-   :repo "ALSchwalm/janet-mode")) 
+   :repo "ALSchwalm/janet-mode"))
+
+;;(straight-use-package
+;; '(org :type git :repo "https://git.savannah.gnu.org/git/emacs/org-mode.git"))
+;;(require 'org)
 
 (require 'yasnippet)
 
@@ -279,4 +283,4 @@
     (load "~/Repos/dotfiles/emacs/linux-load/customs.el")
     (xterm-mouse-mode t)
     (load (expand-file-name "~/quicklisp/slime-helper.el"))
-    (setq inferior-lisp-program (locate-file "sbcl" exec-path exec-suffixes 1))))
+    (setq inferior-lisp-program (locate-file "sbcl" exec-path exec-suffixes 1))))

+ 5 - 0
emacs/elisp/rclone.el

@@ -1,3 +1,8 @@
+(defun rclone-blog-post ()
+  "Post buffer to b2 bucket that syncs blog posts"
+  (interactive)
+  (shell-command (format "rclone copy %s spw-b2:/spw01Backups1/blog-posts/" (buffer-file-name))))
+
 (defun rclone-post-buffer ()
   "Copies path of current buffer to b2/emacs"
   (interactive)

+ 4 - 0
lemonbar/swatson-casana/startLemon.sh

@@ -4,6 +4,10 @@ if [[ $1 == "--single-1080" ]]; then
     /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1920x15+1920+0
 fi
 
+if [[ $1 == "--single-1440" ]]; then
+    /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 1440x15+0+0
+fi
+
 if [ $(xrandr --query | grep '\bconnected\b' | wc -l) -gt 1 ]; then
     /home/swatson/.config/lemonbar/bar.sh | lemonbar -p -g 3440x15+1920
 else