diff --git a/ClangFormat/.clang-format b/ClangFormat/.clang-format index 9d430ee..7a6f1a2 100644 --- a/ClangFormat/.clang-format +++ b/ClangFormat/.clang-format @@ -8,7 +8,7 @@ AlignEscapedNewlines: true AllowShortFunctionsOnASingleLine: false AllowShortLambdasOnASingleLine: false AllowShortLoopsOnASingleLine: false -AlwaysBreakTemplateDeclarations: Yes +AlwaysBreakTemplateDeclarations: No BasedOnStyle: LLVM BreakBeforeBraces: Allman ColumnLimit: 80 diff --git a/Emacs/.config/emacs/.config/gdb-window-config b/Emacs/.config/emacs/.config/gdb-window-config index 4b40c63..a864c28 100644 --- a/Emacs/.config/emacs/.config/gdb-window-config +++ b/Emacs/.config/emacs/.config/gdb-window-config @@ -1 +1 @@ -(((min-height . 8) (min-width . 20) (min-height-ignore . 6) (min-width-ignore . 8) (min-height-safe . 2) (min-width-safe . 4) (min-pixel-height . 144) (min-pixel-width . 160) (min-pixel-height-ignore . 108) (min-pixel-width-ignore . 64) (min-pixel-height-safe . 36) (min-pixel-width-safe . 32)) hc (pixel-width . 1910) (pixel-height . 1009) (total-width . 239) (total-height . 56) (normal-height . 1.0) (normal-width . 1.0) (combination-limit . t) (vc (pixel-width . 1184) (pixel-height . 1009) (total-width . 148) (total-height . 56) (normal-height . 1.0) (normal-width . 0.6198952879581152) (combination-limit) (leaf (pixel-width . 1184) (pixel-height . 682) (total-width . 148) (total-height . 38) (normal-height . 0.6778989098116948) (normal-width . 1.0) (parameters (context) (gdb-buffer-type . command)) (buffer " *gdb-placeholder*" (selected . t) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 1) (start . 1))) (leaf (last . t) (pixel-width . 1184) (pixel-height . 327) (total-width . 148) (total-height . 18) (normal-height . 0.32210109018830524) (normal-width . 1.0) (parameters (context) (gdb-buffer-type . gdb-breakpoints-buffer)) (buffer " *gdb-placeholder*" (selected) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated . t) (point . 1) (start . 1)))) (vc (last . t) (pixel-width . 726) (pixel-height . 1009) (total-width . 91) (total-height . 56) (normal-height . 1.0) (normal-width . 0.38010471204188484) (combination-limit) (leaf (pixel-width . 726) (pixel-height . 776) (total-width . 91) (total-height . 43) (normal-height . 0.7670961347869177) (normal-width . 1.0) (parameters (context) (gdb-buffer-type . source)) (buffer " *gdb-placeholder*" (selected) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 1) (start . 1))) (leaf (last . t) (pixel-width . 726) (pixel-height . 233) (total-width . 91) (total-height . 13) (normal-height . 0.23290386521308226) (normal-width . 1.0) (parameters (gdb-buffer-type . gdb-inferior-io)) (buffer " *gdb-placeholder*" (selected) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated . t) (point . 1) (start . 1))))) \ No newline at end of file +(((min-height . 12) (min-width . 20) (min-height-ignore . 9) (min-width-ignore . 6) (min-height-safe . 3) (min-width-safe . 4) (min-pixel-height . 288) (min-pixel-width . 200) (min-pixel-height-ignore . 216) (min-pixel-width-ignore . 60) (min-pixel-height-safe . 72) (min-pixel-width-safe . 40)) hc (pixel-width . 1910) (pixel-height . 1025) (total-width . 191) (total-height . 43) (normal-height . 1.0) (normal-width . 1.0) (combination-limit) (leaf (pixel-width . 880) (pixel-height . 1025) (total-width . 88) (total-height . 43) (normal-height . 1.0) (normal-width . 0.46073298429319376) (parameters (context) (gdb-buffer-type . source)) (buffer " *gdb-placeholder*" (selected) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 1) (start . 1))) (vc (last . t) (pixel-width . 1030) (pixel-height . 1025) (total-width . 103) (total-height . 43) (normal-height . 1.0) (normal-width . 0.5392670157068062) (combination-limit) (leaf (pixel-width . 1030) (pixel-height . 360) (total-width . 103) (total-height . 15) (normal-height . 0.35121951219512193) (normal-width . 1.0) (parameters (context) (gdb-buffer-type . gdb-breakpoints-buffer)) (buffer " *gdb-placeholder*" (selected) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated . t) (point . 1) (start . 1))) (leaf (pixel-width . 1030) (pixel-height . 336) (total-width . 103) (total-height . 14) (normal-height . 0.3278048780487805) (normal-width . 1.0) (parameters (context) (gdb-buffer-type . command)) (buffer " *gdb-placeholder*" (selected) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated) (point . 1) (start . 1))) (leaf (last . t) (pixel-width . 1030) (pixel-height . 329) (total-width . 103) (total-height . 14) (normal-height . 0.32097560975609757) (normal-width . 1.0) (parameters (context) (gdb-buffer-type . gdb-inferior-io)) (buffer " *gdb-placeholder*" (selected . t) (hscroll . 0) (fringes 10 0 nil nil) (margins nil) (scroll-bars nil 0 t nil 0 t nil) (vscroll . 0) (dedicated . t) (point . 1) (start . 1))))) \ No newline at end of file diff --git a/Emacs/.config/emacs/elisp/better-mode-line.el b/Emacs/.config/emacs/elisp/better-mode-line.el index bc9484c..be0a6c9 100644 --- a/Emacs/.config/emacs/elisp/better-mode-line.el +++ b/Emacs/.config/emacs/elisp/better-mode-line.el @@ -38,20 +38,21 @@ (defvar bml/--minimum-padding 4 "Minimum size of padding string.") -(defun bml/--get-padding-size (other-size) - "Compute length of padding to ensure string of size OTHER-SIZE is on an -extreme end to CENTRE-SEGMENT." - (let ((centre-size (length (format-mode-line bml/centre-segment))) - (window-width ;; compute total width of window (including margins) - (thread-last (cons (window-width) (window-margins)) - (mapcar (lambda (x) (if (null x) 0 x))) - (cl-reduce #'+)))) - (floor (- (/ window-width 2) (/ centre-size 2) other-size)))) +(defun bml/--get-left-padding-size () + (let* ((left-segment-size (length (format-mode-line bml/left-segment))) + (centre-size (length (format-mode-line bml/centre-segment))) + (window-margins (window-margins)) + (window-width (thread-last + (cons (window-width) + (if (null (car window-margins)) + (list 0) + (list (car window-margins) (cdr window-margins)))) + (cl-reduce #'+)))) + (floor (- (/ window-width 2) (/ centre-size 2) left-segment-size)))) -(defun bml/--generate-padding (segment) +(defun bml/--generate-left-padding () "Make padding string to separate center segment from SEGMENT." - (let* ((segment-size (length (format-mode-line segment))) - (padding-size (bml/--get-padding-size segment-size))) + (let ((padding-size (bml/--get-left-padding-size))) (make-string (max padding-size bml/--minimum-padding) ?\s))) (defun bml/setup-mode-line () @@ -60,8 +61,7 @@ extreme end to CENTRE-SEGMENT." - segments are updated." (setq-default mode-line-format `(,bml/left-segment - (:eval (bml/--generate-padding - bml/left-segment)) + (:eval (bml/--generate-left-padding)) ,bml/centre-segment ;; NOTE: Emacs 30! mode-line-format-right-align diff --git a/NeoVim/.config/nvim/lazy-lock.json b/NeoVim/.config/nvim/lazy-lock.json index c1cf99b..bafc899 100644 --- a/NeoVim/.config/nvim/lazy-lock.json +++ b/NeoVim/.config/nvim/lazy-lock.json @@ -2,6 +2,6 @@ "NeoSolarized": { "branch": "master", "commit": "b94b1a9ad51e2de015266f10fdc6e142f97bd617" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, - "telescope.nvim": { "branch": "master", "commit": "ad7d9580338354ccc136e5b8f0aa4f880434dcdc" }, - "vim-tmux-navigator": { "branch": "master", "commit": "c45243dc1f32ac6bcf6068e5300f3b2b237e576a" } + "telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" }, + "vim-tmux-navigator": { "branch": "master", "commit": "e41c431a0c7b7388ae7ba341f01a0d217eb3a432" } } diff --git a/Scripts/.local/scripts/background b/Scripts/.local/scripts/background index 1c80996..f7538fd 100755 --- a/Scripts/.local/scripts/background +++ b/Scripts/.local/scripts/background @@ -1,3 +1,5 @@ #!/usr/bin/env sh -feh --bg-fill --randomize $HOME/Pictures/Backgrounds; +choice=$(shuf < $HOME/Pictures/Backgrounds/dark.txt | head -1) +# feh --bg-fill --randomize $HOME/Pictures/Backgrounds; +feh --bg-fill $HOME/Pictures/Backgrounds/$choice; diff --git a/Scripts/.local/scripts/screenshot b/Scripts/.local/scripts/screenshot index 8bbc6a9..fb79e83 100755 --- a/Scripts/.local/scripts/screenshot +++ b/Scripts/.local/scripts/screenshot @@ -1,3 +1,3 @@ #!/usr/bin/env sh -scrot -f -s '%Y%m%d_%H%M%S.png' -e 'mv $f ~/Pictures/'; +gscreenshot; diff --git a/Scripts/.local/scripts/search_apps b/Scripts/.local/scripts/search_apps index b94e8ee..4f4aaa2 100755 --- a/Scripts/.local/scripts/search_apps +++ b/Scripts/.local/scripts/search_apps @@ -1,9 +1,6 @@ #!/usr/bin/env sh app=$(wmctrl -l |\ - awk '{for (i=4; i<=NF; i++) printf "%s ", $i; print ""}' |\ - dmenu -i -p "Switch to: ") -if [ ! -z "$app" ] -then - wmctrl -a $app -fi + awk '{for (i=4; i<=NF; i++) printf "%s ", $i; print ""}' |\ + dmenu -l 4 -i -p "Switch to: ") +[ ! -z "$app" ] && $(wmctrl -a $app) diff --git a/Scripts/.local/scripts/spawn_everything b/Scripts/.local/scripts/spawn_everything index ef7d1c1..926ec00 100755 --- a/Scripts/.local/scripts/spawn_everything +++ b/Scripts/.local/scripts/spawn_everything @@ -4,8 +4,7 @@ processes="st btop emacsclient -c -a emacs $HOME/.local/scripts/browser steam -discord -spotify" +" printf '%s\n' "$processes" | \ diff --git a/Scripts/.local/scripts/status/temperature b/Scripts/.local/scripts/status/temperature index ee1bc3a..f7a184d 100755 --- a/Scripts/.local/scripts/status/temperature +++ b/Scripts/.local/scripts/status/temperature @@ -1,3 +1,3 @@ #!/usr/bin/env sh -echo "㊋ $(sensors | grep "Core" | sed 's/Core [0-9]:[ ]*+//;s/C.*//' | sort -r | head -1)C" +echo "㊋ $(sensors | grep "Tctl" | sed 's/Tctl:.*+//;s/C.*//')C" diff --git a/XServer/.xinitrc b/XServer/.xinitrc index 1e8fcb5..42bf865 100755 --- a/XServer/.xinitrc +++ b/XServer/.xinitrc @@ -3,7 +3,7 @@ killall sxhkd; sh .xprofile; -$HOME/.local/scripts/screentimer on; +$HOME/.local/scripts/screentimer off; xrandr --output HDMI1 --auto --mode 1920x1080 --left-of eDP1; xrandr --output eDP1 --auto --mode 1920x1080; @@ -14,7 +14,6 @@ $(xss-lock --transfer-sleep-lock -- $HOME/.local/scripts/lock) & sxhkd & dunst & dwmblocks & -# $HOME/.local/scripts/compositor & $HOME/.local/scripts/background & while : diff --git a/aspell/.aspell.en.pws b/aspell/.aspell.en.pws index eb38c74..d9f06f3 100644 --- a/aspell/.aspell.en.pws +++ b/aspell/.aspell.en.pws @@ -1,4 +1,4 @@ -personal_ws-1.1 en 192 +personal_ws-1.1 en 194 Architecting Aryadev Automorphism @@ -113,6 +113,7 @@ incentivises infinitum injective inlined +innovatively instrinsics intuitionism intuitionist @@ -179,6 +180,7 @@ telekinetically tokenisation tokenise tokeniser +transformative uncomputable uncountably undealt