Skip to content

Commit

Permalink
Revert "feat(tmux): no icons"
Browse files Browse the repository at this point in the history
This reverts commit b7e0cf0.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 2, 2024
1 parent b4cabe9 commit af338f6
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ set -g pane-active-border-style fg="${thm_blue}"
set -g window-status-activity-style fg="${thm_fg}",bg="${thm_bg}",none
set -g window-status-separator ""
set -g window-status-style fg="${thm_fg}",bg="${thm_bg}",none
set -g window-status-format "#[fg=$thm_bg,bg=$thm_blue] #I #[fg=$thm_fg,bg=$thm_gray] #{b:pane_current_path} "
set -g window-status-current-format "#[fg=$thm_bg,bg=$thm_green] #I #[fg=$thm_fg,bg=$thm_bg] #{b:pane_current_path} "
set -g window-status-format "#[fg=$thm_bg,bg=$thm_blue] #I #(icons #{pane_current_command}) #[fg=$thm_fg,bg=$thm_gray] #{b:pane_current_path} "
set -g window-status-current-format "#[fg=$thm_bg,bg=$thm_green] #I #(icons #{pane_current_command}) #[fg=$thm_fg,bg=$thm_bg] #{b:pane_current_path} "
set -g clock-mode-colour "${thm_blue}"
set -g mode-style "fg=${thm_pink} bg=${thm_black4} bold"
set -g set-clipboard on
Expand Down
73 changes: 73 additions & 0 deletions packages/bins/bin/icons
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/usr/bin/env fish
# Translates program names to icons, so we an use them in our tmux config.
# Based on https://github.com/caarlos0/icons
switch $argv[1]
case ack fd find fzf grep rg
echo
case atop htop top btop
echo
case bash fish zsh sh ash
echo
case bat cat
echo
case clx
echo
case cp duplicate
echo
case mv
echo 󰉒
case curl http pint lynx wget w3m
echo
case docker docker-compose podman
echo
case lf ls nnn ranger lsd
echo
case elixir mix
echo
case gh gh-dash
echo
case git lazygit tig
echo
case glow
echo
case go goreleaser
echo
case java mvn
echo
case less more
echo
case lua
echo
case man
echo
case nano pico
echo
case node npm yarn
echo
case nvim vim vi
echo
case python pip
echo
case rm
echo
case rsync
echo
case ruby irb
echo
case scp ssh
echo 󰣀
case sleep
echo
case spin
echo
case sudo
echo
case tail
echo
case task make
echo
case tmux
echo
case youtube-dl
echo
end

0 comments on commit af338f6

Please sign in to comment.