M README.md => README.md +2 -5
@@ 7,14 7,11 @@
| foot | terminal emulator |
| fuzzel | command launcher |
| bash | shell |
-| vivo | text editor |
-| fff | file manager |
-| astronaut | gemini browser |
+| helix | text editor |
+| nfm | file manager |
| firefox | web browser |
| imv | image viewer |
| mpv | media player |
| pipewire | audio backend |
-| spotifyd | spotify daemon |
-| spt | spotify frontend |
| iwd | wireless daemon |
M bash/.bash_aliases => bash/.bash_aliases +1 -1
@@ 13,7 13,7 @@ alias chown='chown -v'
alias chmod='chmod -v'
# Add Color and Format
-alias ll='ls -AlhvLG --time-style='+' --group-directories-first --color=auto'
+alias ll='ls -AlhvLG --time-style="+" --group-directories-first --color=auto'
alias lll='ls -ahnv --group-directories-first --color=auto'
alias grep='grep --color=auto'
M => +3 -3
@@ 1,8 1,8 @@
term=foot-extra
font=JetBrainsMono-Regular:size=8
font-bold=JetBrainsMono-Bold:size=8:style=bold
font-italic=JetBrainsMono-Italic:size=8:style=italic
font=JetBrainsMono-Regular:size=10
font-bold=JetBrainsMono-Bold:size=10:style=bold
font-italic=JetBrainsMono-Italic:size=10:style=italic
[scrollback]
lines=10000
A fuzzel/.config/fuzzel/fuzzel.ini => fuzzel/.config/fuzzel/fuzzel.ini +2 -0
@@ 0,0 1,2 @@
+font=monospace
+prompt=>
A helix/.config/helix/config.toml => helix/.config/helix/config.toml +24 -0
@@ 0,0 1,24 @@
+theme = "onedark"
+
+[editor]
+line-number = "relative"
+mouse = false
+auto-pairs = false
+cursorline = true
+color-modes = true
+
+[editor.statusline]
+left = ["mode", "diagnostics", "spinner"]
+center = ["file-name"]
+right = ["position", "position-percentage", "file-encoding", "file-type"]
+
+[editor.indent-guides]
+render = true
+
+[editor.lsp]
+display-messages = true
+
+[editor.whitespace.render]
+space = "none"
+tab = "all"
+newline = "none"
A nfm/.config/nfm/config.ini => nfm/.config/nfm/config.ini +36 -0
@@ 0,0 1,36 @@
+[main]
+opener = xdg-open;
+navigation-mode = singular;
+
+[bookmarks]
+d = "/home/andrea/documents";
+m = "/home/andrea/videos/movies";
+l = "/home/andrea/repos/levee";
+
+[keybinds]
+j = cursor-move-down;
+k = cursor-move-up;
+h = enter-parent-dir;
+l = commit-file-at-cursor;
+backspace = jump-back;
+enter = commit-marks;
+~ = run(cd ~);
+g = cursor-move-to-top;
+G = cursor-move-to-bottom;
+. = toggle-hidden-files;
+: = open-cmd;
+! = run($SHELL);
+R = run(rinomato);
+/ = open-search;
+s = mark-file-at-cursor;
+S = open-select;
+o = open-cmd(%c %f);
+d = open-cmd(rm %f);
+m = open-cmd(mv %f );
+n = cursor-move-to-next-match;
+N = cursor-move-to-next-mark;
+q = quit;
+space = clear-marks;
+escape = set-view-files;
+M-m = open-cmd(mkdir );
+i = run(mediainfo %f | less);
M python/.config/python/startup.py => python/.config/python/startup.py +1 -1
@@ 23,4 23,4 @@ readline.set_history_length(-1)
atexit.register(readline.write_history_file, hist_path)
-print(f'history file: {hist_path}')
+print(f'History file: {hist_path}')
M river/.config/river/autorun => river/.config/river/autorun +2 -2
@@ 1,9 1,9 @@
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
dbus-update-activation-environment DISPLAY
-levee
+levee pulse backlight battery > ~/.local/share/levee.log 2>&1
foot --server
gammastep
mako
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
1password --silent
-rivertile -main-ratio 0.5 -view-padding 8 -outer-padding 8
+rivercarro -no-smart-gaps -main-ratio 0.5 -inner-gaps 16 -outer-gaps 16
M river/.config/river/init => river/.config/river/init +9 -8
@@ 1,12 1,11 @@
#!/bin/sh
riverctl map normal Super Q spawn 'launcher'
+riverctl map normal Super I spawn 'fuzzel'
riverctl map normal Super W spawn '$BROWSER'
riverctl map normal Super E spawn '$TERMINAL'
-riverctl map normal Super A spawn '$TERMINAL fff'
-riverctl map normal Super G spawn '$TERMINAL astronaut'
+riverctl map normal Super A spawn '$TERMINAL nfm'
riverctl map normal Super P spawn '1password --quick-access'
-riverctl map normal Super N spawn 'iwdgui'
riverctl map normal Super BackSpace close
riverctl map normal Super+Shift BackSpace exit
@@ 15,8 14,10 @@ riverctl map normal Super Space spawn 'swaylock'
riverctl map normal Super J focus-view next
riverctl map normal Super K focus-view previous
-riverctl map normal Super H send-layout-cmd rivertile 'main-ratio -0.05'
-riverctl map normal Super L send-layout-cmd rivertile 'main-ratio +0.05'
+riverctl map normal Super H send-layout-cmd rivercarro 'main-ratio -0.05'
+riverctl map normal Super L send-layout-cmd rivercarro 'main-ratio +0.05'
+riverctl map normal Super+Shift H send-layout-cmd rivercarro 'width-ratio -0.05'
+riverctl map normal Super+Shift L send-layout-cmd rivercarro 'width-ratio +0.05'
riverctl map normal Super M toggle-fullscreen
riverctl map normal Super F toggle-float
@@ 41,9 42,9 @@ riverctl map normal None XF86AudioLowerVolume spawn \
riverctl map normal None XF86AudioMute spawn \
'pulsemixer --toggle-mute'
riverctl map normal None XF86MonBrightnessUp spawn \
- 'brightnessctl s +5%'
+ 'brightnessctl s +5% -m | cut -d, -f 4 | sed "s/.$//" > $XDG_RUNTIME_DIR/wob.sock'
riverctl map normal None XF86MonBrightnessDown spawn \
- 'brightnessctl s 5%-'
+ 'brightnessctl s 5%- -m | cut -d, -f 4 | sed "s/.$//" > $XDG_RUNTIME_DIR/wob.sock'
riverctl map normal None Print spawn \
'screenshot'
riverctl map normal Shift Print spawn \
@@ 65,7 66,7 @@ riverctl border-width 4
riverctl border-color-focused 0x93a1a1
riverctl border-color-unfocused 0x325b68
-riverctl default-layout rivertile
+riverctl default-layout rivercarro
while read -r cmd; do
pgrep -f "${cmd%% *}" >/dev/null || riverctl spawn "$cmd"
A sh/.local/bin/rinomato => sh/.local/bin/rinomato +28 -0
@@ 0,0 1,28 @@
+#!/bin/sh
+
+if [ -n "$1" ]; then
+ printf 'rinomato: bulk rename files in cwd\n'
+ exit 0
+fi
+
+tmpfile='/tmp/rinomato'
+
+# populate temporary file
+files=$(ls -1)
+printf '%s' "$files" > "$tmpfile"
+lines=$(wc -l "$tmpfile")
+
+# spawn editor
+editor=${EDITOR:-vi}
+"$editor" "$tmpfile"
+
+# check that the number of lines did not change
+lines_after=$(wc -l "$tmpfile")
+[ "${lines%% *}" -ne "${lines_after%% *}" ] && exit 1
+
+# rename
+printf '%s' "$files" | paste - "$tmpfile" | while read -r old new; do
+ [ "$old" = "$new" ] && continue
+ printf '%s -> %s\n' "$old" "$new"
+ command mv "$old" "$new"
+done
M sh/.profile => sh/.profile +11 -94
@@ 1,123 1,40 @@
#!/bin/sh
-export EDITOR='vis'
+export EDITOR='hx'
export BROWSER='firefox'
export TERMINAL='footclient'
export READER='zathura'
-## __ ______ ____
-## \ \/ / _ \ / ___|
-## \ /| | | | | _
-## / \| |_| | |_| |
-## /_/\_\____/ \____|
-##
-
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
-# Android
-export ANDROID_HOME="$HOME/.local/android/sdk"
-export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android"
-export ANDROID_AVD_HOME="$XDG_DATA_HOME/android"
-export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME/android"
-export ANDROID_SDK_ROOT="$ANDROID_HOME"
-export ADB_VENDOR_KEY="$XDG_CONFIG_HOME/android"
+PATH="$PATH:$HOME/.local/bin"
+PATH="$PATH:$HOME/.local/cargo/bin"
+PATH="$PATH:$GOPATH/bin"
+PATH="$PATH:$GEM_HOME/bin"
+PATH="$PATH:$XDG_DATA_HOME/npm/bin"
+PATH="$PATH:$ANDROID_HOME/platform-tools"
+PATH="$PATH:/usr/lib/helix"
+export PATH
-# Bash
export HISTFILE="$XDG_CACHE_HOME/bash/history"
-
-# GnuPG
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
-
-# Go
export GOPATH="$XDG_DATA_HOME/go"
-
-# Gramps
-export GRAMPSHOME="$XDG_CONFIG_HOME"
-
-# Hexer
-export HEXERRC="$XDG_CONFIG_HOME/hexer/hexerrc"
-
-# IPython
+export HELIX_RUNTIME="$XDG_DATA_HOME/helix/runtime"
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
-
-# Jupyter
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
export JUPYTERLAB_DIR="$XDG_DATA_HOME/jupyter/lab"
-
-# Less
export LESSKEY="$XDG_CONFIG_HOME/less/lesskey"
export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
-
-# Node.js
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
-
-# Npm
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
-
-# Octave
-export OCTAVE_HISTFILE="$XDG_CACHE_HOME/octave-hsts"
-
-# OpenSSL
export RANDFILE="$XDG_DATA_HOME/openssl/rnd"
-
-# Python
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py"
-
-# Pylint
-export PYLINTHOME="$XDG_CACHE_HOME/pylint"
-
-# R
export R_LIBS_USER="$XDG_DATA_HOME/R/lib"
-
-# Readline
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
-
-# Ruby
export GEM_HOME="$XDG_DATA_HOME/gem"
export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
-
-# Rust
export CARGO_HOME="$HOME/.local/cargo"
export RUSTUP_HOME="$HOME/.local/rustup"
-
-# wget
-export WGETRC="$XDG_CONFIG_HOME/wgetrc"
-
-## ____ _ _____ _ _
-## | _ \ / \|_ _| | | |
-## | |_) / _ \ | | | |_| |
-## | __/ ___ \| | | _ |
-## |_| /_/ \_\_| |_| |_|
-##
-
-PATH="$PATH:$HOME/.local/bin"
-PATH="$PATH:$HOME/.local/cargo/bin"
-PATH="$PATH:$GOPATH/bin"
-PATH="$PATH:$GEM_HOME/bin"
-PATH="$PATH:$XDG_DATA_HOME/npm/bin"
-PATH="$PATH:$ANDROID_HOME/platform-tools"
-export PATH
-
-## _____ __________
-## | ___|__ / ___|
-## | |_ / /| |_
-## | _| / /_| _|
-## |_| /____|_|
-##
-
-export FZF_DEFAULT_COMMAND='find -L -type f -not -path "*/.git/*"'
-
-## _____ _____ _____
-## | ___| ___| ___|
-## | |_ | |_ | |_
-## | _| | _| | _|
-## |_| |_| |_|
-##
-
-export FFF_HIDDEN=0
-export FFF_KEY_SCROLL_UP2='off'
-export FFF_KEY_SCROLL_DOWN2='off'
-export FFF_KEY_PARENT2='off'
-export FFF_KEY_CHILD2='off'
+export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
D spotifyd/.config/spotifyd/spotifyd.conf => spotifyd/.config/spotifyd/spotifyd.conf +0 -13
@@ 1,13 0,0 @@
-[global]
-username = "11143726984"
-password = "4j)6T9wVp,c#.!b?ia-2>Dydf_"
-
-backend = "pulseaudio"
-bitrate = 160
-
-device_name = "spettro"
-device_type = "computer"
-cache_path = ".local/share/spotifyd"
-
-# A command that gets executed in your shell after each song changes.
-# on_song_change_hook = "command_to_run_on_playback_events"
A swayidle/.config/swayidle/config => swayidle/.config/swayidle/config +1 -0
@@ 0,0 1,1 @@
+timeout 600 'wlopm --off \*' resume 'wlopm --on \*'<
\ No newline at end of file
D vis/.config/vis/visrc.lua => vis/.config/vis/visrc.lua +0 -46
@@ 1,46 0,0 @@
-require('vis')
-require('plugins/open_rej')
-require("plugins/vis-filetype-settings")
-require('plugins/vis-smart-backspace')
-require('plugins/vis-surround')
-
-fzf = require('plugins/fzf-open')
-fzf.fzf_args = "--height 50% --margin 5% --preview 'cat {}'"
-
-prs = require('plugins/pairs')
-prs.autopairs = false
-
-spell = require('plugins/spellcheck')
-spell.cmd = "enchant-2 -a -d %s"
-spell.list_cmd = "enchant-2 -l -d %s"
-
-vis.events.subscribe(vis.events.INIT, function()
- vis:command('set escdelay 0')
- vis:command('set theme base16-gruvbox-dark-pale')
-
- -- System Clipboard --
- vis:map(vis.modes.NORMAL, ' y', '"+<vis-operator-yank>')
- vis:map(vis.modes.VISUAL, ' y', '"+<vis-operator-yank>')
- vis:map(vis.modes.VISUAL_LINE, ' y', '"+<vis-operator-yank>')
- -- Folding --
- vis:map(vis.modes.VISUAL_LINE, ' w', ':|fold -w 80 -s<Enter><Escape>')
- -- FZF --
- vis:map(vis.modes.NORMAL, ' f', ':fzf<Enter><Enter>')
- -- Toggle Spellcheck --
- vis:map(vis.modes.NORMAL, ' s', '<F7>')
- -- Correct Typo
- vis:map(vis.modes.NORMAL, ' c', '<C-w>w')
-end)
-
-vis.events.subscribe(vis.events.WIN_OPEN, function(win)
- vis:command('set relativenumbers')
- vis:command('set cursorline')
- vis:command('set colorcolumn 80')
-end)
-
-settings = {
- html = {'set tabwidth 2', 'set expandtab'},
- python = {'set tabwidth 4', 'set expandtab'},
- rust = {'set tabwidth 4', 'set expandtab'},
- zig = {'set tabwidth 4', 'set expandtab'},
-}
M xdg/.local/share/applications/filemanager.desktop => xdg/.local/share/applications/filemanager.desktop +1 -1
@@ 1,5 1,5 @@
[Desktop Entry]
Type=Application
Name=fff
-Exec=/usr/bin/foot -e fff %u
+Exec=/usr/bin/foot -D %u -e nfm
NoDisplay=true
M xdg/.local/share/applications/text.desktop => xdg/.local/share/applications/text.desktop +2 -2
@@ 1,5 1,5 @@
[Desktop Entry]
Type=Application
-Name=vis
-Exec=/usr/bin/foot -e vis %u
+Name=helix
+Exec=/usr/bin/foot -e hx %u
NoDisplay=true
A zls/.config/zls.json => zls/.config/zls.json +9 -0
@@ 0,0 1,9 @@
+{
+ "zig_exe_path": "/usr/bin/zig",
+ "enable_snippets": false,
+ "warn_style": true,
+ "enable_semantic_tokens": true,
+ "operator_completions": true,
+ "include_at_in_builtins": false,
+ "max_detail_length": 1048576
+}<
\ No newline at end of file