Skip to content

Commit

Permalink
btop: Config for ubuntu only.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Nov 21, 2024
1 parent 0c4bd65 commit 4096a10
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/btop/files/btop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ truecolor=True
shown_boxes="cpu mem net proc"

#* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs.
update_ms=200
update_ms=100

#* Processes update multiplier, sets how often the process list is updated as a multiplier of "update_ms".
#* Set to 2 or higher to greatly decrease bpytop cpu usage. (Only integers)
Expand Down
16 changes: 16 additions & 0 deletions roles/btop/tasks/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,19 @@
name: bpytop
state: present
become: true

- name: "BTOP | Ensure btop directory structure exists"
ansible.builtin.file:
path: "{{ item }}"
mode: "0755"
state: directory
loop:
- ~/.config
- ~/.config/btop

- name: "BTOP | Copy btop config"
ansible.builtin.copy:
src: btop.conf
dest: ~/.config/btop/btop.conf
mode: "0644"

0 comments on commit 4096a10

Please sign in to comment.