nnn updates remove lf

This commit is contained in:
Tyler Starr 2023-06-24 17:57:19 -07:00
parent 351828609d
commit 80a81dda48
15 changed files with 92 additions and 275 deletions

View File

@ -1,74 +0,0 @@
# Basic Settings
set hidden true
set ignorecase true
set icons true
# Custom Functions
cmd mkdir ${{
printf "Directory Name: "
read ans
mkdir $ans
}}
cmd mkfile ${{
printf "File Name: "
read ans
$EDITOR $ans
}}
# Trash bindings
cmd trash ${{
files=$(printf "$fx" | tr '\n' ';')
while [ "$files" ]; do
file=${files%%;*}
trash-put "$(basename "$file")"
if [ "$files" = "$file" ]; then
files=''
else
files="${files#*;}"
fi
done
}}
cmd restore_trash ${{
trash-restore
}}
# use '<delete>' key for either 'trash' or 'delete' command
map m
map D trash
map mf mkfile
map md mkdir
# extract the current file with the right command
# (xkcd link: https://xkcd.com/1168/)
cmd extract ${{
set -f
case $f in
*.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;;
*.tar.gz|*.tgz) tar xzvf $f;;
*.tar.xz|*.txz) tar xJvf $f;;
*.zip) unzip $f;;
*.rar) unrar x $f;;
*.7z) 7z x $f;;
esac
}}
# compress current file or selected files with tar and gunzip
cmd tar ${{
set -f
mkdir $1
cp -r $fx $1
tar czf $1.tar.gz $1
rm -rf $1
}}
# compress current file or selected files with zip
cmd zip ${{
set -f
mkdir $1
cp -r $fx $1
zip -r $1.zip $1
rm -rf $1
}}

View File

@ -0,0 +1,28 @@
sort=-time
layer=overlay
background-color=#000000
width=300
height=110
border-size=2
border-color=#bd93f9
border-radius=5
icons=0
max-icon-size=64
default-timeout=5000
ignore-timeout=1
font=monospace 10
anchor=top-center
#[urgency=low]
#border-color=#cccccc
#[urgency=normal]
#border-color=#d08770
[urgency=high]
border-color=#bf616a
default-timeout=0
#[category=mpd]
#default-timeout=2000
#group-by=category

View File

