diff options
| -rw-r--r-- | .config/i3/config | 28 | ||||
| -rw-r--r-- | .config/lf/lfrc | 33 | ||||
| -rw-r--r-- | .local/share/larbs/readme.mom | 8 |
3 files changed, 40 insertions, 29 deletions
diff --git a/.config/i3/config b/.config/i3/config index ef8077f..85e96d8 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -59,7 +59,7 @@ bindsym $mod+grave exec --no-startup-id dmenuunicode ##bindsym $mod+asciitilde #STOP/HIDE EVERYTHING: -bindsym $mod+Shift+Delete exec --no-startup-id lmc mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e lf +bindsym $mod+Shift+Delete exec --no-startup-id pulsemixer --mute ; exec --no-startup-id mpc pause && pkill -RTMIN+10 i3blocks ; exec --no-startup-id pauseallmpv; workspace 0; exec $term -e htop ; exec $term -e lf # Show selection: bindsym $mod+Insert exec --no-startup-id showclip @@ -97,7 +97,7 @@ bindsym $mod+p exec --no-startup-id mpc toggle bindsym $mod+Shift+p exec --no-startup-id mpc pause bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -bindsym $mod+Shift+a exec $term -e alsamixer +bindsym $mod+Shift+a exec $term -e pulsemixer bindsym $mod+s gaps inner current plus 5 bindsym $mod+Shift+s gaps inner current minus 5 @@ -150,7 +150,7 @@ bindsym $mod+n exec $term -e newsboat && pkill -RTMIN+6 i3blocks bindsym $mod+Shift+n floating toggle; sticky toggle; exec --no-startup-id hover right bindsym $mod+m exec --no-startup-id $term -e ncmpcpp -bindsym $mod+Shift+m exec --no-startup-id lmc toggle +bindsym $mod+Shift+m exec --no-startup-id pulsemixer --toggle-mute # #---Workspace Bindings---# # bindsym $mod+Home workspace $ws1 @@ -252,10 +252,10 @@ bindsym $mod+Ctrl+Right move workspace to output right # #---Media Keys---# # # Volume keys -bindsym $mod+plus exec --no-startup-id lmc up -bindsym $mod+Shift+plus exec --no-startup-id lmc up 15 -bindsym $mod+minus exec --no-startup-id lmc down -bindsym $mod+Shift+minus exec --no-startup-id lmc down 15 +bindsym $mod+plus exec --no-startup-id pulsemixer --change-volume +5 +bindsym $mod+Shift+plus exec --no-startup-id pulsemixer --change-volume +15 +bindsym $mod+minus exec --no-startup-id pulsemixer --change-volume -5 +bindsym $mod+Shift+minus exec --no-startup-id pulsemixer --change-volume -15 bindsym $mod+less exec --no-startup-id mpc prev bindsym $mod+Shift+less exec --no-startup-id mpc seek 0% bindsym $mod+greater exec --no-startup-id mpc next @@ -276,13 +276,13 @@ bindsym $mod+Delete exec $stoprec bindsym XF86Launch1 exec --no-startup-id xset dpms force off # #---Extra XF86 Keys---# # -bindsym XF86AudioMute exec --no-startup-id lmc toggle -bindsym XF86AudioLowerVolume exec --no-startup-id lmc down -bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10 -bindsym Control+XF86AudioLowerVolume exec --no-startup-id lmc down 1 -bindsym XF86AudioRaiseVolume exec --no-startup-id lmc up -bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id lmc up 10 -bindsym Control+XF86AudioRaiseVolume exec --no-startup-id lmc up 1 +bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute +bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5 +bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -10 +bindsym Control+XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -1 +bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5 +bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +10 +bindsym Control+XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +1 bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown" ##bindsym XF86Copy exec ##bindsym XF86Open exec diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 3766268..7f12ad7 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -1,21 +1,23 @@ # Luke's lf settings # Basic vars -set shell sh +set shell bash set previewer ~/.config/lf/scope set shellopts '-eu' set ifs "\n" set scrolloff 10 set color256 -set icons # Enable icons. Requires nerd fonts and LF_ICONS variable. +set icons +set period 1 # cmds/functions cmd open ${{ case $(file --mime-type $f -b) in + image/vnd.djvu|application/pdf|application/octet-stream) setsid zathura $fx >/dev/null 2>&1 & ;; text/troff) man ./ $f;; text/*) $EDITOR $fx;; image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;; - image/*) rotdir $f | setsid sxiv -aio 2>/dev/null | lf-select & ;; + image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\)\(_large\)*$" | setsid sxiv -aio 2>/dev/null | lf-select & ;; audio/*) mpv $f ;; video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;; application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;; @@ -23,9 +25,10 @@ cmd open ${{ esac }} -cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 +cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" cmd delete ${{ + clear; tput cup $(($(tput lines)/3)); tput bold set -f printf "%s\n\t" "$fx" printf "delete?[y/N]" @@ -34,6 +37,7 @@ cmd delete ${{ }} cmd moveto ${{ + clear; tput cup $(($(tput lines)/3)); tput bold set -f clear; echo "Move to where?" dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" && @@ -42,6 +46,7 @@ cmd moveto ${{ }} cmd copyto ${{ + clear; tput cup $(($(tput lines)/3)); tput bold set -f clear; echo "Copy to where?" dest="$(cut -d' ' -f2- ${XDG_CONFIG_HOME:-$HOME/.config}/directories | fzf)" && @@ -61,13 +66,21 @@ map g top map D delete map C copyto map M moveto -map a push %mkdir<space> -map r push :rename<space> -map R $lf -remote "send $id push :rename<space>$f" -map b bulkrename +map <c-n> push :mkdir<space> map <c-r> reload map <enter> shell map x $$f map X !$f -map o &mimeopen "$f" -map O $mimeopen --ask "$f" +map o &mimeopen $f +map O $mimeopen --ask $f + +map A rename # at the very end +map c push A<c-u> # new rename +map I push A<c-a> # at the very beginning +map i push A<a-b><a-b><a-f> # before extention +map a push A<a-b> # after extention +map b bulkrename + +map <c-e> down +map <c-y> up +map V push :!nvim<space> diff --git a/.local/share/larbs/readme.mom b/.local/share/larbs/readme.mom index c46b1a8..fb8feb8 100644 --- a/.local/share/larbs/readme.mom +++ b/.local/share/larbs/readme.mom @@ -137,7 +137,7 @@ Naturally, you can use \f(CWyay\fP to look for and install any you want to add. .ITEM \f(CWMod+n\fP \(en newsboat (RSS feed reader) .ITEM -\f(CWMod+A\fP \(en alsa (audio system control) +\f(CWMod+A\fP \(en pulsemixer (audio system control) .ITEM \f(CWMod+w\fP \(en Web Browser (Brave) .ITEM @@ -209,7 +209,7 @@ I use ncmpcpp as a music player, which is a front end for mpd. .ITEM \f(CWMod+]\fP \(en Forward 10 seconds (holding shift increases amount) .ITEM -\f(CWMod+A\fP \(en alsamixer (general volume sink/source control) +\f(CWMod+A\fP \(en pulsemixer (general volume sink/source control) .LIST OFF .HEADING 2 "Workspaces" .PP @@ -266,9 +266,7 @@ These settings may override your preferred settings, so you should open this fil .PP On fresh install, the Linux audio system (ALSA) often mutes outputs. You may want to unbind -You may also need to set your preferred default output sink which you can do by the command line, or by selecting one with \f(CWalsamixer\fP (\f(CWmod+A\fP). - -If you have a more complex audio setup and can't be bothered to figure out ALSA, you might want to install and enable PulseAudio, which general "just werks". +You may also need to set your preferred default output sink which you can do by the command line, or by selecting one with \f(CWpulsemixer\fP (\f(CWmod+A\fP). .HEADING 2 "How do I copy and paste?" .PP Copying and pasting is always program-specific on any system. |
