Skip to content

Commit

Permalink
Pistol / chafa
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Nov 15, 2023
1 parent 3ec7243 commit 07e6cff
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ Work in progress. The [Sway Wiki](https://github.com/swaywm/sway/wiki/i3-Migrati
## Future Improvements
- [ ] Use [native OSC52 support in Neovim](https://github.com/neovim/neovim/issues/3344) instead of plugin
- [ ] sixel support in tmux 3.4, but gotta wait until it (hopefully) hits Debian backports
- Once sixels are supported, can make a bunch of improvements to scripts here
- May want to consider `zellij` which supports sixel? Currently slightly janky though
- [ ] `wshowkeys` or similar for showing keypresses for screencasts, etc
- [ ] Figure out Lutris / Wine / Proton for Linux gaming
- [ ] [Auto-publish Docker images](https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages)
Expand Down
1 change: 1 addition & 0 deletions scripts/apt-packages
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ libpam-gnome-keyring
lxqt-policykit
mkchromecast
mpv
mpv-mpris
papirus-icon-theme
pasystray
pipewire
Expand Down
1 change: 1 addition & 0 deletions scripts/apt-packages-headless
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ bat
beets
build-essential
ca-certificates
chafa
cifs-utils
curl
dnsutils
Expand Down
6 changes: 6 additions & 0 deletions scripts/setup_github_packages
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# - lazydocker
# - lazygit
# - neovim (latest)
# - pistol
# - sad
# - yq
# - zellij
Expand Down Expand Up @@ -260,6 +261,10 @@ install_neovim_stable() {
sudo update-alternatives --install /usr/bin/vimdiff vimdiff "${vim_path}" 110
}

install_pistol() {
install_bin 'doronbehar/pistol' 'pistol-static-linux-x86_64'
}

install_yq() {
install_bin 'mikefarah/yq' 'yq_linux_amd64'

Expand Down Expand Up @@ -291,6 +296,7 @@ main() {
install_lazydocker
install_lazygit
install_neovim_stable
install_pistol
install_sad
install_yq
install_zellij
Expand Down
4 changes: 3 additions & 1 deletion stowed-files/bash/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ add_to_path "$HOME/.local/bin"
export LIBVIRT_DEFAULT_URI="qemu:///system"

fzf_preview_command=""
if command_exists batcat; then
if command_exists pistol; then
fzf_preview_command="'pistol {}'"
elif command_exists batcat; then
fzf_preview_command="'batcat --color always --style=grid,changes --line-range :300 {}'"
else
fzf_preview_command="'cat {}'"
Expand Down
1 change: 1 addition & 0 deletions stowed-files/pistol/.config/pistol/pistol.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image/* chafa %pistol-filename%

0 comments on commit 07e6cff

Please sign in to comment.