@ -28,6 +28,8 @@ set $e exec swaymsg mode default
set $mode_power "[r]eboot | [s]hutdown"
set $TERM alacritty
#-------------------------------------------------------------------------------
#----- COLORS
#-------------------------------------------------------------------------------
@ -90,6 +92,13 @@ for_window [title="Steam - News"] floating enable
for_window [title="Friends List"] floating enable
for_window [title="Picture-in-Picture"] sticky toggle
for_window [app_id="file"] floating enable, \
border pixel 5, \
resize set 70 ppt 60 ppt, \
move position center, \
move to scratchpad, \
scratchpad show
#-------------------------------------------------------------------------------
#----- BINDING APPLICATIONS TO WORKSPACE
#-------------------------------------------------------------------------------
@ -205,6 +214,14 @@ mode scratch {
--mark blue \
--width 40 \
--height 71, $e
bindsym f exec ~/.cargo/bin/sway-scratchpad \
--command "alacritty -e /home/{{ .user }}/.local/bin/tmuxp load /home/{{ .user }}/.config/tmuxp/files.yml" \
--mark files \
--width 71 \
--height 71, $e
bindsym Shift+c move scratchpad, $e
bindsym c scratchpad show, $e
bindsym Escape mode default
}
@ -220,7 +237,6 @@ output DP-3 {
bar {
position top
#output $DISP_PRI
status_command while ~/.config/sway/scripts/status.sh; do sleep 1; done
tray_output none
pango_markup enabled
@ -234,7 +250,7 @@ bar {
#----- AUTOSTART WITH I3
#-------------------------------------------------------------------------------
exec --no-startup-id "udiskie"
exec_always --no-startup-id "configure-gtk"
exec_always --no-startup-id "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"
exec_always --no-startup-id "configure-gtk"
exec --no-startup-id "~/.config/sway/scripts/idle.sh"
exec --no-startup-id "udiskie"

View File

@ -2,8 +2,7 @@
# You should see changes to the status bar after saving this script.
# Uptime
uptime_formatted=$(uptime | cut -d ',' -f1 | rev | cut -d ' ' -f1 | rev)
uptime_formatted=$(uptime | awk -F'( |,|:)+' '{d=h=m=0; if ($7=="min") m=$6; else {if ($7~/^day/) {d=$6;h=$8;m=$9} else {h=$6;m=$7}}} {print d+0,"days,",h+0,"hours,",m+0,"minutes"}')
# Date
date_formatted=$(date "+%a %F %H:%M")

View File

@ -1,49 +0,0 @@
# /home/tstarr/.config/tmuxinator/splat.yml
name: generic dev
#root: ~/devel/work/genisys/splat-react
# Optional tmux socket
# socket_name: foo
# Note that the pre and post options have been deprecated and will be replaced by
# project hooks.
# Project hooks
# Runs on project start, always
# on_project_start: command
# Run on project start, the first time
# on_project_first_start: command
# Run on project start, after the first time
# on_project_restart: command
# Run on project exit ( detaching from tmux session )
# on_project_exit: command
# Run on project stop
# on_project_stop: command
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 1
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
windows:
- editor: nvim
- term: clear

View File

@ -1,8 +0,0 @@
# /home/tstarr/.config/tmuxinator/dot.yml
name: dot
root: ~/.local/share/chezmoi
windows:
- editor: nvim
- term: clear

View File

@ -1,15 +0,0 @@
# /home/tstarr/.config/tmuxinator/nb.yml
name: nb
root: ~/
windows:
- home:
- nb use home
- clear
- nb
- void:
- nb use void
- clear
- nb
- server: nb browse --serve

View File

@ -1,53 +0,0 @@
# /home/tstarr/.config/tmuxinator/splat.yml
name: splat
root: ~/devel/work/genisys/splat-react
# Optional tmux socket
# socket_name: foo
# Note that the pre and post options have been deprecated and will be replaced by
# project hooks.
# Project hooks
# Runs on project start, always
# on_project_start: command
# Run on project start, the first time
# on_project_first_start: command
# Run on project start, after the first time
# on_project_restart: command
# Run on project exit ( detaching from tmux session )
# on_project_exit: command
# Run on project stop
# on_project_stop: command
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 1
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
windows:
- editor: nvim
- term: clear
- frontend: npm run dev
- backend:
- cd ~/devel/work/genisys/splat-python
- ./start-dev.sh admin

View File

@ -1,55 +0,0 @@
# /home/tstarr/.config/tmuxinator/task.yml
name: task
root: ~/
# Optional tmux socket
# socket_name: foo
# Note that the pre and post options have been deprecated and will be replaced by
# project hooks.
# Project hooks
# Runs on project start, always
# on_project_start: command
# Run on project start, the first time
# on_project_first_start: command
# Run on project start, after the first time
# on_project_restart: command
# Run on project exit ( detaching from tmux session )
# on_project_exit: command
# Run on project stop
# on_project_stop: command
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
# startup_window: editor
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
# startup_pane: 1
# Controls whether the tmux session should be attached to automatically. Defaults to true.
# attach: false
windows:
- main:
layout: even-horizontal
panes:
- calendar:
- vdirsyncer -c ~/.config/vdirsyncer/config_calendar sync
- khal interactive
- task_mgmt:
- taskwarrior-tui

View File

@ -0,0 +1,10 @@
# tmuxp config for nnn file manager
session_name: files
windows:
- window_name: files
shell_command_before:
- cd ~/
panes:
- shell_command:
- ~/tmp/nnn/nnn

View File

@ -64,3 +64,9 @@ alias update-grub='sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg'
alias xi="sudo xbps-install"
alias xr="sudo xbps-remove"
alias xl="void-list-packages"
# nnn
alias n="nnn -e"
export NNN_FCOLORS='0000E6310000000000000000'
export NNN_PLUG='f:finder;o:fzopen;d:diffs;t:nmount;v:imgview;q:preview-tui'
export NNN_FIFO="/tmp/nnn.fifo"

View File

@ -17,22 +17,16 @@
- lazygit # Simple terminal UI for git commands
- pipenv # Python Development Workflow for Humans
- python3-devel # Python programming language (3.11 series) - development files
- rubygems
- perl
- cloc
state: present
become: true
- name: Install tmuxinator gem package
gem:
name: tmuxinator # Create and manage complex tmux sessions easily
state: latest
- name: Install development python packages
ansible.builtin.pip:
name:
- ansible-lint # Command-line tool for linting playbooks, roles and collections
- pyright
- tmuxp
- name: Install development flatpaks
flatpak:

View File

@ -2,3 +2,5 @@
tags: ["packages"]
- import_tasks: configs.yml
tags: ["configs"]
- import_tasks: nnn.yml
tags: ["packages"]

View File

@ -0,0 +1,25 @@
- name: Install nnn dependencies
tags: ["test"]
dnf:
name:
- readline-devel
state: present
become: true
- name: Clone nnn repo
tags: ["test"]
ansible.builtin.git:
repo: https://github.com/jarun/nnn.git
dest: /home/{{ user }}/tmp/nnn
- name: Compile nnn
shell: |
make O_NERD=1
args:
chdir: /home/{{ user }}/tmp/nnn
- name: Move nnn to .local bin
copy:
src: /home/{{ user }}/tmp/nnn/nnn
dest: /home/{{ user }}/.local/bin/nnn
mode: a+x

View File

@ -1,10 +1,3 @@
- name: Enable lf copr repo
tags: ["once"]
community.general.copr:
state: enabled
name: pennbauman/ports
become: true
- name: Install terminal fedora packages
dnf:
name:
@ -17,12 +10,10 @@
- tmux # Terminal Multiplexer
- nmap # Utility for network discovery and security auditing
- w3m # Text-based Web browser and pager (with Debian patches)
- lf # Terminal file manager
- khal # Command-line calendar build around CalDAV
- khard # Command-line addressbook built around CardDAV
- vdirsyncer # Synchronize calendars and addressbooks
- neofetch # Simple system information script
- nnn
state: present
become: true