Maxim Likhachev 5 years ago
parent
commit
2fe3c12f96
  1. 12
      etc/X/xbindkeysrc.GenuineIntel
  2. 2
      etc/cron/crontab
  3. 1
      etc/net/newsboat/urls
  4. 3
      etc/rc.linux-gnu
  5. 14
      etc/shell/bash/aliases
  6. 12
      etc/shell/bash/bash_completion_custom
  7. 4
      etc/shell/bash/bashrc
  8. 3
      etc/soft/packages.list
  9. 12
      etc/soft/polybar/config
  10. 20
      etc/soft/sxiv/exec/image-info
  11. 19
      etc/soft/sxiv/exec/key-handler
  12. 12
      etc/soft/vifm/commands
  13. 6
      etc/soft/vifm/filetypes
  14. 16
      etc/soft/vifm/vifmrc
  15. 1
      etc/wm/bspwm/bspwmrc
  16. 92
      etc/wm/skippy/skippy-xd.all.rc
  17. 92
      etc/wm/skippy/skippy-xd.rc
  18. 1
      etc/wm/xdg/user-dirs.dirs

12
etc/X/xbindkeysrc.GenuineIntel

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# xbindkeysrc.GehuineIntel
#
# Изменён: Пт 14 фев 2020 13:30:11
# Изменён: Чт 27 фев 2020 00:53:58
#
#ACPI#{{{
@ -28,10 +28,6 @@ @@ -28,10 +28,6 @@
m:0xc + c:9
Control+Alt + Escape
"serial"
m:0x40 + c:33
Mod4 + p
"import screenshot_$(\date +%Y-%m-%d_%H:%M:%S).png"
m:0x0 + c:107
Print
@ -49,5 +45,11 @@ @@ -49,5 +45,11 @@
"www"
Alt + n
"skippy-xd --config $SHELLRC/etc/wm/skippy/skippy-xd.rc; hidecursor"
Alt + z
"skippy-xd --config $SHELLRC/etc/wm/skippy/skippy-xd.all.rc; hidecursor"
Alt + a
#}}}

2
etc/cron/crontab

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# crontab
#
# Изменён: Вт 22 окт 2019 09:51:43
# Изменён: Ср 19 фев 2020 19:44:47
#
# MIN HOUR DAY MONTH DAYOFWEEK COMMAND

1
etc/net/newsboat/urls

@ -3,3 +3,4 @@ https://planet.haskell.org/atom.xml @@ -3,3 +3,4 @@ https://planet.haskell.org/atom.xml
https://www.reddit.com/r/vim/.rss "~Reddit/vim"
https://www.reddit.com/r/neovim/.rss "~Reddit/neovim"
https://www.reddit.com/r/commandline/.rss "~Reddit/commandline"
https://reversed.top/feed.xml

3
etc/rc.linux-gnu

@ -51,7 +51,7 @@ mkdir -p ~/.config/dunst @@ -51,7 +51,7 @@ mkdir -p ~/.config/dunst
- soft/conky/conkyrc.$(uname -i) ~
- soft/ctags/ctags ~
+ soft/nvim ~/.config
+ soft/vifm ~
+ soft/vifm ~/.config
- soft/vimperator ~
- soft/vimperator/vimperatorrc ~
+ soft/git/gitconfig ~
@ -59,6 +59,7 @@ mkdir -p ~/.config/dunst @@ -59,6 +59,7 @@ mkdir -p ~/.config/dunst
- soft/stalonetray/stalonetrayrc ~
- soft/tmux/tmux.conf ~
+ media/alsa/asoundrc ~
+ soft/sxiv ~/.config
+ soft/dfc ~/.config
+ soft/polybar ~/.config
+ soft/htop ~/.config

14
etc/shell/bash/aliases

