oriko32

all

Jun 22nd, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.90 KB | None | 0 0
  1. Увеличить громкость звука
  2. "amixer set Master 5%+"
  3. XF86AudioRaiseVolume
  4.  
  5. Уменьшить громкость звука
  6. "amixer set Master 5%-"
  7. XF86AudioLowerVolume
  8.  
  9. Отключить звук
  10. "amixer set Master toggle"
  11. XF86AudioMute
  12.  
  13. Увеличить яркость
  14. "xbacklight -inc 10"
  15. XF86MonBrightnessUp
  16.  
  17. Уменьшить яркость
  18. "xbacklight -dec 10"
  19. XF86MonBrightnessDown
  20.  
  21. ! black
  22. *.color0: #14161B
  23. *.color8: #2E3436
  24.  
  25. ! red
  26. *.color1: #A31603
  27. *.color9: #C60001
  28.  
  29. ! green
  30. *.color2: #447241
  31. *.color10: #309847
  32.  
  33. ! yellow
  34. *.color3: #C19519
  35. *.color11: #E4AE0E
  36.  
  37. ! blue
  38. *.color4: #425387
  39. *.color12: #566695
  40.  
  41. ! magenta
  42. *.color5: #6B286F
  43. *.color13: #7F3882
  44.  
  45. ! cyan
  46. *.color6: #057D80
  47. *.color14: #36959E
  48.  
  49. ! white
  50. *.color7: #D3D7CF
  51. *.color15: #DEDEDE
  52.  
  53. Xcursor.theme: Adwaita
  54.  
  55. URxvt.scrollBar: false
  56. URxvt*foreground: #DEDEDE
  57. URxvt*background: #14161B
  58. URxvt.letterSpace: 0
  59. URxvt*font: xft:Luculent:size=10
  60. URxvt.perl-ext:
  61. URxvt.perl-ext-common:
  62.  
  63. rofi.color-enabled: true
  64. ! bg border separator
  65. rofi.color-window: #14161B, #14161B, #D3D7CF
  66. ! bg fg bg-alt hl-bg hl-fg
  67. rofi.color-normal: #14161B, #DEDEDE, #14161B, #2E3436, #DEDEDE
  68. rofi.color-active: #14161B, #DEDEDE, #14161B, #2E3436, #DEDEDE
  69. rofi.color-urgent: #14161B, #DEDEDE, #14161B, #2E3436, #DEDEDE
  70.  
  71. rofi.font: Luculent 10
  72. rofi.width: 25
  73.  
  74. #!/bin/sh
  75.  
  76. userresources=$HOME/.Xresources
  77. usermodmap=$HOME/.Xmodmap
  78. sysresources=/etc/X11/xinit/.Xresources
  79. sysmodmap=/etc/X11/xinit/.Xmodmap
  80.  
  81. # merge in defaults and keymaps
  82.  
  83. if [ -f $sysresources ]; then
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91. xrdb -merge $sysresources
  92.  
  93. fi
  94.  
  95. if [ -f $sysmodmap ]; then
  96. xmodmap $sysmodmap
  97. fi
  98.  
  99. if [ -f "$userresources" ]; then
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. xrdb -merge "$userresources"
  108.  
  109. fi
  110.  
  111. if [ -f "$usermodmap" ]; then
  112. xmodmap "$usermodmap"
  113. fi
  114.  
  115. # start some nice programs
  116.  
  117. if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  118. for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  119. [ -x "$f" ] && . "$f"
  120. done
  121. unset f
  122. fi
  123.  
  124. setxkbmap -model pc104 -layout us,ru -option grp:alt_shift_toggle &
  125. compton --config ./.compton.conf -b &
  126. xbindkeys &
  127. exec i3
  128.  
  129. #twm &
  130. #xclock -geometry 50x50-1+1 &
  131. #xterm -geometry 80x50+494+51 &
  132. #xterm -geometry 80x20+494-0 &
  133. #exec xterm -geometry 80x66+0+0 -name login
  134.  
  135. ### Set/unset ZSH options
  136. #########################
  137. # setopt NOHUP
  138. # setopt NOTIFY
  139. # setopt NO_FLOW_CONTROL
  140. setopt INC_APPEND_HISTORY SHARE_HISTORY
  141. setopt APPEND_HISTORY
  142. # setopt AUTO_LIST
  143. # setopt AUTO_REMOVE_SLASH
  144. # setopt AUTO_RESUME
  145. unsetopt BG_NICE
  146. setopt CORRECT
  147. setopt EXTENDED_HISTORY
  148. # setopt HASH_CMDS
  149. setopt MENUCOMPLETE
  150. setopt ALL_EXPORT
  151.  
  152. export EDITOR=mcedit
  153.  
  154. ### Set/unset shell options
  155. ############################
  156. setopt notify globdots correct pushdtohome cdablevars autolist
  157. setopt correctall autocd recexact longlistjobs
  158. setopt autoresume histignoredups pushdsilent
  159. setopt autopushd pushdminus extendedglob rcquotes mailwarning
  160. unsetopt bgnice autoparamslash
  161.  
  162. ### Autoload zsh modules when they are referenced
  163. #################################################
  164. autoload -U history-search-end
  165. zmodload -a zsh/stat stat
  166. zmodload -a zsh/zpty zpty
  167. zmodload -a zsh/zprof zprof
  168. #zmodload -ap zsh/mapfile mapfile
  169. zle -N history-beginning-search-backward-end history-search-end
  170. zle -N history-beginning-search-forward-end history-search-end
  171.  
  172. ### Set variables
  173. #################
  174. PATH="/usr/local/bin:/usr/local/sbin/:$PATH"
  175. HISTFILE=$HOME/.zhistory
  176. HISTSIZE=1000
  177. SAVEHIST=1000
  178. HOSTNAME="`hostname`"
  179. LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:';
  180.  
  181. ### Load colors
  182. ###############
  183. autoload colors zsh/terminfo
  184. if [[ "$terminfo[colors]" -ge 8 ]]; then
  185. colors
  186. fi
  187. for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
  188. eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
  189. eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
  190. (( count = $count + 1 ))
  191. done
  192.  
  193. ### Set prompt
  194. ##############
  195. PS1="$PR_LIGHT_CYAN>>%{$reset_color%} "
  196. #if [[ ! -z $MC_SID ]] { PROMPT= }
  197. #RPS1="$PR_LIGHT_CYAN(%D{%d-%m %H:%M})%{$reset_color%}"
  198. unsetopt ALL_EXPORT
  199.  
  200. ### Set alias
  201. #############
  202. alias ll='ls -al'
  203. alias ls='ls --color=auto '
  204.  
  205. ### Bind keys
  206. #############
  207. autoload -U compinit
  208. compinit
  209. bindkey "^?" backward-delete-char
  210. bindkey '^[OH' beginning-of-line
  211. bindkey '^[OF' end-of-line
  212. bindkey '^[[5~' up-line-or-history
  213. bindkey '^[[6~' down-line-or-history
  214. bindkey "^[[A" history-beginning-search-backward-end
  215. bindkey "^[[B" history-beginning-search-forward-end
  216. bindkey "^r" history-incremental-search-backward
  217. bindkey ' ' magic-space # also do history expansion on space
  218. bindkey '^I' complete-word # complete on tab, leave expansion to _expand
  219. zstyle ':completion::complete:*' use-cache on
  220. zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
  221.  
  222. zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
  223. zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
  224. zstyle ':completion:*' menu select=1 _complete _ignored _approximate
  225. zstyle -e ':completion:*:approximate:*' max-errors \
  226. 'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
  227. zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
  228.  
  229. # Completion Styles
  230.  
  231. # list of completers to use
  232. zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
  233.  
  234. # allow one error for every three characters typed in approximate completer
  235. zstyle -e ':completion:*:approximate:*' max-errors \
  236. 'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
  237.  
  238. # insert all expansions for expand completer
  239. zstyle ':completion:*:expand:*' tag-order all-expansions
  240.  
  241. # formatting and messages
  242. zstyle ':completion:*' verbose yes
  243. zstyle ':completion:*:descriptions' format '%B%d%b'
  244. zstyle ':completion:*:messages' format '%d'
  245. zstyle ':completion:*:warnings' format 'No matches for: %d'
  246. zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
  247. zstyle ':completion:*' group-name ''
  248.  
  249. # match uppercase from lowercase
  250. zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
  251.  
  252. # offer indexes before parameters in subscripts
  253. zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
  254.  
  255. # command for process lists, the local web server details and host completion
  256. # on processes completion complete all user processes
  257. zstyle ':completion:*:processes' command 'ps -au$USER'
  258.  
  259. ## add colors to processes for kill completion
  260. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  261.  
  262. zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'
  263. zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html'
  264.  
  265. zstyle ':completion:*' hosts $(awk '/^[^#]/ {print $2 $3" "$4" "$5}' /etc/hosts | grep -v ip6- && grep "^#%" /etc/hosts | awk -F% '{print $2}')
  266. # Filename suffixes to ignore during completion (except after rm command)
  267. zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
  268. '*?.old' '*?.pro'
  269.  
  270. zstyle ':completion:*:functions' ignored-patterns '_*'
  271. zstyle ':completion:*:*:*:users' ignored-patterns \
  272. adm apache bin daemon games gdm halt ident junkbust lp mail mailnull \
  273. named news nfsnobody nobody nscd ntp operator pcap postgres radvd \
  274. rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs avahi-autoipd\
  275. avahi backup messagebus beagleindex debian-tor dhcp dnsmasq fetchmail\
  276. firebird gnats haldaemon hplip irc klog list man cupsys postfix\
  277. proxy syslog www-data mldonkey sys snort
  278. # SSH Completion
  279. zstyle ':completion:*:scp:*' tag-order \
  280. files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
  281. zstyle ':completion:*:scp:*' group-order \
  282. files all-files users hosts-domain hosts-host hosts-ipaddr
  283. zstyle ':completion:*:ssh:*' tag-order \
  284. users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
  285. zstyle ':completion:*:ssh:*' group-order \
  286. hosts-domain hosts-host users hosts-ipaddr
  287. zstyle '*' single-ignored show
  288.  
  289. ### Source plugins
  290. ##################
  291. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  292.  
  293. ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
  294. # brackets
  295. ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=blue' #скобки
  296. ZSH_HIGHLIGHT_STYLES[bracket-level-2]='fg=red'
  297. ZSH_HIGHLIGHT_STYLES[bracket-level-3]='fg=yellow'
  298. ZSH_HIGHLIGHT_STYLES[bracket-level-4]='fg=magenta'
  299. ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold' # неизвестная команда
  300. # command
  301. ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=magenta,bold' # зарезервированное слово
  302. ZSH_HIGHLIGHT_STYLES[alias]='fg=yellow' # алиас
  303. ZSH_HIGHLIGHT_STYLES[builtin]='fg=green,bold' # built-in функция (например, echo)
  304. ZSH_HIGHLIGHT_STYLES[function]='fg=green,bold' # функция, определенная в шелле
  305. ZSH_HIGHLIGHT_STYLES[command]='fg=green' # обычная команда
  306. ZSH_HIGHLIGHT_STYLES[precommand]='fg=green,bold' # пре-команда (например, sudo в sudo cp ...)
  307. ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=yellow' # разделитель команд, && || ;
  308. ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=green' # команда, найденная в путях (hashed)
  309. ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue' # флаги типа -*
  310. ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue' # флаги типа --*
  311. # path
  312. ZSH_HIGHLIGHT_STYLES[path]='fg=cyan' # пути
  313. ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=cyan'
  314. ZSH_HIGHLIGHT_STYLES[path_approx]='fg=cyan'
  315. # shell
  316. ZSH_HIGHLIGHT_STYLES[globbing]='fg=cyan' # шаблон (например, /dev/sda*)
  317. ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=blue' # подстановка из истории (команда, начинающаяся с !)
  318. ZSH_HIGHLIGHT_STYLES[assign]='fg=magenta' # присвоение
  319. ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=cyan' # конструкции типа "$VARIABLE"
  320. ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=cyan' # конструкции типа \"
  321. ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=blue' # конструкции типа `command`
  322. # quotes
  323. ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=yellow,underline' # конструкции типа 'text'
  324. ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=yellow' # конструкции типа "text"
Advertisement
Add Comment
Please, Sign In to add comment