Skip to content

Commit

Permalink
Add Broot
Browse files Browse the repository at this point in the history
  • Loading branch information
taupiqueur committed Dec 21, 2021
1 parent ce8e10f commit 718b1a5
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ home/ssh/id_ed25519
home/ssh/id_ed25519_*
home/ssh/known_hosts
home/icons
config/broot/launcher
config/gh
config/iterm2
config/mpv/watch_later
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration

###### [NixOS](etc/nixos/configuration.nix) | [Kakoune](config/kak/kakrc) | [Krabby](config/krabby/config.js) | [Git](config/git/config) | [gitui](config/gitui/key_config.ron) | [Sway](config/sway/config) | [Wayfire](config/wayfire.ini) | [yabai](config/yabai/yabairc) | [skhd](config/skhd/skhdrc) | [Alacritty](config/alacritty/alacritty.yml) | [tmux](config/tmux/tmux.conf) | [mpv](config/mpv/mpv.conf) | [sidetree](config/sidetree/sidetreerc) | [Starship](config/starship.toml) | [nginx](etc/nginx/nginx.conf)
###### [NixOS](etc/nixos/configuration.nix) | [Kakoune](config/kak/kakrc) | [Krabby](config/krabby/config.js) | [Git](config/git/config) | [gitui](config/gitui/key_config.ron) | [Sway](config/sway/config) | [Wayfire](config/wayfire.ini) | [yabai](config/yabai/yabairc) | [skhd](config/skhd/skhdrc) | [Alacritty](config/alacritty/alacritty.yml) | [tmux](config/tmux/tmux.conf) | [mpv](config/mpv/mpv.conf) | [Broot](config/broot/conf.toml) | [sidetree](config/sidetree/sidetreerc) | [Starship](config/starship.toml) | [nginx](etc/nginx/nginx.conf)

> Personal configuration files.
95 changes: 95 additions & 0 deletions config/broot/conf.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Broot
# https://dystroy.org/broot/

# Options ──────────────────────────────────────────────────────────────────────

modal = true

# Default flags
# [g] ⇒ --show-git-info
# [i] ⇒ --show-gitignored
default_flags = 'gi'

# Commands ─────────────────────────────────────────────────────────────────────

# Quit
[[verbs]]
invocation = 'quit'
shortcut = 'q'
key = 'q'
execution = ':quit'

# Toggle hidden files
[[verbs]]
invocation = 'toggle hidden'
shortcut = '.'
key = '.'
execution = ':toggle_hidden'

# Toggle sizes
[[verbs]]
invocation = 'toggle sizes'
shortcut = 'i'
key = 'i'
execution = ':toggle_sizes'

# Open a terminal here
[[verbs]]
invocation = 'terminal'
shortcut = '$'
key = '$'
execution = 'bash'
set_working_dir = true
leave_broot = false

# Move to home
[[verbs]]
invocation = 'home'
shortcut = '~'
key = '~'
execution = ':focus ~'
leave_broot = false

# bat
# https://github.com/sharkdp/bat
[[verbs]]
invocation = 'view'
shortcut = 'v'
key = 'v'
execution = 'bat {file}'
leave_broot = false

# Kakoune
# https://kakoune.org
[[verbs]]
invocation = 'edit'
shortcut = 'e'
key = 'e'
execution = 'kak +{line} {file}'
leave_broot = false

# Create new text files.
[[verbs]]
invocation = 'create {subpath}'
shortcut = 'o'
execution = 'kak {directory}/{subpath}'
leave_broot = false

# archiver
# https://github.com/mholt/archiver
[[verbs]]
invocation = 'extract'
shortcut = 'x'
key = 'x'
execution = 'arc unarchive {file}'
set_working_dir = true
leave_broot = false

# mpv
# https://mpv.io
[[verbs]]
invocation = 'mpv'
shortcut = 'm'
key = 'm'
execution = 'mpv --really-quiet {file}'
leave_broot = false
1 change: 1 addition & 0 deletions etc/nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
# File managers ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈

dolphin # https://apps.kde.org/en/dolphin
broot # https://dystroy.org/broot/
# sidetree
# https://github.com/topisani/sidetree

Expand Down
4 changes: 4 additions & 0 deletions home/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ eval "$(mcfly init bash)"
# https://github.com/ajeetdsouza/zoxide
eval "$(zoxide init bash)"

# Broot
# https://dystroy.org/broot/
. ~/.config/broot/launcher/bash/br

# Reload the configuration
R() {
. ~/.bash_profile
Expand Down

0 comments on commit 718b1a5

Please sign in to comment.