Skip to content

Commit 4a7e217

Browse files
committed
Add @YousefHadder's cool speedtest!
1 parent bb546e3 commit 4a7e217

5 files changed

Lines changed: 27 additions & 0 deletions

File tree

fish/conf.d/10-paths.fish

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ end
1717
if test -d /home/linuxbrew/.linuxbrew/bin
1818
fish_add_path -g /home/linuxbrew/.linuxbrew/bin
1919
end
20+
21+
# LM Studio
22+
if test -d $HOME/.lmstudio/bin
23+
fish_add_path -g $HOME/.lmstudio/bin
24+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# vim:set ft=tmux:
2+
%hidden MODULE_NAME='ctp_speedtest'
3+
4+
set-option -gq "@catppuccin_${MODULE_NAME}_icon" '󰓅 '
5+
set-option -gq "@catppuccin_${MODULE_NAME}_color" '#{E:@thm_yellow}'
6+
set-option -gq "@catppuccin_${MODULE_NAME}_text" '#($HOME/.config/tmux/plugins/tmux-speedtest/scripts/speedtest_status.sh)'
7+
8+
source-file -F '/Users/djensenius/.config/tmux/plugins/tmux/utils/status_module.conf'
9+
10+
set -g @catppuccin_status_ctp_speedtest "#[fg=#{E:@thm_yellow}]#{@_ctp_connect_style}#{@catppuccin_status_left_separator}#[fg=#{E:@thm_crust},bg=#{E:@thm_yellow}]#{@catppuccin_ctp_speedtest_icon}#{@catppuccin_status_middle_separator}#[fg=#{E:@thm_fg},bg=#{E:@catppuccin_status_module_text_bg}]#{E:@catppuccin_ctp_speedtest_text}#[fg=#{E:@catppuccin_status_module_text_bg}]#{@_ctp_connect_style}#{@catppuccin_status_right_separator}"

tmux/tmux.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ set -g status-right "#{E:@catppuccin_status_application}"
4545
set -ag status-right "#{E:@catppuccin_status_session}"
4646
set -ag status-right "#(command -v tmux-background-install-indicator.sh >/dev/null 2>&1 && tmux-background-install-indicator.sh || echo '')"
4747
set -ag status-right "#{E:@catppuccin_status_outdated_packages}"
48+
set -ag status-right "#{?#($HOME/.config/tmux/plugins/tmux-speedtest/scripts/speedtest_status.sh),#{E:@catppuccin_status_ctp_speedtest},}"
4849
set -ag status-right "#{E:@catppuccin_status_battery}"
4950

5051

@@ -67,6 +68,17 @@ set -g @plugin 'wfxr/tmux-fzf-url'
6768
set -g @plugin 'omerxx/tmux-sessionx'
6869
set -g @plugin 'omerxx/tmux-floax'
6970

71+
# ============== Speedtest Plugin ==================
72+
set -g @plugin 'YousefHadder/tmux-speedtest'
73+
set -g @speedtest_key 'S'
74+
set -g @speedtest_clear_key 'D'
75+
set -g @speedtest_notifications 'off'
76+
set -g @speedtest_provider 'cloudflare'
77+
set -g @speedtest_icon_running '󰔟'
78+
set -g @speedtest_icon_idle ''
79+
set -g @speedtest_format ' #{download}  #{upload} 󰛳 #{ping}'
80+
source -F ~/.config/tmux/custom_modules/ctp_speedtest.conf
81+
7082
# ============== Outdated Packages Plugin ==========
7183
set -g @plugin 'djensenius/tmux-outdated-packages'
7284
set -g @floax-width '80%'

0 commit comments

Comments
 (0)