diff options
Diffstat (limited to '')
| -rw-r--r-- | .config/env | 2 | ||||
| -rw-r--r-- | .config/imv/config | 64 | ||||
| -rw-r--r-- | .config/mutt/accounts/1-gmx_rbo.muttrc | 12 | ||||
| -rw-r--r-- | .config/mutt/accounts/2-gmx_shop.muttrc | 10 | ||||
| -rw-r--r-- | .config/mutt/accounts/3-gmail_br.muttrc | 12 | ||||
| -rw-r--r-- | .config/mutt/accounts/4-gmail_oon.muttrc | 12 | ||||
| -rwxr-xr-x | .config/nnn/plugins/joe_fzfcd | 2 | ||||
| -rwxr-xr-x | .config/nnn/plugins/joe_fzfjump | 20 | ||||
| -rwxr-xr-x | .config/nnn/plugins/joe_rand | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/config/settings.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lualine.lua | 2 | ||||
| -rw-r--r-- | .config/zsh/.zshrc | 2 | ||||
| -rw-r--r-- | .config/zsh/alias.zsh | 2 | ||||
| -rwxr-xr-x | .local/bin/dmlog | 15 | ||||
| -rwxr-xr-x | .local/bin/hddmnt | 16 | ||||
| -rwxr-xr-x | .local/bin/hddumnt | 12 |
16 files changed, 70 insertions, 118 deletions
diff --git a/.config/env b/.config/env index 1df9a2d..30f24b8 100644 --- a/.config/env +++ b/.config/env @@ -123,7 +123,7 @@ export NNN_BATSTYLE='plain' export NNN_PREVIEWIMGPROG='icat' export NNN_PREVIEWVIDEO='tct' export NNN_ICONLOOKUP=0 -export NNN_PLUG='t:joe_fzfcd;p:-preview-tui;s:-!gdu -s;f:-fzopen;c:-joe_clipper;d:-joe_dragdrop;q:-joe_cmusq;r:joe_rand' +export NNN_PLUG='t:joe_fzfcd;p:-preview-tui;s:-!gdu -s;f:joe_fzfjump;c:-joe_clipper;d:-joe_dragdrop;q:-joe_cmusq;r:joe_rand' export RUSTFLAGS='-L /usr/local/lib' export SFEED_AUTOCMD="t<<<<<<" export SFEED_PLUMBER="linkview" diff --git a/.config/imv/config b/.config/imv/config deleted file mode 100644 index 21452a0..0000000 --- a/.config/imv/config +++ /dev/null @@ -1,64 +0,0 @@ -# Default config for imv - -[options] - -# Suppress built-in key bindings, and specify them explicitly in this -# config file. -background = 1d2021 -suppress_default_binds = true - -[aliases] -# Define aliases here. Any arguments passed to an alias are appended to the -# command. -# alias = command to run - -[binds] -# Define some key bindings -q = quit -# y = exec echo working! - -# Image navigation -p = prev -<bracketleft> = prev -<Ctrl+b> = prev -n = next -<bracketright> = next -<Ctrl+f> = next -gg = goto 1 -<Shift+G> = goto -1 - -# Panning -j = pan 0 -50 -k = pan 0 50 -h = pan 50 0 -l = pan -50 0 - -# Zooming -<Up> = zoom 1 -<Shift+plus> = zoom 1 -i = zoom 1 -<Down> = zoom -1 -<minus> = zoom -1 -o = zoom -1 - -# Rotate Clockwise by 90 degrees -<Ctrl+r> = rotate by 90 - -# Other commands -x = close -f = fullscreen -d = overlay -m = exec echo $imv_current_file -c = center -s = scaling next -<Shift+S> = upscaling next -a = zoom actual -r = reset - -# Gif playback -<period> = next_frame -<space> = toggle_playing - -# Slideshow control -t = slideshow +1 -<Shift+T> = slideshow -1 diff --git a/.config/mutt/accounts/1-gmx_rbo.muttrc b/.config/mutt/accounts/1-gmx_rbo.muttrc index c9c7596..86fd01e 100644 --- a/.config/mutt/accounts/1-gmx_rbo.muttrc +++ b/.config/mutt/accounts/1-gmx_rbo.muttrc @@ -22,12 +22,12 @@ macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync gmx_rbo<ente unmailboxes * named-mailboxes \ - " inbox" =INBOX \ - " sent" =Sent \ - " draft" =Drafts \ - " junk" =Spam \ - " trash" =Trash \ - " keep" =Keep + "inbox" =INBOX \ + "sent" =Sent \ + "draft" =Drafts \ + "junk" =Spam \ + "trash" =Trash \ + "keep" =Keep macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" diff --git a/.config/mutt/accounts/2-gmx_shop.muttrc b/.config/mutt/accounts/2-gmx_shop.muttrc index bfda76c..41d353d 100644 --- a/.config/mutt/accounts/2-gmx_shop.muttrc +++ b/.config/mutt/accounts/2-gmx_shop.muttrc @@ -22,11 +22,11 @@ macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync gmx_shop<ent unmailboxes * named-mailboxes \ - " inbox" =INBOX \ - " sent" =Sent \ - " draft" =Drafts \ - " junk" =Spam \ - " trash" =Trash + "inbox" =INBOX \ + "sent" =Sent \ + "draft" =Drafts \ + "junk" =Spam \ + "trash" =Trash macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" diff --git a/.config/mutt/accounts/3-gmail_br.muttrc b/.config/mutt/accounts/3-gmail_br.muttrc index d114173..04c7af6 100644 --- a/.config/mutt/accounts/3-gmail_br.muttrc +++ b/.config/mutt/accounts/3-gmail_br.muttrc @@ -22,12 +22,12 @@ macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync gmail_br<ent unmailboxes * named-mailboxes \ - " inbox" =INBOX \ - " sent" "=[Gmail]/Sent Mail" \ - " draft" =[Gmail]/Drafts \ - " junk" =[Gmail]/Spam \ - " trash" =[Gmail]/Trash \ - " keep" =Keep + "inbox" =INBOX \ + "sent" "=[Gmail]/Sent Mail" \ + "draft" =[Gmail]/Drafts \ + "junk" =[Gmail]/Spam \ + "trash" =[Gmail]/Trash \ + "keep" =Keep macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" diff --git a/.config/mutt/accounts/4-gmail_oon.muttrc b/.config/mutt/accounts/4-gmail_oon.muttrc index c69f27e..1782bc9 100644 --- a/.config/mutt/accounts/4-gmail_oon.muttrc +++ b/.config/mutt/accounts/4-gmail_oon.muttrc @@ -22,12 +22,12 @@ macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync gmail_oon<en unmailboxes * named-mailboxes \ - " inbox" =INBOX \ - " sent" "=[Gmail]/Sent Mail" \ - " draft" =[Gmail]/Drafts \ - " junk" =[Gmail]/Spam \ - " trash" =[Gmail]/Trash \ - " keep" =Keep + "inbox" =INBOX \ + "sent" "=[Gmail]/Sent Mail" \ + "draft" =[Gmail]/Drafts \ + "junk" =[Gmail]/Spam \ + "trash" =[Gmail]/Trash \ + "keep" =Keep macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" diff --git a/.config/nnn/plugins/joe_fzfcd b/.config/nnn/plugins/joe_fzfcd index 13ac1a5..b4df9a4 100755 --- a/.config/nnn/plugins/joe_fzfcd +++ b/.config/nnn/plugins/joe_fzfcd @@ -7,7 +7,7 @@ use Env qw(NNN_PIPE PWD); sub main { my $dir; - $dir = `fd -t d -L | fzf --preview ' eza --color=always --icons -T -L1 {} | + $dir = `fd -t d -L | fzf --preview ' eza --color=always -T -L1 {} | head -n 200'`; chomp($dir); open(FH, '>>', $NNN_PIPE) or die $!; diff --git a/.config/nnn/plugins/joe_fzfjump b/.config/nnn/plugins/joe_fzfjump new file mode 100755 index 0000000..dc918f3 --- /dev/null +++ b/.config/nnn/plugins/joe_fzfjump @@ -0,0 +1,20 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Env qw(NNN_PIPE PWD); + +sub main { + my $file; + + $file = `fd -L | fzf`; + chomp($file); + open(FH, '>>', $NNN_PIPE) or die $!; + print FH '0c' . $PWD . '/' . $file; + close(FH); + return; +} + +main(); + +__END__ diff --git a/.config/nnn/plugins/joe_rand b/.config/nnn/plugins/joe_rand index edc71c1..100181a 100755 --- a/.config/nnn/plugins/joe_rand +++ b/.config/nnn/plugins/joe_rand @@ -13,7 +13,7 @@ . "$(dirname "$0")"/.nnn-plugin-helper file=$(command ls | shuf | head -n1 | tr -d '\n') -printf "%s" "0l$file" > "$NNN_PIPE" +printf "%s" "0c$PWD/$file" > "$NNN_PIPE" # printf "%s" "+l" > "$NNN_PIPE" # if type mimetype >/dev/null 2>&1; then # find . | mimetype -f - | grep "$mime" | awk -F: '{printf "%s%c", $1, 0}' > "$NNN_PIPE" diff --git a/.config/nvim/lua/config/settings.lua b/.config/nvim/lua/config/settings.lua index aac3187..846ee47 100644 --- a/.config/nvim/lua/config/settings.lua +++ b/.config/nvim/lua/config/settings.lua @@ -109,3 +109,6 @@ vim.diagnostic.config({ update_in_insert = true, severity_sort = true, }) + +vim.api.nvim_set_hl(0, "NormalFloat", { bg = "#32302f" }) +vim.api.nvim_set_hl(0, "LspFloatWinNormal", { bg = "#32302f" }) diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index f6223c6..6dcdb8a 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -121,7 +121,7 @@ return { show_modified_status = true, icons_enabled = false, symbols = { - modified = '+', -- Text to show when the buffer is modified + modified = '[+]', -- Text to show when the buffer is modified alternate_file = '', -- Text to show to identify the alternate file }, buffers_color = { diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 1046db4..34806c3 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -75,7 +75,7 @@ bindkey "^e" edit-command-line autoload -U add-zsh-hook eza_after_cd() { - eza -l --icons --color=always --group-directories-first --no-permissions --no-user --no-time --no-filesize + eza -l --color=always --group-directories-first --no-permissions --no-user --no-time --no-filesize } add-zsh-hook chpwd eza_after_cd diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index cfab06d..30602b4 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -11,7 +11,7 @@ # == ===== ==== == # ======================== -alias eza='eza --color=always --group-directories-first --icons' \ +alias eza='eza --color=always --group-directories-first' \ ls='eza -l' tree() { eza -T $@ | $PAGER diff --git a/.local/bin/dmlog b/.local/bin/dmlog index c31a270..a5f9b15 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -27,13 +27,6 @@ use constant CONFIRM => [ "yes" ]; -my $icon; - -$icon = ""; -$icon = " " if HOSTNAME eq 'mother'; -$icon = " " if HOSTNAME eq 'po-rbo'; -$icon = " " if HOSTNAME eq 'mars'; - sub notify { my ($str) = @_; @@ -82,7 +75,7 @@ sub action "-fail-color", "0xcc241d"); } else { - exec(SLOCK_PATH . " && exec herbe '$icon welcome back, partner!'"); + exec(SLOCK_PATH . " && exec herbe 'welcome back, partner!'"); } } elsif ($var eq ${+LIST}[1]) { @@ -99,7 +92,7 @@ sub action } } else { - notify("$icon g'night, partner!"); + notify("g'night, partner!"); sleep 2; if (HOSTNAME eq 'mother') { system('umount', '-f', '/var/dev/ceres'); @@ -128,13 +121,13 @@ sub action elsif (HOSTNAME eq 'po-rbo') { exec('doas', 'systemctl', 'reboot'); } - notify("$icon rebootin', partner!"); + notify("rebootin', partner!"); exec(SHUTDOWN_PATH, '-r', 'now'); } } elsif ($var eq ${+LIST}[4]) { if (confirm($var, $color) == 1) { - notify("$icon farewell, partner!"); + notify("farewell, partner!"); sleep 2; if (HOSTNAME eq 'mother') { exec(LOGINCTL_PATH, 'poweroff'); diff --git a/.local/bin/hddmnt b/.local/bin/hddmnt index c3b73d3..d7115f1 100755 --- a/.local/bin/hddmnt +++ b/.local/bin/hddmnt @@ -7,38 +7,38 @@ case "$(hostname -s)" in mother|po-rbo) dev=$(find /dev/sd* -type b -exec bash -c 'doas cryptsetup isLuks {} && echo {}' \; | head -n1) if [ -z "$dev" ]; then - herbe ' crypt dev not detected' & + herbe 'crypt dev not detected' & exit 1 fi if ! doas cryptsetup open "$dev" "$devname"; then - herbe " failed to uncrypt dev $dev" & + herbe "failed to uncrypt dev $dev" & exit 1 fi mkdir -p "$mountpoint" if ! doas mount /dev/mapper/"$devname" "$mountpoint"; then - herbe " failed to mount dev $dev" & + herbe "failed to mount dev $dev" & exit 1 fi - herbe " crypt dev mounted to $mountpoint" & + herbe "crypt dev mounted to $mountpoint" & ;; mars) if ! diskinfo da0 >/dev/null; then - herbe ' HDD not detected' & + herbe 'hdd not detected' & exit 1 fi if mount | grep -F /dev/da0p1; then herbe \ - " HDD already mounted to \ + "hdd already mounted to \ $(mount | grep -F '/dev/da0p1' | awk '{print $3}')" exit 1 fi if ! dmenu -m 0 -p 'Enter password: ' -P | geli attach -k /root/geli_keys/fathdd_ext.key -j - da0p1; then - herbe ' Failed to mount HDD' & + herbe 'failed to mount hdd' & exit 1 fi mkdir -p "$HOME"/hdd mount /dev/da0p1.eli "$HOME"/hdd - herbe ' HDD mounted to ~/hdd' & + herbe 'hdd mounted to ~/hdd' & ;; esac diff --git a/.local/bin/hddumnt b/.local/bin/hddumnt index 1b5da66..d4034ae 100755 --- a/.local/bin/hddumnt +++ b/.local/bin/hddumnt @@ -6,25 +6,25 @@ mountpoint="$HOME/$devname" case "$(hostname -s)" in mother|po-rbo) if ! doas umount "$mountpoint"; then - herbe " failed to dismount $mountpoint" & + herbe "failed to dismount $mountpoint" & fi if ! doas cryptsetup close "$devname"; then - herbe " failed to close crypt dev $devname" & + herbe "failed to close crypt dev $devname" & fi rmdir "$mountpoint" - herbe " crypt dev dismounted from $mountpoint" & + herbe "crypt dev dismounted from $mountpoint" & ;; mars) if ! mount | grep -F /dev/da0p1; then - herbe ' HDD not mounted' & + herbe 'hdd not mounted' & exit 1 fi if ! umount /dev/da0p1.eli; then - herbe ' failed to dismount hdd' & + herbe 'failed to dismount hdd' & exit 1 fi geli detach da0p1.eli rmdir "$HOME"/hdd - herbe ' hdd dismounted from ~/hdd' & + herbe 'hdd dismounted from ~/hdd' & ;; esac |
