Compare commits
No commits in common. "c652e60619760b8bdfb9d0a30ba5f4c0434baf68" and "8975324e7c532550ce63513a59ddc267a3989872" have entirely different histories.
c652e60619
...
8975324e7c
@ -8,20 +8,15 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
|
|
||||||
perc=$1
|
perc=$1
|
||||||
|
|
||||||
if [ "$perc" -gt 100 ]; then
|
if [ $perc -gt 100 ]; then
|
||||||
echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
|
perc=100
|
||||||
else
|
else
|
||||||
echo 1 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
echo 1 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$perc" -ge 80 ]; then
|
if [ $perc -lt 50 ]; then
|
||||||
echo "performance" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
|
||||||
elif [ "$perc" -ge 60 ]; then
|
|
||||||
echo "balance_performance" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
|
||||||
elif [ "$perc" -ge 40 ]; then
|
|
||||||
echo "default" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
|
||||||
elif [ "$perc" -ge 20 ]; then
|
|
||||||
echo "balance_power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
|
||||||
else
|
|
||||||
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
|
else
|
||||||
|
echo "performance" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(use-package diminish)
|
(use-package diminish)
|
||||||
|
|
||||||
;; Eglot recommends pulling the latest of the standard libraries it
|
;; Eglot recommends pulling the latest of the standard libraries it
|
||||||
;; uses from ELPA if you're not tracking the current.config/emacsevelopment
|
;; uses from ELPA if you're not tracking the current emacs development
|
||||||
;; branch.
|
;; branch.
|
||||||
(use-package xref
|
(use-package xref
|
||||||
:pin gnu
|
:pin gnu
|
||||||
@ -45,7 +45,7 @@
|
|||||||
;; This is an emacs built-in but we're pulling the latest version
|
;; This is an emacs built-in but we're pulling the latest version
|
||||||
:config
|
:config
|
||||||
(setq recentf-max-saved-items 100)
|
(setq recentf-max-saved-items 100)
|
||||||
(setq recentf-save-file (recentf-expand-file-name "~/.config/emacs/private/cache/recentf"))
|
(setq recentf-save-file (recentf-expand-file-name "~/.emacs.d/private/cache/recentf"))
|
||||||
(recentf-mode 1))
|
(recentf-mode 1))
|
||||||
|
|
||||||
;; Persist history over Emacs restarts. Vertico sorts by history position.
|
;; Persist history over Emacs restarts. Vertico sorts by history position.
|
||||||
|
@ -55,12 +55,6 @@
|
|||||||
package-native-compile t
|
package-native-compile t
|
||||||
;; Confirm when opening a file that does not exist
|
;; Confirm when opening a file that does not exist
|
||||||
confirm-nonexistent-file-or-buffer t
|
confirm-nonexistent-file-or-buffer t
|
||||||
;; Do not require double space to end a sentence.
|
|
||||||
sentence-end-double-space nil
|
|
||||||
;; Show trailing whitespace
|
|
||||||
show-trailing-whitespace t
|
|
||||||
;; Remove the line when killing it with ctrl-k
|
|
||||||
kill-whole-line t
|
|
||||||
)
|
)
|
||||||
|
|
||||||
;; (setq-default fringes-outside-margins t)
|
;; (setq-default fringes-outside-margins t)
|
||||||
|
@ -33,14 +33,4 @@
|
|||||||
:commands (consult-eglot-symbols)
|
:commands (consult-eglot-symbols)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package company
|
|
||||||
:after eglot
|
|
||||||
:hook (eglot-managed-mode . company-mode)
|
|
||||||
:config
|
|
||||||
(setq company-backends '((company-capf)))
|
|
||||||
)
|
|
||||||
|
|
||||||
;; (use-package company-box
|
|
||||||
;; :hook (company-mode . company-box-mode))
|
|
||||||
|
|
||||||
(provide 'common-lsp)
|
(provide 'common-lsp)
|
||||||
|
@ -48,7 +48,8 @@
|
|||||||
(add-to-list 'eglot-server-programs `(rust-ts-mode . (,rust-analyzer-command :initializationOptions (:imports (:granularity (:enforce t :group "item")
|
(add-to-list 'eglot-server-programs `(rust-ts-mode . (,rust-analyzer-command :initializationOptions (:imports (:granularity (:enforce t :group "item")
|
||||||
:merge (:glob nil)
|
:merge (:glob nil)
|
||||||
:prefix "self")
|
:prefix "self")
|
||||||
))))
|
:inlayHints (:maxLength nil)
|
||||||
|
:workspace (:symbol (:search (:limit 1024)))))))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(add-hook 'before-save-hook 'eglot-format-buffer nil 'local)
|
(add-hook 'before-save-hook 'eglot-format-buffer nil 'local)
|
||||||
|
@ -46,11 +46,11 @@
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; (use-package corfu
|
(use-package corfu
|
||||||
;; :commands (corfu-mode global-corfu-mode)
|
:commands (corfu-mode global-corfu-mode)
|
||||||
;; :custom
|
:custom
|
||||||
;; (corfu-auto t)
|
(corfu-auto t)
|
||||||
;; )
|
)
|
||||||
|
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
:config (marginalia-mode))
|
:config (marginalia-mode))
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
owner: "{{ account_name.stdout }}"
|
owner: "{{ account_name.stdout }}"
|
||||||
group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
loop:
|
loop:
|
||||||
- ".config/emacs/elisp"
|
- ".emacs.d/elisp"
|
||||||
|
|
||||||
- name: Configure dotfiles
|
- name: Configure dotfiles
|
||||||
when: 'emacs_flavor == "full"'
|
when: 'emacs_flavor == "full"'
|
||||||
@ -21,9 +21,9 @@
|
|||||||
group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
loop:
|
loop:
|
||||||
- src: init.el
|
- src: init.el
|
||||||
dest: .config/emacs/init.el
|
dest: .emacs.d/init.el
|
||||||
- src: early-init.el
|
- src: early-init.el
|
||||||
dest: .config/emacs/early-init.el
|
dest: .emacs.d/early-init.el
|
||||||
|
|
||||||
- name: Configure dotfiles
|
- name: Configure dotfiles
|
||||||
when: 'emacs_flavor == "plain"'
|
when: 'emacs_flavor == "plain"'
|
||||||
@ -35,7 +35,7 @@
|
|||||||
group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
loop:
|
loop:
|
||||||
- src: plainmacs_init.el
|
- src: plainmacs_init.el
|
||||||
dest: .config/emacs/init.el
|
dest: .emacs.d/init.el
|
||||||
|
|
||||||
- name: Configure elisp files
|
- name: Configure elisp files
|
||||||
when: 'emacs_flavor == "full"'
|
when: 'emacs_flavor == "full"'
|
||||||
@ -46,7 +46,7 @@
|
|||||||
group: "{{ group_name.stdout }}"
|
group: "{{ group_name.stdout }}"
|
||||||
loop:
|
loop:
|
||||||
- src: elisp
|
- src: elisp
|
||||||
dest: .config/emacs/
|
dest: .emacs.d/
|
||||||
|
|
||||||
- name: Configure zshrc additional imports
|
- name: Configure zshrc additional imports
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user