@ -56,7 +56,7 @@ alias vi="nvim -u NONE" #noindex @@ -56,7 +56,7 @@ alias vi="nvim -u NONE" #noindex
alias vim="nvim -i $SHELLRC/var/vim/nviminfo -p $*" #noindex
alias vimdiff="nvim -i $SHELLRC/var/vim/nviminfo -d $*" #noindex
alias lsi="TERM=xterm-256color lsi" #noindex
alias mutt="TERM=xterm-256color neomutt -y -F $SHELLRC/etc/mail/mutt/muttrc && echo "0" > $MD/new" #noindex
alias mutt="TERM=xterm-256color mutt -y -F $SHELLRC/etc/mail/mutt/muttrc && echo "0" > $MD/new" #noindex
alias screen="TERM=rxvt-256color screen" #noindex
alias figlet="figlet -f $SHELLRC/etc/soft/figlet/fonts/standard.flf" #noindex
alias zathura="nh zathura" #noindex
@ -208,13 +208,13 @@ vicd() { #noindex @@ -208,13 +208,13 @@ vicd() { #noindex
function vifm() { #noindex
if [ -f ~/.vifm/lastdir ]; then
\rm ~/.vifm/lastdir
\rm ~/.config/.vifm/lastdir
fi
# "command" prevents recursive call
TERM=xterm-256color command vifm .
if [ -f ~/.vifm/lastdir ]; then
cd "`cat ~/.vifm/lastdir`"
if [ -f ~/.config/.vifm/lastdir ]; then
cd "`cat ~/.config/.vifm/lastdir`"
fi
}
@ -375,11 +375,11 @@ lnbin() { @@ -375,11 +375,11 @@ lnbin() {
#- Поиск процесса по имени
alias pgrep="pgrep -l"
#- Запуск сервиса
start() { su -c "sh /etc/init.d/$1 start"; }
start() { su -c "/etc/init.d/$1 start"; }
#- Остановка сервиса
stop() { su -c "sh /etc/init.d/$1 stop"; }
stop() { su -c "/etc/init.d/$1 stop"; }
#- Перезапуск сервиса
restart() { su -c "sh /etc/init.d/$1 restart"; }
restart() { su -c "/etc/init.d/$1 restart"; }
#}}} ###########################################################################
#{{{ \033[00m\n\b------<Прочее>\n

12
etc/shell/bash/bash_completion_custom

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash #########################
#
# Изменён: Ср 05 фев 2020 14:38:27
# Изменён: Чт 27 фев 2020 00:31:10
#
#complete <что дополнять> <программа>
@ -102,5 +102,15 @@ _git-commit() { @@ -102,5 +102,15 @@ _git-commit() {
fi
}
_services () {
if [[ $2 == "" ]]; then
COMPREPLY=($(\ls /etc/init.d/ | sed '/^\/.*:$/d; /^\s*$/d' 2> /dev/null))
else
COMPREPLY=($(\ls /etc/init.d/ | sed '/^\/.*:$/d; /^\s*$/d' | grep "^$2" 2> /dev/null))
fi
}
complete -F _services start stop restart
#complete -c _git-commit git g

4
etc/shell/bash/bashrc

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash ####################################################################
#
# Изменён: Вт 18 фев 2020 17:01:38
# Изменён: Пт 21 фев 2020 14:24:30
#
################################################################################
@ -16,6 +16,8 @@ export INPUTRC="$BASHRC/inputrc" #Файл inputrc @@ -16,6 +16,8 @@ export INPUTRC="$BASHRC/inputrc" #Файл inputrc
export GTK_IM_MODULE="xim" #Метод ввода Χ
export QT_IM_MODULE="xim" #Метод ввода Χ
source "$SHELLRC/etc/wm/xdg/user-dirs.dirs"
export HSTR_CONFIG="keywords-matching,blacklist,hicolor" #hstr
export HSTR_PROMPT="> "

3
etc/soft/packages.list

@ -17,6 +17,7 @@ PACKAGES=" @@ -17,6 +17,7 @@ PACKAGES="
zathura #Просмотр PDF/DJVU
geeqie #Просмотр изображений
newsboat #Чтение RSS
nnn #Файловый менеджер
shellcheck #Линтер bash
@ -27,7 +28,7 @@ PACKAGES=" @@ -27,7 +28,7 @@ PACKAGES="
vifm #Файловый менеджер
nvim #Текстовый редактор
sdcv #Словарь
neomutt #Почта
mutt #Почта
sxiv #Просмотр изображений
connmanctl #Управление WiFi
ls-i #ls со значками https://github.com/illinoisjackson/even-better-ls

12
etc/soft/polybar/config

@ -70,9 +70,9 @@ font-0 = NotoMono Nerd Font:size=12 @@ -70,9 +70,9 @@ font-0 = NotoMono Nerd Font:size=12
font-1 = NotoMono Nerd Font:size=12
font-2 = NotoMono Nerd Font:size=12
modules-left = desktop mpd
modules-left = desktop
modules-center = filesystem
modules-right = bdays webcheck mail battery backlight alsa xkeyboard date
modules-right = bdays webcheck rss mail battery backlight alsa xkeyboard date
separator = |
@ -127,6 +127,14 @@ interval = 86400 @@ -127,6 +127,14 @@ interval = 86400
format =
format-foreground = ${colors.alert}
[module/rss]
type = custom/script
exec = newsboat -x reload; newsboat -x print-unread | awk '{ print $1 }'
interval = 1200
format-prefix = " "
format-underline = ${colors.yellow}
[module/mail]
type = custom/script
exec = cat $MD/new

20
etc/soft/sxiv/exec/image-info

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
#!/bin/sh
# Example for $XDG_CONFIG_HOME/sxiv/exec/image-info
# Called by sxiv(1) whenever an image gets loaded.
# The output is displayed in sxiv's status bar.
# Arguments:
# $1: path to image file
# $2: image width
# $3: image height
s=" " # field separator
exec 2>/dev/null
filename=$(basename -- "$1")
filesize=$(du -Hh -- "$1" | cut -f 1)
geometry="${2}x${3}"
echo "${filesize}${s}${geometry}${s}${filename}"

19
etc/soft/sxiv/exec/key-handler

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
#!/bin/sh
# $XDG_CONFIG_HOME/sxiv/exec/key-handler
#
# Called by sxiv(1) after the external prefix key (C-x by default) is pressed.
# The next key combo is passed as its first argument. Passed via stdin are the
# images to act upon, one path per line: all marked images, if in thumbnail
# mode and at least one image has been marked, otherwise the current image.
# sxiv(1) blocks until this script terminates. It then checks which images
# have been modified and reloads them.
#
# The key combo argument has the following form: "[C-][M-][S-]KEY",
# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
case "$1" in
"C-d") tr '\n' '\0' | xargs -IF -0 rm -v F;;
esac

12
etc/soft/vifm/commands

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
" Выход с переходом в текущую директорию
command! Q :execute '!echo %d > ~/.vifm/lastdir' | quit
command! Q :execute '!echo %d > ~/.config/vifm/lastdir' | quit
command df dfc -t apfs,ext4,fuseblk,osxfuse -w -s -T %m 2> /dev/null
command dfc dfc -t apfs,ext4,fuseblk,osxfuse -w -s -T %m 2> /dev/null
@ -10,9 +10,9 @@ command dmesg dmesg %m @@ -10,9 +10,9 @@ command dmesg dmesg %m
command tag !tmsu tag --tags="%a" %c
command untagged tmsu untagged | sort %M
command bklist cat ~/.vifm/bookmarks.list %M
command bkedit !nvim ~/.vifm/bookmarks.list
command bkadd :!echo %c:p >> ~/.vifm/bookmarks.list
command bklist cat ~/.config/vifm/bookmarks.list %M
command bkedit !nvim ~/.config/vifm/bookmarks.list
command bkadd :!echo %c:p >> ~/.config/vifm/bookmarks.list
command man man %a %m
command fb fb2 %c:p %m
@ -48,7 +48,9 @@ command z !!zathura %c:p @@ -48,7 +48,9 @@ command z !!zathura %c:p
command renamepdfs !renamepdfs --directory %d %f
command g !press-n-post %f
command g !press-n-post %c
command todolist todolist %d %M
command retag retag -v %f:p

6
etc/soft/vifm/filetypes

@ -20,8 +20,8 @@ fileviewer *.torrent dumptorrent -v %f @@ -20,8 +20,8 @@ fileviewer *.torrent dumptorrent -v %f
filetype *.txt nvim %f
" img
filetype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.ico sxiv %c %d/, x-open %c
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.ico sxiv %c %d/, x-open %c
filetype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.ico,*.webp sxiv -p %c %d/, x-open %c
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.ico,*.webp sxiv -p %c %d/, x-open %c
filextype *.svg sensible-browser %f &
" fileviewer *.jpg,*.png lsimg %d/%f %q %pc
fileviewer *.jpg,*.jpeg,*.png,*.gif exiftool %f, exiv2 %f
@ -33,7 +33,7 @@ fileviewer *.mp3 exiftool %f, mp3info %f @@ -33,7 +33,7 @@ fileviewer *.mp3 exiftool %f, mp3info %f
" video
filextype *.avi,*.mp4,*.wmv,*.3gp,*.ogv,*.mkv,*.mpg,*.vob,*.flv,*.mov
\ vlc %f &
\ mpv %f &, vlc %f &
" playlist
filextype *.m3u vlc %f &

16
etc/soft/vifm/vifmrc

@ -37,6 +37,12 @@ set findprg="fd %A %s" @@ -37,6 +37,12 @@ set findprg="fd %A %s"
set timefmt="%d.%m.%y %H:%M"
" Отключить отображение / в именах директорий
set classify=
" Отображение подсказок
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
" %t - file name (considering value of the 'classify' option)
" %T - symbolic link target (empty for other filetypes)
" %f - file name relative to current directory (considers 'classify')
@ -57,9 +63,9 @@ set slowfs=curlftpfs @@ -57,9 +63,9 @@ set slowfs=curlftpfs
let $VIFM_SHELL = 'VIFM: '
source ~/.vifm/marks
source ~/.vifm/filetypes
source ~/.vifm/commands
source ~/.vifm/mappings
source ~/.vifm/icons
source ~/.config/vifm/marks
source ~/.config/vifm/filetypes
source ~/.config/vifm/commands
source ~/.config/vifm/mappings
source ~/.config/vifm/icons

1
etc/wm/bspwm/bspwmrc

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
sxhkd &
polybar main &
hidecursor &
bspc monitor eDP1 -d Α Β Γ Δ
bspc monitor DP1 -d α β γ δ

92
etc/wm/skippy/skippy-xd.all.rc

@ -0,0 +1,92 @@ @@ -0,0 +1,92 @@
# Copy this to ~/.config/skippy-xd/skippy-xd.rc and edit it to your liking
#
# Notes:
#
# - colors can be anything XAllocNamedColor can handle
# (like "black" or "#000000")
#
# - distance is a relative number, and is scaled according to the scale
# factor applied to windows
#
# - fonts are Xft font descriptions
#
# - booleans are "true" or anything but "true" (-> false)
#
# - opacity is an integer in the range of 0-255
#
# - brighness is a floating point number (with 0.0 as neutral)
#
# - if the update frequency is a negative value, the mini-windows will only
# be updated when they're explicitly rendered (like, when they gain or
# lose focus).
#
# - the 'shadowText' option can be a color or 'none', in which case the
# drop-shadow effect is disabled
#
# - Picture specification:
# [WIDTHxHEIGHT] [orig|scale|scalek|tile] [left|mid|right] [left|mid|right]
# [COLOR|#FFFFFFFF] [PATH]
#
# Examples:
# background = 500x400 tile right mid #FF0000 /home/richard/screenshots/256.png
# background = orig mid mid #FF000080
#
# - Bindings in [bindings] section can bind to "no" (do nothing), "focus"
# (focus to window), "iconify", "shade-ewmh" (toggle window shade state),
# "close-icccm" (close window with ICCCM method), "close-ewmh" (close
# window with EWMH method), or "destroy" (forcefully destroy the window).
#
[general]
distance = 50
useNetWMFullscreen = true
ignoreSkipTaskbar = true
updateFreq = 10.0
lazyTrans = false
pipePath = /tmp/skippy-xd-fifo
movePointerOnStart = true
movePointerOnSelect = true
movePointerOnRaise = true
switchDesktopOnActivate = true
useNameWindowPixmap = false
forceNameWindowPixmap = false
includeFrame = true
allowUpscale = true
showAllDesktops = true
showUnmapped = true
preferredIconSize = 48
clientDisplayModes = thumbnail icon filled none
iconFillSpec = orig mid mid #00FFFF
fillSpec = orig mid mid #FFFFFF
background = scale mid mid #FFFFFF /home/maks/.shellrc/etc/wm/img/wallpaper.GenuineIntel.jpg
[xinerama]
showAll = true
[normal]
tint = black
tintOpacity = 0
opacity = 200
[highlight]
tint = #101020
tintOpacity = 64
opacity = 255
[tooltip]
show = true
followsMouse = true
offsetX = 20
offsetY = 20
align = left
border = #ffffff
background = #404040
opacity = 128
text = #ffffff
textShadow = black
font = fixed-11:weight=bold
[bindings]
miwMouse1 = focus
miwMouse2 = close-ewmh
miwMouse3 = iconify

92
etc/wm/skippy/skippy-xd.rc

@ -0,0 +1,92 @@ @@ -0,0 +1,92 @@
# Copy this to ~/.config/skippy-xd/skippy-xd.rc and edit it to your liking
#
# Notes:
#
# - colors can be anything XAllocNamedColor can handle
# (like "black" or "#000000")
#
# - distance is a relative number, and is scaled according to the scale
# factor applied to windows
#
# - fonts are Xft font descriptions
#
# - booleans are "true" or anything but "true" (-> false)
#
# - opacity is an integer in the range of 0-255
#
# - brighness is a floating point number (with 0.0 as neutral)
#
# - if the update frequency is a negative value, the mini-windows will only
# be updated when they're explicitly rendered (like, when they gain or
# lose focus).
#
# - the 'shadowText' option can be a color or 'none', in which case the
# drop-shadow effect is disabled
#
# - Picture specification:
# [WIDTHxHEIGHT] [orig|scale|scalek|tile] [left|mid|right] [left|mid|right]
# [COLOR|#FFFFFFFF] [PATH]
#
# Examples:
# background = 500x400 tile right mid #FF0000 /home/richard/screenshots/256.png
# background = orig mid mid #FF000080
#
# - Bindings in [bindings] section can bind to "no" (do nothing), "focus"
# (focus to window), "iconify", "shade-ewmh" (toggle window shade state),
# "close-icccm" (close window with ICCCM method), "close-ewmh" (close
# window with EWMH method), or "destroy" (forcefully destroy the window).
#
[general]
distance = 50
useNetWMFullscreen = true
ignoreSkipTaskbar = true
updateFreq = 10.0
lazyTrans = false
pipePath = /tmp/skippy-xd-fifo
movePointerOnStart = true
movePointerOnSelect = true
movePointerOnRaise = true
switchDesktopOnActivate = true
useNameWindowPixmap = false
forceNameWindowPixmap = false
includeFrame = true
allowUpscale = true
showAllDesktops = false
showUnmapped = true
preferredIconSize = 48
clientDisplayModes = thumbnail icon filled none
iconFillSpec = orig mid mid #00FFFF
fillSpec = orig mid mid #FFFFFF
background = scale mid mid #FFFFFF /home/maks/.shellrc/etc/wm/img/wallpaper.GenuineIntel.jpg
[xinerama]
showAll = true
[normal]
tint = black
tintOpacity = 0
opacity = 200
[highlight]
tint = #101020
tintOpacity = 64
opacity = 255
[tooltip]
show = true
followsMouse = true
offsetX = 20
offsetY = 20
align = left
border = #ffffff
background = #404040
opacity = 128
text = #ffffff
textShadow = black
font = fixed-11:weight=bold
[bindings]
miwMouse1 = focus
miwMouse2 = close-ewmh
miwMouse3 = iconify

1
etc/wm/xdg/user-dirs.dirs

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
XDG_CONFIG_HOME="$HOME/.config"
XDG_DESKTOP_DIR="$HOME"
XDG_TEMPLATES_DIR="$HOME"
XDG_PUBLICSHARE_DIR="$HOME"

Loading…
Cancel
Save