mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Merge branch 'master' into patch-3
This commit is contained in:
commit
2ac41624c9
@ -16,8 +16,8 @@ alias \
|
||||
|
||||
# Colorize commands when possible.
|
||||
alias \
|
||||
ls="ls -hN --color=auto --group-directories-first" \
|
||||
grep="grep --color=auto" \
|
||||
ls="ls --literal -l --human-readable --color=auto --group-directories-first" \
|
||||
grep="grep -n --color=auto" \
|
||||
diff="diff --color=auto" \
|
||||
ccat="highlight --out-format=ansi"
|
||||
|
||||
@ -32,9 +32,6 @@ alias \
|
||||
e="$EDITOR" \
|
||||
v="$EDITOR" \
|
||||
p="sudo pacman" \
|
||||
xi="sudo xbps-install" \
|
||||
xr="sudo xbps-remove -R" \
|
||||
xq="xbps-query"
|
||||
|
||||
# This alias is important. It enables the `pauseallmpv` command.
|
||||
alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
|
||||
|
||||
BIN
.config/assets/lockscreen.png
Normal file
BIN
.config/assets/lockscreen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
BIN
.config/assets/wallpaper.png
Normal file
BIN
.config/assets/wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 441 KiB |
@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# If refreshing bspwm, remove all previous rules to prevent doubling up.
|
||||
bspc rule -r "*"
|
||||
|
||||
# We look for a non-laptop monitor to use for default, but use the laptop
|
||||
# screen (LVDS) if there's nothing else. This is because I assume that if you
|
||||
# have an extra screen attached to a laptop, you want to use that.
|
||||
mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)"
|
||||
|
||||
if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then
|
||||
xrandr --output "$mainmonitor" --auto --output LVDS1 --off
|
||||
fi
|
||||
|
||||
# Start workspaces on the main monitor.
|
||||
bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10
|
||||
bspc desktop -f 1
|
||||
|
||||
# If you want a multi-monitor display or something else, I leave that to you to
|
||||
# arrange. I have this sensible default for most people's use cases.
|
||||
|
||||
|
||||
bspc config border_width 3
|
||||
bspc config window_gap 15
|
||||
bspc config top_padding 24 # top_padding I set equal to polybar's height
|
||||
bspc config focus_follows_pointer true
|
||||
|
||||
dropdownname="dropdown"
|
||||
bspc query -N -n .hidden >/dev/null || setsid $TERMINAL -n "$dropdownname" -e dropdown >/dev/null 2>&1 &
|
||||
bspc rule -a St:$dropdownname hidden=on
|
||||
bspc rule -a St:$dropdownname sticky=on
|
||||
bspc rule -a St:$dropdownname state=floating
|
||||
|
||||
bspc config external_rules_command "$(which floaters)"
|
||||
@ -1,10 +1,9 @@
|
||||
# You can add comments to these files with #
|
||||
h ~/
|
||||
d ~/Documents
|
||||
D ~/Downloads
|
||||
m ~/Music
|
||||
pp ~/Pictures
|
||||
vv ~/Videos
|
||||
cf ~/.config
|
||||
sc ~/.local/bin
|
||||
d ~/downloads
|
||||
gh ~/github
|
||||
h ~/
|
||||
mn /mnt
|
||||
psc ~/.local/bin/polybar_scripts
|
||||
pp ~/pictures
|
||||
sc ~/.local/bin
|
||||
|
||||
@ -1,15 +1,12 @@
|
||||
bf ~/.config/files
|
||||
bd ~/.config/directories
|
||||
bw ~/.config/bookmarks
|
||||
cfa ~/.config/aliasrc
|
||||
cfz $ZDOTDIR/.zshrc
|
||||
cfv ~/.config/nvim/init.vim
|
||||
cfm ~/.config/mutt/muttrc
|
||||
cfd ~/.Xdefaults
|
||||
cfu ~/.config/newsboat/urls
|
||||
cfn ~/.config/newsboat/config
|
||||
cfmb ~/.config/ncmpcpp/bindings
|
||||
cfmc ~/.config/ncmpcpp/config
|
||||
cfk ~/.config/sxhkd/sxhkdrc
|
||||
cfi ~/.config/i3/config
|
||||
cfb ~/.config/i3blocks/config
|
||||
bd ~/.config/directories
|
||||
bf ~/.config/files
|
||||
bw ~/.config/bookmarks
|
||||
cfa ~/.config/aliasrc
|
||||
cfd ~/.Xdefaults
|
||||
cfi ~/.config/i3/config
|
||||
cfk ~/.config/sxhkd/sxhkdrc
|
||||
cfm ~/.config/mutt/muttrc
|
||||
cfp ~/.config/polybar/config
|
||||
cfs ~/.config/sxhkd/sxhkdrc
|
||||
cfv ~/.config/nvim/init.vim
|
||||
cfz $ZDOTDIR/.zshrc
|
||||
|
||||
@ -4,19 +4,19 @@
|
||||
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer><family>Linux Libertine</family></prefer>
|
||||
<prefer><family>Source Code Pro</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer><family>Linux Biolinum</family></prefer>
|
||||
<prefer><family>Source Code Pro</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans</family>
|
||||
<prefer><family>Linux Biolinum</family></prefer>
|
||||
<prefer><family>Source Code Pro</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>Inconsolata</family></prefer>
|
||||
<prefer><family>Source Code Pro</family></prefer>
|
||||
</alias>
|
||||
|
||||
<!-- This sets Symbola as the final fallback font for the monospace font family. -->
|
||||
|
||||
@ -1,23 +1,19 @@
|
||||
# vim: filetype=i3
|
||||
# File originally by Luke Smith <https://lukesmith.xyz>
|
||||
|
||||
# This config file will use environmental variables such as $BROWSER and $TERMINAL.
|
||||
# You can set these variables in ~/.profile or ~/.bash_profile if you have it as below:
|
||||
#
|
||||
# export FILE="ranger"
|
||||
# export TERMINAL="st"
|
||||
|
||||
# Polybar
|
||||
exec_always --no-startup-id launch_polybar
|
||||
|
||||
# #---Basic Definitions---# #
|
||||
for_window [class="^.*"] border pixel 2
|
||||
gaps inner 15
|
||||
gaps outer 15
|
||||
gaps inner 2
|
||||
gaps outer 2
|
||||
set $term --no-startup-id $TERMINAL
|
||||
set $mod Mod4
|
||||
set $stoprec --no-startup-id dmenurecord kill
|
||||
set $shutdown sudo -A shutdown -h now
|
||||
set $reboot sudo -A reboot
|
||||
set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager
|
||||
set $hibernate sudo -A systemctl suspend
|
||||
set $stoprec --no-startup-id dmenurecord kill
|
||||
|
||||
# #---Dropdown Windows---# #
|
||||
# General dropdown window traits. The order can matter.
|
||||
@ -31,14 +27,6 @@ for_window [instance="dropdown_tmuxdd"] border pixel 3
|
||||
for_window [instance="dropdown_dropdowncalc"] border pixel 2
|
||||
for_window [instance="dropdown_*"] move position center
|
||||
|
||||
bar {
|
||||
font pango:mono 10
|
||||
status_command i3blocks
|
||||
position top
|
||||
mode dock
|
||||
modifier None
|
||||
}
|
||||
|
||||
# #---Basic Bindings---# #
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym $mod+Shift+Return exec --no-startup-id samedir
|
||||
@ -48,18 +36,10 @@ bindsym $mod+space focus mode_toggle
|
||||
|
||||
bindsym $mod+Escape workspace prev
|
||||
|
||||
# bindsym $mod+BackSpace
|
||||
bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"
|
||||
|
||||
bindsym $mod+grave exec --no-startup-id dmenuunicode
|
||||
##bindsym $mod+asciitilde
|
||||
|
||||
#STOP/HIDE EVERYTHING:
|
||||
bindsym $mod+Shift+Delete exec --no-startup-id amixer sset Master 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 $FILE
|
||||
|
||||
# Show selection:
|
||||
bindsym $mod+Insert exec --no-startup-id showclip
|
||||
##bindsym $mod+Pause
|
||||
|
||||
# #---Letter Key Bindings---# #
|
||||
bindsym $mod+q [con_id="__focused__" instance="^(?!dropdown_).*$"] kill
|
||||
@ -68,11 +48,7 @@ bindsym $mod+Shift+q [con_id="__focused__" instance="^(?!dropdown_).*$"] exec -
|
||||
bindsym $mod+w exec $term -e nmtui
|
||||
bindsym $mod+Shift+w exec --no-startup-id $BROWSER
|
||||
|
||||
bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks
|
||||
bindsym $mod+Shift+e exec --no-startup-id tutorialvids
|
||||
|
||||
bindsym $mod+r exec $term -e $FILE
|
||||
bindsym $mod+Shift+r exec --no-startup-id winresize
|
||||
|
||||
bindsym $mod+t split toggle
|
||||
bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15
|
||||
@ -89,9 +65,6 @@ bindsym $mod+Shift+i exec --no-startup-id i3resize up
|
||||
bindsym $mod+o sticky toggle
|
||||
bindsym $mod+Shift+o exec --no-startup-id i3resize right
|
||||
|
||||
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 pulsemixer
|
||||
|
||||
@ -106,7 +79,6 @@ mode "$freeze" { bindsym $mod+Shift+f mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+f fullscreen toggle
|
||||
bindsym $mod+Shift+f mode "$freeze" ;; exec --no-startup-id notify-send "Distraction-free mode activated." "Press Super+Shift+f to return."
|
||||
|
||||
bindsym $mod+g workspace prev
|
||||
bindsym $mod+Shift+g exec --no-startup-id gimp; workspace $ws5
|
||||
@ -130,22 +102,9 @@ bindsym $mod+Ctrl+l move workspace to output right
|
||||
bindsym $mod+z gaps outer current plus 5
|
||||
bindsym $mod+Shift+z gaps outer current minus 5
|
||||
|
||||
bindsym $mod+x exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id i3lock -e -f -c 1d2021 ; exec --no-startup-id xset dpms force off
|
||||
bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
|
||||
|
||||
bindsym $mod+c exec --no-startup-id cabl
|
||||
bindsym $mod+Shift+c exec --no-startup-id camtoggle
|
||||
|
||||
bindsym $mod+v exec --no-startup-id $term -e $EDITOR -c "VimwikiIndex"
|
||||
#bindsym $mod+Shift+v
|
||||
|
||||
bindsym $mod+b bar mode toggle
|
||||
bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left
|
||||
|
||||
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 amixer sset Master toggle; pkill -RTMIN+10 i3blocks
|
||||
|
||||
# #---Workspace Bindings---# #
|
||||
@ -205,8 +164,6 @@ bindsym $mod+Shift+0 move container to workspace $ws10
|
||||
|
||||
for_window [class="Pinentry"] sticky enable
|
||||
for_window [class="sent"] border pixel 0px
|
||||
for_window [title="GIMP Startup"] move workspace $ws5
|
||||
for_window [class="Gimp"] move workspace $ws5
|
||||
for_window [window_role="GtkFileChooserDialog"] resize set 800 600
|
||||
for_window [window_role="GtkFileChooserDialog"] move position center
|
||||
for_window [title="Default - Wine desktop"] floating enable
|
||||
@ -223,13 +180,8 @@ bindsym $mod+F2 restart
|
||||
bindsym $mod+F3 exec --no-startup-id displayselect
|
||||
bindsym $mod+F4 exec --no-startup-id prompt "Hibernate computer?" "$hibernate"
|
||||
bindsym $mod+F5 exec --no-startup-id $netrefresh
|
||||
bindsym $mod+F6 exec --no-startup-id torwrap
|
||||
bindsym $mod+F7 exec --no-startup-id td-toggle
|
||||
bindsym $mod+F8 exec --no-startup-id mailsync
|
||||
bindsym $mod+F9 exec --no-startup-id dmenumount
|
||||
bindsym $mod+F10 exec --no-startup-id dmenuumount
|
||||
bindsym $mod+F11 exec --no-startup-id ducksearch
|
||||
bindsym $mod+F12 exec $term -e nmtui
|
||||
|
||||
# #---Arrow Keys---# #
|
||||
bindsym $mod+Left focus left
|
||||
@ -245,110 +197,9 @@ bindsym $mod+Right focus right
|
||||
bindsym $mod+Shift+Right move right
|
||||
bindsym $mod+Ctrl+Right move workspace to output right
|
||||
|
||||
# #---Media Keys---# #
|
||||
# Volume keys
|
||||
bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+; pkill -RTMIN+10 i3blocks
|
||||
bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+; pkill -RTMIN+10 i3blocks
|
||||
bindsym $mod+minus exec --no-startup-id amixer sset Master 5%-; pkill -RTMIN+10 i3blocks
|
||||
bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%-; pkill -RTMIN+10 i3blocks
|
||||
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
|
||||
bindsym $mod+Shift+greater exec --no-startup-id mpc next
|
||||
|
||||
# For advancing forward/backward in an mpd song
|
||||
bindsym $mod+bracketleft exec --no-startup-id mpc seek -10
|
||||
bindsym $mod+Shift+bracketleft exec --no-startup-id mpc seek -120
|
||||
bindsym $mod+bracketright exec --no-startup-id mpc seek +10
|
||||
bindsym $mod+Shift+bracketright exec --no-startup-id mpc seek +120
|
||||
|
||||
# For screenshots and recording
|
||||
bindsym Print exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png"
|
||||
bindsym Shift+Print exec --no-startup-id maimpick
|
||||
bindsym $mod+Print exec --no-startup-id dmenurecord
|
||||
bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey"
|
||||
bindsym $mod+Delete exec $stoprec
|
||||
bindsym XF86Launch1 exec --no-startup-id xset dpms force off
|
||||
|
||||
# #---Extra XF86 Keys---# #
|
||||
bindsym XF86AudioMute exec --no-startup-id amixer sset Master toggle; pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer sset Master 5%-; pkill -RTMIN+10 i3blocks
|
||||
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 10%-; pkill -RTMIN+10 i3blocks
|
||||
bindsym Control+XF86AudioLowerVolume exec --no-startup-id amixer sset Master 1%-; pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+; pkill -RTMIN+10 i3blocks
|
||||
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 10%+; pkill -RTMIN+10 i3blocks
|
||||
bindsym Control+XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 1%+; pkill -RTMIN+10 i3blocks
|
||||
bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
|
||||
##bindsym XF86Copy exec
|
||||
##bindsym XF86Open exec
|
||||
##bindsym XF86Paste exec
|
||||
##bindsym XF86Cut exec
|
||||
##bindsym XF86MenuKB exec
|
||||
bindsym XF86Calculator exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
|
||||
##bindsym XF86Sleep This binding is typically mapped by systemd automatically.
|
||||
##bindsym XF86WakeUp exec
|
||||
bindsym XF86Explorer exec $term -e $FILE
|
||||
##bindsym XF86Send exec
|
||||
##bindsym XF86Xfer exec
|
||||
bindsym XF86WWW exec --no-startup-id $BROWSER
|
||||
##bindsym XF86DOS exec
|
||||
bindsym XF86ScreenSaver exec exec --no-startup-id lockscreen
|
||||
##bindsym XF86RotateWindows exec
|
||||
##bindsym XF86TaskPane exec
|
||||
##bindsym XF86Favorites exec
|
||||
bindsym XF86MyComputer exec $term -e $FILE
|
||||
##bindsym XF86Back exec
|
||||
##bindsym XF86Forward exec
|
||||
bindsym XF86Eject exec --no-startup-id dmenuumount
|
||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||||
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
||||
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||||
bindsym XF86AudioStop exec --no-startup-id mpc toggle
|
||||
##bindsym XF86AudioRecord
|
||||
bindsym XF86AudioRewind exec --no-startup-id mpc seek -10
|
||||
bindsym XF86AudioForward exec --no-startup-id mpc seek +10
|
||||
##bindsym XF86Phone exec
|
||||
##bindsym XF86Tools exec
|
||||
bindsym XF86HomePage exec $BROWSER https://lukesmith.xyz
|
||||
bindsym XF86Reload restart
|
||||
##bindsym XF86ScrollUp exec
|
||||
##bindsym XF86ScrollDown exec
|
||||
##bindsym XF86New exec
|
||||
##bindsym XF86LaunchA exec
|
||||
##bindsym XF86LaunchB exec
|
||||
##bindsym XF86Launch2 exec
|
||||
##bindsym XF86Launch3 exec
|
||||
##bindsym XF86Launch4 exec
|
||||
##bindsym XF86Launch5 exec
|
||||
##bindsym XF86Launch6 exec
|
||||
##bindsym XF86Launch7 exec
|
||||
##bindsym XF86Launch8 exec
|
||||
##bindsym XF86Launch9 exec
|
||||
#bindsym XF86AudioMicMute exec $micmute
|
||||
bindsym XF86TouchpadToggle exec --no-startup-id toggletouchpad
|
||||
bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0
|
||||
bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1
|
||||
bindsym XF86Suspend exec --no-startup-id lockscreen
|
||||
bindsym XF86Close kill
|
||||
bindsym XF86WebCam exec --no-startup-id camtoggle
|
||||
bindsym XF86Mail exec $term -e neomutt && pkill -RTMIN+12 i3blocks
|
||||
bindsym XF86Messenger exec $term -e weechat
|
||||
bindsym XF86Search exec $BROWSER https://duckduckgo.com
|
||||
##bindsym XF86Go exec
|
||||
##bindsym XF86Finance exec
|
||||
##bindsym XF86Game exec
|
||||
bindsym XF86Shop exec $BROWSER https://ebay.com
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
|
||||
bindsym XF86AudioMedia exec --no-startup-id $term -e ncmpcpp
|
||||
bindsym XF86Display exec --no-startup-id displayselect
|
||||
#bindsym XF86KbdLightOnOff exec
|
||||
#bindsym XF86KbdBrightnessDown exec
|
||||
#bindsym XF86KbdBrightnessUp exec
|
||||
##bindsym XF86Reply exec
|
||||
##bindsym XF86MailForward exec
|
||||
##bindsym XF86Save exec
|
||||
bindsym XF86Documents exec $term -e $FILE ~/Documents
|
||||
##bindsym XF86Battery exec
|
||||
##bindsym XF86Bluetooth exec
|
||||
bindsym XF86WLAN exec $netrefresh
|
||||
|
||||
@ -1,73 +0,0 @@
|
||||
command=~/.local/bin/statusbar/$BLOCK_NAME
|
||||
separator_block_width=15
|
||||
markup=pango
|
||||
|
||||
[record]
|
||||
command=cat /tmp/recordingicon
|
||||
interval=once
|
||||
signal=9
|
||||
|
||||
[music]
|
||||
label=🎼
|
||||
interval=once
|
||||
signal=11
|
||||
|
||||
[news]
|
||||
label=📰
|
||||
interval=once
|
||||
signal=6
|
||||
|
||||
#[iplocate]
|
||||
#interval=30
|
||||
|
||||
[pacpackages]
|
||||
label=📦
|
||||
interval=once
|
||||
signal=8
|
||||
|
||||
[torrent]
|
||||
interval=20
|
||||
signal=7
|
||||
|
||||
[weather]
|
||||
interval=18000
|
||||
signal=5
|
||||
|
||||
[mailbox]
|
||||
label=📬
|
||||
interval=180
|
||||
signal=12
|
||||
|
||||
#[memory]
|
||||
#interval=30
|
||||
#label=🧠
|
||||
|
||||
#[cpu]
|
||||
#interval=15
|
||||
#label=💻
|
||||
|
||||
[volume]
|
||||
interval=once
|
||||
signal=10
|
||||
|
||||
#[disk]
|
||||
#interval=60
|
||||
#command=disk /
|
||||
|
||||
#[disk]
|
||||
#interval=60
|
||||
#command=disk /home 🏠
|
||||
|
||||
[battery]
|
||||
command=battery BAT0
|
||||
interval=5
|
||||
|
||||
[clock]
|
||||
label=📅
|
||||
interval=30
|
||||
|
||||
[internet]
|
||||
interval=10
|
||||
|
||||
[help]
|
||||
interval=once
|
||||
@ -1,74 +0,0 @@
|
||||
# Luke's lf settings
|
||||
|
||||
# Basic vars
|
||||
set shell sh
|
||||
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.
|
||||
|
||||
# cmds/functions
|
||||
cmd open ${{
|
||||
case $(file --mime-type $f -b) in
|
||||
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 & ;;
|
||||
audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;;
|
||||
video/*) setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f -quiet >/dev/null 2>&1 & ;;
|
||||
application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||
*) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;;
|
||||
esac
|
||||
}}
|
||||
|
||||
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
||||
|
||||
cmd delete ${{
|
||||
set -f
|
||||
printf "%s\n\t" "$fx"
|
||||
printf "delete?[y/N]"
|
||||
read ans
|
||||
[ $ans = "y" ] && rm -rf $fx
|
||||
}}
|
||||
|
||||
cmd moveto ${{
|
||||
set -f
|
||||
clear; echo "Move to where?"
|
||||
dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" &&
|
||||
eval mv -iv $fx $dest &&
|
||||
notify-send "🚚 File(s) moved." "File(s) moved to $dest."
|
||||
}}
|
||||
|
||||
cmd copyto ${{
|
||||
set -f
|
||||
clear; echo "Copy to where?"
|
||||
dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" &&
|
||||
eval cp -ivr $fx $dest &&
|
||||
notify-send "📋 File(s) copied." "File(s) copies to $dest."
|
||||
}}
|
||||
|
||||
cmd bulkrename ${{
|
||||
vidir
|
||||
}}
|
||||
|
||||
# Bindings
|
||||
map c $lf -remote "send $id cd $(cut -d' ' -f2 ~/.config/directories | fzf)"
|
||||
map <c-f> $lf -remote "send $id select '$(fzf)'"
|
||||
map J $lf -remote "send $id cd $(cut -d' ' -f2 ~/.config/directories | fzf)"
|
||||
map gh
|
||||
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-r> reload
|
||||
map <enter> shell
|
||||
map x $$f
|
||||
map X !$f
|
||||
map o &mimeopen $f
|
||||
map O $mimeopen --ask $f
|
||||
@ -1,58 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -C -f -u
|
||||
#IFS=$'\n'
|
||||
IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}"
|
||||
|
||||
# ANSI color codes are supported.
|
||||
# STDIN is disabled, so interactive scripts won't work properly
|
||||
|
||||
# This script is considered a configuration file and must be updated manually.
|
||||
|
||||
# Meanings of exit codes:
|
||||
# code | meaning | action of ranger
|
||||
# -----+------------+-------------------------------------------
|
||||
# 0 | success | Display stdout as preview
|
||||
# 1 | no preview | Display no preview at all
|
||||
# 2 | plain text | Display the plain content of the file
|
||||
|
||||
# Script arguments
|
||||
FILE_PATH="${1}" # Full path of the highlighted file
|
||||
HEIGHT="${2}"
|
||||
|
||||
#FILE_EXTENSION="${FILE_PATH##*.}"
|
||||
#FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# Settings
|
||||
HIGHLIGHT_SIZE_MAX=262143 # 256KiB
|
||||
HIGHLIGHT_TABWIDTH=8
|
||||
HIGHLIGHT_STYLE='pablo'
|
||||
|
||||
|
||||
handle_mime() {
|
||||
local mimetype="${1}"
|
||||
case "${mimetype}" in
|
||||
text/html) w3m -dump "${FILE_PATH}" ;;
|
||||
text/troff) man ./ "${FILE_PATH}" | col -b ;;
|
||||
text/* | */xml)
|
||||
if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then
|
||||
exit 2
|
||||
fi
|
||||
if [ "$( tput colors )" -ge 256 ]; then
|
||||
local highlight_format='xterm256'
|
||||
else
|
||||
local highlight_format='ansi'
|
||||
fi
|
||||
highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
|
||||
--style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" ;;
|
||||
application/zip) atool --list -- "${FILE_PATH}" ;;
|
||||
image/*) chafa --fill=block --symbols=block -c 256 -s 80x"${HEIGHT}" "${FILE_PATH}" || exit 1;;
|
||||
video/* | audio/*|application/octet-stream) mediainfo "${FILE_PATH}" || exit 1;;
|
||||
*/pdf) pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - ;;
|
||||
*opendocument*) odt2txt "${FILE_PATH}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
|
||||
handle_mime "${MIMETYPE}"
|
||||
exit 1
|
||||
@ -1,26 +0,0 @@
|
||||
db_file "~/.config/mpd/database"
|
||||
log_file "~/.config/mpd/log"
|
||||
music_directory "~/Music"
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
pid_file "~/.config/mpd/pid"
|
||||
state_file "~/.config/mpd/state"
|
||||
sticker_file "~/.config/mpd/sticker.sql"
|
||||
|
||||
auto_update "yes"
|
||||
|
||||
bind_to_address "127.0.0.1"
|
||||
restore_paused "yes"
|
||||
max_output_buffer_size "16384"
|
||||
|
||||
audio_output {
|
||||
type "alsa"
|
||||
name "alsa for audio soundcard"
|
||||
mixer_type "software"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "toggle_visualizer"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
l seek 5
|
||||
h seek -5
|
||||
j seek -60
|
||||
k seek 60
|
||||
S cycle sub
|
||||
@ -1,479 +0,0 @@
|
||||
##############################################################
|
||||
## This is the example bindings file. Copy it to ##
|
||||
## ~/.ncmpcpp/bindings or $XDG_CONFIG_HOME/ncmpcpp/bindings ##
|
||||
## and set up your preferences ##
|
||||
##############################################################
|
||||
#
|
||||
#def_key "mouse"
|
||||
# mouse_event
|
||||
#
|
||||
#def_key "up"
|
||||
# scroll_up
|
||||
#
|
||||
#def_key "shift-up"
|
||||
# select_item
|
||||
# scroll_up
|
||||
#
|
||||
#def_key "down"
|
||||
# scroll_down
|
||||
#
|
||||
#def_key "shift-down"
|
||||
# select_item
|
||||
# scroll_down
|
||||
#
|
||||
#def_key "["
|
||||
# scroll_up_album
|
||||
#
|
||||
#def_key "]"
|
||||
# scroll_down_album
|
||||
#
|
||||
#def_key "{"
|
||||
# scroll_up_artist
|
||||
#
|
||||
#def_key "}"
|
||||
# scroll_down_artist
|
||||
#
|
||||
#def_key "page_up"
|
||||
# page_up
|
||||
#
|
||||
#def_key "page_down"
|
||||
# page_down
|
||||
#
|
||||
#def_key "home"
|
||||
# move_home
|
||||
#
|
||||
#def_key "end"
|
||||
# move_end
|
||||
#
|
||||
#def_key "insert"
|
||||
# select_item
|
||||
#
|
||||
#def_key "enter"
|
||||
# enter_directory
|
||||
#
|
||||
#def_key "enter"
|
||||
# toggle_output
|
||||
#
|
||||
#def_key "enter"
|
||||
# run_action
|
||||
#
|
||||
#def_key "enter"
|
||||
# play_item
|
||||
#
|
||||
#def_key "space"
|
||||
# add_item_to_playlist
|
||||
#
|
||||
#def_key "space"
|
||||
# toggle_lyrics_update_on_song_change
|
||||
#
|
||||
#def_key "space"
|
||||
# toggle_visualization_type
|
||||
#
|
||||
#def_key "delete"
|
||||
# delete_playlist_items
|
||||
#
|
||||
#def_key "delete"
|
||||
# delete_browser_items
|
||||
#
|
||||
#def_key "delete"
|
||||
# delete_stored_playlist
|
||||
#
|
||||
#def_key "right"
|
||||
# next_column
|
||||
#
|
||||
#def_key "right"
|
||||
# slave_screen
|
||||
#
|
||||
#def_key "right"
|
||||
# volume_up
|
||||
#
|
||||
#def_key "+"
|
||||
# volume_up
|
||||
#
|
||||
#def_key "left"
|
||||
# previous_column
|
||||
#
|
||||
#def_key "left"
|
||||
# master_screen
|
||||
#
|
||||
#def_key "left"
|
||||
# volume_down
|
||||
#
|
||||
#def_key "-"
|
||||
# volume_down
|
||||
#
|
||||
#def_key ":"
|
||||
# execute_command
|
||||
#
|
||||
#def_key "tab"
|
||||
# next_screen
|
||||
#
|
||||
#def_key "shift-tab"
|
||||
# previous_screen
|
||||
#
|
||||
#def_key "f1"
|
||||
# show_help
|
||||
#
|
||||
#def_key "1"
|
||||
# show_playlist
|
||||
#
|
||||
#def_key "2"
|
||||
# show_browser
|
||||
#
|
||||
#def_key "2"
|
||||
# change_browse_mode
|
||||
#
|
||||
#def_key "3"
|
||||
# show_search_engine
|
||||
#
|
||||
#def_key "3"
|
||||
# reset_search_engine
|
||||
#
|
||||
#def_key "4"
|
||||
# show_media_library
|
||||
#
|
||||
#def_key "4"
|
||||
# toggle_media_library_columns_mode
|
||||
#
|
||||
#def_key "5"
|
||||
# show_playlist_editor
|
||||
#
|
||||
#def_key "6"
|
||||
# show_tag_editor
|
||||
#
|
||||
#def_key "7"
|
||||
# show_outputs
|
||||
#
|
||||
#def_key "8"
|
||||
# show_visualizer
|
||||
#
|
||||
#def_key "="
|
||||
# show_clock
|
||||
#
|
||||
#def_key "@"
|
||||
# show_server_info
|
||||
#
|
||||
#def_key "s"
|
||||
# stop
|
||||
#
|
||||
#def_key "p"
|
||||
# pause
|
||||
#
|
||||
#def_key ">"
|
||||
# next
|
||||
#
|
||||
#def_key "<"
|
||||
# previous
|
||||
#
|
||||
#def_key "ctrl-h"
|
||||
# jump_to_parent_directory
|
||||
#
|
||||
#def_key "ctrl-h"
|
||||
# replay_song
|
||||
#
|
||||
#def_key "backspace"
|
||||
# jump_to_parent_directory
|
||||
#
|
||||
#def_key "backspace"
|
||||
# replay_song
|
||||
#
|
||||
#def_key "f"
|
||||
# seek_forward
|
||||
#
|
||||
#def_key "b"
|
||||
# seek_backward
|
||||
#
|
||||
#def_key "r"
|
||||
# toggle_repeat
|
||||
#
|
||||
#def_key "z"
|
||||
# toggle_random
|
||||
#
|
||||
#def_key "y"
|
||||
# save_tag_changes
|
||||
#
|
||||
#def_key "y"
|
||||
# start_searching
|
||||
#
|
||||
#def_key "y"
|
||||
# toggle_single
|
||||
#
|
||||
#def_key "R"
|
||||
# toggle_consume
|
||||
#
|
||||
#def_key "Y"
|
||||
# toggle_replay_gain_mode
|
||||
#
|
||||
#def_key "T"
|
||||
# toggle_add_mode
|
||||
#
|
||||
#def_key "|"
|
||||
# toggle_mouse
|
||||
#
|
||||
#def_key "#"
|
||||
# toggle_bitrate_visibility
|
||||
#
|
||||
#def_key "Z"
|
||||
# shuffle
|
||||
#
|
||||
#def_key "x"
|
||||
# toggle_crossfade
|
||||
#
|
||||
#def_key "X"
|
||||
# set_crossfade
|
||||
#
|
||||
#def_key "u"
|
||||
# update_database
|
||||
#
|
||||
#def_key "ctrl-s"
|
||||
# sort_playlist
|
||||
#
|
||||
#def_key "ctrl-s"
|
||||
# toggle_browser_sort_mode
|
||||
#
|
||||
#def_key "ctrl-s"
|
||||
# toggle_media_library_sort_mode
|
||||
#
|
||||
#def_key "ctrl-r"
|
||||
# reverse_playlist
|
||||
#
|
||||
#def_key "ctrl-f"
|
||||
# apply_filter
|
||||
#
|
||||
#def_key "ctrl-_"
|
||||
# select_found_items
|
||||
#
|
||||
#def_key "/"
|
||||
# find
|
||||
#
|
||||
#def_key "/"
|
||||
# find_item_forward
|
||||
#
|
||||
#def_key "?"
|
||||
# find
|
||||
#
|
||||
#def_key "?"
|
||||
# find_item_backward
|
||||
#
|
||||
#def_key "."
|
||||
# next_found_item
|
||||
#
|
||||
#def_key ","
|
||||
# previous_found_item
|
||||
#
|
||||
#def_key "w"
|
||||
# toggle_find_mode
|
||||
#
|
||||
#def_key "e"
|
||||
# edit_song
|
||||
#
|
||||
#def_key "e"
|
||||
# edit_library_tag
|
||||
#
|
||||
#def_key "e"
|
||||
# edit_library_album
|
||||
#
|
||||
#def_key "e"
|
||||
# edit_directory_name
|
||||
#
|
||||
#def_key "e"
|
||||
# edit_playlist_name
|
||||
#
|
||||
#def_key "e"
|
||||
# edit_lyrics
|
||||
#
|
||||
#def_key "i"
|
||||
# show_song_info
|
||||
#
|
||||
#def_key "I"
|
||||
# show_artist_info
|
||||
#
|
||||
#def_key "g"
|
||||
# jump_to_position_in_song
|
||||
#
|
||||
#def_key "l"
|
||||
# show_lyrics
|
||||
#
|
||||
#def_key "ctrl-v"
|
||||
# select_range
|
||||
#
|
||||
#def_key "v"
|
||||
# reverse_selection
|
||||
#
|
||||
#def_key "V"
|
||||
# remove_selection
|
||||
#
|
||||
#def_key "B"
|
||||
# select_album
|
||||
#
|
||||
#def_key "a"
|
||||
# add_selected_items
|
||||
#
|
||||
#def_key "c"
|
||||
# clear_playlist
|
||||
#
|
||||
#def_key "c"
|
||||
# clear_main_playlist
|
||||
#
|
||||
#def_key "C"
|
||||
# crop_playlist
|
||||
#
|
||||
#def_key "C"
|
||||
# crop_main_playlist
|
||||
#
|
||||
#def_key "m"
|
||||
# move_sort_order_up
|
||||
#
|
||||
#def_key "m"
|
||||
# move_selected_items_up
|
||||
#
|
||||
#def_key "n"
|
||||
# move_sort_order_down
|
||||
#
|
||||
#def_key "n"
|
||||
# move_selected_items_down
|
||||
#
|
||||
#def_key "M"
|
||||
# move_selected_items_to
|
||||
#
|
||||
#def_key "A"
|
||||
# add
|
||||
#
|
||||
#def_key "S"
|
||||
# save_playlist
|
||||
#
|
||||
#def_key "o"
|
||||
# jump_to_playing_song
|
||||
#
|
||||
#def_key "G"
|
||||
# jump_to_browser
|
||||
#
|
||||
#def_key "G"
|
||||
# jump_to_playlist_editor
|
||||
#
|
||||
#def_key "~"
|
||||
# jump_to_media_library
|
||||
#
|
||||
#def_key "E"
|
||||
# jump_to_tag_editor
|
||||
#
|
||||
#def_key "U"
|
||||
# toggle_playing_song_centering
|
||||
#
|
||||
#def_key "P"
|
||||
# toggle_display_mode
|
||||
#
|
||||
#def_key "\\"
|
||||
# toggle_interface
|
||||
#
|
||||
#def_key "!"
|
||||
# toggle_separators_between_albums
|
||||
#
|
||||
#def_key "L"
|
||||
# toggle_lyrics_fetcher
|
||||
#
|
||||
#def_key "F"
|
||||
# fetch_lyrics_in_background
|
||||
#
|
||||
#def_key "alt-l"
|
||||
# toggle_fetching_lyrics_in_background
|
||||
#
|
||||
#def_key "ctrl-l"
|
||||
# toggle_screen_lock
|
||||
#
|
||||
#def_key "`"
|
||||
# toggle_library_tag_type
|
||||
#
|
||||
#def_key "`"
|
||||
# refetch_lyrics
|
||||
#
|
||||
#def_key "`"
|
||||
# add_random_items
|
||||
#
|
||||
#def_key "ctrl-p"
|
||||
# set_selected_items_priority
|
||||
#
|
||||
#def_key "q"
|
||||
# quit
|
||||
#
|
||||
#
|
||||
#def_key "f"
|
||||
# find
|
||||
#def_key "f"
|
||||
# find_item_forward
|
||||
|
||||
def_key "+"
|
||||
show_clock
|
||||
def_key "="
|
||||
volume_up
|
||||
|
||||
def_key "j"
|
||||
scroll_down
|
||||
def_key "k"
|
||||
scroll_up
|
||||
|
||||
def_key "ctrl-u"
|
||||
page_up
|
||||
#push_characters "kkkkkkkkkkkkkkk"
|
||||
def_key "ctrl-d"
|
||||
page_down
|
||||
#push_characters "jjjjjjjjjjjjjjj"
|
||||
def_key "u"
|
||||
page_up
|
||||
#push_characters "kkkkkkkkkkkkkkk"
|
||||
def_key "d"
|
||||
page_down
|
||||
#push_characters "jjjjjjjjjjjjjjj"
|
||||
def_key "h"
|
||||
previous_column
|
||||
def_key "l"
|
||||
next_column
|
||||
|
||||
def_key "."
|
||||
show_lyrics
|
||||
|
||||
def_key "n"
|
||||
next_found_item
|
||||
def_key "N"
|
||||
previous_found_item
|
||||
|
||||
# not used but bound
|
||||
def_key "J"
|
||||
move_sort_order_down
|
||||
def_key "K"
|
||||
move_sort_order_up
|
||||
def_key "h"
|
||||
jump_to_parent_directory
|
||||
def_key "l"
|
||||
enter_directory
|
||||
def_key "l"
|
||||
run_action
|
||||
def_key "l"
|
||||
play_item
|
||||
def_key "m"
|
||||
show_media_library
|
||||
def_key "m"
|
||||
toggle_media_library_columns_mode
|
||||
def_key "t"
|
||||
show_tag_editor
|
||||
def_key "v"
|
||||
show_visualizer
|
||||
def_key "G"
|
||||
move_end
|
||||
def_key "g"
|
||||
move_home
|
||||
#jump_to_position_in_song
|
||||
def_key "U"
|
||||
update_database
|
||||
def_key "s"
|
||||
reset_search_engine
|
||||
def_key "s"
|
||||
show_search_engine
|
||||
def_key "f"
|
||||
show_browser
|
||||
def_key "f"
|
||||
change_browse_mode
|
||||
def_key "x"
|
||||
delete_playlist_items
|
||||
def_key "P"
|
||||
show_playlist
|
||||
@ -1,537 +0,0 @@
|
||||
##############################################################################
|
||||
## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ##
|
||||
## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences. ##
|
||||
##############################################################################
|
||||
#
|
||||
ncmpcpp_directory = ~/.config/ncmpcpp
|
||||
#
|
||||
##
|
||||
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
|
||||
## MPD clients (eg. ncmpc) also use that location.
|
||||
##
|
||||
#
|
||||
lyrics_directory = ~/.local/share/lyrics
|
||||
#
|
||||
##### connection settings #####
|
||||
#
|
||||
#mpd_host = localhost
|
||||
#
|
||||
#mpd_port = 6600
|
||||
#
|
||||
#mpd_connection_timeout = 5
|
||||
#
|
||||
## Needed for tag editor and file operations to work.
|
||||
##
|
||||
mpd_music_dir = "~/Music"
|
||||
#
|
||||
#mpd_crossfade_time = 5
|
||||
#
|
||||
##### music visualizer #####
|
||||
##
|
||||
## Note: In order to make music visualizer work you'll need to use mpd fifo
|
||||
## output, whose format parameter has to be set to 44100:16:1 for mono
|
||||
## visualization or 44100:16:2 for stereo visualization. Example configuration
|
||||
## (it has to be put into mpd.conf):
|
||||
##
|
||||
## audio_output {
|
||||
## type "fifo"
|
||||
## name "Visualizer feed"
|
||||
## path "/tmp/mpd.fifo"
|
||||
## format "44100:16:2"
|
||||
## }
|
||||
##
|
||||
#
|
||||
#visualizer_fifo_path = /tmp/mpd.fifo
|
||||
#
|
||||
##
|
||||
## Note: Below parameter is needed for ncmpcpp to determine which output
|
||||
## provides data for visualizer and thus allow syncing between visualization and
|
||||
## sound as currently there are some problems with it.
|
||||
##
|
||||
#
|
||||
#visualizer_output_name = Visualizer feed
|
||||
#
|
||||
##
|
||||
## If you set format to 44100:16:2, make it 'yes'.
|
||||
##
|
||||
#visualizer_in_stereo = yes
|
||||
#
|
||||
##
|
||||
## Note: Below parameter defines how often ncmpcpp has to "synchronize"
|
||||
## visualizer and audio outputs. 30 seconds is optimal value, but if you
|
||||
## experience synchronization problems, set it to lower value. Keep in mind
|
||||
## that sane values start with >=10.
|
||||
##
|
||||
#
|
||||
#visualizer_sync_interval = 30
|
||||
#
|
||||
##
|
||||
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
|
||||
## with fftw3 support.
|
||||
##
|
||||
#
|
||||
## Available values: spectrum, wave, wave_filled, ellipse.
|
||||
##
|
||||
visualizer_type = spectrum
|
||||
#
|
||||
#visualizer_look = ●卐
|
||||
#visualizer_look = 卐
|
||||
#
|
||||
#visualizer_color = blue, cyan, green, yellow, magenta, red
|
||||
#
|
||||
## Alternative subset of 256 colors for terminals that support it.
|
||||
##
|
||||
#visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161
|
||||
#
|
||||
##### system encoding #####
|
||||
##
|
||||
## ncmpcpp should detect your charset encoding but if it failed to do so, you
|
||||
## can specify charset encoding you are using here.
|
||||
##
|
||||
## Note: You can see whether your ncmpcpp build supports charset detection by
|
||||
## checking output of `ncmpcpp --version`.
|
||||
##
|
||||
## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
|
||||
## if your encoding is different.
|
||||
##
|
||||
#
|
||||
#system_encoding = ""
|
||||
#
|
||||
##### delays #####
|
||||
#
|
||||
## Time of inactivity (in seconds) after playlist highlighting will be disabled
|
||||
## (0 = always on).
|
||||
##
|
||||
#playlist_disable_highlight_delay = 5
|
||||
#
|
||||
## Defines how long messages are supposed to be visible.
|
||||
##
|
||||
message_delay_time = 1
|
||||
#
|
||||
##### song format #####
|
||||
##
|
||||
## For a song format you can use:
|
||||
##
|
||||
## %l - length
|
||||
## %f - filename
|
||||
## %D - directory
|
||||
## %a - artist
|
||||
## %A - album artist
|
||||
## %t - title
|
||||
## %b - album
|
||||
## %y - date
|
||||
## %n - track number (01/12 -> 01)
|
||||
## %N - full track info (01/12 -> 01/12)
|
||||
## %g - genre
|
||||
## %c - composer
|
||||
## %p - performer
|
||||
## %d - disc
|
||||
## %C - comment
|
||||
## %P - priority
|
||||
## $R - begin right alignment
|
||||
##
|
||||
## If you want to make sure that a part of the format is displayed only when
|
||||
## certain tags are present, you can archieve it by grouping them with brackets,
|
||||
## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
|
||||
## present or '' otherwise. It is also possible to define a list of
|
||||
## alternatives by providing several groups and separating them with '|',
|
||||
## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
|
||||
## not present.
|
||||
##
|
||||
## Note: If you want to set limit on maximal length of a tag, just put the
|
||||
## appropriate number between % and character that defines tag type, e.g. to
|
||||
## make album take max. 20 terminal cells, use '%20b'.
|
||||
##
|
||||
## In addition, formats support markers used for text attributes. They are
|
||||
## followed by character '$'. After that you can put:
|
||||
##
|
||||
## - 0 - default window color (discards all other colors)
|
||||
## - 1 - black
|
||||
## - 2 - red
|
||||
## - 3 - green
|
||||
## - 4 - yellow
|
||||
## - 5 - blue
|
||||
## - 6 - magenta
|
||||
## - 7 - cyan
|
||||
## - 8 - white
|
||||
## - 9 - end of current color
|
||||
## - b - bold text
|
||||
## - u - underline text
|
||||
## - r - reverse colors
|
||||
## - a - use alternative character set
|
||||
##
|
||||
## If you don't want to use a non-color attribute anymore, just put it again,
|
||||
## but this time insert character '/' between '$' and attribute character,
|
||||
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
|
||||
## reversed colors.
|
||||
##
|
||||
## If you want to use 256 colors and/or background colors in formats (the naming
|
||||
## scheme is described below in section about color definitions), it can be done
|
||||
## with the syntax $(COLOR), e.g. to set the artist tag to one of the
|
||||
## non-standard colors and make it have yellow background, you need to write
|
||||
## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
|
||||
## with attributes listed above.
|
||||
##
|
||||
## Note: colors can be nested.
|
||||
##
|
||||
#
|
||||
song_list_format = {$4%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
|
||||
#
|
||||
song_status_format = $b{{$8"%t"}} $3by {$4%a{ $3in $7%b{ (%y)}} $3}|{$8%f}
|
||||
#
|
||||
song_library_format = {%n - }{%t}|{%f}
|
||||
#
|
||||
alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
|
||||
#
|
||||
alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
|
||||
#
|
||||
current_item_prefix = $(cyan)$r$b
|
||||
#
|
||||
current_item_suffix = $/r$(end)$/b
|
||||
#
|
||||
current_item_inactive_column_prefix = $(magenta)$r
|
||||
#
|
||||
current_item_inactive_column_suffix = $/r$(end)
|
||||
#
|
||||
#now_playing_prefix = $b
|
||||
#
|
||||
#now_playing_suffix = $/b
|
||||
#
|
||||
#browser_playlist_prefix = "$2playlist$9 "
|
||||
#
|
||||
#selected_item_prefix = $6
|
||||
#
|
||||
#selected_item_suffix = $9
|
||||
#
|
||||
#modified_item_prefix = $3> $9
|
||||
#
|
||||
##
|
||||
## Note: attributes are not supported for the following variables.
|
||||
##
|
||||
#song_window_title_format = {%a - }{%t}|{%f}
|
||||
##
|
||||
## Note: Below variables are used for sorting songs in browser. The sort mode
|
||||
## determines how songs are sorted, and can be used in combination with a sort
|
||||
## format to specify a custom sorting format. Available values for
|
||||
## browser_sort_mode are "name", "mtime", "format" and "noop".
|
||||
##
|
||||
#
|
||||
#browser_sort_mode = name
|
||||
#
|
||||
#browser_sort_format = {%a - }{%t}|{%f} {(%l)}
|
||||
#
|
||||
##### columns settings #####
|
||||
##
|
||||
## syntax of song columns list format is "column column etc."
|
||||
##
|
||||
## - syntax for each column is:
|
||||
##
|
||||
## (width of the column)[color of the column]{displayed tag}
|
||||
##
|
||||
## Note: Width is by default in %, if you want a column to have fixed size, add
|
||||
## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
|
||||
## screen (so the real width will depend on actual screen size), whereas
|
||||
## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
|
||||
## is.
|
||||
##
|
||||
## - color is optional (if you want the default one, leave the field empty).
|
||||
##
|
||||
## Note: You can give a column additional attributes by putting appropriate
|
||||
## character after displayed tag character. Available attributes are:
|
||||
##
|
||||
## - r - column will be right aligned
|
||||
## - E - if tag is empty, empty tag marker won't be displayed
|
||||
##
|
||||
## You can also:
|
||||
##
|
||||
## - give a column custom name by putting it after attributes, separated with
|
||||
## character ':', e.g. {lr:Length} gives you right aligned column of lengths
|
||||
## named "Length".
|
||||
##
|
||||
## - define sequence of tags, that have to be displayed in case predecessor is
|
||||
## empty in a way similar to the one in classic song format, i.e. using '|'
|
||||
## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
|
||||
## display artist tag and then composer and performer if previous ones are not
|
||||
## available.
|
||||
##
|
||||
#
|
||||
#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
|
||||
#
|
||||
##### various settings #####
|
||||
#
|
||||
##
|
||||
## Note: Custom command that will be executed each time song changes. Useful for
|
||||
## notifications etc.
|
||||
##
|
||||
#execute_on_song_change = ""
|
||||
#
|
||||
##
|
||||
## Note: Custom command that will be executed each time player state
|
||||
## changes. The environment variable MPD_PLAYER_STATE is set to the current
|
||||
## state (either unknown, play, pause, or stop) for its duration.
|
||||
##
|
||||
#
|
||||
#execute_on_player_state_change = ""
|
||||
#
|
||||
#playlist_show_mpd_host = no
|
||||
#
|
||||
#playlist_show_remaining_time = no
|
||||
#
|
||||
#playlist_shorten_total_times = no
|
||||
#
|
||||
#playlist_separate_albums = no
|
||||
#
|
||||
##
|
||||
## Note: Possible display modes: classic, columns.
|
||||
##
|
||||
playlist_display_mode = columns
|
||||
#
|
||||
browser_display_mode = columns
|
||||
#
|
||||
#search_engine_display_mode = classic
|
||||
#
|
||||
#playlist_editor_display_mode = classic
|
||||
#
|
||||
#discard_colors_if_item_is_selected = yes
|
||||
#
|
||||
#show_duplicate_tags = true
|
||||
#
|
||||
#incremental_seeking = yes
|
||||
#
|
||||
#seek_time = 1
|
||||
#
|
||||
#volume_change_step = 2
|
||||
#
|
||||
#autocenter_mode = no
|
||||
#
|
||||
#centered_cursor = no
|
||||
#
|
||||
##
|
||||
## Note: You can specify third character which will be used to build 'empty'
|
||||
## part of progressbar.
|
||||
##
|
||||
progressbar_look = ->
|
||||
#
|
||||
## Available values: database, playlist.
|
||||
##
|
||||
#default_place_to_search_in = database
|
||||
#
|
||||
## Available values: classic, alternative.
|
||||
##
|
||||
#user_interface = classic
|
||||
#
|
||||
#data_fetching_delay = yes
|
||||
#
|
||||
## Available values: artist, album_artist, date, genre, composer, performer.
|
||||
##
|
||||
media_library_primary_tag = album_artist
|
||||
#
|
||||
media_library_albums_split_by_date = no
|
||||
#
|
||||
## Available values: wrapped, normal.
|
||||
##
|
||||
#default_find_mode = wrapped
|
||||
#
|
||||
#default_tag_editor_pattern = %n - %t
|
||||
#
|
||||
#header_visibility = yes
|
||||
#
|
||||
#statusbar_visibility = yes
|
||||
#
|
||||
#titles_visibility = yes
|
||||
#
|
||||
#header_text_scrolling = yes
|
||||
#
|
||||
#cyclic_scrolling = no
|
||||
#
|
||||
#lines_scrolled = 2
|
||||
#
|
||||
#lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
|
||||
#
|
||||
#follow_now_playing_lyrics = no
|
||||
#
|
||||
#fetch_lyrics_for_current_song_in_background = no
|
||||
#
|
||||
#store_lyrics_in_song_dir = no
|
||||
#
|
||||
#generate_win32_compatible_filenames = yes
|
||||
#
|
||||
#allow_for_physical_item_deletion = no
|
||||
#
|
||||
##
|
||||
## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
|
||||
## language you set and if it fails, it will fall back to english. Otherwise it
|
||||
## will use english the first time.
|
||||
##
|
||||
## Note: Language has to be expressed as an ISO 639 alpha-2 code.
|
||||
##
|
||||
#lastfm_preferred_language = en
|
||||
#
|
||||
#space_add_mode = add_remove
|
||||
#
|
||||
#show_hidden_files_in_local_browser = no
|
||||
#
|
||||
##
|
||||
## How shall screen switcher work?
|
||||
##
|
||||
## - "previous" - switch between the current and previous screen.
|
||||
## - "screen1,...,screenN" - switch between given sequence of screens.
|
||||
##
|
||||
## Screens available for use: help, playlist, browser, search_engine,
|
||||
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
|
||||
## lyrics, last_fm.
|
||||
##
|
||||
#screen_switcher_mode = playlist, browser
|
||||
#
|
||||
##
|
||||
## Note: You can define startup screen by choosing screen from the list above.
|
||||
##
|
||||
startup_screen = media_library
|
||||
#
|
||||
##
|
||||
## Note: You can define startup slave screen by choosing screen from the list
|
||||
## above or an empty value for no slave screen.
|
||||
##
|
||||
#startup_slave_screen = ""
|
||||
#
|
||||
#startup_slave_screen_focus = no
|
||||
#
|
||||
##
|
||||
## Default width of locked screen (in %). Acceptable values are from 20 to 80.
|
||||
##
|
||||
#
|
||||
#locked_screen_width_part = 50
|
||||
#
|
||||
#ask_for_locked_screen_width_part = yes
|
||||
#
|
||||
#jump_to_now_playing_song_at_start = yes
|
||||
#
|
||||
#ask_before_clearing_playlists = yes
|
||||
#
|
||||
#clock_display_seconds = no
|
||||
#
|
||||
display_volume_level = no
|
||||
#
|
||||
#display_bitrate = no
|
||||
#
|
||||
#display_remaining_time = no
|
||||
#
|
||||
## Available values: none, basic, extended, perl.
|
||||
##
|
||||
#regular_expressions = perl
|
||||
#
|
||||
##
|
||||
## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
|
||||
## sorting items in browser, tags in media library, etc.
|
||||
##
|
||||
ignore_leading_the = yes
|
||||
#
|
||||
##
|
||||
## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
|
||||
## filtering lists. This takes an effect only if boost was compiled with ICU
|
||||
## support.
|
||||
##
|
||||
#ignore_diacritics = no
|
||||
#
|
||||
#block_search_constraints_change_if_items_found = yes
|
||||
#
|
||||
#mouse_support = yes
|
||||
#
|
||||
#mouse_list_scroll_whole_page = yes
|
||||
#
|
||||
#empty_tag_marker = <empty>
|
||||
#
|
||||
#tags_separator = " | "
|
||||
#
|
||||
#tag_editor_extended_numeration = no
|
||||
#
|
||||
#media_library_sort_by_mtime = no
|
||||
#
|
||||
#enable_window_title = yes
|
||||
#
|
||||
##
|
||||
## Note: You can choose default search mode for search engine. Available modes
|
||||
## are:
|
||||
##
|
||||
## - 1 - use mpd built-in searching (no regexes, pattern matching)
|
||||
##
|
||||
## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
|
||||
## if your mpd is on a remote machine, downloading big database to process
|
||||
## it can take a while
|
||||
##
|
||||
## - 3 - match only exact values (this mode uses mpd function for searching in
|
||||
## database and local one for searching in current playlist)
|
||||
##
|
||||
#
|
||||
#search_engine_default_search_mode = 1
|
||||
#
|
||||
external_editor = vim
|
||||
#
|
||||
## Note: set to yes if external editor is a console application.
|
||||
##
|
||||
use_console_editor = yes
|
||||
#
|
||||
##### colors definitions #####
|
||||
##
|
||||
## It is possible to set a background color by setting a color value
|
||||
## "<foreground>_<background>", e.g. red_black will set foregound color to red
|
||||
## and background color to black.
|
||||
##
|
||||
## In addition, for terminals that support 256 colors it is possible to set one
|
||||
## of them by using a number in range [1, 256] instead of color name,
|
||||
## e.g. numerical value corresponding to red_black is 2_1. To find out if the
|
||||
## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
|
||||
## help screen for list of available colors and their numerical values.
|
||||
##
|
||||
## What is more, there are two special values for the background color:
|
||||
## "transparent" and "current". The first one explicitly sets the background to
|
||||
## be transparent, while the second one allows you to preserve current
|
||||
## background color and change only the foreground one. It's used implicitly
|
||||
## when background color is not specified.
|
||||
##
|
||||
## Moreover, it is possible to attach format information to selected color
|
||||
## variables by appending to their end a colon followed by one or more format
|
||||
## flags, e.g. black:b or red:ur. The following variables support this syntax:
|
||||
## visualizer_color, color1, color2, empty_tag_color, volume_color,
|
||||
## state_line_color, state_flags_color, progressbar_color,
|
||||
## progressbar_elapsed_color, player_state_color, statusbar_time_color,
|
||||
## alternative_ui_separator_color.
|
||||
##
|
||||
## Note: due to technical limitations of older ncurses version, if 256 colors
|
||||
## are used there is a possibility that you'll be able to use only colors with
|
||||
## transparent background.
|
||||
#
|
||||
#colors_enabled = yes
|
||||
#
|
||||
empty_tag_color = magenta
|
||||
#
|
||||
#header_window_color = magenta
|
||||
#
|
||||
#volume_color = default
|
||||
#
|
||||
#state_line_color = default
|
||||
#
|
||||
#state_flags_color = default:b
|
||||
#
|
||||
main_window_color = white
|
||||
#
|
||||
#color1 = white
|
||||
#
|
||||
#color2 = green
|
||||
#
|
||||
progressbar_color = black:b
|
||||
#
|
||||
progressbar_elapsed_color = blue:b
|
||||
#
|
||||
statusbar_color = red
|
||||
#
|
||||
statusbar_time_color = cyan:b
|
||||
#
|
||||
#player_state_color = default:b
|
||||
#
|
||||
#alternative_ui_separator_color = black:b
|
||||
#
|
||||
#window_border_color = green
|
||||
#
|
||||
#active_window_border = red
|
||||
#
|
||||
@ -1,39 +0,0 @@
|
||||
#show-read-feeds no
|
||||
auto-reload yes
|
||||
|
||||
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
|
||||
|
||||
bind-key j down
|
||||
bind-key k up
|
||||
bind-key j next articlelist
|
||||
bind-key k prev articlelist
|
||||
bind-key J next-feed articlelist
|
||||
bind-key K prev-feed articlelist
|
||||
bind-key G end
|
||||
bind-key g home
|
||||
bind-key d pagedown
|
||||
bind-key u pageup
|
||||
bind-key l open
|
||||
bind-key h quit
|
||||
bind-key a toggle-article-read
|
||||
bind-key n next-unread
|
||||
bind-key N prev-unread
|
||||
bind-key D pb-download
|
||||
bind-key U show-urls
|
||||
bind-key x pb-delete
|
||||
|
||||
color listnormal cyan default
|
||||
color listfocus black yellow standout bold
|
||||
color listnormal_unread blue default
|
||||
color listfocus_unread yellow default bold
|
||||
color info red black bold
|
||||
color article cyan default
|
||||
|
||||
browser linkhandler
|
||||
macro , open-in-browser
|
||||
macro t set browser "tsp youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler
|
||||
macro a set browser "tsp youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler
|
||||
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
|
||||
macro w set browser "w3m"; open-in-browser ; set browser linkhandler
|
||||
macro p set browser "dmenuhandler"; open-in-browser ; set browser linkhandler
|
||||
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkhandler
|
||||
@ -1,4 +0,0 @@
|
||||
http://lukesmith.xyz/rss.xml
|
||||
https://notrelated.libsyn.com/rss
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith (YouTube)"
|
||||
https://www.archlinux.org/feeds/news/ "tech"
|
||||
@ -8,12 +8,12 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
|
||||
endif
|
||||
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'PotatoesMaster/i3-vim-syntax'
|
||||
Plug 'jreybert/vimagit'
|
||||
Plug 'lukesmithxyz/vimling'
|
||||
Plug 'vimwiki/vimwiki'
|
||||
Plug 'bling/vim-airline'
|
||||
Plug 'tpope/vim-commentary'
|
||||
@ -32,7 +32,7 @@ set clipboard+=unnamedplus
|
||||
filetype plugin on
|
||||
syntax on
|
||||
set encoding=utf-8
|
||||
set number relativenumber
|
||||
set number
|
||||
" Enable autocompletion:
|
||||
set wildmode=longest,list,full
|
||||
" Disables automatic commenting on newline:
|
||||
@ -51,13 +51,6 @@ set clipboard+=unnamedplus
|
||||
map <leader>n :NERDTreeToggle<CR>
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
" vimling:
|
||||
nm <leader>d :call ToggleDeadKeys()<CR>
|
||||
imap <leader>d <esc>:call ToggleDeadKeys()<CR>a
|
||||
nm <leader>i :call ToggleIPA()<CR>
|
||||
imap <leader>i <esc>:call ToggleIPA()<CR>a
|
||||
nm <leader>q :call ToggleProse()<CR>
|
||||
|
||||
" Shortcutting split navigation, saving a keypress:
|
||||
map <C-h> <C-w>h
|
||||
map <C-j> <C-w>j
|
||||
@ -67,10 +60,6 @@ set clipboard+=unnamedplus
|
||||
" Check file in shellcheck:
|
||||
map <leader>s :!clear && shellcheck %<CR>
|
||||
|
||||
" Open my bibliography file in split
|
||||
map <leader>b :vsp<space>$BIB<CR>
|
||||
map <leader>r :vsp<space>$REFER<CR>
|
||||
|
||||
" Replace all is aliased to S.
|
||||
nnoremap S :%s//g<Left><Left>
|
||||
|
||||
@ -110,6 +99,43 @@ set clipboard+=unnamedplus
|
||||
" Update binds when sxhkdrc is updated.
|
||||
autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
||||
|
||||
" Code completion stuff
|
||||
" ########################
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
|
||||
" Use tab for trigger completion with characters ahead and navigate.
|
||||
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ coc#refresh()
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
" Add status line support, for integration with other plugin, checkout `:h coc-status`
|
||||
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
|
||||
|
||||
" You will have bad experience for diagnostic messages when it's default 4000.
|
||||
set updatetime=300
|
||||
|
||||
" Autocomplete with control space, similiar to Pycharm
|
||||
inoremap <silent><expr> <c-space> coc#refresh()
|
||||
|
||||
" Use `:Format` to format current buffer
|
||||
command! -nargs=0 Format :call CocAction('format')
|
||||
|
||||
" Use `:Fold` to fold current buffer
|
||||
command! -nargs=? Fold :call CocAction('fold', <f-args>)
|
||||
|
||||
" use `:OR` for organize import of current buffer
|
||||
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
|
||||
|
||||
|
||||
" Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable.
|
||||
if &diff
|
||||
highlight! link DiffText MatchParen
|
||||
|
||||
@ -1,49 +1,34 @@
|
||||
; vim:ft=dosini
|
||||
;=====================================================
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/jaagr/polybar
|
||||
;
|
||||
; The README contains alot of information
|
||||
;
|
||||
;=====================================================
|
||||
|
||||
[colors]
|
||||
black = ${xrdb:color0:#1d2021}
|
||||
darkred = ${xrdb:color1:#cc241d}
|
||||
darkgreen = ${xrdb:color2:#98971a}
|
||||
darkyellow = ${xrdb:color3:#d79921}
|
||||
darkblue = ${xrdb:color4:#458588}
|
||||
darkmagenta = ${xrdb:color5:#b16286}
|
||||
darkcyan = ${xrdb:color6:#689d6a}
|
||||
lightgray = ${xrdb:color7:#a89984}
|
||||
gray = ${xrdb:color8:#928374}
|
||||
red = ${xrdb:color9:#fb4934}
|
||||
green = ${xrdb:color10:#b8bb26}
|
||||
yellow = ${xrdb:color11:#fabd2f}
|
||||
blue = ${xrdb:color12:#83a598}
|
||||
magenta = ${xrdb:color13:#d3869b}
|
||||
cyan = ${xrdb:color14:#8ec07c}
|
||||
white = ${xrdb:color15:#ebdbb2}
|
||||
background = ${xrdb:color256:#1d2021}
|
||||
foreground = ${xrdb:color257:#ebdbb2}
|
||||
background = #1d2021
|
||||
black = #1d2021
|
||||
blue = #83a598
|
||||
darkyellow = #d79921
|
||||
foreground = #ebdbb2
|
||||
gray = #928374
|
||||
green = #b8bb26
|
||||
orange = #ffa500
|
||||
red = #ff0000
|
||||
white = #ebdbb2
|
||||
yellow = #fabd2f
|
||||
|
||||
[bar/default]
|
||||
;monitor = ${env:MONITOR:LVDS-1}
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
[bar/main]
|
||||
enable-ipc = true
|
||||
width = 100%
|
||||
height = 24
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
;radius = 6.0
|
||||
fixed-center = false
|
||||
height = 20
|
||||
monitor = ${env:MONITOR:}
|
||||
width = 100%
|
||||
|
||||
; allow scrolling workspaces
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = {$xrdb:red}
|
||||
line-size = 2
|
||||
line-color = ${colors.red}
|
||||
|
||||
border-size = 0
|
||||
border-color = ${colors.white}
|
||||
@ -54,225 +39,63 @@ padding-right = 0
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = mono:pixelsize=9;1
|
||||
font-1 = Inconsolata Nerd Font:size=8;1
|
||||
font-2 = Noto Color Emoji:scale=10:style=Regular;2
|
||||
font-3 = Symbola:pixelsize=9;1
|
||||
font-0 = "Sauce Code Pro:size=9;1"
|
||||
font-1 = "Sauce Code Pro:size=8;1"
|
||||
font-2 = "Sauce Code Pro:scale=10:style=Regular;2"
|
||||
font-3 = "Sauce Code Pro:size=9;1"
|
||||
|
||||
wm-restack = i3
|
||||
|
||||
; Other modules: xkeyboard filesystem xbacklight backlight-acpi cpu memory temperature powermenu weather
|
||||
modules-left = bspwm xwindow
|
||||
;modules-center =
|
||||
modules-right = mpd volume mutt-wizard wlan eth battery date
|
||||
modules-left = i3
|
||||
modules-center = xwindow
|
||||
modules-right = sys_updates sys_temp cpu memory volume wifi ethernet battery date
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 0
|
||||
|
||||
wm-restack = bspwm
|
||||
|
||||
;override-redirect = true
|
||||
|
||||
scroll-up = bspwm-desknext
|
||||
scroll-down = bspwm-deskprev
|
||||
|
||||
[module/mutt-wizard]
|
||||
|
||||
[module/sys_updates]
|
||||
exec = ~/.local/bin/polybar_scripts/aur_updates
|
||||
format = <label>
|
||||
interval = 1000
|
||||
label = %{A1:$TERMINAL -e yay >/dev/null 2>&1 &:}%output%%{A}
|
||||
label-overline=${colors.red}
|
||||
label-underline=${colors.red}
|
||||
type = custom/script
|
||||
exec = mailbox
|
||||
°
|
||||
[module/sys_temp]
|
||||
exec = ~/.local/bin/polybar_scripts/sys_temp
|
||||
format = <label>
|
||||
interval = 5
|
||||
format-prefix = " "
|
||||
format-underline = ${colors.red}
|
||||
|
||||
click-left = $TERMINAL -e neomutt
|
||||
|
||||
|
||||
[module/weather]
|
||||
|
||||
label = Temp: %output%°F
|
||||
type = custom/script
|
||||
exec = weather
|
||||
interval = 5000
|
||||
;format-underline =
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:45:...%
|
||||
format-foreground = ${colors.blue}
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
; orange denotes charging
|
||||
format-charging =<label-charging>
|
||||
label-charging = Batt: %percentage%%
|
||||
label-charging-overline=${colors.orange}
|
||||
label-charging-underline=${colors.orange}
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.gray}
|
||||
format-prefix-underline = ${colors.darkmagenta}
|
||||
format-discharging = <ramp-capacity><label-discharging>
|
||||
label-discharging = Batt: %percentage%%
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.darkmagenta}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.darkmagenta}
|
||||
label-indicator-underline = ${colors.darkmagenta}
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
mount-1 = /home
|
||||
|
||||
label-mounted-underline = ${colors.cyan}
|
||||
label-mounted = /: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.gray}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-foreground = ${colors.black}
|
||||
label-focused-background = ${colors.blue}
|
||||
label-focused-underline= ${colors.yellow}
|
||||
label-focused-padding = 1
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-underline = ${colors.blue}
|
||||
label-occupied-padding = 1
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.red}
|
||||
label-urgent-padding = 1
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.lightgray}
|
||||
label-empty-padding = 1
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
; Only show workspaces on the same output as the bar
|
||||
;pin-workspaces = true
|
||||
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = ${colors.white}
|
||||
label-mode-background = ${colors.darkyellow}
|
||||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors:black}
|
||||
;label-focused-background = ${module/bspwm.label-focused-background}
|
||||
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||
|
||||
; unfocused = Inactive workspace on any monitor
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||
|
||||
; visible = Active workspace on unfocused monitor
|
||||
label-visible = %index%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
; urgent = Workspace with urgency hint set
|
||||
label-urgent = %index%
|
||||
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
format-online = <label-song> <label-time>
|
||||
|
||||
click-left = $TERMINAL -e ncmpcpp
|
||||
click-right = mpc toggle
|
||||
|
||||
label-song = %artist% - %title%
|
||||
label-song-maxlen = 70
|
||||
label-song-ellipsis = true
|
||||
|
||||
format-paused-foreground = ${colors.gray}
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label = ﯧ
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #ff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.gray}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
; changes color for which third battery is in
|
||||
; red=0-33, yellow=34-66, green=67-100
|
||||
ramp-capacity-0 = %{u#ff0000}%{+u}
|
||||
ramp-capacity-1 = %{u#ffea00}%{+u}
|
||||
ramp-capacity-2 = %{u#20c723}%{+u}
|
||||
|
||||
[module/cpu]
|
||||
format = <label>
|
||||
format-prefix-foreground = ${colors.gray}
|
||||
interval = 0.5
|
||||
label = %{A1:$TERMINAL -e htop >/dev/null 2>&1 &:}CPU: %percentage%%%{A}
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = "🌡 "
|
||||
format-prefix-foreground = ${colors.gray}
|
||||
format-underline = ${colors.red}
|
||||
label = %percentage%%
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = "🧠 "
|
||||
format-prefix-foreground = ${colors.gray}
|
||||
format-underline = ${colors.darkcyan}
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = 直 <label-connected>
|
||||
format-connected-underline = ${colors.darkmagenta}
|
||||
label-connected = %essid%
|
||||
|
||||
;format-disconnected =
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
label-disconnected = 睊no wifi
|
||||
label-disconnected-foreground = ${colors.gray}
|
||||
|
||||
; <ramp-signal>
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.gray}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = enp0s25
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = ${colors.darkgreen}
|
||||
;format-connected-underline = ${colors.green}
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.gray}
|
||||
label-connected = %local_ip%
|
||||
|
||||
;format-disconnected =
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-underline = ${self.format-connected-underline}
|
||||
label-disconnected = %ifname%
|
||||
label-disconnected-foreground = ${colors.gray}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
@ -281,27 +104,75 @@ interval = 60
|
||||
date = "%Y %b %d (%a)"
|
||||
time = "%I:%M%p"
|
||||
|
||||
# If you're not living in a country where AM and PM is used you can add -alt to the time above this line and comment it using ;, then you can remove the -alt to the time under this line and uncomment it.
|
||||
;time-alt = " at %H:%M"
|
||||
;time-alt = %H:%M:%S
|
||||
;time-alt = %H:%M:%S
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.gray}
|
||||
format-underline = ${colors.blue}
|
||||
label = %{A1:google-chrome-stable https\://calendar.google.com >/dev/null 2>&1 &:}%date% %time%%{A}
|
||||
|
||||
label = %date% %time%
|
||||
[module/ethernet]
|
||||
type = internal/network
|
||||
interface = eth1
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = ${colors.green}
|
||||
format-connected-prefix-foreground = ${colors.gray}
|
||||
label-connected = %local_ip%
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-underline = ${colors.red}
|
||||
label-disconnected = No Eth
|
||||
label-disconnected-foreground = ${colors.gray}
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
index-sort = true
|
||||
wrapping-scroll = false
|
||||
|
||||
pin-workspaces = true
|
||||
|
||||
label-mode-padding = 1
|
||||
label-mode-foreground = ${colors.white}
|
||||
label-mode-background = ${colors.darkyellow}
|
||||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %index%
|
||||
label-focused-background = #3f3f3f
|
||||
label-focused-underline = #fba922
|
||||
label-focused-padding = 1
|
||||
|
||||
; unfocused = Inactive workspace on any monitor
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = 1
|
||||
|
||||
; visible = ctive workspace on unfocused monitor
|
||||
label-visible = %index%
|
||||
label-visible-background = ${self.label-focused-background}
|
||||
label-visible-underline = ${self.label-focused-underline}
|
||||
label-visible-padding = ${self.label-focused-padding}
|
||||
|
||||
; urgent = Workspace with urgency hint set
|
||||
label-urgent = %index%
|
||||
label-urgent-foreground = #000000
|
||||
label-urgent-background = #bd2c40
|
||||
label-urgent-padding = 1
|
||||
|
||||
[module/memory]
|
||||
format-prefix-foreground = ${colors.gray}
|
||||
interval = 1
|
||||
label = RAM: %gb_used%/%gb_total%
|
||||
type = internal/memory
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
|
||||
[module/volume]
|
||||
type = internal/alsa
|
||||
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume =
|
||||
label-volume-foreground = ${root.foreground}
|
||||
format-volume = [<label-volume> <bar-volume>]
|
||||
label-volume = %{A3:$TERMINAL -e alsamixer >/dev/null 2>&1 &:}%percentage%%%{A}
|
||||
label-volume-foreground = ${colors.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-foreground = ${colors.gray}
|
||||
label-muted = muted
|
||||
label-muted = Muted
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = ${colors.blue}
|
||||
@ -320,94 +191,24 @@ bar-volume-empty = =
|
||||
bar-volume-empty-font = 2
|
||||
bar-volume-empty-foreground = ${colors.gray}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
full-at = 98
|
||||
[module/wifi]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3.0
|
||||
|
||||
;format-charging = Charging... <label-charging>
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = ${colors.darkyellow}
|
||||
format-connected = <label-connected>
|
||||
label-connected = %{A1:$TERMINAL -e nmtui >/dev/null 2>&1 &:}Wifi: %essid%%{A}
|
||||
|
||||
;format-discharging = <label-discharging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.gray}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.gray}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
animation-charging-foreground = ${colors.gray}
|
||||
animation-charging-framerate = 500
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = ${colors.red}
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.darkmagenta}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-3 =
|
||||
ramp-4 =
|
||||
ramp-foreground = ${colors.gray}
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open-foreground = ${colors.darkmagenta}
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.darkmagenta}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.gray}
|
||||
|
||||
menu-0-0 = reboot
|
||||
menu-0-0-exec = menu-open-1
|
||||
menu-0-1 = power off
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
menu-1-0 = cancel
|
||||
menu-1-0-exec = menu-open-0
|
||||
menu-1-1 = reboot
|
||||
menu-1-1-exec = sudo reboot
|
||||
|
||||
menu-2-0 = power off
|
||||
menu-2-0-exec = sudo poweroff
|
||||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-underline = ${colors.red}
|
||||
label-disconnected = %{A1:$TERMINAL -e nmtui >/dev/null 2>&1 &:}No wifi%{A}
|
||||
label-disconnected-foreground = ${colors.gray}
|
||||
|
||||
[global/wm]
|
||||
margin-top = 5
|
||||
margin-bottom = 5
|
||||
margin-top = 5
|
||||
|
||||
[module/xwindow]
|
||||
format-foreground = ${colors.blue}
|
||||
label = %title:0:100:...%
|
||||
type = internal/xwindow
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/usr/bin/env sh
|
||||
# ranger supports enhanced previews. If the option "use_preview_script"
|
||||
# is set to True and this file exists, this script will be called and its
|
||||
# output is displayed in ranger. ANSI color codes are supported.
|
||||
|
||||
@ -0,0 +1,53 @@
|
||||
map gcf cd ~/.config
|
||||
map tcf tab_new ~/.config
|
||||
map mcf shell mv -v %s ~/.config
|
||||
map Ycf shell cp -rv %s ~/.config
|
||||
map gd cd ~/downloads
|
||||
map td tab_new ~/downloads
|
||||
map md shell mv -v %s ~/downloads
|
||||
map Yd shell cp -rv %s ~/downloads
|
||||
map ggh cd ~/github
|
||||
map tgh tab_new ~/github
|
||||
map mgh shell mv -v %s ~/github
|
||||
map Ygh shell cp -rv %s ~/github
|
||||
map gh cd ~/
|
||||
map th tab_new ~/
|
||||
map mh shell mv -v %s ~/
|
||||
map Yh shell cp -rv %s ~/
|
||||
map gm cd ~/music
|
||||
map tm tab_new ~/music
|
||||
map mm shell mv -v %s ~/music
|
||||
map Ym shell cp -rv %s ~/music
|
||||
map gmn cd /mnt
|
||||
map tmn tab_new /mnt
|
||||
map mmn shell mv -v %s /mnt
|
||||
map Ymn shell cp -rv %s /mnt
|
||||
map gpp cd ~/pictures
|
||||
map tpp tab_new ~/pictures
|
||||
map mpp shell mv -v %s ~/pictures
|
||||
map Ypp shell cp -rv %s ~/pictures
|
||||
map gsc cd ~/.local/bin
|
||||
map tsc tab_new ~/.local/bin
|
||||
map msc shell mv -v %s ~/.local/bin
|
||||
map Ysc shell cp -rv %s ~/.local/bin
|
||||
map gvv cd ~/videos
|
||||
map tvv tab_new ~/videos
|
||||
map mvv shell mv -v %s ~/videos
|
||||
map Yvv shell cp -rv %s ~/videos
|
||||
map bd shell $EDITOR ~/.config/directories
|
||||
map bf shell $EDITOR ~/.config/files
|
||||
map bw shell $EDITOR ~/.config/bookmarks
|
||||
map cfa shell $EDITOR ~/.config/aliasrc
|
||||
map cfb shell $EDITOR ~/.config/i3blocks/config
|
||||
map cfd shell $EDITOR ~/.Xdefaults
|
||||
map cfi shell $EDITOR ~/.config/i3/config
|
||||
map cfk shell $EDITOR ~/.config/sxhkd/sxhkdrc
|
||||
map cfm shell $EDITOR ~/.config/mutt/muttrc
|
||||
map cfmb shell $EDITOR ~/.config/ncmpcpp/bindings
|
||||
map cfmc shell $EDITOR ~/.config/ncmpcpp/config
|
||||
map cfn shell $EDITOR ~/.config/newsboat/config
|
||||
map cfp shell $EDITOR ~/.config/polybar/config
|
||||
map cfs shell $EDITOR ~/.config/sxhkd/sxhkdrc
|
||||
map cfu shell $EDITOR ~/.config/newsboat/urls
|
||||
map cfv shell $EDITOR ~/.config/nvim/init.vim
|
||||
map cfz shell $EDITOR $ZDOTDIR/.zshrc
|
||||
@ -1,69 +1,53 @@
|
||||
# The Simple X Hotkey Daemon is the program used by LARBS to map most of the
|
||||
# dwm-independent commands. This file is pretty readable, so I'll let you read
|
||||
# i3 independent commands. This file is pretty readable, so I'll let you read
|
||||
# it.
|
||||
|
||||
# The keys NOT bound here by sxhkd, but by dwm or i3 are:
|
||||
# The keys NOT bound here by sxhkd, but by i3 are:
|
||||
# The t thru p keys on the top row
|
||||
# The f thru ; keys on the home row
|
||||
# The b key on the bottom row (hides the bar in either case)
|
||||
|
||||
# Basic binds
|
||||
super + Return
|
||||
$TERMINAL
|
||||
$TERMINAL tmuxdd
|
||||
super + shift + Return
|
||||
samedir
|
||||
super + shift + q
|
||||
kill -9 `xdotool getwindowfocus getwindowpid`
|
||||
super + d
|
||||
dmenu_run
|
||||
super + r
|
||||
$TERMINAL -e $FILE
|
||||
super + e
|
||||
$TERMINAL -e neomutt; pkill -RTMIN+12 $STATUSBAR
|
||||
super + m
|
||||
$TERMINAL -e ncmpcpp
|
||||
super + n
|
||||
$TERMINAL -e newsboat
|
||||
super + c
|
||||
$TERMINAL -e calcurse -D ~/.config/calcurse
|
||||
super + v
|
||||
$TERMINAL -e nvim -c VimwikiIndex
|
||||
super + shift + a
|
||||
$TERMINAL -e alsamixer; pkill -RTMIN+10 $STATUSBAR
|
||||
super + b
|
||||
polybar-msg cmd toggle
|
||||
super + c
|
||||
code
|
||||
super + shift + c
|
||||
mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title='mpvfloat' /dev/video0
|
||||
super + shift + e
|
||||
tutorialvids
|
||||
super + d
|
||||
dmenu_run
|
||||
super + m
|
||||
spotify
|
||||
super + n
|
||||
nautilus
|
||||
super + shift + q
|
||||
kill -9 `xdotool getwindowfocus getwindowpid`
|
||||
super + r
|
||||
$TERMINAL -e $FILE
|
||||
super + w
|
||||
$TERMINAL -e sudo nmtui
|
||||
super + shift + w
|
||||
$BROWSER
|
||||
|
||||
# Et cetera...
|
||||
super + grave
|
||||
dmenuunicode
|
||||
super + Scroll_Lock
|
||||
killall screenkey || screenkey
|
||||
ifinstalled screenkey && (killall screenkey || screenkey)
|
||||
super + Insert
|
||||
showclip
|
||||
super + x
|
||||
ifinstalled i3lock && i3lock --color 000000 --show-failed-attempts --radius 120 --ring-width 10.0
|
||||
super + shift + x
|
||||
prompt "Shutdown computer?" "sudo -A shutdown -h now"
|
||||
super + shift + BackSpace
|
||||
prompt "Reboot computer?" "sudo -A reboot"
|
||||
super + shift + Escape
|
||||
prompt 'Leave Xorg?' 'killall Xorg'
|
||||
super + x
|
||||
ifinstalled slock && ( slock & xset dpms force off ; mpc pause ; pauseallmpv )
|
||||
XF86Launch1
|
||||
xset dpms force off
|
||||
XF86TouchpadToggle
|
||||
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0) || synclient TouchpadOff=1
|
||||
XF86Touchpad{Off,On}
|
||||
synclient TouchpadOff={1,0}
|
||||
XF86MonBrightnessDown
|
||||
xbacklight -dec 15
|
||||
XF86MonBrightnessUp
|
||||
xbacklight -inc 15
|
||||
|
||||
# Recording
|
||||
# Take screenshot
|
||||
@ -77,71 +61,20 @@ super + Print
|
||||
dmenurecord
|
||||
super + Delete
|
||||
dmenurecord kill
|
||||
alt + shift + escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
# Pause audio
|
||||
super + p
|
||||
mpc toggle
|
||||
super + shift + p
|
||||
mpc pause; pauseallmpv
|
||||
# Changes to next/previous tracks
|
||||
super + {comma,period}
|
||||
mpc {prev,next}
|
||||
# Restart track
|
||||
super + shift + less
|
||||
mpc seek 0%
|
||||
# Seek foward in song
|
||||
super + {_,shift +} bracketright
|
||||
mpc seek +{10,120}
|
||||
# Seek backward in song
|
||||
super + {_,shift +} bracketleft
|
||||
mpc seek -{10,120}
|
||||
# Volume
|
||||
# Increase volume
|
||||
super {_,shift +} + plus
|
||||
amixer sset Master {5,15}%+; pkill -RTMIN+10 $STATUSBAR
|
||||
amixer sset Master {5,15}%+
|
||||
# Decrease volume
|
||||
super {_,shift +} + minus
|
||||
amixer sset Master {5,15}%-; pkill -RTMIN+10 $STATUSBAR
|
||||
amixer sset Master {5,15}%-
|
||||
super + shift + m
|
||||
amixer sset Master toggle; pkill -RTMIN+10 $STATUSBAR
|
||||
|
||||
# Audiokeys
|
||||
XF86AudioMute
|
||||
amixer sset Master toggle; pkill -RTMIN+10 $STATUSBAR
|
||||
XF86Audio{Raise,Lower}Volume
|
||||
amixer sset Master 5%{+,-}; pkill -RTMIN+10 $STATUSBAR
|
||||
XF86Audio{Next,Prev}
|
||||
mpc {next,prev}
|
||||
XF86Audio{Pause,Play,Stop}
|
||||
mpc {pause,play,stop}
|
||||
XF86Audio{Rewind,Forward}
|
||||
mpc seek {-,+}10
|
||||
XF86AudioRecord
|
||||
dmenurecord
|
||||
XF86AudioMedia
|
||||
$TERMINAL -e ncmpcpp
|
||||
|
||||
XF86PowerOff
|
||||
prompt "Shutdown computer?" "sudo -A shutdown -h now"
|
||||
XF86Calculator
|
||||
$TERMINAL -e bc
|
||||
XF86Sleep
|
||||
prompt 'Hibernate computer?' 'sudo -A zzz'
|
||||
XF86WWW
|
||||
$BROWSER
|
||||
XF86DOS
|
||||
$TERMINAL
|
||||
XF86ScreenSaver
|
||||
mpc pause; pauseallmpv; i3lock -e -f -c 1d2021; xset dpms force off
|
||||
XF86TaskPane
|
||||
$TERMINAL -e htop
|
||||
XF86Mail
|
||||
$TERMINAL -e neomutt
|
||||
XF86MyComputer
|
||||
$TERMINAL -e $FILE /
|
||||
amixer sset Master toggle
|
||||
|
||||
# Function keys
|
||||
super + shift + F1
|
||||
grep LARBSWELCOME ~/.xprofile && ( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) || ( echo "notify-send -i "$HOME/.local/share/larbs/larbs.png" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile && notify-send "LARBS welcome message" "Welcome message re-enabled." )
|
||||
# Show readme
|
||||
super + F1
|
||||
groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -
|
||||
@ -152,16 +85,8 @@ super + F3
|
||||
# Hibernate
|
||||
super + F4
|
||||
prompt 'Hibernate computer?' 'sudo -A zzz -Z'
|
||||
super + F5 is unbound.
|
||||
# Start torrent daemon/open interface
|
||||
super + F6
|
||||
torwrap
|
||||
# toggle torrent daemon
|
||||
super + F7
|
||||
td-toggle
|
||||
# sync email
|
||||
super + F8
|
||||
mailsync
|
||||
super + F5
|
||||
killall screenkey || screenkey
|
||||
# Mount a USB drive or Android device
|
||||
super + {F9,F10}
|
||||
{dmenumount,dmenuumount}
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
highlight clear
|
||||
highlight Win cterm=none ctermfg=white ctermbg=black
|
||||
highlight Directory cterm=bold ctermfg=cyan ctermbg=default
|
||||
highlight Link cterm=bold ctermfg=blue ctermbg=default
|
||||
highlight BrokenLink cterm=bold ctermfg=red ctermbg=default
|
||||
highlight Socket cterm=bold ctermfg=magenta ctermbg=default
|
||||
highlight Device cterm=bold ctermfg=red ctermbg=default
|
||||
highlight Fifo cterm=bold ctermfg=cyan ctermbg=default
|
||||
highlight Executable cterm=bold ctermfg=green ctermbg=default
|
||||
highlight Selected cterm=bold ctermfg=magenta ctermbg=default
|
||||
highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default
|
||||
highlight TopLine cterm=none ctermfg=black ctermbg=white
|
||||
highlight TopLineSel cterm=bold ctermfg=black ctermbg=default
|
||||
highlight StatusLine cterm=bold ctermfg=black ctermbg=blue
|
||||
highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black
|
||||
highlight CmdLine cterm=none ctermfg=white ctermbg=black
|
||||
highlight ErrorMsg cterm=none ctermfg=red ctermbg=black
|
||||
highlight Border cterm=none ctermfg=white ctermbg=black
|
||||
highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white
|
||||
highlight SuggestBox cterm=bold ctermfg=default ctermbg=default
|
||||
highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red
|
||||
highlight AuxWin cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight TabLine cterm=none ctermfg=white ctermbg=black
|
||||
highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default
|
||||
highlight User1 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User2 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User3 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User4 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User5 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User6 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User7 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User8 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
highlight User9 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
|
||||
@ -1,75 +0,0 @@
|
||||
" vim: filetype=vifm
|
||||
source ~/.config/vifm/vifmshortcuts
|
||||
|
||||
set vicmd=$EDITOR
|
||||
set syscalls
|
||||
set nofollowlinks
|
||||
set sortnumbers
|
||||
set undolevels=100
|
||||
set wildmenu
|
||||
set wildstyle=popup
|
||||
set scrolloff=4
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set nohlsearch
|
||||
set incsearch
|
||||
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
|
||||
colorscheme luke
|
||||
|
||||
map <C-h> <C-w>h
|
||||
map <C-j> <C-w>j
|
||||
map <C-k> <C-w>k
|
||||
map <C-l> <C-w>l
|
||||
map <C-o> <C-w>o
|
||||
map <C-s> <C-w>s
|
||||
map <C-v> <C-w>v
|
||||
|
||||
map R :restart<CR>
|
||||
map x :!sxiv -ft * 2>/dev/null &<CR>
|
||||
nnoremap o :file &<cr>
|
||||
map E :!$EDITOR %f<CR>
|
||||
map mkd :mkdir<space>
|
||||
map bg :!setbg %f &<CR>
|
||||
map X :!ext %f &<CR>
|
||||
nnoremap s :shell<cr>
|
||||
nnoremap w :view<cr>
|
||||
vnoremap w :view<cr>gv
|
||||
nnoremap yd :!echo %d | xclip %i<cr>
|
||||
nnoremap yf :!echo %c:p | xclip %i<cr>
|
||||
nnoremap I cw<c-a>
|
||||
nnoremap cc cw<c-u>
|
||||
nnoremap A cw
|
||||
nnoremap ,w :set wrap!<cr>
|
||||
nmap <space> tj
|
||||
nmap q ZQ
|
||||
|
||||
fileview */ tree %c -L 1 --dirsfirst
|
||||
fileview ../ tree %c -L 1 --dirsfirst
|
||||
fileviewer *.html w3m -dump %c
|
||||
filextype *.html,*.htm firefox %f 2>/dev/null &
|
||||
|
||||
fileviewer *.docx docx2txt %c -
|
||||
fileviewer *.odt odt2txt %c -
|
||||
|
||||
filetype *.csv,*.xlsx sc-im %c
|
||||
fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw
|
||||
|
||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c
|
||||
filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &,
|
||||
fileviewer *.pdf pdftotext -l 1 -nopgbrk %c -
|
||||
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file
|
||||
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) %f 2>/dev/null &,
|
||||
|
||||
fileview *.zip,*.rar,*.tar.gz atool -l %f
|
||||
filetype *.zip,*.rar,*.tar.gz ext %f
|
||||
|
||||
fileviewer *.[1-8] man ./%c | col -b
|
||||
filetype *.[1-8] man ./%c
|
||||
|
||||
fileviewer *.jpg,*.jpeg,*.png,*.ico vifmimg draw %px %py %pw %ph %c %pc vifmimg clear
|
||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm rotdir %f 2>/dev/null | sxiv -ia 2>/dev/null &
|
||||
|
||||
filextype *.svg inkscape %f 2>/dev/null &
|
||||
filextype *.xcf gimp %f 2>/dev/null &
|
||||
|
||||
set vifminfo=dhistory,chistory,tui,shistory,phistory,fhistory,dirstack,registers,bookmarks,bmarks
|
||||
BIN
.config/wall.png
BIN
.config/wall.png
Binary file not shown.
|
Before Width: | Height: | Size: 524 KiB |
@ -1,3 +1,4 @@
|
||||
set selection-clipboard clipboard
|
||||
set statusbar-h-padding 0
|
||||
set statusbar-v-padding 0
|
||||
set page-padding 1
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# Luke's config for the Zoomer Shell
|
||||
|
||||
autoload -U colors && colors
|
||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
||||
|
||||
@ -55,22 +53,13 @@ echo -ne '\e[5 q'
|
||||
# Use beam shape cursor for each new prompt.
|
||||
preexec() { echo -ne '\e[5 q' ;}
|
||||
|
||||
# Use lf to switch directories and bind it to ctrl-o
|
||||
lfcd () {
|
||||
tmp="$(mktemp)"
|
||||
lf -last-dir-path="$tmp" "$@"
|
||||
if [ -f "$tmp" ]; then
|
||||
dir="$(cat "$tmp")"
|
||||
rm -f "$tmp"
|
||||
if [ -d "$dir" ]; then
|
||||
if [ "$dir" != "$(pwd)" ]; then
|
||||
cd "$dir"
|
||||
fi
|
||||
fi
|
||||
ranger() {
|
||||
if [ -z "$RANGER_LEVEL" ]; then
|
||||
/usr/bin/ranger "$@"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
bindkey -s '^o' 'lfcd\n' # zsh
|
||||
|
||||
# Load zsh-syntax-highlighting; should be last.
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||
|
||||
30
.gitconfig
Normal file
30
.gitconfig
Normal file
@ -0,0 +1,30 @@
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = true
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
editor = vim
|
||||
excludesfile = ~/.gitignore
|
||||
[user]
|
||||
name = Vlad Doster
|
||||
email = mvdoster@gmail.com
|
||||
[color]
|
||||
status = auto
|
||||
commit = auto
|
||||
diff = auto
|
||||
branch = auto
|
||||
[alias]
|
||||
st = status -uno
|
||||
co = checkout
|
||||
ci = commit
|
||||
br = branch
|
||||
ff = merge origin
|
||||
diff = diff --ignore-space-change
|
||||
dst = diff --staged
|
||||
[apply]
|
||||
whitespace = strip
|
||||
whitespace = nowarn
|
||||
[push]
|
||||
default = simple
|
||||
[credential]
|
||||
helper = cache --timeout=28800
|
||||
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
.cache/
|
||||
.local/lib/python3.7/
|
||||
.local/lib/python3.8/
|
||||
.local/share/jupyter/
|
||||
.local/share/Trash/
|
||||
.nv/
|
||||
.PyCharm20[0-9][0-9].[0-9]/
|
||||
.rstudio-desktop/
|
||||
Code - OSS/
|
||||
downloads/
|
||||
discord/
|
||||
GitKraken/
|
||||
github/
|
||||
google-chrome/
|
||||
libreoffice/
|
||||
pulse/
|
||||
Slack/
|
||||
@ -3,9 +3,12 @@
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar default & done
|
||||
if type "xrandr"; then
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
MONITOR=$m polybar --reload main &
|
||||
done
|
||||
else
|
||||
polybar --reload main &
|
||||
fi
|
||||
|
||||
echo "Bars launched..."
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Reads file names from stdin and selects them in lf.
|
||||
|
||||
while read -r file; do
|
||||
[ -z "$file" ] && continue
|
||||
lf -remote "send select \"$file\""
|
||||
lf -remote "send toggle"
|
||||
done
|
||||
13
.local/bin/polybar_scripts/aur_updates
Executable file
13
.local/bin/polybar_scripts/aur_updates
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
|
||||
updates=0
|
||||
fi
|
||||
|
||||
if [ "$updates" -eq 1 ]; then
|
||||
echo "$updates update"
|
||||
elif [ "$updates" -gt 1 ]; then
|
||||
echo "$updates updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
4
.local/bin/polybar_scripts/sys_temp
Executable file
4
.local/bin/polybar_scripts/sys_temp
Executable file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
sensors -f | awk '/Core / { gsub(/+|°|C/,""); {sum+=$3; n++} print sum/n; }' | tail -1
|
||||
|
||||
@ -5,5 +5,5 @@
|
||||
# argument sets ~/.config/wall.png as the wallpaper, which is required on login
|
||||
# if you don't want a blakc screen.
|
||||
|
||||
[ ! -z "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
|
||||
xwallpaper --zoom ~/.config/wall.png
|
||||
[ ! -z "$1" ] && cp "$1" ~/.config/assets/wallpaper.png && notify-send -i "$HOME/.config/assets/wallpaper.png" "Wallpaper changed."
|
||||
xwallpaper --zoom ~/.config/assets/wallpaper.png
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
# Give a battery name (e.g. BAT0) as an argument.
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
3) pgrep -x dunst >/dev/null && notify-send "🔋 Battery module" "🔋: discharging
|
||||
🛑: not charging
|
||||
♻: stagnant charge
|
||||
🔌: charging
|
||||
⚡: charged
|
||||
❗: battery very low!
|
||||
- Text color reflects charge left" ;;
|
||||
esac
|
||||
|
||||
capacity=$(cat /sys/class/power_supply/"$1"/capacity) || exit
|
||||
status=$(cat /sys/class/power_supply/"$1"/status)
|
||||
|
||||
if [ "$capacity" -ge 75 ]; then
|
||||
color="#00ff00"
|
||||
elif [ "$capacity" -ge 50 ]; then
|
||||
color="#ffffff"
|
||||
elif [ "$capacity" -ge 25 ]; then
|
||||
color="#ffff00"
|
||||
else
|
||||
color="#ff0000"
|
||||
warn="❗"
|
||||
fi
|
||||
|
||||
[ -z $warn ] && warn=" "
|
||||
|
||||
[ "$status" = "Charging" ] && color="#ffffff"
|
||||
|
||||
printf "<span color='%s'>%s%s%s</span>\n" "$color" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')"
|
||||
@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
date '+%Y %b %d (%a) %I:%M%p'
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) pgrep -x dunst >/dev/null && notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -D ~/.config/calcurse -d3)" ;;
|
||||
2) $TERMINAL -e calcurse -D ~/.config/calcurse ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
|
||||
- Middle click opens calcurse if installed" ;;
|
||||
esac
|
||||
@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;;
|
||||
3) notify-send "🖥 CPU module " "\- Shows CPU temperature.
|
||||
- Click to show intensive processes.
|
||||
- % is of single core." ;;
|
||||
esac
|
||||
|
||||
sensors | awk '/Core 0/ {print $3}'
|
||||
@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Status bar module for disk space
|
||||
# $1 should be drive mountpoint
|
||||
# $2 is optional icon, otherwise mountpoint will displayed
|
||||
|
||||
[ -z "$1" ] && exit
|
||||
|
||||
icon="$2"
|
||||
[ -z "$2" ] && icon="$1"
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) pgrep -x dunst >/dev/null && notify-send "💽 Disk space" "$(df -h --output=target,used,size)" ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "💽 Disk module" "\- Shows used hard drive space.
|
||||
- Click to show all disk info." ;;
|
||||
esac
|
||||
|
||||
printf "%s: %s\n" "$icon" "$(df -h "$1" | awk ' /[0-9]/ {print $3 "/" $2}')"
|
||||
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
case $BLOCK_BUTTON in
|
||||
1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;;
|
||||
2) i3 restart ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "❓ Help module" "\- Left click to open LARBS guide.
|
||||
- Middle click to refresh i3.";;
|
||||
esac; echo "❓"
|
||||
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e nmtui ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "🌐 Internet module" "\- Click to connect
|
||||
📡: no wifi connection
|
||||
📶: wifi connection with quality
|
||||
❎: no ethernet
|
||||
🌐: ethernet working
|
||||
" ;;
|
||||
esac
|
||||
|
||||
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡"
|
||||
|
||||
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }')
|
||||
|
||||
printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"
|
||||
@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Gets your public ip address checks which country you are in and
|
||||
# displays that information in the statusbar
|
||||
#
|
||||
# https://www.maketecheasier.com/ip-address-geolocation-lookups-linux/
|
||||
ifinstalled "geoiplookup" || exit
|
||||
addr="$(curl ifconfig.me 2>/dev/null)" || exit
|
||||
grep "flag: " ~/.config/emoji | grep "$(geoiplookup $addr | sed 's/.*, //')" | sed "s/flag: //;s/;.*//"
|
||||
@ -1,16 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# i3blocks mail module.
|
||||
# Displays number of unread mail and an loading icon if updating.
|
||||
# When clicked, brings up `neomutt`.
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) "$TERMINAL" -e neomutt ;;
|
||||
2) setsid mailsync >/dev/null & ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "📬 Mail module" "\- Shows unread mail
|
||||
- Shows 🔃 if syncing mail
|
||||
- Left click opens neomutt
|
||||
- Middle click syncs mail" ;;
|
||||
esac
|
||||
|
||||
echo "$(du -a ~/.local/share/mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)"
|
||||
@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
|
||||
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
|
||||
- Click to show memory hogs." ;;
|
||||
esac
|
||||
|
||||
free -h | awk '/^Mem:/ {print $3 "/" $2}'
|
||||
@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
filter() {
|
||||
sed "/^volume:/d" | tac | sed -e "s/\\&/&/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g"
|
||||
}
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) mpc status | filter && setsid "$TERMINAL" -e ncmpcpp & ;; # right click, pause/unpause
|
||||
2) mpc toggle | filter ;; # right click, pause/unpause
|
||||
3) mpc status | filter && pgrep -x dunst >/dev/null && notify-send "🎵 Music module" "\- Shows mpd song playing.
|
||||
- Italic when paused.
|
||||
- Left click opens ncmpcpp.
|
||||
- Middle click pauses.
|
||||
- Scroll changes track.";; # right click, pause/unpause
|
||||
4) mpc prev | filter ;; # scroll up, previous
|
||||
5) mpc next | filter ;; # scroll down, next
|
||||
*) mpc status | filter ;;
|
||||
esac; exit
|
||||
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# i3blocks newsboat module.
|
||||
# Displays number of unread news items and an loading icon if updating.
|
||||
# When clicked, brings up `newsboat`.
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) setsid "$TERMINAL" -e newsboat ;;
|
||||
2) setsid newsup >/dev/null & exit ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "📰 News module" "\- Shows unread news items
|
||||
- Shows 🔃 if updating with \`newsup\`
|
||||
- Left click opens newsboat
|
||||
- Middle click syncs RSS feeds
|
||||
<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
|
||||
esac
|
||||
|
||||
cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print $1}' | sed s/^0$//g)$(cat ~/.config/newsboat/.update 2>/dev/null)"
|
||||
@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# i3blocks module for pacman upgrades.
|
||||
# Displays number of upgradeable packages.
|
||||
# For this to work, have a `pacman -Sy` command run in the background as a
|
||||
# cronjob every so often as root. This script will then read those packages.
|
||||
# When clicked, it will run an upgrade via pacman.
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e popupgrade ;;
|
||||
2) notify-send "$(/usr/bin/pacman -Qu)" ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "Upgrade module" "📦: number of upgradable packages
|
||||
- Left click to upgrade packages
|
||||
- Middle click to show upgradable packages" ;;
|
||||
esac
|
||||
|
||||
|
||||
pacman -Qu | grep -v "\[ignored\]" | wc -l | sed -e "s/^0$//g"
|
||||
@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
printf "Beginning upgrade.\\n"
|
||||
|
||||
yay -Syu
|
||||
pkill -RTMIN+8 "${STATUSBAR:?}"
|
||||
|
||||
printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
|
||||
read -r
|
||||
@ -1,28 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
transmission-remote -l | grep % |
|
||||
sed " # This first sed command is to ensure a desirable order with sort
|
||||
s/.*Stopped.*/A/g;
|
||||
s/.*Seeding.*/Z/g;
|
||||
s/.*100%.*/N/g;
|
||||
s/.*Idle.*/B/g;
|
||||
s/.*Uploading.*/L/g;
|
||||
s/.*%.*/M/g" |
|
||||
sort -h | uniq -c | sed " # Now we replace the standin letters with icons.
|
||||
s/A/🛑/g;
|
||||
s/B/⌛️/g;
|
||||
s/L/🔼/g;
|
||||
s/M/🔽/g;
|
||||
s/N/✅/g;
|
||||
s/Z/🌱/g" | awk '{print $2, $1}' | sed -e "s/ $//g"
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e transmission-remote-cli ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "Torrent module" "🛑: paused
|
||||
⏳: idle (seeds needed)
|
||||
🔼: uploading (unfinished)
|
||||
🔽: downloading
|
||||
✅: done
|
||||
🌱: done and seeding" ;;
|
||||
esac
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) setsid "$TERMINAL" -e alsamixer & ;;
|
||||
2) amixer sset Master toggle ;;
|
||||
4) amixer sset Master 5%+ >/dev/null 2>/dev/null ;;
|
||||
5) amixer sset Master 5%- >/dev/null 2>/dev/null ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
|
||||
- Middle click to mute.
|
||||
- Scroll to change."
|
||||
esac
|
||||
|
||||
volstat="$(amixer get Master)"
|
||||
|
||||
echo "$volstat" | grep "\[off\]" >/dev/null && printf "🔇\\n" && exit
|
||||
|
||||
vol=$(echo "$volstat" | grep -o "\[[0-9]\+%\]" | sed 's/[^0-9]*//g')
|
||||
|
||||
if [ "$vol" -gt "70" ]; then
|
||||
icon="🔊"
|
||||
elif [ "$vol" -lt "30" ]; then
|
||||
icon="🔈"
|
||||
else
|
||||
icon="🔉"
|
||||
fi
|
||||
|
||||
printf "%s %s%%\\n" "$icon" "$vol"
|
||||
@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;}
|
||||
|
||||
getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1
|
||||
curl -s "wttr.in/$location" > "$HOME/.local/share/weatherreport" || exit 1 ;}
|
||||
|
||||
showweather() { printf "%s" "$(sed '16q;d' "$HOME/.local/share/weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')"
|
||||
sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄️",$1 "°","🌞",$2 "°"}' ;}
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e less -S "$HOME/.local/share/weatherreport" ;;
|
||||
2) getforecast && showweather ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "🌈 Weather module" "\- Left click for full forecast.
|
||||
- Middle click to update forecast.
|
||||
☔: Chance of rain/snow
|
||||
❄: Daily low
|
||||
🌞: Daily high" ;;
|
||||
esac
|
||||
|
||||
if [ "$(stat -c %y "$HOME/.local/share/weatherreport" >/dev/null 2>&1 | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ]
|
||||
then getforecast && showweather
|
||||
else showweather
|
||||
fi
|
||||
@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
vidlist="
|
||||
status bar https://www.youtube.com/watch?v=gKumet6b-WY
|
||||
sxiv (image viewer) https://www.youtube.com/watch?v=GYW9i_u5PYs
|
||||
st (terminal) https://www.youtube.com/watch?v=9H75enWM22k
|
||||
i3 (window manager) https://www.youtube.com/watch?v=GKviflL9XeI
|
||||
pacman (installing/managing programs) https://www.youtube.com/watch?v=-dEuXTMzRKs
|
||||
mutt (email) https://www.youtube.com/watch?v=2U3vRbF7v5A
|
||||
ncmpcpp (music player) https://www.youtube.com/watch?v=sZIEdI9TS2U
|
||||
newsboat (RSS reader) https://www.youtube.com/watch?v=dUFCRqs822w
|
||||
ranger (file manager) https://www.youtube.com/watch?v=L6Vu7WPkoJo
|
||||
zathura (pdf viewer) https://www.youtube.com/watch?v=V_Iz4zdyRM4
|
||||
gpg keys https://www.youtube.com/watch?v=DMGIlj7u7Eo
|
||||
calcurse (calendar) https://www.youtube.com/watch?v=hvc-pHjbhdE
|
||||
urlview https://www.youtube.com/watch?v=IgzpAjFgbCw
|
||||
colorschemes with pywal https://www.youtube.com/watch?v=Es79N_9BblE
|
||||
vi mode in shell https://www.youtube.com/watch?v=GqoJQft5R2E
|
||||
"
|
||||
echo "$vidlist" | grep -P "^$(echo "$vidlist" | grep "https:" | sed 's/\t.*//g' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 20 | awk '{print $1}')\s" | sed 's/.*\t//' | xargs -r mpv
|
||||
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
[ -z "$FIFO_UEBERZUG" ] && exit
|
||||
|
||||
readonly ID_PREVIEW="preview"
|
||||
|
||||
if [ "$1" = "draw" ]; then
|
||||
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" [x]="$2" [y]="$3" [max_width]="$4" [max_height]="$5" [path]="${PWD}/$6") > "$FIFO_UEBERZUG"
|
||||
elif [ "$1" = "videopreview" ]; then
|
||||
[ ! -f "/tmp/$6.png" ] && ffmpegthumbnailer -i "${PWD}/$6" -o "/tmp/$6.png" -s 0 -q 10 &&
|
||||
declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" [x]="$2" [y]="$3" [max_width]="$4" [max_height]="$5" [path]="/tmp/$6.png") > "$FIFO_UEBERZUG"
|
||||
else
|
||||
declare -p -A cmd=([action]=remove [identifier]="$ID_PREVIEW") > "$FIFO_UEBERZUG"
|
||||
fi
|
||||
@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# This is a wrapper for vifm to allow ueberzug images.
|
||||
|
||||
export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
|
||||
|
||||
cleanup() {
|
||||
rm "$FIFO_UEBERZUG" 2>/dev/null
|
||||
pkill -P $$ 2>/dev/null
|
||||
}
|
||||
|
||||
rm "$FIFO_UEBERZUG" 2>/dev/null
|
||||
mkfifo "$FIFO_UEBERZUG"
|
||||
trap cleanup EXIT
|
||||
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash &
|
||||
|
||||
vifm
|
||||
cleanup
|
||||
15
.profile
15
.profile
@ -3,17 +3,16 @@
|
||||
# Adds `~/.local/bin` to $PATH
|
||||
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
|
||||
|
||||
# Get default LARBS WM from ~/.local/share/larbs/wm
|
||||
export LARBSWM="$(cat ~/.local/share/larbs/wm 2>/dev/null)" &&
|
||||
[ "$LARBSWM" = "dwm" ] || export LARBSWM="i3"
|
||||
# Make tmux work
|
||||
#xport TERM="xterm-256color"
|
||||
|
||||
# Default programs:
|
||||
export EDITOR="nvim"
|
||||
export TERMINAL="st"
|
||||
export BROWSER="brave"
|
||||
export BROWSER="google-chrome-stable"
|
||||
export READER="zathura"
|
||||
export FILE="ranger"
|
||||
export STATUSBAR="${LARBSWM}blocks"
|
||||
export STATUSBAR="polybar"
|
||||
|
||||
# ~/ Clean-up:
|
||||
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||
@ -26,7 +25,7 @@ export ZDOTDIR="$HOME/.config/zsh"
|
||||
export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||
|
||||
# Other program settings:
|
||||
export DICS="/usr/share/stardict/dic/"
|
||||
#export DICS="/usr/share/stardict/dic/"
|
||||
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
|
||||
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
||||
export LESS=-R
|
||||
@ -38,8 +37,6 @@ export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||||
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||||
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||
|
||||
mpd >/dev/null 2>&1 &
|
||||
|
||||
[ ! -f ~/.config/shortcutrc ] && shortcuts >/dev/null 2>&1
|
||||
|
||||
# Start graphical server on tty1 if not already running.
|
||||
@ -47,5 +44,3 @@ mpd >/dev/null 2>&1 &
|
||||
|
||||
# Switch escape and caps if tty and no passwd required:
|
||||
sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null
|
||||
|
||||
export LF_ICONS="di=:fi=:ln=:or=:ex=:*.c=:*.cc=:*.clj=:*.coffee=:*.cpp=:*.css=:*.d=:*.dart=:*.erl=:*.exs=:*.fs=:*.go=:*.h=:*.hh=:*.hpp=:*.hs=:*.html=:*.java=:*.jl=:*.js=:*.json=:*.lua=:*.md=:*.php=:*.pl=:*.pro=:*.py=:*.rb=:*.rs=:*.scala=:*.ts=:*.vim=:*.cmd=:*.ps1=:*.sh=:*.bash=:*.zsh=:*.fish=:*.tar=:*.tgz=:*.arc=:*.arj=:*.taz=:*.lha=:*.lz4=:*.lzh=:*.lzma=:*.tlz=:*.txz=:*.tzo=:*.t7z=:*.zip=:*.z=:*.dz=:*.gz=:*.lrz=:*.lz=:*.lzo=:*.xz=:*.zst=:*.tzst=:*.bz2=:*.bz=:*.tbz=:*.tbz2=:*.tz=:*.deb=:*.rpm=:*.jar=:*.war=:*.ear=:*.sar=:*.rar=:*.alz=:*.ace=:*.zoo=:*.cpio=:*.7z=:*.rz=:*.cab=:*.wim=:*.swm=:*.dwm=:*.esd=:*.jpg=:*.jpeg=:*.mjpg=:*.mjpeg=:*.gif=:*.bmp=:*.pbm=:*.pgm=:*.ppm=:*.tga=:*.xbm=:*.xpm=:*.tif=:*.tiff=:*.png=:*.svg=:*.svgz=:*.mng=:*.pcx=:*.mov=:*.mpg=:*.mpeg=:*.m2v=:*.mkv=:*.webm=:*.ogm=:*.mp4=:*.m4v=:*.mp4v=:*.vob=:*.qt=:*.nuv=:*.wmv=:*.asf=:*.rm=:*.rmvb=:*.flc=:*.avi=:*.fli=:*.flv=:*.gl=:*.dl=:*.xcf=:*.xwd=:*.yuv=:*.cgm=:*.emf=:*.ogv=:*.ogx=:*.aac=:*.au=:*.flac=:*.m4a=:*.mid=:*.midi=:*.mka=:*.mp3=:*.mpc=:*.ogg=:*.ra=:*.wav=:*.oga=:*.opus=:*.spx=:*.xspf=:*.pdf="
|
||||
|
||||
8
.xinitrc
8
.xinitrc
@ -13,10 +13,4 @@
|
||||
# Your default LARBS WM is determined in your `~/.profile` on login. Here we
|
||||
# run the proper command to run when the graphical environment starts.
|
||||
|
||||
case "$LARBSWM" in
|
||||
dwm) while :; do
|
||||
ssh-agent dwm || break
|
||||
done ;;
|
||||
i3) exec i3 ;;
|
||||
*) echo "No valid LARBS window manager detected." ;;
|
||||
esac
|
||||
exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1
|
||||
|
||||
19
.xprofile
19
.xprofile
@ -2,13 +2,12 @@
|
||||
|
||||
# This file runs when a DM logs you into a graphical session.
|
||||
# If you use startx/xinit like a Chad, this file will also be sourced.
|
||||
|
||||
remaps & # run the remaps script, switching caps/esc and more; check it for more info
|
||||
setbg & # set the background with the `setbg` script
|
||||
xcompmgr & # xcompmgr for transparency
|
||||
$STATUSBAR & # script for updating the status bar
|
||||
dunst & # dunst for notifications
|
||||
xset r rate 300 50 & # Speed xrate up
|
||||
unclutter & # Remove mouse when idle
|
||||
mpd-module-update & # Check for when to update the mpd module
|
||||
notify-send -i ~/.local/share/larbs/larbs.png "Welcome to LARBS" "Press super+F1 for the help menu." # LARBSWELCOME
|
||||
# Don't be a bash chad XD
|
||||
autorandr -c
|
||||
remaps & # run the remaps script, switching caps/esc and more; check it for more info
|
||||
setbg & # set the background with the `setbg` script
|
||||
xcompmgr & # xcompmgr for transparency
|
||||
dunst & # dunst for notifications
|
||||
sxhkd -m 1 & # Bind keys with sxhkd
|
||||
xset r rate 300 50 & # Speed xrate up
|
||||
unclutter & # Remove mouse when idle
|
||||
|
||||
40
README.md
40
README.md
@ -1,17 +1,13 @@
|
||||
# The Voidrice (Luke Smith <https://lukesmith.xyz>'s dotfiles)
|
||||
|
||||
These are the dotfiles deployed by [LARBS](https://larbs.xyz) and as seen on [my YouTube channel](https://youtube.com/c/lukesmithxyz).
|
||||
## Config based upon (Luke Smith <https://lukesmith.xyz>'s dotfiles), but heavily modified to fit my needs.
|
||||
|
||||
- Very useful scripts are in `~/.local/bin/`
|
||||
- Settings for:
|
||||
- vim/nvim (text editor)
|
||||
- neovim/vim (text editor)
|
||||
- zsh (shell)
|
||||
- i3wm/i3-gaps (window manager)
|
||||
- i3blocks (status bar)
|
||||
- i3wm/i3-gaps/i3-lock (window manager)
|
||||
- polybar (status bar)
|
||||
- sxhkd (general key binder)
|
||||
- ranger (file manager)
|
||||
- lf (file manager)
|
||||
- mpd/ncmpcpp (music)
|
||||
- sxiv (image/gif viewer)
|
||||
- mpv (video player)
|
||||
- calcurse (calendar program)
|
||||
@ -19,27 +15,11 @@ These are the dotfiles deployed by [LARBS](https://larbs.xyz) and as seen on [my
|
||||
- other stuff like xdg default programs, inputrc and more, etc.
|
||||
- I try to minimize what's directly in `~` so:
|
||||
- All configs that can be in `~/.config/` are.
|
||||
- Some environmental variables have been set in `~/.zprofile` to move configs into `~/.config/`
|
||||
- Bookmarks in text files used by various scripts (like `~/.local/bin/shortcuts`)
|
||||
- Some environmental variables have been set in `~/.zprofile` to move configs into `~/.config/`
|
||||
- Aliases in `~/.config/aliasrc`
|
||||
- File bookmarks in `~/.config/files`
|
||||
- Directory bookmarks in `~/.config/directories`
|
||||
|
||||
## Want even more?
|
||||
|
||||
My setup is pretty modular nowadays.
|
||||
I use several suckless programs that are meant to be configured and compiled by the user and I also have separate repos for some other things.
|
||||
Check out their links:
|
||||
|
||||
- [dwm](https://github.com/lukesmithxyz/dwm) (the window manager I usually use now which is fully compatible with this repo)
|
||||
- [st](https://github.com/lukesmithxyz/st) (the terminal emulator assumed to be used by these dotfiles)
|
||||
- [mutt-wizard (`mw`)](https://github.com/lukesmithxyz/mutt-wizard) - (a terminal-based email system that can store your mail offline without effort)
|
||||
|
||||
## Install these dotfiles
|
||||
|
||||
Use [LARBS](https://larbs.xyz) to autoinstall everything:
|
||||
|
||||
```
|
||||
curl -LO larbs.xyz/larbs.sh
|
||||
```
|
||||
|
||||
or clone the repo files directly to your home directory and install [the prerequisite programs](https://github.com/LukeSmithxyz/LARBS/blob/master/progs.csv) or [those required for the i3 setup](https://github.com/LukeSmithxyz/LARBS/blob/master/legacy.csv).
|
||||
|
||||
### Things to add
|
||||
- [x] show/hide polybar using IPC (polybar-msg) fixed by `polybar-msg cmd toggle`
|
||||
- [ ] Launch pycharm without Jetbrains toolbox (command will look like ``` ./`find .local -name pycharm.sh` ```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user