├── README.rst ├── abcde.conf ├── asoundrc ├── bash_aliases ├── bash_profile ├── bashrc ├── config ├── Xresources.colours │ ├── euphrasia │ ├── euphrasia2 │ ├── euphrasia3 │ ├── grassland │ └── lirix ├── Xresources.defaults │ ├── XCalc-col3 │ ├── Xdvi │ └── Xresources ├── Xresources.fonts │ ├── andale │ ├── anonymous │ ├── apl385 │ ├── consolas │ ├── dejavu │ ├── droid │ ├── envy-code-r │ ├── fixed │ ├── inconsolata │ ├── liberation │ ├── lucida │ ├── lucida-typewriter │ ├── luxi │ ├── menlo │ ├── monaco │ ├── mplus │ ├── ocr │ ├── pragmata │ ├── terminus │ └── ubuntu-mono ├── autostart_wm │ ├── 01-bg_mouse │ ├── 01-xbacklight │ ├── 02-xresources │ ├── 03-kbd │ ├── 03-touchpad │ ├── 03-unclutter │ ├── 04-notification │ ├── 05-clipboard │ ├── 05-urxvt │ ├── 05-wmname │ ├── 07-dropbox │ ├── 08-autosuspend │ ├── 10-loc │ └── README ├── cower │ └── config ├── dfc │ └── dfcrc ├── dmenfm │ └── preferences ├── dmenu │ └── dmenurc ├── dunst │ └── dunstrc ├── fontconfig │ ├── conf.avail │ │ ├── 20-alias-garam.conf │ │ ├── 31-repl-century-schoolbook.conf │ │ ├── 31-repl-helvetica-neue.conf │ │ ├── 31-repl-roboto.conf │ │ ├── 31-repl-template.conf │ │ ├── 60-latin.conf │ │ ├── 82-no-bitmaps.conf │ │ ├── 82-yes-bitmaps.conf │ │ ├── 95-reject-75dpi.conf │ │ └── 95-reject-freefont.conf │ ├── conf.d │ │ └── README │ ├── fonts.conf │ └── fonts.dtd ├── git │ ├── git-completion.bash │ ├── git-prompt.sh │ └── ignore ├── gtk-3.0 │ ├── bookmarks │ └── settings.ini ├── ls++ │ └── ls++.conf ├── mc │ ├── filehighlight.ini │ ├── hotlist │ ├── mc.ext │ ├── mc.keymap │ └── menu ├── mpd │ └── mpd.conf ├── mpdscribble │ └── mpdscribble.conf ├── newsbeuter │ ├── config │ ├── instapaper │ └── urls ├── surfraw │ ├── bookmarks │ ├── conf │ └── elvi │ │ ├── archpkg │ │ ├── archwiki │ │ ├── deli │ │ ├── github │ │ ├── pin │ │ ├── piratebay │ │ └── stack ├── systemd │ └── user │ │ ├── dropbox.service │ │ ├── environment.target │ │ ├── wm@.service │ │ └── xbindkeys.service ├── teiler │ └── config ├── termite │ └── config ├── tmux │ ├── inx │ ├── session │ └── xless ├── xfce4 │ └── terminal │ │ └── terminalrc └── zathura │ └── zathurarc ├── dir_colors ├── docutils ├── dwm ├── 01-statuscolorxft.patch ├── 02-borderless-monocle.patch ├── 03-centredfloating.patch ├── 04-attachaside.patch ├── 05-focusonclick.patch ├── 06-never-respect-resize-hints.patch ├── 07-addons.patch ├── 08-highlight-layout.patch ├── 09-config.mk.patch ├── 10-config.def.h.patch ├── 25-colours.patch ├── PKGBUILD ├── README ├── dwm.desktop └── dwm.install ├── etc ├── X11 │ ├── xinit │ │ ├── Xresources │ │ ├── xinitrc │ │ ├── xinitrc.d │ │ │ └── 30-dbus │ │ └── xserverrc │ └── xorg.conf.d │ │ ├── 10-evdev.conf │ │ ├── 10-quirks.conf │ │ ├── 10-touchpad.conf │ │ ├── 20-intel.conf │ │ ├── 20-xkmap.conf │ │ └── 90-monitor.conf ├── conf.d │ └── devmon └── systemd │ └── system │ ├── arch32.service │ ├── devmon@.service │ ├── mpd@.service │ ├── mpdscribble@.service │ └── wifi@.service ├── gtkrc-2.0 ├── latexmkrc ├── local ├── bin │ ├── 0-mkchroot-i686 │ ├── 0-mkchroot-x86_64 │ ├── 1-build-i686 │ ├── 1-build-x86_64 │ ├── 2-repomk │ ├── 3-upload │ ├── acrobat │ ├── adobe-air │ ├── arch32 │ ├── bash-history-cleanup │ ├── batstat.sh │ ├── brightness │ ├── build-local │ ├── chk_connection.sh │ ├── chk_port.sh │ ├── chr │ ├── colors │ ├── colortheme │ ├── conpalette │ ├── cr │ ├── cue2tracks │ ├── dmenfm │ ├── dmenu-dwm │ ├── dmenu-launch │ ├── dmenu-scrot │ ├── dmenu_path │ ├── dmesgh │ ├── dwm-exit │ ├── dwm-start │ ├── dwm-status │ ├── gpartedr │ ├── gtkrc-reload │ ├── hddtmp.sh │ ├── ip.sh │ ├── iploc.sh │ ├── lesspipe.sh │ ├── loc.sh │ ├── lowerit │ ├── m │ ├── mac-win │ ├── mpl │ ├── mplm3u │ ├── netspeed.sh │ ├── opera_start │ ├── pkgstat │ ├── radio │ ├── sda.sh │ ├── snap │ ├── speed.sh │ ├── sysinfo │ ├── teiler │ ├── texclean │ ├── ttf2eot-batch.sh │ ├── uptime.sh │ ├── urxvt-fm │ ├── urxvt-mutt │ ├── urxvt-pad │ ├── urxvt-term │ ├── urxvt-tmux │ ├── vim-bin │ ├── vm_arch │ ├── vm_lenny │ ├── winecfg │ └── xelmake └── share │ └── mc │ └── skins │ ├── newdark.ini │ └── ovidiu.ini ├── mplayer ├── codecs.conf ├── config └── input.conf ├── mpv ├── config └── input.conf ├── msmtprc ├── mutt ├── certificates │ ├── Equifax_Secure_CA.crt │ ├── Thawte_Premium_Server_CA.pem │ ├── ca-bundle.crt │ ├── certdata.txt │ └── mk-ca-bundle.pl ├── colors.muttrc ├── gpg.rc ├── mailcap ├── muttrc └── rh.muttrc ├── ncmpcpp └── config ├── tigrc ├── tmux.conf ├── toprc ├── urlview ├── vim ├── colors │ ├── eu3writer.vim │ ├── euphrasia3.vim │ └── euphrasia3r.vim ├── syntax │ ├── apvlv.vim │ ├── asciidoc.vim │ ├── awk.vim │ ├── bash.vim │ ├── conkyrc.vim │ ├── gtkrc.vim │ ├── haskell.vim │ ├── html.vim │ ├── json.vim │ ├── mplayerconf.vim │ ├── mpsub.vim │ ├── muttrc.vim │ ├── openvpn.vim │ ├── pagemaker.vim │ ├── perl.vim │ ├── perldoc.vim │ ├── ruby.vim │ ├── sh.vim │ ├── srt.vim │ ├── sub.vim │ ├── tex.vim │ ├── tmux.vim │ ├── todo.vim │ ├── txt2tags.vim │ ├── vim.vim │ ├── vimperator.vim │ ├── xf86conf.vim │ └── zsh.vim └── vimrc ├── w3m ├── config └── keymap ├── xinitrc └── xsession /README.rst: -------------------------------------------------------------------------------- 1 | 2 | A collection of config files, mostly distro agnostic, from ``/etc`` & ``$HOME``. 3 | 4 | -------------------------------------------------------------------------------- /asoundrc: -------------------------------------------------------------------------------- 1 | # default device 2 | pcm.!default { 3 | type plug 4 | slave.pcm "softvol" 5 | } 6 | 7 | # main output 8 | pcm.dmixer { 9 | type asym 10 | playback.pcm { 11 | type dmix 12 | ipc_key 1024 13 | slave { 14 | pcm "hw:0" 15 | format S16_LE 16 | period_time 0 17 | period_size 512 18 | buffer_size 24000 19 | rate 48000 20 | } 21 | bindings { 22 | 0 0 23 | 1 1 24 | } 25 | } 26 | } 27 | 28 | # input 29 | pcm.dsnooper { 30 | type dsnoop 31 | ipc_key 1024 32 | slave { 33 | pcm "hw:0" 34 | format S16_LE 35 | channels 2 36 | period_time 0 37 | period_size 512 38 | buffer_size 24000 39 | rate 48000 40 | } 41 | bindings { 42 | 0 0 43 | 1 1 44 | } 45 | } 46 | 47 | # software volume 48 | pcm.softvol { 49 | type softvol 50 | slave { 51 | pcm "dmixer" 52 | } 53 | control { 54 | name "SoftMaster" 55 | card 0 56 | } 57 | } 58 | ctl.!default { 59 | type hw 60 | card 0 61 | } 62 | ctl.softvol { 63 | type hw 64 | card 0 65 | } 66 | ctl.dmixer { 67 | type hw 68 | card 0 69 | } 70 | 71 | # mpd volume control 72 | pcm.mpdvol { 73 | type softvol 74 | slave { 75 | pcm "dmixer" 76 | #pcm "softvol" 77 | } 78 | control { 79 | name "MPD" 80 | card 0 81 | } 82 | } 83 | # ctrl for mpd volume 84 | ctl.mpdvol { 85 | type hw 86 | card 0 87 | } 88 | 89 | # mpv volume control 90 | pcm.mpv { 91 | type softvol 92 | slave { 93 | pcm "ladcomp_compressor" 94 | pcm "dmixer" 95 | #pcm "softvol" 96 | } 97 | control { 98 | name "MPV" 99 | card 0 100 | } 101 | } 102 | ctl.mpvvol { 103 | type hw 104 | card 0 105 | } 106 | 107 | # flash plugin volume control 108 | pcm.firefox { 109 | type softvol 110 | slave { 111 | pcm "ladcomp_compressor" 112 | pcm "dmixer" 113 | #pcm "softvol" 114 | } 115 | control { 116 | name "Firefox" 117 | card 0 118 | } 119 | } 120 | # ctrl for flash volume 121 | ctl.firefoxvol { 122 | type hw 123 | card 0 124 | } 125 | 126 | # wine output 127 | pcm.wine { 128 | type plug 129 | slave.pcm "hw:0" # direct output 130 | #slave.pcm "dmixer" 131 | #slave.pcm "softvol" 132 | } 133 | 134 | # ladspa plugins 135 | pcm.ladcomp_compressor { 136 | type ladspa 137 | slave.pcm "ladcomp_limiter" 138 | path "/usr/lib/ladspa" 139 | plugins [ 140 | { 141 | label dysonCompress 142 | input { 143 | # peak limit, release time, fast ratio, ratio 144 | controls [ 2 1 0.5 0.99 ] 145 | } 146 | } 147 | ] 148 | } 149 | 150 | pcm.ladcomp_limiter { 151 | type ladspa 152 | slave.pcm "plug:movie8930" 153 | path "/usr/lib/ladspa" 154 | plugins [ 155 | { 156 | label fastLookaheadLimiter 157 | input { 158 | # InputGain(Db) -20 -> +20 ; Limit (db) -20 -> 0 ; Release time (s) 0.01 -> 2 159 | # also possible... 20 0 0.8 160 | # If movie is too quiet, increase the first number. 161 | controls [ 5 0 0.8 ] 162 | } 163 | } 164 | ] 165 | } 166 | 167 | pcm.movie8930 { 168 | type route 169 | slave { 170 | #pcm "dmixer" 171 | pcm "softvol" 172 | } 173 | } 174 | 175 | -------------------------------------------------------------------------------- /bash_aliases: -------------------------------------------------------------------------------- 1 | # vim:ft=sh 2 | 3 | # Normal aliases 4 | alias ls="BLOCK_SIZE=\'1 ls -F --color=auto" #thousands grouping 5 | alias ll='ls -alF' 6 | alias la='ls -A' 7 | alias l='ls -CF' 8 | alias lsd='ls -l --sort=t' 9 | alias lss='ls++' 10 | alias f='find |grep' 11 | alias dir='dir --color=auto' 12 | alias grep="grep --color=auto" 13 | alias fgrep='fgrep --color=auto' 14 | alias egrep='egrep --color=auto' 15 | alias hist="grep '$1' /home/bohoomil/.bash_history" 16 | alias irssi="irssi -c irc.freenode.net -n yyz" 17 | alias mem="free -m" 18 | alias IP='$HOME/.local/bin/iploc.sh' 19 | alias info='pinfo' 20 | alias dmesg='dmesg -L -H --reltime' 21 | alias adobe-air="schroot -p -- adobe-air" 22 | alias bc='bc -l' 23 | alias hd='df -h -t ext4' 24 | alias su='su -' 25 | alias iftop='sudo iftop -c ~/.iftop.conf' 26 | alias mupdf='mupdf -b 8' 27 | alias ytdl480="youtube-dl -f mp4 --max-quality=35 -t" 28 | alias ytdl720="youtube-dl -f mp4 --max-quality=22 -t" 29 | alias ytdl1080="youtube-dl -f mp4 --max-quality=37 -t" 30 | alias oo="/usr/bin/xdg-open" 31 | alias gparted='urxvtc -geometry "70x10" -e sh -c "sudo gparted"' 32 | alias manl='PAGER='\''less -X'\'' man' 33 | alias manv='PAGER=vimpager man' 34 | alias wine='schroot -pqd "$(pwd)" -- wine' 35 | 36 | alias homer="ssh bohoomil@192.168.1.2" 37 | alias bkp_sftp='sftp -F ~/.ssh_config bohoomil@tarbackup.com' 38 | 39 | # pm 40 | alias shut='sudo poweroff' 41 | 42 | # devel 43 | alias pacman='sudo pacman' 44 | alias latexmk='latexmk -xelatex -pvc -interaction=nonstopmode' 45 | 46 | ## dwm settings 47 | alias dwmrc="cd /mnt/sda2/arch-pkgs/abs/dwm.xft && vim config.h && makepkg -f -irc && cd" 48 | 49 | # Mounts 50 | alias ua='devmon --unmount-all --no-gui' 51 | alias um='udevil mount' 52 | alias uu='udevil umount' 53 | 54 | # Places 55 | alias bkp='cd /mnt/sda2/BACKUP' 56 | alias eb='cd /mnt/sda3/documents/eBooks' 57 | alias not='cd /mnt/sda3/documents/0_notes' 58 | alias vid='cd /mnt/sda3/videos' 59 | alias doc='cd /mnt/sda3/documents' 60 | alias rec='cd /mnt/sda3/recent' 61 | alias pro='cd /mnt/sda2/projects' 62 | alias pic='cd /mnt/sda3/pictures' 63 | alias dw='cd /mnt/sda3/downloads' 64 | alias ib='cd /mnt/sda2/ib-build' 65 | alias pkg='cd /mnt/sda2/arch-pkgs' 66 | alias bin='cd /home/bohoomil/.local/bin' 67 | alias cd1='cd /home/bohoomil' 68 | alias cd2='cd /mnt/sda2' 69 | alias cd3='cd /mnt/sda3' 70 | 71 | # VPN 72 | alias vpnu='sudo systemctl start openvpn@openvpn.service' 73 | alias vpnd='sudo systemctl stop openvpn@openvpn.service' 74 | alias vpnr='sudo systemctl restart openvpn@openvpn.service' 75 | alias netspeedwlp='netspeed.sh wlp2s0' 76 | 77 | # hg 78 | alias hgp='hg pull' 79 | alias hgu='hg update' 80 | 81 | # cue2tracks 82 | # *.cue file = CDImage.cue 83 | alias cuefl='cue2tracks -C -c flac -o "%N %t" *.cue' 84 | alias cueflr='cue2tracks -CR -c flac -o "%N %t" *.cue' 85 | alias cuemp3='cue2tracks -C -c mp3 -B 320 -o "%N %t" *.cue' 86 | alias cuemp3r='cue2tracks -CR -c mp3 -B 320 -o "%N %t" *.cue' 87 | alias ripcue='abcde -1 -o flac -a default,cue' 88 | 89 | # tagging 90 | # flac & mp3 91 | alias tagmp3="mp3info -x" 92 | alias tagflac="metaflac --show-tag=TITLE --show-tag=ARTIST --show-tag=ALBUM --show-tag=TRACKNUMBER --show-tag=GENRE --show-tag=COMMENT --show-tag=DATE --show-sample-rate --show-channels" 93 | 94 | #Show progress while file is copying 95 | # Rsync options are: 96 | # -p - preserve permissions 97 | # -o - preserve owner 98 | # -g - preserve group 99 | # -h - output in human-readable format 100 | # --progress - display progress 101 | # -b - instead of just overwriting an existing file, save the original 102 | # --backup-dir=/tmp/rsync - move backup copies to "/tmp/rsync" 103 | # -e /dev/null - only work on local files 104 | # -- - everything after this is an argument, even if it looks like an option 105 | 106 | alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --" 107 | alias mvv="rsync -av --progress -h --remove-source-files" 108 | alias rsync-update="rsync -avu --progress -h" 109 | alias rsync-synchronize="rsync -avu --delete --progress -h" 110 | 111 | -------------------------------------------------------------------------------- /bash_profile: -------------------------------------------------------------------------------- 1 | # source .bashrc {{{ 2 | if [ -r ~/.bashrc ]; then 3 | . ~/.bashrc; 4 | fi 5 | #}}} 6 | 7 | # environmental defaults {{{ 8 | export EDITOR="vim" 9 | export FCEDIT="vim" 10 | export VISUAL="vim" 11 | export CHROOT='/mnt/sda2/ArchBuilds' 12 | export BROWSER='firefox' 13 | export QT_XFT="true" 14 | export GDK_USE_XFT="1" 15 | export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd_hrgb' 16 | export TIME_STYLE="long-iso" 17 | export GTK2_RC_FILES='/usr/local/share/gtk-2.0/gtkrc' 18 | export LESS="-i -n -c -z-6 -g -M -R" 19 | export LESSCHARSET='utf-8' 20 | export LESSOPEN="|$HOME/.local/bin/lesspipe.sh %s 2>&-" 21 | export LESSCOLORIZER="pygmentize" 22 | export PYGMENTS_STYLE="euphrasia" 23 | export PYGMENTS_BG="dark" 24 | export PAGER="less" 25 | export VIEWER=$PAGER 26 | export SYSTEMD_PAGER=$PAGER 27 | #export SAL_USE_VCLPLUGIN="gtk lowriter" 28 | #export GSETTINGS_BACKEND=dconf 29 | #export http_proxy="localhost:8118" 30 | 31 | alias wine='schroot -pqd "$(pwd)" -- wine' 32 | #}}} 33 | 34 | # gpg & ssh {{{ 35 | /usr/bin/keychain -Q -q --nogui id_rsa 36 | 37 | [ -z "$HOSTNAME" ] && HOSTNAME=$(uname -n) 38 | [ -f $HOME/.keychain/${HOSTNAME}-sh ] && source $HOME/.keychain/${HOSTNAME}-sh 39 | [ -f $HOME/.keychain/${HOSTNAME}-sh-gpg ] && source $HOME/.keychain/${HOSTNAME}-sh-gpg 40 | 41 | [ $? == 0 ] && clear 42 | 43 | #GPG_TTY=$(tty) 44 | #export GPG_TTY 45 | #}}} 46 | 47 | # less colors for man pages {{{ 48 | export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking 49 | export LESS_TERMCAP_me=$'\E[0m' # end blinking 50 | export LESS_TERMCAP_md=$'\E[01;34m' # begin bold / blue 51 | export LESS_TERMCAP_me=$'\E[0m' # end mode 52 | export LESS_TERMCAP_so=$'\E[00;40;01;32m' # begin standout-mode (info box) 53 | export LESS_TERMCAP_se=$'\E[0m' # end standout-mode 54 | export LESS_TERMCAP_us=$'\E[01;33m' # begin underline 55 | export LESS_TERMCAP_ue=$'\E[0m' # end underline 56 | #}}} 57 | 58 | # console colours & cope {{{ 59 | if [ "$TERM" = "linux" ]; then 60 | conpalette euphrasia 61 | fi 62 | #}}} 63 | 64 | # startx {{{ 65 | if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then 66 | exec startx -- -nolisten tcp vt1 &>/dev/null 67 | logout 68 | elif [[ $(tty) = /dev/tty2 ]]; then 69 | tmux 70 | fi 71 | #}}} 72 | 73 | # vim:ft=sh:fdm=marker 74 | -------------------------------------------------------------------------------- /config/Xresources.colours/euphrasia: -------------------------------------------------------------------------------- 1 | !! euphrasia colours by bohoomil 2 | 3 | !! fg / bg for .Xdefaults / .Xresources 4 | ! URxvt*background: #090C19 5 | ! URxvt*foreground: #E6E6E6 6 | ! URxvt*cursorColor: #1AAA13 7 | 8 | ! euphrasia fg/bg 9 | URxvt*background: #090C19 10 | URxvt*foreground: #E6E6E6 11 | URxvt*cursorColor: #1AAA13 12 | 13 | *background: #D0CECB 14 | *foreground: #090C19 15 | 16 | ! black 17 | *color0: #222946 18 | ! dark grey 19 | *color8: #8C8B89 20 | 21 | ! red 22 | *color1: #BE1919 23 | ! bright red 24 | *color9: #DC2F32 25 | 26 | ! green 27 | *color2: #1AAA13 28 | ! bright green 29 | *color10: #5DCE33 30 | 31 | ! yellow 32 | *color3: #FFAA3E 33 | ! bright yellow 34 | *color11: #FADD2D 35 | 36 | ! blue 37 | *color4: #3753CC 38 | ! bright blue 39 | *color12: #507CFF 40 | 41 | ! magenta 42 | *color5: #BE007F 43 | ! bright magenta 44 | *color13: #E65CD0 45 | 46 | ! cyan 47 | *color6: #14BDCC 48 | ! bright cyan 49 | *color14: #48F3F3 50 | 51 | ! light grey 52 | *color7: #AEAEAE 53 | ! white 54 | *color15: #DBDDE4 55 | 56 | !! Colours for the Linux console 57 | !! for use with conpalette 58 | !! (https://github.com/hinrik/conpalette): 59 | ! 60 | !'euphrasia' => [ 61 | ! '000000', #black 62 | ! 'BE1919', #darkred 63 | ! '1AAA13', #darkgreen 64 | ! 'FFAA3E', #brown 65 | ! '3753CC', #darkblue 66 | ! 'BE007F', #darkmagenta 67 | ! '14BDCC', #darkcyan 68 | ! 'AEAEAE', #lightgrey 69 | ! 70 | ! '8C8B89', #darkgrey 71 | ! 'DC2F32', #red 72 | ! '5DCE33', #green 73 | ! 'FADD2D', #yellow 74 | ! '507CFF', #blue 75 | ! 'E65CD0', #magenta 76 | ! '48F3F3', #cyan 77 | ! 'DBDDE4', #white 78 | ! ], 79 | ! 80 | !! ... or in .profile/.bash_profile/.bashrc, etc.: 81 | ! 82 | !if [ "$TERM" = "linux" ]; then 83 | ! echo -en "\e]P0000000" #black 84 | ! echo -en "\e]P88C8B89" #darkgrey 85 | ! echo -en "\e]P1BE1919" #darkred 86 | ! echo -en "\e]P9DC2F32" #red 87 | ! echo -en "\e]P21AAA13" #darkgreen 88 | ! echo -en "\e]PA5DCE33" #green 89 | ! echo -en "\e]P3FFAA3E" #brown 90 | ! echo -en "\e]PBFADD2D" #yellow 91 | ! echo -en "\e]P43753CC" #darkblue 92 | ! echo -en "\e]PC507CFF" #blue 93 | ! echo -en "\e]P5BE007F" #darkmagenta 94 | ! echo -en "\e]PDE65CD0" #magenta 95 | ! echo -en "\e]P614BDCC" #darkcyan 96 | ! echo -en "\e]PE48F3F3" #cyan 97 | ! echo -en "\e]P7AEAEAE" #lightgrey 98 | ! echo -en "\e]PFDBDDE4" #white 99 | ! clear # default input colours 100 | !fi 101 | 102 | ! vim:ft=xdefaults 103 | -------------------------------------------------------------------------------- /config/Xresources.colours/euphrasia2: -------------------------------------------------------------------------------- 1 | !! euphrasia v2 by bohoomil 2 | 3 | ! euphrasia fg/bg 4 | URxvt*background: #090C19 5 | URxvt*foreground: #E6E6E6 6 | URxvt*cursorColor: #1AAA13 7 | 8 | ! X.org apps bg/fg 9 | *background: #D0CECB 10 | *foreground: #090C19 11 | 12 | ! black 13 | *color0: #222946 14 | ! dark grey 15 | *color8: #8C8B89 16 | 17 | ! red 18 | *color1: #B32323 19 | ! bright red 20 | *color9: #DC2C2C 21 | 22 | ! green 23 | *color2: #1AAA13 24 | ! bright green 25 | *color10: #5DCE33 26 | 27 | ! yellow 28 | *color3: #FF9F3E 29 | ! bright yellow 30 | *color11: #E6CB29 31 | 32 | ! blue 33 | *color4: #4957F3 34 | ! bright blue 35 | *color12: #4D79FF 36 | 37 | ! magenta 38 | *color5: #BF3E94 39 | ! bright magenta 40 | *color13: #B641CC 41 | 42 | ! cyan 43 | *color6: #09A5B3 44 | ! bright cyan 45 | *color14: #3CB6F3 46 | 47 | ! light grey 48 | *color7: #AEAEAE 49 | ! white 50 | *color15: #DBDDE4 51 | 52 | !! Colours for the Linux console 53 | !! for use with conpalette 54 | !! (https://github.com/hinrik/conpalette): 55 | ! 56 | ! 'euphrasia' => [ 57 | ! '000000', #black 58 | ! 'B32323', #darkred 59 | ! '1AAA13', #darkgreen 60 | ! 'FF9F3E', #brown 61 | ! '4957F3', #darkblue 62 | ! 'BF3E94', #darkmagenta 63 | ! '09A5B3', #darkcyan 64 | ! 'AEAEAE', #lightgrey 65 | ! 66 | ! '8C8B89', #darkgrey 67 | ! 'DC2C2C', #red 68 | ! '5DCE33', #green 69 | ! 'E6CB29', #yellow 70 | ! '4D79FF', #blue 71 | ! 'AA3DBF', #magenta 72 | ! '3CB6F3', #cyan 73 | ! 'DBDDE4', #white 74 | ! ], 75 | ! 76 | !! ... or in .profile/.bash_profile/.bashrc, etc.: 77 | ! 78 | !if [ "$TERM" = "linux" ]; then 79 | ! echo -en "\e]P0000000" #black 80 | ! echo -en "\e]P88C8B89" #darkgrey 81 | ! echo -en "\e]P1B32323" #darkred 82 | ! echo -en "\e]P9DC2C2C" #red 83 | ! echo -en "\e]P21AAA13" #darkgreen 84 | ! echo -en "\e]PA5DCE33" #green 85 | ! echo -en "\e]P3FF9F3E" #brown 86 | ! echo -en "\e]PBE6CB29" #yellow 87 | ! echo -en "\e]P44957F3" #darkblue 88 | ! echo -en "\e]PC4D79FF" #blue 89 | ! echo -en "\e]P5BF3E94" #darkmagenta 90 | ! echo -en "\e]PDB641CC" #magenta 91 | ! echo -en "\e]P609A5B3" #darkcyan 92 | ! echo -en "\e]PE3CB6F3" #cyan 93 | ! echo -en "\e]P7AEAEAE" #lightgrey 94 | ! echo -en "\e]PFDBDDE4" #white 95 | ! clear # default input colours 96 | !fi 97 | ! vim:ft=xdefaults 98 | -------------------------------------------------------------------------------- /config/Xresources.colours/euphrasia3: -------------------------------------------------------------------------------- 1 | !! variation by bohoomil 2 | 3 | ! variation fg/bg 4 | URxvt*background: #060912 5 | URxvt*foreground: #d9d9d9 6 | URxvt*cursorColor: #1aaa13 7 | 8 | ! X.org apps bg/fg 9 | *background: #d0cecb 10 | *foreground: #060912 11 | 12 | ! black 13 | !*color0: #1a1f36 14 | *color0: #121626 15 | ! dark grey 16 | *color8: #8c8b89 17 | 18 | ! red 19 | *color1: #a63131 20 | ! bright red 21 | *color9: #cc475d 22 | 23 | ! green 24 | *color2: #3b8c38 25 | ! bright green 26 | *color10: #5eb33e 27 | 28 | ! yellow 29 | *color3: #b37b2d 30 | ! bright yellow 31 | *color11: #cca851 32 | 33 | ! blue 34 | *color4: #3a63a6 35 | ! bright blue 36 | *color12: #8496cc 37 | 38 | ! magenta 39 | *color5: #a562b3 40 | ! bright magenta 41 | *color13: #bf567d 42 | 43 | ! cyan 44 | *color6: #4682B4 45 | ! bright cyan 46 | *color14: #69a3bf 47 | 48 | ! light grey 49 | *color7: #aeaeae 50 | ! white 51 | *color15: #dbdde4 52 | 53 | ! vim:ft=xdefaults 54 | -------------------------------------------------------------------------------- /config/Xresources.colours/grassland: -------------------------------------------------------------------------------- 1 | ! grassland by bohoomil 2 | 3 | *background: #0d1926 4 | *foreground: #d9e6f2 5 | *cursorColor: #238c0e 6 | 7 | ! black 8 | *color0: #00070d 9 | ! dark gray 10 | *color8: #666666 11 | 12 | ! red 13 | *color1: #a83a71 14 | ! bright red 15 | *color9: #d78bb1 16 | 17 | ! green 18 | *color2: #71a83a 19 | ! bright green 20 | *color10: #b1d78b 21 | 22 | ! yellow 23 | *color3: #a8713a 24 | ! bright yellow 25 | *color11: #d7b18b 26 | 27 | ! blue 28 | *color4: #3a71a8 29 | ! bright blue 30 | *color12: #8bb1d7 31 | 32 | ! magenta 33 | *color5: #713aa8 34 | ! bright magenta 35 | *color13: #b18bd7 36 | 37 | ! cyan 38 | *color6: #3aa871 39 | ! bright cyan 40 | *color14: #8bd7b1 41 | 42 | ! light gray 43 | *color7: #a6a6a6 44 | ! white 45 | *color15: #e6e6e6 46 | 47 | ! vim:ft=xdefaults 48 | -------------------------------------------------------------------------------- /config/Xresources.colours/lirix: -------------------------------------------------------------------------------- 1 | !! lirix by bohoomil 2 | 3 | ! lirix fg/bg 4 | URxvt*background: #00243f 5 | URxvt*foreground: #d9d9d9 6 | URxvt*cursorColor: #1aaa13 7 | 8 | ! X.org apps bg/fg 9 | *background: #d0cecb 10 | *foreground: #060912 11 | 12 | ! black 13 | *color0: #13334d 14 | ! dark grey 15 | *color8: #737580 16 | 17 | ! red 18 | *color1: #cc553d 19 | ! bright red 20 | *color9: #e64560 21 | 22 | ! green 23 | *color2: #55ab55 24 | ! bright green 25 | *color10: #3ed43e 26 | 27 | ! yellow 28 | *color3: #b39e36 29 | ! bright yellow 30 | *color11: #d9af48 31 | 32 | ! blue 33 | *color4: #6281b3 34 | ! bright blue 35 | *color12: #7e8fe6 36 | 37 | ! magenta 38 | *color5: #ae7fc4 39 | ! bright magenta 40 | *color13: #e65c89 41 | 42 | ! cyan 43 | *color6: #45b0a2 44 | ! bright cyan 45 | *color14: #62b4c4 46 | 47 | ! light grey 48 | *color7: #bcbcbc 49 | ! white 50 | *color15: #d0d0d0 51 | 52 | ! vim:ft=xdefaults 53 | -------------------------------------------------------------------------------- /config/Xresources.defaults/XCalc-col3: -------------------------------------------------------------------------------- 1 | #include "XCalc" 2 | 3 | !xcalc----------------------------------------------------------------------- 4 | !xcalc*geometry: 200x275 5 | xcalc.ti.bevel.background: #111111 6 | xcalc.ti.bevel.screen.background: #000000 7 | xcalc.ti.bevel.screen.DEG.background: #000000 8 | xcalc.ti.bevel.screen.DEG.foreground: LightSeaGreen 9 | xcalc.ti.bevel.screen.GRAD.background: #000000 10 | xcalc.ti.bevel.screen.GRAD.foreground: LightSeaGreen 11 | xcalc.ti.bevel.screen.RAD.background: #000000 12 | xcalc.ti.bevel.screen.RAD.foreground: LightSeaGreen 13 | xcalc.ti.bevel.screen.INV.background: #000000 14 | xcalc.ti.bevel.screen.INV.foreground: Red 15 | xcalc.ti.bevel.screen.LCD.background: #000000 16 | xcalc.ti.bevel.screen.LCD.foreground: LightSeaGreen 17 | xcalc.ti.bevel.screen.LCD.shadowWidth: 0 18 | xcalc.ti.bevel.screen.M.background: #000000 19 | xcalc.ti.bevel.screen.M.foreground: LightSeaGreen 20 | xcalc.ti.bevel.screen.P.background: #000000 21 | xcalc.ti.bevel.screen.P.foreground: Yellow 22 | xcalc.ti.Command.foreground: White 23 | xcalc.ti.Command.background: #777777 24 | xcalc.ti.button5.background: Orange3 25 | xcalc.ti.button19.background: #611161 26 | xcalc.ti.button18.background: #611161 27 | xcalc.ti.button20.background: #611111 28 | !uncomment to change label on division button 29 | !xcalc.ti.button20.label: / 30 | xcalc.ti.button25.background: #722222 31 | xcalc.ti.button30.background: #833333 32 | xcalc.ti.button35.background: #944444 33 | xcalc.ti.button40.background: #a55555 34 | xcalc.ti.button22.background: #222262 35 | xcalc.ti.button23.background: #222262 36 | xcalc.ti.button24.background: #222272 37 | xcalc.ti.button27.background: #333373 38 | xcalc.ti.button28.background: #333373 39 | xcalc.ti.button29.background: #333373 40 | xcalc.ti.button32.background: #444484 41 | xcalc.ti.button33.background: #444484 42 | xcalc.ti.button34.background: #444484 43 | xcalc.ti.button37.background: #555595 44 | xcalc.ti.button38.background: #555595 45 | xcalc.ti.button39.background: #555595 46 | !XCalc*Cursor: hand2 47 | !XCalc*ShapeStyle: rectangle 48 | -------------------------------------------------------------------------------- /config/Xresources.defaults/Xdvi: -------------------------------------------------------------------------------- 1 | ! xdvi ! 2 | xdvi.shrinkFactor: 7 3 | xdvi.keepPosition: True 4 | xdvi.gsAlpha: True 5 | xdvi.gamma: 1.200000 6 | xdvi.geometry: 802x1023 7 | 8 | ! vim:ft=xdefaults 9 | -------------------------------------------------------------------------------- /config/Xresources.defaults/Xresources: -------------------------------------------------------------------------------- 1 | ! --- .Xresources by bohoomil 2 | ! --- URxvt defaults 3 | URxvt*geometry: 80x44 4 | URxvt*cursorBlink: 1 5 | URxvt*cursorUnderline: 0 6 | URxvt*urgentOnBell: true 7 | URxvt*letterSpace: -0.2 8 | URxvt*internalBorder: 2 9 | URxvt*scrollBar: false 10 | URxvt.transparent: false 11 | 12 | ! --- clickable links, etc. 13 | URxvt.perl-ext-common: default,url-select,matcher 14 | URxvt.keysym.M-u: perl:url-select:select_next 15 | URxvt.url-select.launcher: firefox 16 | URxvt.underlineURLs: false 17 | URxvt.matcher.button: 1 18 | URxvt.matcher.rend.0: fg33 bg1 19 | 20 | ! --- default fonts for xorg apps 21 | *font: -*-fixed-medium-r-normal-*-*-130-*-*-*-*-iso10646-1 22 | *boldFont: -*-fixed-medium-r-normal-*-*-130-*-*-*-*-iso10646-1 23 | 24 | ! -- mouse 25 | Xcursor.theme: Neutral++ 26 | Xcursor.size: 22 27 | 28 | ! -- xvkbd 29 | xvkbd.windowGeometry: 500x240+0+16 30 | xvkbd.resizable: false 31 | xvkbd.autoRepeat: false 32 | xvkbd.keypad: false 33 | xvkbd.customization: -latin1 34 | 35 | ! -- Tk theme 36 | *TkTheme: clam 37 | 38 | ! --- font, colour, X.org apps 39 | #include "/usr/local/etc/X11/fonts/envy-code-r" 40 | #include "/usr/local/etc/X11/colours/lirix" 41 | 42 | #include "/usr/local/etc/X11/app-defaults/Xdvi" 43 | -------------------------------------------------------------------------------- /config/Xresources.fonts/andale: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:andale mono:pixelsize=14 3 | URxvt.boldFont:xft:andale mono:pixelsize=14 4 | URxvt.italicFont:xft:andale mono:pixelsize=14 5 | URxvt.boldItalicFont:xft:andale mono:pixelsize=14 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/anonymous: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:anonymous pro:style=regular:pixelsize=15 3 | URxvt.boldFont:xft:anonymous pro:style=regular:pixelsize=15 4 | URxvt.italicFont:xft:anonymous pro:style=italic:pixelsize=15 5 | URxvt.boldItalicFont:xftanonymous pro:style=italic:pixelsize=15 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/apl385: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:apl385 unicode:style=regular:pixelsize=14 3 | URxvt.boldFont:xft:apl385 unicode:style=regular:pixelsize=14 4 | URxvt.italicFont:xft:apl385 unicode:style=regular:pixelsize=14 5 | URxvt.boldItalicFont:xft:apl385 unicode:style=regular:pixelsize=14 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/consolas: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:consolas:style=regular:pixelsize=14:antialias=false 3 | URxvt.boldFont:xft:consolas:style=regular:pixelsize=14:antialias=false 4 | URxvt.italicFont:xft:consolas:style=italic:pixelsize=14:antialias=false 5 | URxvt.boldItalicFont:xft:consolas:style=italic:pixelsize=14:antialias=false 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/dejavu: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:DejaVu Sans Mono:style=Book:pixelsize=13 3 | URxvt.boldFont:xft:DejaVu Sans Mono:style=Book:pixelsize=13 4 | URxvt.italicFont:xft:DejaVu Sans Mono:style=Oblique:pixelsize=13 5 | URxvt.boldItalicFont:xft:DejaVu Sans Mono:style=Oblique:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/droid: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:droid sans mono slashed:style=regular:pixelsize=13 3 | URxvt.boldFont:xft:droid sans mono slashed:style=regular:pixelsize=13 4 | URxvt.italicFont:xft:droid sans mono slashed:style=regular:pixelsize=13 5 | URxvt.boldItalicFont:xft:droid sans mono slashed:style=regular:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/envy-code-r: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:Envy Code R:Regular:pixelsize=13 3 | URxvt.boldFont:xft:Envy Code R:Regular:pixelsize=13 4 | URxvt.italicFont:xft:Envy Code R:Italic:pixelsize=13 5 | URxvt.boldItalicFont:xft:Envy Code R:Italic:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/fixed: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font: -*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-1 3 | URxvt.boldFont: -*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-1 4 | URxvt.italicFont: -*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-1 5 | URxvt.boldItalicFont: -*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso10646-1 6 | 7 | ! vim:ft=xdefaults: 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/inconsolata: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:inconsolata:style=medium:pixelsize=16 3 | URxvt.boldFont:xft:inconsolata:style=medium:pixelsize=16 4 | URxvt.italicFont:xft:inconsolata:style=medium:pixelsize=16 5 | URxvt.boldItalicFont:xft:inconsolata:style=medium:pixelsize=16 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/liberation: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:liberation mono:style=regular:pixelsize=13 3 | URxvt.boldFont:xft:liberation mono:style=regular:pixelsize=13 4 | URxvt.italicFont:xft:liberation mono:style=italic:pixelsize=13 5 | URxvt.boldItalicFont:xft:liberation mono:style=italic:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/lucida: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font: -*-lucidatypewriter-medium-*-*-*-*-120-*-75-*-*-iso10646-1 3 | URxvt.boldFont: -*-lucidatypewriter-medium-*-*-*-*-120-*-75-*-*-iso10646-1 4 | URxvt.italicFont: -*-lucidatypewriter-medium-*-*-*-*-120-*-75-*-*-iso10646-1 5 | URxvt.boldItalicFont: -*-lucidatypewriter-medium-*-*-*-*-120-*-75-*-*-iso10646-1 6 | 7 | ! vim:ft=xdefaults: 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/lucida-typewriter: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:lucida sans typewriter:style=regular:pixelsize=13 3 | URxvt.boldFont:xft:lucida sans typewriter:style=regular:pixelsize=13 4 | URxvt.italicFont:xft:lucida sans typewriter:stye=regular:pixelsize=13 5 | URxvt.boldItalicFont:xft:lucida sans typewriter:style=regular:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/luxi: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:luxi mono:style=Regular:pixelsize=13 3 | URxvt.boldFont:xft:luxi mono:style=Regular:pixelsize=13 4 | URxvt.italicFont:xft:luxi mono:style=Oblique:pixelsize=13 5 | URxvt.boldItalicFont:xft:luxi mono:style=Oblique:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/menlo: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:Menlo:style=Regular:pixelsize=14 3 | URxvt.boldFont:xft:Menlo:style=Regular:pixelsize=14 4 | URxvt.italicFont:xft:Menlo:style=Regular:pixelsize=14 5 | URxvt.boldItalicFont:xft:Menlo:style=Regular:pixelsize=14 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/monaco: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:MonacoPX:Regular:pixelsize=12:antialias=false:hinting=false:autohint=false \ 3 | -*-fixed-medium-r-semicondensed-*-*-*-75-75-*-*-iso10646-1 \ 4 | -*-clean-medium-r-normal-*-12-*-*-*-*-*-iso646.1991-irv \ 5 | -*-symbol-medium-r-*-*-*-*-*-*-*-*-*-* 6 | URxvt.boldFont:xft:MonacoPX:Regular:pixelsize=12:antialias=false:hinting=false:autohint=false \ 7 | -*-fixed-medium-r-semicondensed-*-*-*-75-75-*-*-iso10646-1 \ 8 | -*-clean-medium-r-normal-*-12-*-*-*-*-*-iso646.1991-irv 9 | URxvt.italicFont:xft:MonacoPX:Regular:pixelsize=12:antialias=false:hinting=false:autohint=false \ 10 | -*-fixed-medium-r-semicondensed-*-*-*-75-75-*-*-iso10646-1 \ 11 | -*-clean-medium-r-normal-*-12-*-*-*-*-*-iso646.1991-irv 12 | URxvt.boldItalicFont:xft:MonacoPX:Regular:pixelsize=12:antialias=false:hinting=false:autohint=false \ 13 | -*-fixed-medium-r-semicondensed-*-*-*-75-75-*-*-iso10646-1 \ 14 | -*-clean-medium-r-normal-*-12-*-*-*-*-*-iso646.1991-irv 15 | 16 | ! vim:ft=xdefaults 17 | -------------------------------------------------------------------------------- /config/Xresources.fonts/mplus: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:m+ 1m:style=regular:pixelsize=14 3 | URxvt.boldFont:xft:m+ 1m:style=regular:pixelsize=14 4 | URxvt.italicFont:xft:m+ 1m:style=regular:pixelsize=14 5 | URxvt.boldItalicFont:xft:m+ 1m:style=regular:pixelsize=14 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/ocr: -------------------------------------------------------------------------------- 1 | 2 | URxvt*font:xft:OCR\-A AT:style=regular:pixelsize=13 3 | URxvt*boldFont:xft:OCR\-A AT:style=regular:pixelsize=13 4 | URxvt*italicFont:xft:OCR\-A AT:style=regular:pixelsize=13 5 | URxvt*boldItalicFont:xft:OCR\-A AT:style=regular:pixelsize=13 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/pragmata: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:pragmatapro:style=regular:pixelsize=14 3 | URxvt.boldFont:xft:pragmatapro:style=regular:pixelsize=14 4 | URxvt.italicFont:xft:pragmatapro:style=italic:pixelsize=14 5 | URxvt.boldItalicFont:xft:pragmatapro:style=italic:pixelsize=14 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/terminus: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1 3 | URxvt.boldFont: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1 4 | URxvt.italicFont: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1 5 | URxvt.boldItalicFont: -*-terminus-medium-r-*-*-14-*-*-*-*-*-iso10646-1 6 | 7 | ! vim:ft=xdefaults: 8 | -------------------------------------------------------------------------------- /config/Xresources.fonts/ubuntu-mono: -------------------------------------------------------------------------------- 1 | 2 | URxvt.font:xft:ubuntu mono:style=regular:pixelsize=14 3 | URxvt.boldFont:xft:ubuntu mono:style=regular:pixelsize=14 4 | URxvt.italicFont:xft:ubuntu mono:style=regular:pixelsize=14 5 | URxvt.boldItalicFont:xft:ubuntu mono:style=regular:pixelsize=14 6 | 7 | ! vim:ft=xdefaults 8 | -------------------------------------------------------------------------------- /config/autostart_wm/01-bg_mouse: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xsetroot -solid "#2A3640" -cursor_name left_ptr 4 | -------------------------------------------------------------------------------- /config/autostart_wm/01-xbacklight: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xbacklight -set 5 4 | -------------------------------------------------------------------------------- /config/autostart_wm/02-xresources: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xrdb -merge /usr/local/etc/X11/xinit/Xresources 4 | -------------------------------------------------------------------------------- /config/autostart_wm/03-kbd: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xset r rate 200 30 4 | -------------------------------------------------------------------------------- /config/autostart_wm/03-touchpad: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | syndaemon -k -i 1 -d & 4 | -------------------------------------------------------------------------------- /config/autostart_wm/03-unclutter: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | unclutter -idle 5 & 4 | -------------------------------------------------------------------------------- /config/autostart_wm/04-notification: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | dunst >/dev/null 2>&1 & 4 | -------------------------------------------------------------------------------- /config/autostart_wm/05-clipboard: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | xcmenu --primary --dmenu --daemon 4 | -------------------------------------------------------------------------------- /config/autostart_wm/05-urxvt: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | urxvtd -q -o -f 4 | -------------------------------------------------------------------------------- /config/autostart_wm/05-wmname: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | wmname LG3D 4 | -------------------------------------------------------------------------------- /config/autostart_wm/07-dropbox: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | pidof -s dropbox >& /dev/null 4 | if [ $? -ne 0 ]; then 5 | /opt/dropbox/dropboxd & 6 | fi 7 | -------------------------------------------------------------------------------- /config/autostart_wm/08-autosuspend: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | pidof -s xautolock >& /dev/null 4 | if [ $? -ne 0 ]; then 5 | xautolock -time 60 -notify 20 -notifier 'notify-send -a xautolock "Dell will go to sleep in 20s"' -locker 'systemctl suspend' & 6 | fi 7 | 8 | -------------------------------------------------------------------------------- /config/autostart_wm/10-loc: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while true 4 | do 5 | /home/bohoomil/.local/bin/loc.sh 6 | sleep 5s 7 | done & 8 | -------------------------------------------------------------------------------- /config/autostart_wm/README: -------------------------------------------------------------------------------- 1 | To enable automatic loading of a file at startup, make it executable first: 2 | 3 | chmod +x foo 4 | 5 | -------------------------------------------------------------------------------- /config/cower/config: -------------------------------------------------------------------------------- 1 | # 2 | # example cower config file 3 | # 4 | # All options here can be overriden with flags on the command line. All options 5 | # are case sensitive. This file will be read per user, and should be located at 6 | # $XDG_CONFIG_HOME/cower/config or $HOME/.config/cower/config. 7 | # 8 | 9 | # Use color in the output. This takes an optional arg of auto/never/always, 10 | # identical to the command line arg --color. If no arg is specified, this is 11 | # assumed to mean auto. 12 | Color = always 13 | 14 | # Connection timeout to be passed to curl. Setting this to 0 will disable 15 | # timeouts. 16 | #ConnectTimeout = 17 | 18 | # Always ignore out of date packages. This can be overridden on the command line 19 | # with --no-ignore-ood. 20 | #IgnoreOOD 21 | 22 | # Ignore the specified packages when checking for updates. Multiple arguments 23 | # to this option should be space delimited. Similar to the --ignore option, 24 | # this is in addition to any packages found in pacman's config. 25 | #IgnorePkg = 26 | 27 | # Ignore the specified binary repos when checking for updates. Multiple arguments 28 | # to this option should be space delimited. 29 | #IgnoreRepo = 30 | 31 | # Absolute path to download and extract to. Parameter and tilde expansions are 32 | # honored here. 33 | TargetDir = /mnt/sda2/arch-pkgs/aur 34 | 35 | # Max number of threads cower will use. This is synonymous with the max number 36 | # of concurrent connections that will be opened to the AUR. 37 | #MaxThreads = 38 | 39 | # vim: set noet syn=conf 40 | -------------------------------------------------------------------------------- /config/dfc/dfcrc: -------------------------------------------------------------------------------- 1 | # Optional configuration file for dfc 2 | 3 | # Colors used for the default text output 4 | # Possible values are: 5 | # - black 6 | # - red 7 | # - green 8 | # - yellow 9 | # - blue 10 | # - magenta 11 | # - cyan 12 | # - white 13 | # Note: it only concerns foreground colors 14 | 15 | # Header color 16 | color_header = blue 17 | # Color when usage is low 18 | color_low = green 19 | # Color when usage is medium 20 | color_medium = yellow 21 | # Color when usage is high 22 | color_high = red 23 | 24 | # Values in percent when color changes in the graph 25 | # starting value from which usage is considered medium 26 | graph_medium = 50 27 | # starting value from which usage is considered high 28 | graph_high = 75 29 | 30 | # Symbol used for the graph (can be any ASCII symbol) 31 | graph_symbol = = 32 | 33 | # You can also choose the colors for the HTML export 34 | # Color values can take any of html recognized value 35 | # For instance, this is white: #FFFFFF 36 | # This is red: #FF0000 37 | # Etc. 38 | # NOTE: you MUST ommit the # sign when setting it here 39 | # (white becomes FFFFFF and so on) 40 | 41 | # Header background color (also used in footer) 42 | html_color_header_bg = 970000 43 | # Header font color (also used in footer) 44 | html_color_header_fg = FFFFFF 45 | # Cell background color 46 | html_color_cell_bg = E9E9E9 47 | # Cell font color 48 | html_color_cell_fg = 000000 49 | # Background color on mouse hover 50 | html_color_hover_bg = FFFFFF 51 | # Font color on mouse hover 52 | html_color_hover_fg = 000000 53 | # Color when usage is low 54 | html_color_low = 348017 55 | # Color when usage is medium 56 | html_color_medium = FDD017 57 | # Color when usage is high 58 | html_color_high = F62217 59 | 60 | # vim: set noet syn=conf 61 | -------------------------------------------------------------------------------- /config/dmenfm/preferences: -------------------------------------------------------------------------------- 1 | show_hidden=0 2 | show_backup=0 3 | always_open_dirs=0 4 | always_open_files=0 5 | open_last=1 6 | dmenu_caseinsens=1 7 | dmenu_onbottom=0 8 | dmenfnt='dwmfnt-10:bold' 9 | dmenu_bg='#00243f' 10 | dmenu_fg='#8A9499' 11 | dmenu_sbg='#3D6B99' 12 | dmenu_sfg='#eeeeee' 13 | editor="vim-bin" 14 | executor='xdg-open' 15 | filemanager="urxvt-fm" 16 | last_dir="/home/bohoomil" 17 | 18 | -------------------------------------------------------------------------------- /config/dmenu/dmenurc: -------------------------------------------------------------------------------- 1 | # vim:ft=sh 2 | 3 | dmenu_cfg="-fn dwmfnt-10:bold -i -nb #00243F -nf #8A9499 -sb #991f3d -sf #eee" 4 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/20-alias-garam.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Garamond 7 | 8 | EB Garamond 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/31-repl-century-schoolbook.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Century Schoolbook 9 | 10 | 11 | CentSchbookEU 12 | 13 | 14 | 15 | 16 | Century Schoolbook 17 | 18 | 19 | CentSchbookEU 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/31-repl-helvetica-neue.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Helvetica Neue 10 | 11 | 12 | Open Sans 13 | 14 | 15 | 16 | 17 | Helvetica Neue 18 | 19 | 20 | Open Sans 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/31-repl-roboto.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @font-face:Roboto 8 | 9 | 10 | Droid Sans 11 | 12 | 13 | 14 | 15 | @font-face:Roboto 16 | 17 | 18 | Droid Sans 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/31-repl-template.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | FONT TO REPLACE 1 11 | 12 | 13 | REPLACEMENT FONT 1 14 | 15 | 16 | 17 | 18 | FONT TO REPLACE 1 19 | 20 | 21 | REPLACEMENT FONT 1 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/60-latin.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | serif 21 | 22 | 23 | 24 | 25 | 26 | 27 | sans-serif 28 | 29 | 30 | 31 | 32 | 33 | 34 | monospace 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/82-no-bitmaps.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | false 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/82-yes-bitmaps.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | false 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/95-reject-75dpi.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | /usr/share/fonts/75dpi/* 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /config/fontconfig/conf.avail/95-reject-freefont.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | FreeSans 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | FreeSerif 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | FreeMono 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /config/fontconfig/conf.d/README: -------------------------------------------------------------------------------- 1 | Symlinks to ../conf.avail/ come here. 2 | -------------------------------------------------------------------------------- /config/fontconfig/fonts.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /config/git/ignore: -------------------------------------------------------------------------------- 1 | .bash_history.tmp 2 | -------------------------------------------------------------------------------- /config/gtk-3.0/bookmarks: -------------------------------------------------------------------------------- 1 | file:///mnt/sda3/Dropbox 2 | file:///mnt/sda3/documents 3 | file:///mnt/sda3/downloads 4 | file:///mnt/sda3/music 5 | file:///mnt/sda3/pictures 6 | file:///mnt/sda3/videos 7 | file:///mnt/sda3/documents/eBooks 8 | -------------------------------------------------------------------------------- /config/gtk-3.0/settings.ini: -------------------------------------------------------------------------------- 1 | [Settings] 2 | gtk-theme-name=Ambiance-Grey 3 | gtk-icon-theme-name=Box 4 | gtk-font-name=Source Sans Pro Regular 9 5 | gtk-cursor-theme-name=Neutral++ 6 | gtk-cursor-theme-size=22 7 | gtk-toolbar-style=GTK_TOOLBAR_ICONS 8 | gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR 9 | gtk-button-images=1 10 | gtk-menu-images=1 11 | gtk-enable-event-sounds=1 12 | gtk-enable-input-feedback-sounds=1 13 | gtk-xft-antialias=1 14 | gtk-xft-hinting=1 15 | gtk-xft-hintstyle=hintfull 16 | gtk-xft-rgba=rgb 17 | 18 | # vim:ft=gtkrc: 19 | -------------------------------------------------------------------------------- /config/mc/filehighlight.ini: -------------------------------------------------------------------------------- 1 | [executable] 2 | type=FILE_EXE 3 | 4 | [directory] 5 | type=DIR 6 | 7 | [device] 8 | type=DEVICE 9 | 10 | [special] 11 | type=SPECIAL 12 | 13 | [stalelink] 14 | type=STALE_LINK 15 | 16 | [symlink] 17 | type=SYMLINK 18 | 19 | [hardlink] 20 | type=HARDLINK 21 | 22 | [core] 23 | regexp=^core\\.*\\d*$ 24 | 25 | [temp] 26 | extensions=tmp;$$$;~;bak;bkp;pacsave;pacnew;aux;out 27 | extensions_case=false 28 | regexp=(^#.*|.*~$) 29 | 30 | [archive1] 31 | extensions=dz;gz;lz;bz2;tar;Z;z;rar;zip;arj;cab;lzh;lha;lzma;zoo;arc;ark;txz;tbz;tbz2;taz;tlz;bz;tz;ace;7z;rz;tgz 32 | 33 | [archive2] 34 | extensions=cpio;jar;deb;rpm;xz 35 | 36 | [iso] 37 | extensions=iso;nrg;img 38 | 39 | [doc] 40 | extensions=abw;doc;docx;diz;ctl;me;xsd;xslt;dtd;mail;msg;lsm;po;nroff;man;sgml;text;letter 41 | 42 | [doc2] 43 | extensions=rtf;tex;odt;sxw 44 | 45 | [source] 46 | extensions=c;cc;cpp;cxx;hpp;asm;py;pl;pm;inc;cgi;php;phps;js;java;jav;jasm;sh;bash;pas;tcl;tk;awk;m4;st;mak;sl;ada;caml;ml;mli;mly;mll;mlp;sas;prg;hs;hi;erl;rb;vim 47 | 48 | [headers] 49 | extensions=h;hh; 50 | 51 | [media] 52 | extensions=mol;mpl;xm;mod;it;med;mid;midi;s3m;umx;m3u;pls;rm;ra;asx;cue 53 | 54 | [audio1] 55 | extensions=aac;ape;au;axa;flac;m4a;mka;wav 56 | 57 | [audio2] 58 | extensions=mp2;mp3;mpc;oga;ogg;spx 59 | 60 | [audio3] 61 | extensions=wma; 62 | 63 | [vid1] 64 | extensions=anx;avi;axv;mov;mpg;mpeg;ogm;ogv;ogx;vob 65 | 66 | [vid2] 67 | extensions=asf;dl;m2v;m4v;mkv;nuv;wmv 68 | 69 | [vid3] 70 | extensions=swf;qt;ql;flv;flc;fli;webm;mp4;mp4v 71 | 72 | [vid4] 73 | extensions=rmvb;rm;3gp 74 | 75 | [graph1] 76 | extensions=jpg;jpeg;pic;rle;ico;wmf;omf;ai 77 | 78 | [graph1a] 79 | extensions=png 80 | 81 | [graph1b] 82 | extensions=gif;pcx;bmp;xpm;xbm 83 | 84 | [graph2] 85 | extensions=xcf;psd;tiff;tif;ora 86 | 87 | [graph3] 88 | extensions=svg;cdr;sla 89 | 90 | [database] 91 | extensions=dbf;mdn;db;mdb;dat;fox;dbx;mdx;sql;mssql;msql;ssql;pgsql;xls;xlsx;cdx;dbi 92 | 93 | [text] 94 | extensions=txt;eml 95 | 96 | [markup] 97 | extensions=t2t;rst;xml;css;md;textile 98 | 99 | [html] 100 | extensions=html;htm;shtml 101 | 102 | [chm] 103 | extensions=chm;epub 104 | 105 | [pdf] 106 | extensions=pdf 107 | 108 | [djvu] 109 | extensions=djvu 110 | 111 | [dvi] 112 | extensions=dvi;ppt 113 | 114 | [ps] 115 | extensions=ps;eps 116 | 117 | [otf] 118 | extensions=otf;dfont 119 | 120 | [ttf] 121 | extensions=ttf;ttc 122 | 123 | [pfb] 124 | extensions=pfb 125 | 126 | [afm] 127 | extensions=afm 128 | 129 | [pfm] 130 | extensions=pfm 131 | 132 | [pcf] 133 | extensions=pcf 134 | 135 | [psf] 136 | extensions=psf 137 | 138 | [zsh] 139 | extensions=zsh 140 | 141 | [conf] 142 | extensions=conf 143 | 144 | [patch] 145 | extensions=patch;diff 146 | 147 | -------------------------------------------------------------------------------- /config/mc/hotlist: -------------------------------------------------------------------------------- 1 | ENTRY "dropbox" URL "/mnt/sda3/Dropbox" 2 | ENTRY "documents" URL "/mnt/sda3/documents" 3 | ENTRY "downloads" URL "/mnt/sda3/downloads" 4 | ENTRY "music" URL "/mnt/sda3/music" 5 | ENTRY "pictures" URL "/mnt/sda3/pictures" 6 | ENTRY "recent" URL "/mnt/sda3/recent" 7 | ENTRY "videos" URL "/mnt/sda3/videos" 8 | ENTRY "---------------------------" URL "" 9 | ENTRY "AUR/ABS" URL "/mnt/sda2/arch-pkgs" 10 | ENTRY "ib-build" URL "/mnt/sda2/ib-build" 11 | ENTRY "fonts (installed)" URL "/usr/share/fonts" 12 | ENTRY "---------------------------" URL "" 13 | ENTRY "eBooks" URL "/mnt/sda3/documents/eBooks" 14 | ENTRY "eBooks - IT" URL "/mnt/sda3/documents/eBooks/0-it" 15 | -------------------------------------------------------------------------------- /config/mpd/mpd.conf: -------------------------------------------------------------------------------- 1 | music_directory "/home/bohoomil/.config/mpd/music" 2 | playlist_directory "/home/bohoomil/.config/mpd/playlists" 3 | db_file "/home/bohoomil/.config/mpd/mpd.db" 4 | log_file "/home/bohoomil/.config/mpd/mpd.log" 5 | pid_file "/home/bohoomil/.config/mpd/mpd.pid" 6 | state_file "/home/bohoomil/.config/mpd/mpdstate" 7 | bind_to_address "127.0.0.1" 8 | port "6600" 9 | 10 | audio_output { 11 | #device "hw:0,1" 12 | type "alsa" 13 | name "Alsa SoftVol" 14 | device "mpdvol" 15 | auto_resample "no" 16 | mixer_type "software" 17 | mixer_device "mpdvol" 18 | mixer_control "MPD" 19 | } 20 | 21 | filesystem_charset "UTF-8" 22 | id3v1_encoding "UTF-8" 23 | 24 | # vim: set ft=sh: 25 | -------------------------------------------------------------------------------- /config/mpdscribble/mpdscribble.conf: -------------------------------------------------------------------------------- 1 | ## mpdscribble - an audioscrobbler for the Music Player Daemon. 2 | ## http://mpd.wikia.com/wiki/Client:mpdscribble 3 | 4 | # HTTP proxy URL. 5 | #proxy = http://the.proxy.server:3128 6 | 7 | # The location of the pid file. mpdscribble saves its process id there. 8 | #pidfile = /var/run/mpdscribble.pid 9 | 10 | # Change to this system user after daemonization. 11 | #daemon_user = mpdscribble 12 | 13 | # The location of the mpdscribble log file. The special value 14 | # "syslog" makes mpdscribble use the local syslog daemon. On most 15 | # systems, log messages will appear in /var/log/daemon.log then. 16 | # "-" means log to stderr (the current terminal). 17 | log = syslog 18 | 19 | # How verbose mpdscribble's logging should be. Default is 1. 20 | verbose = 1 21 | 22 | # How often should mpdscribble save the journal file? [seconds] 23 | #journal_interval = 600 24 | 25 | # The host running MPD, possibly protected by a password 26 | # ([PASSWORD@]HOSTNAME). Defaults to $MPD_HOST or localhost. 27 | #host = localhost 28 | 29 | # The port that the MPD listens on and mpdscribble should try to 30 | # connect to. Defaults to $MPD_PORT or 6600. 31 | #port = 6600 32 | 33 | [last.fm] 34 | url = http://post.audioscrobbler.com/ 35 | username = username 36 | password = xxxxxxxxxxxxx 37 | # The file where mpdscribble should store its Last.fm journal in case 38 | # you do not have a connection to the Last.fm server. 39 | journal = /home/bohoomil/.mpdscribble/lastfm.journal 40 | 41 | #[libre.fm] 42 | #url = http://turtle.libre.fm/ 43 | #username = my_username 44 | #password = my_password 45 | #journal = /var/cache/mpdscribble/librefm.journal 46 | 47 | #[jamendo] 48 | #url = http://postaudioscrobbler.jamendo.com/ 49 | #username = my_username 50 | #password = my_password 51 | #journal = /var/cache/mpdscribble/jamendo.journal 52 | 53 | #[file] 54 | #file = /var/log/mpdscribble/log 55 | -------------------------------------------------------------------------------- /config/newsbeuter/config: -------------------------------------------------------------------------------- 1 | urls-source "googlereader" 2 | googlereader-login "username@domain.com" 3 | googlereader-password "xxxxxxxxxxxx" 4 | googlereader-flag-share "S" 5 | googlereader-flag-star "b" 6 | googlereader-min-items 500 7 | googlereader-show-special-feeds "no" 8 | max-items 0 9 | browser "dwb %u" 10 | download-path "~/downloads" 11 | player mplayer 12 | save-path "~/.local/share/newsbeuter/FeedArticles" 13 | cache-file "~/.local/share/newsbeuter/cache.db" 14 | bookmark-cmd "~/.config/newsbeuter/instapaper" 15 | 16 | reload-time 15 17 | reload-threads 2 18 | feed-sort-order firsttag 19 | html-renderer "w3m -I %{charset} -T text/html" 20 | notify-format "%d new articles (%n unread articles, %f unread feeds)" 21 | notify-screen yes 22 | refresh-on-startup yes 23 | search-highlight-colors white black bold 24 | articlelist-format "%4i %f %D %?T?;%-17T; ?%t" 25 | feedlist-format "%n %4i %11u %t" 26 | show-read-feeds yes 27 | show-read-articles yes 28 | text-width 72 29 | cleanup-on-quit no 30 | 31 | # cyan-colored newsbeuter color scheme 32 | color listnormal white default 33 | color listfocus yellow black reverse 34 | color info white black 35 | #color background white default 36 | #color article white default 37 | 38 | # vim:set ft=config: 39 | -------------------------------------------------------------------------------- /config/newsbeuter/instapaper: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | USERNAME="username@domain.com" 4 | PASSWORD="xxxxxxxxxxxx" 5 | 6 | ADD_URL="$1" 7 | URL_BASE="https://www.instapaper.com/api/add" 8 | 9 | curl -s $URL_BASE -F url=$ADD_URL -F username=$USERNAME -F password=$PASSWORD 10 | 11 | STATUS="$?" 12 | 13 | case $STATUS in 14 | 0) 15 | notify-send "URL added successfully! (code $STATUS)" 16 | ;; 17 | 201) 18 | notify-send "URL added successfully! (code $STATUS)" 19 | ;; 20 | 400) 21 | notify-send "Bad request or Rate limit exceeded. (code $STATUS)" 22 | ;; 23 | 403) 24 | notify-send "Invalid username or password. (code $STATUS)" 25 | ;; 26 | 500) 27 | notify-send "There was a server error. Please try again later. (code $STATUS)" 28 | ;; 29 | *) 30 | notify-send "Unknown status: $STATUS." 31 | ;; 32 | esac 33 | 34 | -------------------------------------------------------------------------------- /config/newsbeuter/urls: -------------------------------------------------------------------------------- 1 | http://www.linuxplanet.org/casts/?feed=rss2 2 | http://feeds2.feedburner.com/AllJupiterVideos 3 | http://feeds.feedburner.com/cat5tv_avi?format=xml 4 | http://linuxjournal.blip.tv/rss/itunes/ 5 | http://linuxcrazy.com/podcasts/ogg.xml 6 | http://feeds.feedburner.com/52WeeksofAstronomy 7 | http://www.thesourceshow.org/xvid.xml 8 | http://feeds.feedburner.com/linuxoutlaws-ogg 9 | -------------------------------------------------------------------------------- /config/surfraw/bookmarks: -------------------------------------------------------------------------------- 1 | surfraw http://alioth.debian.org/projects/surfraw/ 2 | ntk http://www.ntk.net/ 3 | perlmodlist http://www.cpan.org/modules/00modlist.long.html 4 | -------------------------------------------------------------------------------- /config/surfraw/conf: -------------------------------------------------------------------------------- 1 | # Surfraw -- Shell Users' Revolutionary Front Against the World wide web 2 | # 3 | # $Id$ 4 | # 5 | # (c) 2000-2001 Julian Assange, all rights reserved. 6 | # (c) 2001 Australian Institute for Collaborative Research, all rights reserved. 7 | # (c) 2000 Melbourne Institute for Advanced Study, all rights reserved. 8 | # 9 | # see the file COPYING for further copyright details 10 | # 11 | # this file is shell script 12 | # 13 | # defintion commands: 14 | # 15 | # def -- define configuration variable unless already defined 16 | # (i.e by the environment) 17 | # defyn -- define boolean configuration variable unless 18 | # already defined 19 | # 20 | # WARNING: This file has a different format to that of $HOME/.surfraw.conf! 21 | # $HOME/.surfraw.conf entries should always be written sh style: 22 | # 23 | # SURFRAW_text_browser=w3m 24 | # etc 25 | 26 | # autoconf guessed prefix 27 | prefix=/usr 28 | 29 | # graphical browser? defaults to yes for meatminds. text browser users can 30 | # work it out how to change it. 31 | defyn SURFRAW_graphical yes 32 | 33 | # name/path of text browser executable 34 | # e.g links, lynx, w3m 35 | def SURFRAW_browser w3m 36 | def SURFRAW_text_browser w3m 37 | def SURFRAW_text_browser w3m 38 | 39 | # name/path of browser executable 40 | # e.g mozilla, netscape etc 41 | def SURFRAW_graphical_browser 42 | 43 | # text browser arguments, or "none" 44 | def SURFRAW_text_browser_args 45 | 46 | # graphical browser arguments, or "none" 47 | def SURFRAW_graphical_browser_args none 48 | 49 | # use -remote openURL for graphical browser 50 | defyn SURFRAW_graphical_remote no 51 | 52 | # when using the -remote, open a new window? 53 | defyn SURFRAW_new_window no 54 | 55 | # name of screen command to run 56 | def SURFRAW_screen screen 57 | 58 | # If surfraw is running under screen(1), start a new screen 59 | # for each text browser invocation? 60 | defyn SURFRAW_new_screen no 61 | 62 | # arguments for the screen command 63 | def SURFRAW_screen_args "" 64 | 65 | # "quote" arguments 66 | defyn SURFRAW_quote_args no 67 | 68 | # requote arguments if they have spaces in 69 | # ie so: 70 | # sr google foo "bar baz" bam 71 | # works. 72 | defyn SURFRAW_quote_ifs yes 73 | 74 | # default number of results to return 75 | def SURFRAW_results 30 76 | 77 | # escape [% "@$%&+,/:;<=>?@@[\^{|}~'] characters in command line arguments 78 | # subsequently used to construct a url 79 | defyn SURFRAW_escape_url_args yes 80 | 81 | # just print search url? 82 | defyn SURFRAW_print no 83 | 84 | # Fetch and dump url? 85 | defyn SURFRAW_dump no 86 | 87 | # Language/country (for elvi that support it) 88 | # Should be a 2-letter iso country code 89 | def SURFRAW_lang "" 90 | 91 | -------------------------------------------------------------------------------- /config/surfraw/elvi/archpkg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # elvis: archpkg -- Search Arch Linux Packages (www.archlinux.org/packages/) 3 | # Author: jason ryan • http://jasonwryan.com 4 | 5 | . surfraw || exit 1 6 | 7 | w3_config_hook () { 8 | def SURFRAW_arch_ix "$SURFRAW_ix" 9 | def SURFRAW_arch_repo "$SURFRAW_repo" 10 | def SURFRAW_arch_date "$SURFRAW_date" 11 | def SURFRAW_arch_results 25 12 | } 13 | 14 | w3_usage_hook () { 15 | cat < scroll full-up 55 | map scroll full-down 56 | map scroll top 57 | map scroll bottom 58 | map ] navigate next 59 | map [ navigate previous 60 | map quit 61 | map adjust_window 62 | map + zoom in 63 | map - zoom out 64 | map set "pages-per-row 1" 65 | map set "pages-per-row 2" 66 | map adjust_window best-fit 67 | map adjust_window width 68 | 69 | " vim:ft=vim 70 | -------------------------------------------------------------------------------- /docutils: -------------------------------------------------------------------------------- 1 | 2 | # These entries affect all processing: 3 | [general] 4 | #source-link: yes 5 | #datestamp: %Y-%m-%d %H:%M UTC 6 | generator: off 7 | 8 | # These entries affect HTML output: 9 | [html4css1 writer] 10 | # Required for docutils-update, the website build system: 11 | stylesheet-path: ../docutils/writers/html4css1/html4css1.css 12 | embed-stylesheet: no 13 | field-name-limit: 20 14 | 15 | # LaTeX output 16 | [latex2e writer] 17 | docutils_footnotes: yes 18 | use_latex_docinfo: yes 19 | literal_block_env: verbatim 20 | #template: xelatex.tex 21 | #template: xedroid.tex 22 | #documentoptions: a4paper,12pt,oneside 23 | #documentclass: fiche 24 | #documentclass: paper 25 | #documentclass: artikel3 26 | #fontenconding: T1 27 | #stylesheet: soulutf8,textcomp,amsmath,xspace 28 | latex_preamble: \defaultfontfeatures{Mapping=tex-text,Numbers=OldStyle,Ligatures=TeX} \setmaimainfont{Crimson} \setsansfont{Droid Sans} \setmonofont[HyphenChar=none]{Droid Sans Mono Slashed} 29 | -------------------------------------------------------------------------------- /dwm/02-borderless-monocle.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 20:36:06.646742076 +0200 2 | +++ b/dwm.c 2014-06-17 20:35:22.490074701 +0200 3 | @@ -1191,7 +1191,7 @@ maprequest(XEvent *e) { 4 | 5 | void 6 | monocle(Monitor *m) { 7 | - unsigned int n = 0; 8 | + unsigned int n = 0, r = 0; 9 | Client *c; 10 | 11 | for(c = m->clients; c; c = c->next) 12 | @@ -1199,8 +1199,17 @@ monocle(Monitor *m) { 13 | n++; 14 | if(n > 0) /* override layout symbol */ 15 | snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); 16 | - for(c = nexttiled(m->clients); c; c = nexttiled(c->next)) 17 | - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False); 18 | + for(c = nexttiled(m->clients); c; c = nexttiled(c->next)) { 19 | + /* remove border when in monocle layout */ 20 | + if(c->bw) { 21 | + c->oldbw = c->bw; 22 | + c->bw = 0; 23 | + r = 1; 24 | + } 25 | + resize(c, m->wx, m->wy, m->ww - (2 * c->bw), m->wh - (2 * c->bw), False); 26 | + if(r) 27 | + resizeclient(c, m->wx, m->wy, m->ww - (2 * c->bw), m->wh - (2 * c->bw)); 28 | + } 29 | } 30 | 31 | void 32 | @@ -1711,7 +1720,7 @@ textnw(const char *text, unsigned int le 33 | 34 | void 35 | tile(Monitor *m) { 36 | - unsigned int i, n, h, mw, my, ty; 37 | + unsigned int i, n, h, mw, my, ty, r; 38 | Client *c; 39 | 40 | for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); 41 | @@ -1722,17 +1731,36 @@ tile(Monitor *m) { 42 | mw = m->nmaster ? m->ww * m->mfact : 0; 43 | else 44 | mw = m->ww; 45 | - for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) 46 | + for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++, r = 0) { 47 | + if(n == 1) { 48 | + if (c->bw) { 49 | + /* remove border when only one window is on the current tag */ 50 | + c->oldbw = c->bw; 51 | + c->bw = 0; 52 | + r = 1; 53 | + } 54 | + } 55 | + else if(!c->bw && c->oldbw) { 56 | + /* restore border when more than one window is displayed */ 57 | + c->bw = c->oldbw; 58 | + c->oldbw = 0; 59 | + r = 1; 60 | + } 61 | if(i < m->nmaster) { 62 | h = (m->wh - my) / (MIN(n, m->nmaster) - i); 63 | resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), False); 64 | + if(r) 65 | + resizeclient(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw)); 66 | my += HEIGHT(c); 67 | } 68 | else { 69 | h = (m->wh - ty) / (n - i); 70 | resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), False); 71 | + if(r) 72 | + resizeclient(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw)); 73 | ty += HEIGHT(c); 74 | } 75 | + } 76 | } 77 | 78 | void 79 | @@ -1748,9 +1776,15 @@ togglefloating(const Arg *arg) { 80 | if(!selmon->sel) 81 | return; 82 | selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed; 83 | - if(selmon->sel->isfloating) 84 | + if(selmon->sel->isfloating) { 85 | + /* restore border when moving window into floating mode */ 86 | + if(!selmon->sel->bw && selmon->sel->oldbw) { 87 | + selmon->sel->bw = selmon->sel->oldbw; 88 | + selmon->sel->oldbw = 0; 89 | + } 90 | resize(selmon->sel, selmon->sel->x, selmon->sel->y, 91 | selmon->sel->w, selmon->sel->h, False); 92 | + } 93 | arrange(selmon); 94 | } 95 | 96 | -------------------------------------------------------------------------------- /dwm/03-centredfloating.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 20:38:03.093410610 +0200 2 | +++ b/dwm.c 2014-06-17 20:39:31.950078702 +0200 3 | @@ -92,7 +92,7 @@ struct Client { 4 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; 5 | int bw, oldbw; 6 | unsigned int tags; 7 | - Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; 8 | + Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, iscentred; 9 | Client *next; 10 | Client *snext; 11 | Monitor *mon; 12 | @@ -151,6 +151,7 @@ typedef struct { 13 | const char *title; 14 | unsigned int tags; 15 | Bool isfloating; 16 | + Bool iscentred; 17 | int monitor; 18 | } Rule; 19 | 20 | @@ -302,6 +303,7 @@ applyrules(Client *c) { 21 | 22 | /* rule matching */ 23 | c->isfloating = c->tags = 0; 24 | + c->iscentred = 1; 25 | XGetClassHint(dpy, c->win, &ch); 26 | class = ch.res_class ? ch.res_class : broken; 27 | instance = ch.res_name ? ch.res_name : broken; 28 | @@ -313,6 +315,7 @@ applyrules(Client *c) { 29 | && (!r->instance || strstr(instance, r->instance))) 30 | { 31 | c->isfloating = r->isfloating; 32 | + c->iscentred = r->iscentred; 33 | c->tags |= r->tags; 34 | for(m = mons; m && m->num != r->monitor; m = m->next); 35 | if(m) 36 | @@ -1126,8 +1129,14 @@ manage(Window w, XWindowAttributes *wa) 37 | applyrules(c); 38 | } 39 | /* geometry */ 40 | - c->x = c->oldx = wa->x; 41 | - c->y = c->oldy = wa->y; 42 | + if((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && c->iscentred) { 43 | + c->x = c->oldx = c->mon->wx + (c->mon->ww / 2 - wa->width / 2); 44 | + c->y = c->oldy = c->mon->wy + (c->mon->wh / 2 - wa->height / 2); 45 | + } 46 | + else { 47 | + c->x = c->oldx = wa->x; 48 | + c->y = c->oldy = wa->y; 49 | + } 50 | c->w = c->oldw = wa->width; 51 | c->h = c->oldh = wa->height; 52 | c->oldbw = wa->border_width; 53 | -------------------------------------------------------------------------------- /dwm/04-attachaside.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 20:39:31.950078702 +0200 2 | +++ b/dwm.c 2014-06-17 20:41:30.270080600 +0200 3 | @@ -161,6 +161,7 @@ static Bool applysizehints(Client *c, in 4 | static void arrange(Monitor *m); 5 | static void arrangemon(Monitor *m); 6 | static void attach(Client *c); 7 | +static void attachaside(Client *c); 8 | static void attachstack(Client *c); 9 | static void buttonpress(XEvent *e); 10 | static void checkotherwm(void); 11 | @@ -422,6 +423,17 @@ attach(Client *c) { 12 | } 13 | 14 | void 15 | +attachaside(Client *c) { 16 | + Client *at = nexttiled(c->mon->clients);; 17 | + if(c->mon->sel == NULL || c->mon->sel->isfloating || !at) { 18 | + attach(c); 19 | + return; 20 | + } 21 | + c->next = at->next; 22 | + at->next = c; 23 | +} 24 | + 25 | +void 26 | attachstack(Client *c) { 27 | c->snext = c->mon->stack; 28 | c->mon->stack = c; 29 | @@ -1164,7 +1176,7 @@ manage(Window w, XWindowAttributes *wa) 30 | c->isfloating = c->oldstate = trans != None || c->isfixed; 31 | if(c->isfloating) 32 | XRaiseWindow(dpy, c->win); 33 | - attach(c); 34 | + attachaside(c); 35 | attachstack(c); 36 | XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ 37 | setclientstate(c, NormalState); 38 | -------------------------------------------------------------------------------- /dwm/05-focusonclick.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 20:41:30.270080600 +0200 2 | +++ b/dwm.c 2014-06-17 20:44:35.980083578 +0200 3 | @@ -183,7 +183,6 @@ static void drawbars(void); 4 | static void drawcoloredtext(char *text); 5 | static void drawsquare(Bool filled, Bool empty, XftColor col[ColLast]); 6 | static void drawtext(const char *text, XftColor col[ColLast], Bool pad); 7 | -static void enternotify(XEvent *e); 8 | static void expose(XEvent *e); 9 | static void focus(Client *c); 10 | static void focusin(XEvent *e); 11 | @@ -269,7 +268,6 @@ static void (*handler[LASTEvent]) (XEven 12 | [ConfigureRequest] = configurerequest, 13 | [ConfigureNotify] = configurenotify, 14 | [DestroyNotify] = destroynotify, 15 | - [EnterNotify] = enternotify, 16 | [Expose] = expose, 17 | [FocusIn] = focusin, 18 | [KeyPress] = keypress, 19 | @@ -471,7 +469,9 @@ buttonpress(XEvent *e) { 20 | click = ClkWinTitle; 21 | } 22 | else if((c = wintoclient(ev->window))) { 23 | - focus(c); 24 | + if (focusonwheelscroll || (ev->button != Button4 && ev->button != Button5)) 25 | + focus(c); 26 | + XAllowEvents(dpy, ReplayPointer, CurrentTime); 27 | click = ClkClientWin; 28 | } 29 | for(i = 0; i < LENGTH(buttons); i++) 30 | @@ -850,25 +850,6 @@ drawtext(const char *text, XftColor col[ 31 | } 32 | 33 | void 34 | -enternotify(XEvent *e) { 35 | - Client *c; 36 | - Monitor *m; 37 | - XCrossingEvent *ev = &e->xcrossing; 38 | - 39 | - if((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root) 40 | - return; 41 | - c = wintoclient(ev->window); 42 | - m = c ? c->mon : wintomon(ev->window); 43 | - if(m != selmon) { 44 | - unfocus(selmon->sel, True); 45 | - selmon = m; 46 | - } 47 | - else if(!c || c == selmon->sel) 48 | - return; 49 | - focus(c); 50 | -} 51 | - 52 | -void 53 | expose(XEvent *e) { 54 | Monitor *m; 55 | XExposeEvent *ev = &e->xexpose; 56 | @@ -1038,11 +1019,11 @@ grabbuttons(Client *c, Bool focused) { 57 | XGrabButton(dpy, buttons[i].button, 58 | buttons[i].mask | modifiers[j], 59 | c->win, False, BUTTONMASK, 60 | - GrabModeAsync, GrabModeSync, None, None); 61 | + GrabModeSync, GrabModeSync, None, None); 62 | } 63 | else 64 | XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, 65 | - BUTTONMASK, GrabModeAsync, GrabModeSync, None, None); 66 | + BUTTONMASK, GrabModeSync, GrabModeSync, None, None); 67 | } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /dwm/06-never-respect-resize-hints.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 20:46:23.260085299 +0200 2 | +++ b/dwm.c 2014-06-17 20:47:37.900086497 +0200 3 | @@ -360,8 +360,9 @@ applysizehints(Client *c, int *x, int *y 4 | *h = bh; 5 | if(*w < bh) 6 | *w = bh; 7 | - if(resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) { 8 | - /* see last two sentences in ICCCM 4.1.2.3 */ 9 | + /* never respect resize hints */ 10 | + if(resizehints || c->isfloating) { 11 | + /* see last two sentences in ICCCM 4.1.2.3 */ 12 | baseismin = c->basew == c->minw && c->baseh == c->minh; 13 | if(!baseismin) { /* temporarily remove base dimensions */ 14 | *w -= c->basew; 15 | -------------------------------------------------------------------------------- /dwm/08-highlight-layout.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 21:52:45.000000000 +0200 2 | +++ b/dwm.c 2014-06-17 22:07:07.573496332 +0200 3 | @@ -750,7 +750,7 @@ drawbar(Monitor *m) { 4 | dc.x += dc.w; 5 | } 6 | dc.w = blw = TEXTW(m->ltsymbol); 7 | - drawtext(m->ltsymbol, dc.colors[0], False); 8 | + drawtext(m->ltsymbol, dc.colors[1], False); // highlight layout symbol 9 | dc.x += dc.w; 10 | x = dc.x; 11 | if(m == selmon) { /* status is only drawn on selected monitor */ 12 | -------------------------------------------------------------------------------- /dwm/09-config.mk.patch: -------------------------------------------------------------------------------- 1 | --- a/config.mk 2011-12-19 16:02:46.000000000 +0100 2 | +++ b/config.mk 2014-06-14 21:52:12.000000000 +0200 3 | @@ -4,24 +4,20 @@ VERSION = 6.0 4 | # Customize below to fit your system 5 | 6 | # paths 7 | -PREFIX = /usr/local 8 | +PREFIX = /usr 9 | MANPREFIX = ${PREFIX}/share/man 10 | 11 | -X11INC = /usr/X11R6/include 12 | -X11LIB = /usr/X11R6/lib 13 | - 14 | -# Xinerama 15 | -XINERAMALIBS = -L${X11LIB} -lXinerama 16 | -XINERAMAFLAGS = -DXINERAMA 17 | +X11INC = /usr/include/X11 18 | +X11LIB = /usr/lib/X11 19 | 20 | # includes and libs 21 | -INCS = -I. -I/usr/include -I${X11INC} 22 | -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} 23 | +INCS = -I. -I/usr/include -I${X11INC} -I/usr/include/freetype2 24 | +LIBS = -L${X11LIB} -lX11 -lutil -lXext -lXft -lfontconfig 25 | 26 | # flags 27 | -CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} 28 | +CPPFLAGS += -DVERSION=\"${VERSION}\" 29 | #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} 30 | -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} 31 | +CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} 32 | #LDFLAGS = -g ${LIBS} 33 | LDFLAGS = -s ${LIBS} 34 | 35 | -------------------------------------------------------------------------------- /dwm/25-colours.patch: -------------------------------------------------------------------------------- 1 | --- a/dwm.c 2014-06-17 21:47:37.000000000 +0200 2 | +++ b/dwm.c 2014-06-17 21:52:45.840149177 +0200 3 | @@ -50,7 +50,7 @@ 4 | #define LENGTH(X) (sizeof X / sizeof X[0]) 5 | #define MAX(A, B) ((A) > (B) ? (A) : (B)) 6 | #define MIN(A, B) ((A) < (B) ? (A) : (B)) 7 | -#define MAXCOLORS 9 8 | +#define MAXCOLORS 25 9 | #define MOUSEMASK (BUTTONMASK|PointerMotionMask) 10 | #define WIDTH(X) ((X)->w + 2 * (X)->bw) 11 | #define HEIGHT(X) ((X)->h + 2 * (X)->bw) 12 | -------------------------------------------------------------------------------- /dwm/PKGBUILD: -------------------------------------------------------------------------------- 1 | # $Id: PKGBUILD 60970 2011-12-19 21:33:58Z spupykin $ 2 | # Maintainer: Sergej Pupykin 3 | # Contributor: Dag Odenhall 4 | # Contributor: Grigorios Bouzakis 5 | # Config: bohoomil 6 | 7 | pkgname=dwm 8 | pkgver=6.0 9 | pkgrel=1 10 | pkgdesc="A dynamic window manager for X" 11 | url="http://dwm.suckless.org" 12 | arch=('i686' 'x86_64') 13 | groups=('custom') 14 | license=('MIT') 15 | options=(zipman) 16 | depends=('libx11' 'libxft') 17 | install='dwm.install' 18 | source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz 19 | #config.h 20 | #25-colours.patch 21 | 01-statuscolorxft.patch 22 | 02-borderless-monocle.patch 23 | 03-centredfloating.patch 24 | 04-attachaside.patch 25 | 05-focusonclick.patch 26 | 06-never-respect-resize-hints.patch 27 | 07-addons.patch 28 | 08-highlight-layout.patch 29 | 09-config.mk.patch 30 | 10-config.def.h.patch 31 | dwm.desktop) 32 | sha1sums=('35346f873a27f219ae266594b3690407f95d06ef' 33 | 'dc468a2df36af7dbc2c4517a316e65d5b370c11e' 34 | '0e9f065e8a99cdd09b51dfc9247ad72d6322ca59' 35 | 'c3e0ba555ec0ae6c5545a18b2e1bf168b6cf64da' 36 | '0535f88e4b59823052f9dde8fdfab4d011c27876' 37 | '971a7f07018c0480850937946de206e7190cd64f' 38 | '2f39bbef5a1dc0adf6e4275f21d664feb5760126' 39 | '2955d3f4c5d3e73c7165d6e59a55eb9a6e1ea999' 40 | '0b217201348e81d7e3c321c5d0e8f97f083c8c43' 41 | '5b08a3a60fb085ca6341f987fd7b90fe10d9b080' 42 | '1380e1433f9c426b2d6c6ebfc7e29e045802f167' 43 | '9dc7ba48e3270d0e6273b4f3ca7d22cb1eb1599b') 44 | 45 | prepare() { 46 | cd "${srcdir}"/"${pkgname}"-"${pkgver}" 47 | 48 | patches=(01-statuscolorxft.patch 49 | 02-borderless-monocle.patch 50 | 03-centredfloating.patch 51 | 04-attachaside.patch 52 | 05-focusonclick.patch 53 | 06-never-respect-resize-hints.patch 54 | 07-addons.patch 55 | 08-highlight-layout.patch 56 | 09-config.mk.patch 57 | 10-config.def.h.patch) 58 | 59 | for patch in "${patches[@]}"; do 60 | patch -Np1 -i "${srcdir}"/"${patch}" 61 | done 62 | 63 | # use 25 colours 64 | if [ -f "${srcdir}"/25-colours.patch ]; then 65 | patch -Np1 -i "${srcdir}"/25-colours.patch 66 | fi 67 | 68 | # use custom config.h 69 | if [ -f "${srcdir}"/config.h ]; then 70 | cp "${srcdir}"/config.h . 71 | fi 72 | } 73 | 74 | build() { 75 | cd "${srcdir}"/"${pkgname}"-"${pkgver}" 76 | 77 | make 78 | } 79 | 80 | package() { 81 | cd "${srcdir}"/"${pkgname}"-"${pkgver}" 82 | 83 | make PREFIX=/usr DESTDIR=$pkgdir install 84 | 85 | install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE 86 | install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README 87 | install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop 88 | } 89 | 90 | -------------------------------------------------------------------------------- /dwm/README: -------------------------------------------------------------------------------- 1 | 2 | 1. Xinerama support is disabled. 3 | 2. If you are going to use a custom config.h, uncomment the file name in src 4 | array. 5 | 3. If you want to use more than 9 colours, modify the 25-colours.patch 6 | accordingly and uncomment the file name in the src array. 7 | 8 | Launch and status bar scripts can be found in local/bin. 9 | 10 | -------------------------------------------------------------------------------- /dwm/dwm.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Name=Dwm 4 | Comment=Dynamic window manager 5 | Exec=dwm 6 | Icon=dwm 7 | Type=XSession 8 | -------------------------------------------------------------------------------- /dwm/dwm.install: -------------------------------------------------------------------------------- 1 | post_install() { 2 | echo "-- Edit config.h in dwm's PKGBUILD directory (generally /var/abs/community/dwm/)" 3 | echo "-- and rebuild package if you want to change settings." 4 | } 5 | -------------------------------------------------------------------------------- /etc/X11/xinit/Xresources: -------------------------------------------------------------------------------- 1 | ! --- .Xresources by bohoomil 2 | ! --- Urxvt 3 | URxvt*geometry: 80x44 4 | URxvt*cursorBlink: 1 5 | URxvt*cursorUnderline: 0 6 | URxvt*urgentOnBell: true 7 | URxvt*letterSpace: -0.2 8 | URxvt*internalBorder: 2 9 | URxvt*scrollBar: false 10 | URxvt.transparent: false 11 | 12 | !! --- clickable links, etc. 13 | URxvt.perl-ext-common: default,url-select,matcher 14 | URxvt.keysym.M-u: perl:url-select:select_next 15 | URxvt.url-select.launcher: firefox 16 | URxvt.underlineURLs: false 17 | URxvt.matcher.button: 1 18 | URxvt.matcher.rend.0: fg33 bg1 19 | 20 | ! --- default fonts for xorg apps 21 | *font: -*-fixed-medium-r-normal-*-*-130-*-*-*-*-iso10646-1 22 | *boldFont: -*-fixed-medium-r-normal-*-*-130-*-*-*-*-iso10646-1 23 | 24 | ! -- mouse 25 | Xcursor.theme: Neutral++ 26 | Xcursor.size: 22 27 | 28 | ! -- Tk theme 29 | *TkTheme: clam 30 | 31 | ! --- font, colours, X.org apps 32 | #include "/usr/local/etc/X11/fonts/envy-code-r" 33 | #include "/usr/local/etc/X11/colours/lirix" 34 | 35 | #include "/usr/local/etc/X11/app-defaults/Xdvi" 36 | -------------------------------------------------------------------------------- /etc/X11/xinit/xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | userresources=$HOME/.Xresources 4 | usermodmap=$HOME/.Xmodmap 5 | sysresources=/etc/X11/xinit/Xresources 6 | sysmodmap=/etc/X11/xinit/Xmodmap 7 | 8 | # merge in defaults and keymaps 9 | if [ -f $sysresources ]; then 10 | xrdb -merge $sysresources 11 | fi 12 | if [ -f $sysmodmap ]; then 13 | xmodmap $sysmodmap 14 | fi 15 | if [ -f "$userresources" ]; then 16 | xrdb -merge "$userresources" 17 | fi 18 | if [ -f "$usermodmap" ]; then 19 | xmodmap "$usermodmap" 20 | fi 21 | 22 | # start some nice programs 23 | if [ -d /etc/X11/xinit/xinitrc.d ] ; then 24 | for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do 25 | [ -x "$f" ] && . "$f" 26 | done 27 | unset f 28 | fi 29 | 30 | twm & 31 | xclock -geometry 50x50-1+1 & 32 | xterm -geometry 80x50+494+51 & 33 | xterm -geometry 80x20+494-0 & 34 | exec xterm -geometry 80x66+0+0 -name login 35 | -------------------------------------------------------------------------------- /etc/X11/xinit/xinitrc.d/30-dbus: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # launches a session dbus instance 4 | if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && type dbus-launch >/dev/null; then 5 | eval $(dbus-launch --sh-syntax --exit-with-session) 6 | fi 7 | -------------------------------------------------------------------------------- /etc/X11/xinit/xserverrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -z "$XDG_VTNR" ]; then 3 | exec /usr/bin/X -nolisten tcp "$@" 4 | else 5 | exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR 6 | fi 7 | -------------------------------------------------------------------------------- /etc/X11/xorg.conf.d/10-evdev.conf: -------------------------------------------------------------------------------- 1 | # 2 | # Catch-all evdev loader for udev-based systems 3 | # We don't simply match on any device since that also adds accelerometers 4 | # and other devices that we don't really want to use. The list below 5 | # matches everything but joysticks. 6 | 7 | Section "InputClass" 8 | Identifier "evdev pointer catchall" 9 | MatchIsPointer "on" 10 | MatchDevicePath "/dev/input/event*" 11 | Driver "evdev" 12 | EndSection 13 | 14 | Section "InputClass" 15 | Identifier "evdev keyboard catchall" 16 | MatchIsKeyboard "on" 17 | MatchDevicePath "/dev/input/event*" 18 | Driver "evdev" 19 | EndSection 20 | 21 | Section "InputClass" 22 | Identifier "evdev touchpad catchall" 23 | MatchIsTouchpad "on" 24 | MatchDevicePath "/dev/input/event*" 25 | Driver "evdev" 26 | EndSection 27 | 28 | Section "InputClass" 29 | Identifier "evdev tablet catchall" 30 | MatchIsTablet "on" 31 | MatchDevicePath "/dev/input/event*" 32 | Driver "evdev" 33 | EndSection 34 | 35 | Section "InputClass" 36 | Identifier "evdev touchscreen catchall" 37 | MatchIsTouchscreen "on" 38 | MatchDevicePath "/dev/input/event*" 39 | Driver "evdev" 40 | EndSection 41 | -------------------------------------------------------------------------------- /etc/X11/xorg.conf.d/10-quirks.conf: -------------------------------------------------------------------------------- 1 | # Collection of quirks and blacklist/whitelists for specific devices. 2 | 3 | 4 | # Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable 5 | # http://bugs.freedesktop.org/show_bug.cgi?id=22442 6 | Section "InputClass" 7 | Identifier "ThinkPad HDAPS accelerometer blacklist" 8 | MatchProduct "ThinkPad HDAPS accelerometer data" 9 | Option "Ignore" "on" 10 | EndSection 11 | -------------------------------------------------------------------------------- /etc/X11/xorg.conf.d/10-touchpad.conf: -------------------------------------------------------------------------------- 1 | # Touchpad 2 | 3 | Section "InputClass" 4 | Identifier "touchpad catchall ignore duplicates enable synaptics SHMConfig" 5 | Driver "synaptics" 6 | MatchDevicePath "/dev/input/event*" 7 | MatchIsTouchpad "on" 8 | MatchOS "Linux" 9 | Option "SHMConfig" "on" 10 | Option "TapButton1" "1" 11 | Option "TapButton2" "2" 12 | Option "TapButton3" "3" 13 | Option "VertEdgeScroll" "on" 14 | Option "VertTwoFingerScroll" "on" 15 | Option "HorizEdgeScroll" "on" 16 | Option "HorizTwoFingerScroll" "on" 17 | Option "CircularScrolling" "on" 18 | Option "CircScrollTrigger" "2" 19 | Option "EmulateTwoFingerMinZ" "0" 20 | Option "SHMConfig" "on" 21 | EndSection 22 | 23 | # This option enables the bottom right corner to be a right button on 24 | # non-synaptics clickpads. 25 | # This option is only interpreted by clickpads. 26 | Section "InputClass" 27 | Identifier "Default clickpad buttons" 28 | MatchDriver "synaptics" 29 | Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0" 30 | # To disable the bottom edge area so the buttons only work as buttons, 31 | # not for movement, set the AreaBottomEdge 32 | # Option "AreaBottomEdge" "82%" 33 | EndSection 34 | 35 | -------------------------------------------------------------------------------- /etc/X11/xorg.conf.d/20-intel.conf: -------------------------------------------------------------------------------- 1 | Section "Device" 2 | Identifier "Intel Graphics" 3 | Driver "intel" 4 | Option "AccelMethod" "sna" # uxa sna glamor 5 | Option "TearFree" "true" 6 | EndSection 7 | -------------------------------------------------------------------------------- /etc/X11/xorg.conf.d/20-xkmap.conf: -------------------------------------------------------------------------------- 1 | # /etc/X11/xorg.conf.d/20-xkmap.conf 2 | # This file was generated by xkmap to set the keyboard mapping 3 | # It may be overriden by configuration files loaded later in xorg's 4 | # start sequence. 5 | # 6 | # Edit this file with caution - be aware that it may well be overwritten 7 | # by future use of xkmap. 8 | # 9 | # See the xorg.conf manual page for further configuration details. 10 | # 11 | Section "InputClass" 12 | Identifier "xkmap keyboard settings" 13 | MatchIsKeyboard "yes" 14 | #MODEL:pc101 15 | Option "XkbModel" "latitude" 16 | #LAYOUT:pl 17 | Option "XkbLayout" "pl" 18 | Option "XkbOptions" "caps:escape, terminate:ctrl_alt_bksp" 19 | #VARIANT:- 20 | #***V*** 21 | EndSection 22 | -------------------------------------------------------------------------------- /etc/X11/xorg.conf.d/90-monitor.conf: -------------------------------------------------------------------------------- 1 | Section "Monitor" 2 | Identifier "LVDS1" # "Monitor0" 3 | DisplaySize 310 174 # In millimeters 4 | EndSection 5 | -------------------------------------------------------------------------------- /etc/conf.d/devmon: -------------------------------------------------------------------------------- 1 | ARGS="--no-gui --exec-on-drive 'notify-send \"Mounted %f on %d\"' --exec-on-disc 'notify-send \"Mounted %f on %d\"' --exec-on-unmount 'notify-send \"Unmounted %f\"'" 2 | -------------------------------------------------------------------------------- /etc/systemd/system/arch32.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=32-bit chroot 3 | 4 | [Service] 5 | Type=oneshot 6 | RemainAfterExit=yes 7 | ExecStart=/usr/local/bin/arch32 start 8 | ExecStop=/usr/local/bin/arch32 stop 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | -------------------------------------------------------------------------------- /etc/systemd/system/devmon@.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=devmon Service 3 | 4 | [Service] 5 | Type=simple 6 | User=%i 7 | Environment=DISPLAY=:0 8 | EnvironmentFile=/etc/conf.d/devmon 9 | ExecStart=/usr/bin/devmon $ARGS 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /etc/systemd/system/mpd@.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=MPD Service 3 | 4 | [Service] 5 | Type=forking 6 | User=%i 7 | ExecStart=/usr/bin/mpd ${HOME}/.config/mpd/mpd.conf 8 | ExecStop=/usr/bin/mpd --kill 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | -------------------------------------------------------------------------------- /etc/systemd/system/mpdscribble@.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=MPD Scrobbler 3 | Wants=mpd@%i.service 4 | After=mpd@%i.service 5 | 6 | [Service] 7 | #Type=forking 8 | User=%i 9 | PIDFile=/tmp/mpdscribble-%i.pid 10 | ExecStart=/usr/bin/mpdscribble -D --conf ${HOME}/.config/mpdscribble/mpdscribble.conf --pidfile /tmp/mpdscribble-%i.pid 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /etc/systemd/system/wifi@.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Wireless Static IP Connectivity 3 | Wants=network.target 4 | Before=network.target 5 | BindsTo=sys-subsystem-net-devices-%i.device 6 | After=sys-subsystem-net-devices-%i.device 7 | 8 | [Service] 9 | Type=oneshot 10 | RemainAfterExit=yes 11 | ExecStart=/sbin/ip link set dev %i up 12 | ExecStart=/usr/sbin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.conf 13 | ExecStart=/sbin/ip addr add 192.168.1.3/24 dev %i 14 | ExecStart=/sbin/ip route add default via 192.168.1.1 15 | 16 | ExecStop=/sbin/ip addr flush dev %i 17 | ExecStop=/sbin/ip link set dev %i down 18 | 19 | [Install] 20 | WantedBy=multi-user.target 21 | -------------------------------------------------------------------------------- /gtkrc-2.0: -------------------------------------------------------------------------------- 1 | gtk-theme-name="Ambiance-Grey" 2 | gtk-icon-theme-name="Box" 3 | gtk-font-name="Source Sans Pro Regular 8" 4 | gtk-fallback-icon-theme="elementary" 5 | gtk-cursor-theme-name="Neutral++" 6 | gtk-cursor-theme-size=22 7 | gtk-toolbar-style=GTK_TOOLBAR_ICONS 8 | gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR 9 | gtk-button-images=1 10 | gtk-menu-images=1 11 | gtk-enable-event-sounds=1 12 | gtk-enable-input-feedback-sounds=1 13 | gtk-xft-antialias=1 14 | gtk-xft-hinting=1 15 | gtk-xft-hintstyle="hintfull" 16 | gtk-xft-rgba="rgb" 17 | -------------------------------------------------------------------------------- /latexmkrc: -------------------------------------------------------------------------------- 1 | $pdf_previewer = "/usr/bin/zathura"; 2 | $clean_ext = "aux out"; 3 | -------------------------------------------------------------------------------- /local/bin/0-mkchroot-i686: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export LANG=C 4 | 5 | sudo mkarchroot -C /mnt/sda2/ArchBuilds/configs/pacman-i686.conf -M /mnt/sda2/ArchBuilds/configs/makepkg-i686.conf -c /mnt/sda2/pacman_cache $CHROOT/i686/root base base-devel sudo git 6 | -------------------------------------------------------------------------------- /local/bin/0-mkchroot-x86_64: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export LANG=C 4 | 5 | sudo mkarchroot -C /mnt/sda2/ArchBuilds/configs/pacman-x86_64.conf -M /mnt/sda2/ArchBuilds/configs/makepkg-x86_64.conf -c /mnt/sda2/pacman_cache $CHROOT/x86_64/root base base-devel sudo git 6 | -------------------------------------------------------------------------------- /local/bin/1-build-i686: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export LANG=C 4 | sudo arch-nspawn $CHROOT/i686/root pacman -Syu 5 | sudo makechrootpkg -n -u -c -r $CHROOT/i686 -- -s --noconfirm -L --holdver -i 6 | 7 | -------------------------------------------------------------------------------- /local/bin/1-build-x86_64: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export LANG=C 4 | sudo arch-nspawn $CHROOT/x86_64/root pacman -Syu 5 | sudo makechrootpkg -n -u -c -r $CHROOT/x86_64 -- -s --noconfirm -L --holdver -i 6 | 7 | -------------------------------------------------------------------------------- /local/bin/2-repomk: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | count=$(ls -1 *.pkg.tar.xz 2>/dev/null | wc -l) 4 | 5 | dir=$(pwd) 6 | 7 | fonts=/mnt/sda2/ib-repo/fonts 8 | i686=/mnt/sda2/ib-repo/i686 9 | x86_64=/mnt/sda2/ib-repo/x86_64 10 | multi=/mnt/sda2/ib-repo/multilib/x86_64 11 | 12 | GPG_TTY=$(tty) 13 | export GPG_TTY 14 | GPGKEY="962DDE58" 15 | GPGPASS="xxxxxxxxxxxxxxxx" 16 | 17 | if [[ "$count" != 0 ]]; then 18 | if [[ "$dir" == "$fonts" ]]; then 19 | echo -e 'Creating fonts repository ...' 20 | 21 | echo -e 'Signing packages ...' 22 | for pkg in *.pkg.tar.xz; do 23 | sigfile="${pkg}.sig" 24 | if [[ ! -f $sigfile ]]; then 25 | gpg --detach-sign --use-agent -u ${GPGKEY} --passphrase ${GPGPASS} --batch "$pkg" 26 | fi 27 | done 28 | 29 | if ! gpg --verify "$sigfile" >/dev/null 2>&1; then 30 | echo -e "Signature $sigfile is incorrect! $pkg" 31 | exit 1 32 | fi 33 | 34 | echo -e 'Creating & signing database ...' 35 | repo-add --verify --sign --key ${GPGKEY} -f -n infinality-bundle-fonts.db.tar.gz *.pkg.tar.xz 36 | 37 | rm infinality-bundle-fonts.db infinality-bundle-fonts.db.sig 38 | cp infinality-bundle-fonts.db.tar.gz infinality-bundle-fonts.db 39 | cp infinality-bundle-fonts.db.tar.gz infinality-bundle-fonts.files 40 | cp infinality-bundle-fonts.db.tar.gz.sig infinality-bundle-fonts.db.sig 41 | 42 | echo -e 'Repository fonts created successfully.' 43 | elif [[ "$dir" == "$i686" ]]; then 44 | echo -e 'Creating i686 repository ...' 45 | 46 | echo -e 'Signing packages ...' 47 | for pkg in *.pkg.tar.xz; do 48 | sigfile="${pkg}.sig" 49 | if [[ ! -f $sigfile ]]; then 50 | gpg --detach-sign --use-agent -u ${GPGKEY} --passphrase ${GPGPASS} --batch "$pkg" 51 | fi 52 | done 53 | 54 | if ! gpg --verify "$sigfile" >/dev/null 2>&1; then 55 | echo -e "Signature $sigfile is incorrect! $pkg" 56 | exit 1 57 | fi 58 | 59 | echo -e 'Creating & signing database ...' 60 | repo-add --verify --sign --key ${GPGKEY} -f -n infinality-bundle.db.tar.gz *.pkg.tar.xz 61 | 62 | rm infinality-bundle.db infinality-bundle.db.sig 63 | cp infinality-bundle.db.tar.gz infinality-bundle.db 64 | cp infinality-bundle.db.tar.gz infinality-bundle.files 65 | cp infinality-bundle.db.tar.gz.sig infinality-bundle.db.sig 66 | 67 | echo -e 'Repository i686 created successfully.' 68 | elif [[ "$dir" == "$x86_64" ]]; then 69 | echo -e 'Creating x86_64 repository ...' 70 | 71 | echo -e 'Signing packages ...' 72 | for pkg in *.pkg.tar.xz; do 73 | sigfile="${pkg}.sig" 74 | if [[ ! -f $sigfile ]]; then 75 | gpg --detach-sign --use-agent -u ${GPGKEY} --passphrase ${GPGPASS} --batch "$pkg" 76 | fi 77 | done 78 | 79 | if ! gpg --verify "$sigfile" >/dev/null 2>&1; then 80 | echo -e "Signature $sigfile is incorrect! $pkg" 81 | exit 1 82 | fi 83 | 84 | echo -e 'Creating & signing database ...' 85 | repo-add --verify --sign --key ${GPGKEY} -f -n infinality-bundle.db.tar.gz *.pkg.tar.xz 86 | 87 | rm infinality-bundle.db infinality-bundle.db.sig 88 | cp infinality-bundle.db.tar.gz infinality-bundle.db 89 | cp infinality-bundle.db.tar.gz infinality-bundle.files 90 | cp infinality-bundle.db.tar.gz.sig infinality-bundle.db.sig 91 | 92 | echo -e 'Repository x86_64 created successfully.' 93 | elif [[ "$dir" == "$multi" ]]; then 94 | echo -e 'Creating multilib repository ...' 95 | 96 | echo -e 'Signing packages ...' 97 | for pkg in *.pkg.tar.xz; do 98 | sigfile="${pkg}.sig" 99 | if [[ ! -f $sigfile ]]; then 100 | gpg --detach-sign --use-agent -u ${GPGKEY} --passphrase ${GPGPASS} --batch "$pkg" 101 | fi 102 | done 103 | 104 | if ! gpg --verify "$sigfile" >/dev/null 2>&1; then 105 | echo -e "Signature $sigfile is incorrect! $pkg" 106 | exit 1 107 | fi 108 | 109 | echo -e 'Creating & signing database ...' 110 | repo-add --verify --sign --key ${GPGKEY} -f -n infinality-bundle-multilib.db.tar.gz *.pkg.tar.xz 111 | 112 | rm infinality-bundle-multilib.db infinality-bundle-multilib.db.sig 113 | cp infinality-bundle-multilib.db.tar.gz infinality-bundle-multilib.db 114 | cp infinality-bundle-multilib.db.tar.gz infinality-bundle-multilib.files 115 | cp infinality-bundle-multilib.db.tar.gz.sig infinality-bundle-multilib.db.sig 116 | 117 | echo -e 'Repository multilib created successfully.' 118 | fi 119 | else 120 | echo -e "No packages found, exiting." 121 | fi 122 | 123 | -------------------------------------------------------------------------------- /local/bin/3-upload: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # synchronize local with remote 3 | 4 | rsync -a -v -e "ssh -p XXXXX" -h --progress --delete /mnt/sda2/ib-repo/ \ 5 | @aaa.bbb.ccc.ddd:/home/www/html/repo 6 | 7 | -------------------------------------------------------------------------------- /local/bin/acrobat: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -d /opt/arch32/etc/profile.d/ ]; then 3 | for profile in /opt/arch32/etc/profile.d/*.sh; do 4 | [ -r "$profile" ] && . "$profile" 5 | done 6 | unset profile 7 | fi 8 | 9 | WINEPREFIX="/home/bohoomil/.wine" 10 | ACROPATH="/drive_c/Program Files/Adobe/Acrobat 8.0/Acrobat" 11 | schroot -pqd "$(pwd)" -- wine "${WINEPREFIX}${ACROPATH}/Acrobat.exe" >/dev/null 2>&1 12 | 13 | -------------------------------------------------------------------------------- /local/bin/adobe-air: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Simple Adobe Air SDK wrapper script to use it as a simple AIR application launcher 3 | # By Spider.007 / Sjon 4 | 5 | if [[ -z "$1" ]] 6 | then 7 | echo "Please supply an .air application as first argument" 8 | exit 1 9 | fi 10 | 11 | tmpdir=`mktemp -d /tmp/adobeair.XXXXXXXXXX` 12 | 13 | echo "adobe-air: Extracting application to directory: $tmpdir" 14 | mkdir -p $tmpdir 15 | unzip -q $1 -d $tmpdir || exit 1 16 | 17 | echo "adobe-air: Attempting to start application" 18 | /opt/adobe-air-sdk/bin/adl -nodebug $tmpdir/META-INF/AIR/application.xml $tmpdir 19 | 20 | echo "adobe-air: Cleaning up temporary directory" 21 | rm -Rf $tmpdir && echo "adobe-air: Done" 22 | -------------------------------------------------------------------------------- /local/bin/arch32: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Add '/var/run /var/lib/dbus' to the list to enable pulseaudio. 4 | dirs=(/dev /dev/pts /dev/shm /tmp /home) 5 | 6 | case $1 in 7 | start) 8 | for d in "${dirs[@]}"; do 9 | mount -o bind $d /mnt/sda4/arch32-chroot$d 10 | done 11 | ;; 12 | stop) 13 | for (( i = ${#dirs[@]} - 1; i >= 0; i-- )); do 14 | umount "/mnt/sda4/arch32-chroot${dirs[i]}" 15 | done 16 | umount /mnt/sda4/arch32-chroot/{proc,sys} 17 | ;; 18 | *) 19 | echo "usage: $0 (start|stop)" 20 | exit 1 21 | esac 22 | -------------------------------------------------------------------------------- /local/bin/bash-history-cleanup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | awk '!x[$0]++' .bash_history > .bash_history.tmp && mv .bash_history.tmp .bash_history 3 | 4 | -------------------------------------------------------------------------------- /local/bin/batstat.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | C04="\x04" # mid grey on black 4 | C09="\x09" # red9 5 | C11="\x0B" # green10 6 | C20="\x14" # white7 7 | 8 | batt='/sys/class/power_supply/BAT0/' 9 | 10 | current=$(<"${batt}"/charge_now) 11 | full=$(<"${batt}"/charge_full) 12 | state=$(<"${batt}"/status) 13 | 14 | charge=$(( $current * 100 / $full )) 15 | 16 | case "${state}" in 17 | Full) batstat="${C11}[=]${C04}" ;; 18 | Charging) batstat="${C11}[+]${C04}" ;; 19 | Discharging) batstat="${C09}[-]${C04}" ;; 20 | esac 21 | 22 | printf '%s\n' "${batstat} ${C20}${charge}%${C04}" 23 | -------------------------------------------------------------------------------- /local/bin/brightness: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | bright=$(/dev/tcp/${TCP_HOST}/${TCP_PORT} 12 | MYEXIT=$? 13 | 14 | : <From the bash reference: 23 | /dev/tcp/host/port 24 | If host is a valid hostname or Internet address, and port is an integer 25 | port number or service name, Bash attempts to open a TCP connection to the 26 | corresponding socket. 27 | EXPLANATION 28 | 29 | 30 | if [ "X$MYEXIT" = "X0" ]; then 31 | echo "Connection successful. Exit code: $MYEXIT" 32 | else 33 | echo "Connection unsuccessful. Exit code: $MYEXIT" 34 | fi 35 | 36 | exit $MYEXIT 37 | -------------------------------------------------------------------------------- /local/bin/chk_port.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Usage: 4 | # chk_ports.sh 5 | 6 | exec 6<>/dev/tcp/127.0.0.1/$1 && echo "$1 is open." || echo "$1 is closed." 7 | exec 6>&- # close output connection 8 | exec 6<&- # close input connection 9 | 10 | -------------------------------------------------------------------------------- /local/bin/chr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mount -t proc proc proc/ 4 | mount -t sysfs sys sys/ 5 | mount -o bind /dev dev/ 6 | mount -t devpts pts dev/pts/ 7 | 8 | cp -L /etc/resolv.conf etc/resolv.conf 9 | 10 | chroot . /bin/bash 11 | 12 | -------------------------------------------------------------------------------- /local/bin/colors: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | colors=($(xrdb -query | sed -n 's/.*color\([0-9]\)/\1/p' | sort -nu | cut -f2)) 4 | 5 | echo -e "\e[1;37m 6 | Black Red Green Yellow Blue Magenta Cyan White 7 | ───────────────────────────────────────────────────────────────────────────────────────\e[0m" 8 | for i in {0..7}; do echo -en "\e[$((30+$i))m █ ${colors[i]} \e[0m"; done 9 | echo 10 | for i in {8..15}; do echo -en "\e[1;$((22+$i))m █ ${colors[i]} \e[0m"; done 11 | echo -e "\n" 12 | -------------------------------------------------------------------------------- /local/bin/colortheme: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Original: http://frexx.de/xterm-256-notes/ 3 | # http://frexx.de/xterm-256-notes/data/colortable16.sh 4 | # Modified by Aaron Griffin 5 | # and further by Kazuo Teramoto 6 | 7 | case "${1}" in 8 | #help 9 | *h|*help) 10 | echo "uses unicode version as default" 11 | echo "\"${0} -a\" ascii version" 12 | echo "\"${0} -u\" unicode version" 13 | ;; 14 | #ascii version 15 | *a|*ascii) 16 | FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ') 17 | BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT') 18 | echo " .--------------------------------------------------------------------------." 19 | for b in $(seq 0 8); do 20 | if [ "$b" -gt 0 ]; then 21 | bg=$(($b+39)) 22 | fi 23 | 24 | echo -en "\033[0m ${BGNAMES[$b]} | " 25 | for f in $(seq 0 7); do 26 | echo -en "\033[${bg}m\033[$(($f+30))m ${FGNAMES[$f]} " 27 | done 28 | echo -en "\033[0m |" 29 | 30 | echo -en "\033[0m\n\033[0m | " 31 | for f in $(seq 0 7); do 32 | echo -en "\033[${bg}m\033[1;$(($f+30))m ${FGNAMES[$f]} " 33 | done 34 | echo -en "\033[0m |" 35 | echo -e "\033[0m" 36 | 37 | if [ "$b" -lt 8 ]; then 38 | echo " |--------------------------------------------------------------------------|" 39 | fi 40 | done 41 | echo " '--------------------------------------------------------------------------'" 42 | ;; 43 | #unicode version 44 | *u|*unicode|*) 45 | FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ') 46 | BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT') 47 | echo " ┌──────────────────────────────────────────────────────────────────────────┐" 48 | for b in $(seq 0 8); do 49 | if [ "$b" -gt 0 ]; then 50 | bg=$(($b+39)) 51 | fi 52 | 53 | echo -en "\033[0m ${BGNAMES[$b]} │ " 54 | for f in $(seq 0 7); do 55 | echo -en "\033[${bg}m\033[$(($f+30))m ${FGNAMES[$f]} " 56 | done 57 | echo -en "\033[0m │" 58 | 59 | echo -en "\033[0m\n\033[0m │ " 60 | for f in $(seq 0 7); do 61 | echo -en "\033[${bg}m\033[1;$(($f+30))m ${FGNAMES[$f]} " 62 | done 63 | echo -en "\033[0m │" 64 | echo -e "\033[0m" 65 | 66 | if [ "$b" -lt 8 ]; then 67 | echo " ├──────────────────────────────────────────────────────────────────────────┤" 68 | fi 69 | done 70 | echo " └──────────────────────────────────────────────────────────────────────────┘" 71 | ;; 72 | esac 73 | -------------------------------------------------------------------------------- /local/bin/cr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # by bohoomil 4 | # A simple script that will repeat 5 | # the chrooting routine for you. 6 | # Drop it somewhere in your $PATH. 7 | 8 | # --- colours 9 | cres="\e[00m" 10 | cred="\e[01;31m" 11 | cyel="\e[01;33m" 12 | cgre="\e[01;32m" 13 | cblu="\e[01;34m" 14 | 15 | usage() { 16 | echo -e "" 17 | echo -e "Usage:" 18 | echo -e " cr a|b|c|...|X -- Chroot to a predefined OS" 19 | echo -e "" 20 | echo -e "Arguments:" 21 | echo -e " a -- Arch Linux on /dev/sda2" 22 | echo -e " b -- Arch32 chroot on /dev/sda1" 23 | echo -e " X -- Do nothing and exit" 24 | echo -e " -h, help -- Print this help" 25 | echo -e "" 26 | } 27 | 28 | # --- systems 29 | case "$1" in 30 | a) osname="Arch Linux" 31 | ospart="/mnt/sda2" 32 | osdev="/dev/sda2" 33 | ;; 34 | b) osname="Arch32" 35 | ospart="/opt/arch32" 36 | osdev="/dev/sda1" 37 | ;; 38 | X) echo "Nothing chosen. Exiting." 39 | exit 1 40 | ;; 41 | -h) usage 42 | exit 1 43 | ;; 44 | *) usage 45 | exit 1 46 | ;; 47 | esac 48 | 49 | fs=$(fsck -N $osdev | awk 'FNR == 2 { gsub("fsck.", ""); print $5 }') 50 | 51 | # --- 52 | 53 | if [[ $UID -ne 0 ]]; then 54 | sudo -p 'Enter root password to continue: ' bash $0 "$@" 55 | exit $? 56 | fi 57 | 58 | echo -e "${cyel}Preparing to enter ${osname} ...${cres}" 59 | 60 | # --- mount chroot partition 61 | echo -e "Mounting $osname partition and system directories ..." 62 | 63 | if [ ! -d ${ospart} ]; then 64 | echo -e "Mount point $ospart doesn't exist. Creating:" 65 | mkdir -pv "${ospart}" 66 | fi 67 | 68 | mntch=$(cat /proc/mounts | grep "${osdev}") 69 | mntchex="$?" 70 | 71 | # -- check if the filesystem is already mounted 72 | if [ "$mntchex" -eq 0 ]; then 73 | echo -e "${cred} $osdev already mounted:${cres}" 74 | echo -e "$mntch" 75 | else 76 | echo -e "Mounting $ospart ..." 77 | mount -t ${fs} ${osdev} ${ospart} 78 | echo -e "${cgre}Done.${cres}" 79 | fi 80 | 81 | if [ "$?" -ne 0 ]; then 82 | echo -e "${cred}Couldn't create $ospart. Exiting.${cres}" 83 | exit 1 84 | fi 85 | 86 | # --- mount chroot filesystems 87 | for dir in ${ospart}{/proc,/sys,/dev,/dev/pts}; do 88 | if [ ! -d ${dir} ]; then 89 | echo -e "Mount point $dir doesn't exist. Creating:" 90 | mkdir -pv "${dir}" 91 | if [ "$?" -ne 0 ]; then 92 | echo -e "${cred}Couldn't create $dir. Exiting.${cres}" 93 | exit 1 94 | fi 95 | fi 96 | done 97 | 98 | cd ${ospart} 99 | mount -t proc proc proc/ 100 | mount -t sysfs sys sys/ 101 | mount -o bind /dev dev/ 102 | #mount -t devpts pts dev/pts/ 103 | sudo mount -o gid=5 -t devpts pts dev/pts 104 | #mount -t devpts -o rw,nosuid,noexec,gid=5,mode=620,ptmxmode=000 devpts dev/pts 105 | if [ $? -eq 0 ]; then 106 | echo -e "${cgre}Done.${cres}" 107 | fi 108 | 109 | echo -e "Making host's network accessible in chroot ..." 110 | if [ -f /etc/resolv.conf ]; then 111 | cp -L /etc/resolv.conf etc/resolv.conf 112 | if [ $? -eq 0 ]; then 113 | echo -e "${cgre}Done.${cres}" 114 | else 115 | echo -e "${cred}resolv.conf couldn't be copied${cres}" 116 | fi 117 | fi 118 | 119 | # --- additional steps 120 | echo -e "Entering $osname ..." 121 | echo -e "" 122 | echo -e " After you have successfully entered the new environment," 123 | echo -e " you may want to set its variables. In order to do so," 124 | echo -e " issue the following commands:" 125 | echo -e " source /etc/profile" 126 | echo -e " export PS1='[$osname] \$PS1'" 127 | echo -e "" 128 | echo -e " In case you need to run chroot X server," 129 | echo -e " you should additionaly issue" 130 | echo -e " xhost +" 131 | echo -e " export DISPLAY=:0.0" 132 | echo -e "" 133 | echo -e " If necessary, mount mount the partitions you need." 134 | echo -e "" 135 | 136 | # --- get in 137 | chroot . /usr/bin/bash 138 | 139 | # --- exit the chroot environment and clean up 140 | echo -e "${cyel}Leaving chroot ....${cres}" 141 | echo -e "Unmounting system directories ..." 142 | umount ${ospart}/{proc,sys,dev/pts,dev} 143 | if [ $? -eq 0 ]; then 144 | echo -e "${cgre}Done.${cres}" 145 | fi 146 | 147 | #echo -e "Unmounting chroot partition ..." 148 | cd $HOME 149 | #umount ${ospart} 150 | #if [ $? -eq 0 ]; then 151 | # echo -e "${cgre}Done.${cres}" 152 | #fi 153 | 154 | exit 0 155 | 156 | -------------------------------------------------------------------------------- /local/bin/dmenu-dwm: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Originally Based on code by Dieter Plaetinck. 4 | # Pretty much re-written by Mina Nagy (mnzaki) 5 | # customized by bohoomil 6 | 7 | config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/dmenu" 8 | mkdir -p "$config_dir" 9 | 10 | if [ -f $config_dir/dmenurc ]; then 11 | . $config_dir/dmenurc && dmenu_cmd="dmenu -i $dmenu_cfg" 12 | else 13 | dmenu_cmd="dmenu -i" 14 | fi 15 | 16 | terminal="urxvtc -e" 17 | max_recent=20 # Number of recent commands to track 18 | 19 | cache_dir="${XDG_CACHE_HOME:-$HOME/.cache}/dmenu-recent" 20 | recent_cache="$cache_dir/recent" 21 | rest_cache="$cache_dir/all" 22 | blacklist_cfg="$config_dir/blacklist" 23 | known_types=" background terminal terminal_hold " 24 | 25 | [ ! -d "$config_dir" ] && mkdir -p "$config_dir" 26 | [ ! -d "$cache_dir" ] && mkdir -p "$cache_dir" 27 | [ ! -f "$recent_cache" ] && touch "$recent_cache" 28 | [ ! -f "$blacklist_cfg" ] && touch "$blacklist_cfg" 29 | [ ! -f "$rest_cache" ] && touch "$rest_cache" 30 | 31 | IFS=: 32 | if stest -dqr -n "$rest_cache" $PATH 2>/dev/null; then 33 | stest -flx $PATH | sort -u | grep -vf "$recent_cache" > "$rest_cache" 34 | fi 35 | 36 | IFS=" " 37 | cmd=$(cat "$recent_cache" "$rest_cache" | grep -vxFf "$blacklist_cfg" | $dmenu_cmd -p Execute: "$@") || exit 38 | 39 | if ! grep -qx "$cmd" "$recent_cache" &> /dev/null; then 40 | grep -vx "$cmd" "$rest_cache" > "$rest_cache.$$" 41 | mv "$rest_cache.$$" "$rest_cache" 42 | fi 43 | 44 | echo "$cmd" > "$recent_cache.$$" 45 | grep -vx "$cmd" "$recent_cache" | head -n "$max_recent" >> "$recent_cache.$$" 46 | mv "$recent_cache.$$" "$recent_cache" 47 | 48 | # Figure out how to run the command based on the command name, disregarding 49 | # arguments, if any. 50 | word0=${cmd%% *} 51 | match="^$word0$" 52 | 53 | get_type () { 54 | while type=$(echo $known_types | xargs -n1 | $dmenu_cmd -p Type:); do 55 | [[ $known_types =~ " $type " ]] || continue 56 | echo "$word0" >> "$config_dir/$type" 57 | break 58 | done 59 | echo $type 60 | } 61 | 62 | if ! type=$(grep -lx "$match" -R "$config_dir"); then 63 | type=$(get_type) 64 | else 65 | type=${type##*/} 66 | if ! [[ $known_types =~ " $type " ]]; then 67 | rm "$config_dir/$type" 68 | type=$(get_type) 69 | fi 70 | fi 71 | 72 | [[ "$type" = "background" ]] && exec $cmd 73 | [[ "$type" = "terminal" ]] && exec $terminal "$cmd" 74 | [[ "$type" = "terminal_hold" ]] && 75 | exec $terminal sh -c "$cmd && echo Press Enter to terminate... && read line" 76 | 77 | -------------------------------------------------------------------------------- /local/bin/dmenu-scrot: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #changelog 3 | #v0.3 4 | #added 1. Notifications 2.unique names for each type (for quick launch) 3.better photo editor (pinta) 4.dmenu title 5 | #v0.4 6 | #1.Added variable for notification timeouts. 2. Show link in notification 7 | 8 | 9 | IMG_PATH=/home/bohoomil 10 | UL=fb 11 | EDIT=display 12 | 13 | prog=" 14 | ---Local screenshots (saved at IMG_PATH)--- 15 | 1.quick_fullscreen 16 | 2.delayed_fullscreen 17 | 3.section 18 | 4.edit_fullscreen 19 | ---Upload to remote service (images will be deleted)--- 20 | a.upload_fullscreen 21 | u.upload_delayed_fullscreen 22 | e.edit_upload_fullscreen 23 | s.upload_section 24 | p.edit_upload_section 25 | " 26 | 27 | cmd=$(dmenu -l 20 -nf '#999' -nb '#000' -sf '#eee' -sb '#554080' -p 'Choose screenshot type:' <<< "$prog") 28 | 29 | cd $IMG_PATH 30 | case ${cmd%% *} in 31 | 1.quick_fullscreen) scrot -d 1 '%Y-%m-%d-@%H-%M-%S-scrot.png' && notify-send -u low 'Scrot' 'Fullscreen taken and saved' 32 | ;; 33 | 2.delayed_fullscreen) scrot -d 4 '%Y-%m-%d-@%H-%M-%S-scrot.png' && notify-send -u low 'Scrot' 'Fullscreen Screenshot saved' 34 | ;; 35 | 3.section) scrot -s '%Y-%m-%d-@%H-%M-%S-scrot.png' && notify-send -u low 'Scrot' 'Screenshot of section saved' 36 | ;; 37 | 4.edit_fullscreen) scrot -d 1 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$EDIT \$f" && notify-send -u low 'Scrot' 'Screenshot edited and saved' 38 | ;; 39 | a.upload_fullscreen) scrot -d 1 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$UL \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low "Scrot" "Screenshot Uploaded (powered by fb) - $(xclip -o;echo)" 40 | ;; 41 | u.upload_delayed_fullscreen) scrot -d 4 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$UL \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low "Scrot" "Screenshot Uploaded (powered by fb) - $(xclip -o)" 42 | ;; 43 | e.edit_upload_fullscreen) scrot -d 4 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$EDIT \$f && $UL \$f && rm -f \$f" && notify-send -u low "Scrot" "Screenshot Uploaded (powered by fb) - $(xclip -o)" 44 | ;; 45 | s.upload_section) scrot -s '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$UL \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low "Scrot" "Screenshot Uploaded (powered by fb - $(xclip -o)" 46 | ;; 47 | p.edit_upload_section) scrot -s '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$EDIT \$f && $UL \$f && rm -f \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low "Scrot" "Screenshot Uploaded (powered by FB) - $(xclip -o)" 48 | ;; 49 | *) exec "'${cmd}'" 50 | ;; 51 | esac 52 | 53 | -------------------------------------------------------------------------------- /local/bin/dmenu_path: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | DMCACHERUN=${XDG_CACHE_HOME:-$HOME/.cache/dmenu}/dmenu_run 3 | IFS=: 4 | 5 | if ! test -f "$DMCACHERUN" || find $PATH -type d -newer "$DMCACHERUN" | grep -q .; then 6 | find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$DMCACHERUN" 7 | fi 8 | 9 | cat "$DMCACHERUN" 10 | -------------------------------------------------------------------------------- /local/bin/dmesgh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | my @dmesg_new = (); 7 | my $dmesg = "/bin/dmesg"; 8 | my @dmesg_old = `$dmesg`; 9 | my $now = time(); 10 | my $uptime = `cat /proc/uptime | cut -d"." -f1`; 11 | my $t_now = $now - $uptime; 12 | 13 | sub format_time { 14 | my @time = localtime $_[0]; 15 | $time[4]+=1; # Adjust Month 16 | $time[5]+=1900; # Adjust Year 17 | return sprintf '%4i-%02i-%02i %02i:%02i:%02i', @time[reverse 0..5]; 18 | } 19 | 20 | foreach my $line ( @dmesg_old ) 21 | { 22 | chomp( $line ); 23 | if( $line =~ m/\[\s*(\d+)\.(\d+)\](.*)/i ) 24 | { 25 | # now - uptime + sekunden 26 | my $t_time = format_time( $t_now + $1 ); 27 | push( @dmesg_new , "[$t_time] $3" ); 28 | } 29 | } 30 | 31 | print join( "\n", @dmesg_new ); 32 | print "\n"; 33 | -------------------------------------------------------------------------------- /local/bin/dwm-exit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | killall dunst && killall xcmenu && killall dropbox && killall dwm-start 4 | -------------------------------------------------------------------------------- /local/bin/dwm-start: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | while true 4 | do 5 | /home/bohoomil/.local/bin/dwm-status 6 | sleep 2s 7 | done & 8 | 9 | while true 10 | do 11 | /usr/bin/dwm 2> /dev/null 12 | #/usr/bin/dwm 2> ~/.dwm.log 13 | done 14 | 15 | -------------------------------------------------------------------------------- /local/bin/gpartedr: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | urxvtc -geometry "70x10" -title "gparted pass" -e sh -c "sudo gparted" 4 | 5 | -------------------------------------------------------------------------------- /local/bin/gtkrc-reload: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | # License: Same as GTK2 4 | use strict; 5 | use warnings; 6 | use Gtk2 '-init'; 7 | 8 | my $event = Gtk2::Gdk::Event->new("GDK_CLIENT_EVENT"); 9 | $event->send_event(1); 10 | $event->window(undef); 11 | $event->message_type(Gtk2::Gdk::Atom->intern("_GTK_READ_RCFILES", 0)); 12 | $event->data_format(8); 13 | Gtk2::Gdk::Event->send_clientmessage_toall($event); 14 | -------------------------------------------------------------------------------- /local/bin/hddtmp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sudo hddtemp /dev/sda | awk '{ print $3 }' 4 | -------------------------------------------------------------------------------- /local/bin/ip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | red='\e[0;31m' 3 | NC='\e[0m' 4 | 5 | echo -e "${red}Internal: ${NC}" 6 | ifconfig | grep 'inet addr' 7 | echo -e "${red}External: ${NC}" 8 | echo -ne "\t " 9 | curl http://www.floft.net/apps/ip?text 2>/dev/null 10 | echo 11 | -------------------------------------------------------------------------------- /local/bin/iploc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # by bohoomil 4 | # display your IP and geolocation 5 | # (e.g. test if your vpn is working) 6 | # dependency: GeoIP 7 | 8 | myip=$(dig myip.opendns.com @resolver1.opendns.com +short) 9 | loc=$(geoiplookup $myip | awk -F' ' '{gsub(/,/,""); print $4}') 10 | 11 | echo -en "IP: $myip\n"; 12 | echo -en "country:\e[01;35m $loc\n"; 13 | 14 | exit 0 15 | -------------------------------------------------------------------------------- /local/bin/loc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # returns external IP's country code and saves it to a file 3 | 4 | con=$(wget -q --tries=10 --timeout=20 -O - http://google.com >/dev/null && echo -e ON || echo -e NO) 5 | myip=$(dig myip.opendns.com @resolver1.opendns.com +short) 6 | loc=$(geoiplookup $myip | awk -F' ' '{print $4}' | sed '$s/,$//') 7 | 8 | if [[ $con == "ON" ]]; then 9 | echo "$loc" > "$HOME/tmp/loc" 10 | else 11 | echo "NO" 12 | fi 13 | 14 | exit 0 15 | -------------------------------------------------------------------------------- /local/bin/lowerit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Convert all file names in the current directory to lower case. 3 | # Only operates on plain files -- does not change the name of directories. 4 | # Will ask for verification before overwriting an existing file. 5 | for x in `ls` 6 | do 7 | if [ ! -f $x ]; then 8 | continue 9 | fi 10 | lc=`echo $x | tr '[A-Z]' '[a-z]'` 11 | if [ $lc != $x ]; then 12 | mv -i $x $lc 13 | fi 14 | done 15 | -------------------------------------------------------------------------------- /local/bin/m: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # by bohoomil 4 | # Easily mount your fstab partitions. 5 | # Prerequisites: sudo, coreutils, util-linux, gawk 6 | # Drop it somewhere in your $PATH. 7 | 8 | usage() { 9 | echo -e "" 10 | echo -e "Mount an sdX partition." 11 | echo -e "Usage: m , e.g." 12 | echo -e " m a 4 -- mount /dev/sda4 in /mnt/sda4" 13 | echo -e "" 14 | } 15 | 16 | # colours 17 | cred="\e[01;31m" 18 | cgre="\e[01;32m" 19 | cres="\e[00m" 20 | 21 | # /dev /mnt 22 | mntpt="/mnt/sd" 23 | mntdv="/dev/sd" 24 | 25 | fs=$(fsck -N $mntdv$1$2 | awk 'FNR == 2 { gsub("fsck.", ""); print $5 }') 26 | 27 | mntch=$(cat /proc/mounts | grep sd"$1$2") 28 | mntchex="$?" 29 | 30 | # check if the required applications are present 31 | for req in sudo blkid mount mkdir; do 32 | which $req >/dev/null 2>&1 33 | if [ "$?" -ne 0 ]; then 34 | echo -e "${cred}${req} has not been installed correctly. Exiting.${cres}" 35 | exit 1 36 | fi 37 | done 38 | 39 | # check if required parameters are present 40 | case "$1" in 41 | [a-z]) 42 | case "$2" in 43 | "") 44 | usage 45 | exit 1 46 | ;; 47 | "[1-9]+$") 48 | continue 49 | ;; 50 | esac 51 | ;; 52 | "[1-9]+$"|"") 53 | usage 54 | exit 1 55 | ;; 56 | *) 57 | usage 58 | exit 1 59 | ;; 60 | esac 61 | 62 | # check if the filesystem is already mounted 63 | if [ "$mntchex" -eq 0 ]; then 64 | echo -e "${cred}$mntdv$1$2 already mounted:${cres}" 65 | echo -e "$mntch" 66 | exit 1 67 | fi 68 | 69 | # check if a mount point exists 70 | # if it doesn't -- create it 71 | if [ ! -d "$mntpt$1$2" ]; then 72 | echo -e "Mount point $mntpt$1$2 doesn't exist. Creating:" 73 | sudo mkdir -pv "$mntpt$1$2" 74 | if [ "$?" -ne 0 ]; then 75 | echo -e "${cred}Couldn't create the directory. Exiting.${cres}" 76 | exit 1 77 | fi 78 | #echo " Done." 79 | fi 80 | 81 | # mount the filesystem 82 | sudo mount -t "$fs" "$mntdv$1$2" "$mntpt$1$2" 83 | 84 | # check the error code 85 | if [ "$?" -eq 0 ]; then 86 | echo -e "${cgre}Successfully mounted $mntdv$1$2 in $mntpt$1$2${cres}" 87 | else 88 | echo -e "${cred}Something has gone wrong.${cres}" 89 | usage 90 | fi 91 | 92 | -------------------------------------------------------------------------------- /local/bin/mac-win: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | WINEPREFIX="/home/bohoomil/.wine" 3 | MACPATH="/drive_c/Program Files/Monkey's Audio" 4 | schroot -pqd "$(pwd)" -- wine "${WINEPREFIX}${MACPATH}/Monkey's Audio.exe" 5 | 6 | -------------------------------------------------------------------------------- /local/bin/mpl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | urxvtc -geometry 98x30 -e mpv "$1" 3 | 4 | -------------------------------------------------------------------------------- /local/bin/mplm3u: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | urxvtc -geometry 98x30 -e mpv -playlist "$1" 3 | 4 | -------------------------------------------------------------------------------- /local/bin/netspeed.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This shell script shows the network speed, both received and transmitted. 4 | 5 | # Usage: net_speed.sh interface 6 | # e.g: net_speed.sh eth0 7 | 8 | # Global variables 9 | interface=$1 10 | received_bytes="" 11 | old_received_bytes="" 12 | transmitted_bytes="" 13 | old_transmitted_bytes="" 14 | cyan="\e[1;36;38m" 15 | green="\e[1;32;38m" 16 | magenta="\e[1;35;38m" 17 | 18 | # This function parses /proc/net/dev file searching for a line containing $interface data. 19 | # Within that line, the first and ninth numbers after ':' are respectively the received and transmited bytes. 20 | get_bytes() 21 | { 22 | line=$(cat /proc/net/dev | grep $interface | cut -d ':' -f 2 | awk '{print "received_bytes="$1, "transmitted_bytes="$9}') 23 | eval $line 24 | } 25 | 26 | # Function which calculates the speed using actual and old byte number. 27 | # Speed is shown in KByte per second when greater or equal than 1 KByte per second. 28 | # This function should be called each second. 29 | get_velocity() 30 | { 31 | value=$1 32 | old_value=$2 33 | 34 | let vel=$value-$old_value 35 | let velKB=$vel/1024 36 | if [ $velKB != 0 ]; 37 | then 38 | echo -n "$velKB KB/s"; 39 | else 40 | echo -n "0 KB/s"; 41 | fi 42 | } 43 | 44 | # Gets initial values. 45 | get_bytes 46 | old_received_bytes=$received_bytes 47 | old_transmitted_bytes=$transmitted_bytes 48 | 49 | # Shows a message and waits for one second. 50 | echo -e $magenta"NET SPEED"; 51 | sleep 1; 52 | #echo ""; 53 | 54 | # Main loop. It will repeat forever. 55 | while true; 56 | do 57 | 58 | # Get new transmitted and received byte number values. 59 | get_bytes 60 | 61 | # Calculates speeds. 62 | vel_recv=$(get_velocity $received_bytes $old_received_bytes) 63 | vel_trans=$(get_velocity $transmitted_bytes $old_transmitted_bytes) 64 | 65 | # Shows results in the console. 66 | echo -en $green"DOWN: $vel_recv" $cyan"UP: $vel_trans\r" 67 | # Update old values to perform new calculations. 68 | old_received_bytes=$received_bytes 69 | old_transmitted_bytes=$transmitted_bytes 70 | 71 | # Waits one second. 72 | sleep 1; 73 | 74 | done 75 | 76 | -------------------------------------------------------------------------------- /local/bin/opera_start: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | opera -geometry 990x884+0-0 4 | 5 | -------------------------------------------------------------------------------- /local/bin/pkgstat: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # by bohoomil 4 | # Display the number of installed packages, 5 | # version of the kernel and gcc used. 6 | 7 | ALL=$(pacman -Q | wc -l) 8 | EXPL=$(pacman -Qe | wc -l) 9 | EXPLND=$(pacman -Qet | wc -l) 10 | LOCAL=$(pacman -Qm | wc -l) 11 | KERNEL=$(uname -r) 12 | GCC=$(gcc --version | head -n 1 | awk '{ print $3 }') 13 | SETUP=$(grep -i 'installed filesystem' /var/log/pacman.log | perl -lne 'print $1 while (/\[(.*?)\]/g)') 14 | 15 | echo You have ... 16 | 17 | echo -e "\e[01;31m $ALL\e[0;0m" installed packages altogether; 18 | 19 | echo -e "\e[01;33m $EXPL\e[0;0m" explicitly installed packages \(incl. deps\); 20 | 21 | echo -e "\e[00;36m $EXPLND\e[0;0m" explicitly installed packages \(excl. deps\); 22 | 23 | echo -e "\e[01;32m $LOCAL\e[0;0m" localy installed packages. 24 | 25 | echo -e Your system was originally set up "\e[00;37m$SETUP\e[0;0m" 26 | 27 | echo -e You are using kernel "\e[01;34m $KERNEL\e[0;0m" 28 | 29 | echo -e and gcc version "\e[01;35m $GCC\e[0;0m" 30 | 31 | exit 0 32 | 33 | -------------------------------------------------------------------------------- /local/bin/radio: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # simple web radio player for $SHELL 3 | # bohoomil 4 | 5 | wintitle="Radio" 6 | echo -e '\033k'$wintitle'\033\\' 7 | 8 | 9 | RED='\E[01;31m' 10 | GRE='\E[01;32m' 11 | YEL='\E[01;33m' 12 | BLU='\E[00;34m' 13 | CYA='\E[00;36m' 14 | RES='\E[0m' 15 | 16 | PS3="Type a number: " 17 | 18 | option=$1 19 | 20 | radios_list=('ČRo Vltava' 21 | 'ČRo D-dur' 22 | 'ČRo Jazz' 23 | 'Klassik Radio' 24 | 'NDR Kultur' 25 | quit) 26 | 27 | mpv_cmd(){ 28 | /usr/bin/mpv -playlist "$1" 29 | } 30 | 31 | head_main(){ 32 | echo -e "$CYA:: \$SHELL Radio Player ::$RES" 33 | echo -e '' 34 | } 35 | 36 | head_station(){ 37 | echo -e '' 38 | echo -e "$RED:: playing $preset ::$RES" 39 | echo -e '' 40 | } 41 | 42 | player_menu(){ 43 | select preset in "${radios_list[@]}"; do 44 | case "$preset" in 45 | 'ČRo Vltava') 46 | head_station 47 | mpv_cmd http://www.play.cz/radio/cro3-128.aac.m3u 48 | clear 49 | head_main 50 | player_menu 51 | ;; 52 | 'ČRo D-dur') 53 | head_station 54 | mpv_cmd http://www.play.cz/radio/croddur128.aac.m3u 55 | clear 56 | head_main 57 | player_menu 58 | ;; 59 | 'ČRo Jazz') 60 | head_station 61 | mpv_cmd http://www.rozhlas.cz/audio/download/aac-crojazz-128.m3u 62 | clear 63 | head_main 64 | player_menu 65 | ;; 66 | 'Klassik Radio') 67 | head_station 68 | mpv_cmd http://edge.live.mp3.mdn.newmedia.nacamar.net/klassikradio128/livestream.mp3.m3u 69 | clear 70 | head_main 71 | player_menu 72 | ;; 73 | 'NDR Kultur') 74 | head_station 75 | mpv_cmd http://www.ndr.de/resources/metadaten/audio/m3u/ndrkultur.m3u 76 | clear 77 | head_main 78 | player_menu 79 | ;; 80 | quit) 81 | echo -e '' 82 | echo -e "$RED:: Quitting ::$RES" 83 | echo -e '' 84 | break 85 | exit 1 86 | ;; 87 | *) 88 | continue 89 | ;; 90 | esac 91 | break 92 | done 93 | exit 0 94 | } 95 | 96 | clear 97 | head_main 98 | player_menu 99 | 100 | -------------------------------------------------------------------------------- /local/bin/sda.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | df / | awk '/^\/dev/{printf $5"\n"}' 4 | -------------------------------------------------------------------------------- /local/bin/snap: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # wrapper for Tarsnap by jwr 3 | 4 | box="zeus" 5 | dir="/home/bohoomil /etc" 6 | 7 | # base commands 8 | # archive 9 | arc="-c -f $box-$(date +%d%m%y) --humanize-numbers $dir" 10 | # dry run 11 | tst="-c -f $box-$(date +%d%m%y) --humanize-numbers --dry-run -v $dir" 12 | # delete archive 13 | del="-d -f $box-" 14 | # extract archive 15 | ext="-x -f $box-" 16 | 17 | usage () { 18 | 19 | cat <tarsnapout.txt || sudo tarsnap $op 67 | 68 | -------------------------------------------------------------------------------- /local/bin/speed.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | RXB=$(cat /sys/class/net/wlan0/statistics/rx_bytes) 4 | TXB=$(cat /sys/class/net/wlan0/statistics/tx_bytes) 5 | sleep 2 6 | RXBN=$(cat /sys/class/net/wlan0/statistics/rx_bytes) 7 | TXBN=$(cat /sys/class/net/wlan0/statistics/tx_bytes) 8 | RXDIF=$(echo $((RXBN - RXB)) ) 9 | TXDIF=$(echo $((TXBN - TXB)) ) 10 | RXT=$(ifstat wlan0 | grep -i "RX Bytes:" | awk '{print $2}' | cut -d: -f2) 11 | TXT=$(ifstat wlan0 | grep -i "RX Bytes:" | awk '{print $6}' | cut -d: -f2) 12 | 13 | echo -e "^[f0;DOWN ^[f2;$((RXDIF / 1024 / 2))K/s ^[f0;UP ^[f4;$((TXDIF / 1024 / 2))K/s^[f0;" 14 | #echo -e "\b\x08$((RXDIF / 1024 / 2))K/s \x02$((TXDIF / 1024 / 2))K/s\x01" 15 | -------------------------------------------------------------------------------- /local/bin/sysinfo: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # by bohoomil 4 | # Display the number of installed packages, 5 | # version of the kernel and gcc used. 6 | 7 | HOST=$(uname -n) 8 | KERNEL=$(uname -r) 9 | MACHINE=$(uname -m) 10 | GCC=$(gcc --version | head -n 1 | awk '{ print $3 }') 11 | SETUP=$(grep -i '\ installed filesystem' /var/log/pacman.log | perl -lne 'print $1 while (/\[(.*?)\]/g)') 12 | 13 | SHLL=$(echo $SHELL | awk -F '/' '{ print $3 }') 14 | 15 | ALL=$(pacman -Q | wc -l) 16 | EXPL=$(pacman -Qe | wc -l) 17 | EXPLND=$(pacman -Qet | wc -l) 18 | LOCAL=$(pacman -Qm | wc -l) 19 | DWMV=$(dwm -v 2>&1 | awk -F ',' '{gsub("dwm-",""); print $1 }') 20 | UPT=$(uptime | sed 's/.*up \(.*\),.*user.*/\1/') 21 | 22 | echo "" 23 | echo -e " machine: \e[00;36m$HOST\e[0;0m" 24 | echo "" 25 | 26 | echo -e " set up date: \e[00;37m$SETUP\e[0;0m" 27 | 28 | echo -e " architecture: \e[01;34m$MACHINE\e[0;0m" 29 | 30 | echo -e " kernel: \e[01;34m$KERNEL\e[0;0m" 31 | 32 | echo -e " gcc: \e[01;34m$GCC\e[0;0m" 33 | 34 | echo -e " shell: \e[01;34m$SHLL\e[0;0m" 35 | 36 | echo -e " dwm: \e[01;34m$DWMV\e[0;0m" 37 | 38 | echo -e " uptime: \e[01;34m$UPT\e[0;0m" 39 | 40 | echo "" 41 | 42 | echo -e "\e[01;31m $ALL\e[0;0m" installed packages altogether; 43 | 44 | echo -e "\e[01;33m $EXPL\e[0;0m" explicitly installed packages \(incl. deps\); 45 | 46 | echo -e "\e[01;36m $EXPLND\e[0;0m" explicitly installed packages \(excl. deps\); 47 | 48 | echo -e " \e[01;32m $LOCAL\e[0;0m" locally installed packages. 49 | 50 | echo "" 51 | 52 | exit 0 53 | 54 | -------------------------------------------------------------------------------- /local/bin/teiler: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # teiler - A script to share (german word: teilen) screenshots/casts for tiling WMs - Pun intended 3 | # (c) Rasmus Steinke 4 | # Additional Ideas, testing and some code by Zeltak 5 | # 6 | # Requirements: 7 | # xclip, dzen2, dmenu, ffmpeg, scrot, bc, some notification daemon, 8 | # xfce4-screenshooter+a proper clipboard manager for image clipboard support 9 | 10 | 11 | if [[ -f $HOME/.config/teiler/config ]]; 12 | then echo "Config found" 13 | else 14 | echo "No config found" && notify-send "teiler" "No config found" 15 | echo "Please copy config.example to ~/.config/teiler/config" && notify-send "Please copy config.example to ~/.config/teiler/config" 16 | echo "Terminating..." 17 | echo " " 18 | killall teiler 19 | fi 20 | 21 | command -v dmenu >/dev/null 2>&1 || { notify-send "teiler" "dmenu is not installed. Aborting." >&2; exit 1; } 22 | command -v dzen2 >/dev/null 2>&1 || { notify-send "teiler" "dzen2 is not installed. Aborting" >&2; exit 1; } 23 | 24 | UP1=`command -v scp` 25 | UP2=`command -v fb` 26 | if [[ -n "$UP1" || -n "$UP2" ]]; 27 | then echo "found" 28 | else echo "not found" && notify-send "teiler" "No supported Uploader found"; exit 29 | fi 30 | 31 | command -v scrot >/dev/null 2>&1 || { notify-send "teiler" "scrot is not installed. Aborting" >&2; exit 1; } 32 | command -v bc >/dev/null 2>&1 || { notify-send "teiler" "bc is not installed. Aborting" >&2; exit 1; } 33 | 34 | source ~/.config/teiler/config 35 | # Needed for the countdown 36 | # Based on some script by Marco Fontani - MFONTANI at cpan dot org 37 | set -bm 38 | function countdown () { 39 | seq 1 ${1:-10} | tac | \ 40 | perl -ne'BEGIN{$|++;$msg=shift}$m=int($_/60);$s=int($_-$m*60);printf("$m:%02d -- $msg\n",$s);sleep 1;' \ 41 | "${2:-ready...}" 42 | } 43 | 44 | # Outsource the notfiy-send to its own function 45 | function notify() { 46 | notify-send -u low --hint=int:transient:1 -t ${1} "teiler" "${2}" 47 | } 48 | function notify_ul() { 49 | notify-send -u low --hint=int:transient:1 -t ${1} "teiler" "${2}\n$(xclip -o)" 50 | } 51 | 52 | # Some variables to clean up the code a bit 53 | COUNTD="countdown $COUNTER1 GO | dzen2 -fn \"$DZEN2_FONT\" -fg \"$NF\" -ta c -w \"$DZEN2_W\" -bg \"$NB\" -x \"$DZEN2_X\" -y \"$DZEN2_Y\"" 54 | COUNTD2="countdown $COUNTER2 GO | dzen2 -fn \"$DZEN2_FONT\" -fg \"$NF\" -ta c -w \"$DZEN2_W\" -bg \"$NB\" -x \"$DZEN2_X\" -y \"$DZEN2_Y\"" 55 | XCLIP="(xclip -o) | xclip -selection clipboard" 56 | 57 | cd $IMG_PATH 58 | 59 | MENU="1. Quick Fullscreen 60 | 2. Delayed Fullscreen 61 | 3. Select Area 62 | 4. Fullscreen and Edit 63 | 5. Selection and Edit 64 | 6. External screenshot (2clip) 65 | " 66 | 67 | CHOICE="$(echo "$MENU" | dmenu -l 6 -fn "$TFONT" -nf "$NF" -nb "$NB" -sf "$SF" -sb "$SB" -p "Make Your Wish:")" 68 | 69 | case "$CHOICE" in 70 | "1. Quick Fullscreen") 71 | scrot -d 1 "$FILEMASK" && notify ${TIME} "Screenshot saved" 72 | ;; 73 | "2. Delayed Fullscreen") 74 | eval $COUNTD & sleep $(echo $COUNTER1+1 | bc) && scrot -d 1 "$FILEMASK" && notify ${TIME} "Screenshot saved" 75 | ;; 76 | "3. Select Area") 77 | scrot -s "$FILEMASK" && notify ${TIME} "Screenshot saved" 78 | ;; 79 | "4. Fullscreen and Edit") 80 | scrot -d 1 "$FILEMASK" -e "$EDIT \$f" && notify ${TIME} "Screenshot edited and saved" 81 | ;; 82 | "5. Selection and Edit") 83 | scrot -s "$FILEMASK" -e "$EDIT \$f" && notify ${TIME} "Screenshot edited and saved" 84 | ;; 85 | "6. External screenshot (2clip)") 86 | xfce4-screenshooter -r -c && notify ${TIME} "Screenshot copied to clip" 87 | ;; 88 | *) 89 | notify-send -u low "No Selection Made" 90 | ;; 91 | esac 92 | -------------------------------------------------------------------------------- /local/bin/texclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | rm *{.out,.aux,.log} 3 | -------------------------------------------------------------------------------- /local/bin/ttf2eot-batch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Batch convert all TTF files in a directory to EOT 3 | # bohoomil 4 | 5 | for f in *.ttf; do 6 | ttf2eot $f > `basename -s .ttf $f`.eot 7 | done 8 | 9 | -------------------------------------------------------------------------------- /local/bin/uptime.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | uptime | sed 's/.*up \(.*\),.*user.*/\1/' 4 | 5 | -------------------------------------------------------------------------------- /local/bin/urxvt-fm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | urxvtc -title "mc" -geometry 102x36+0-2 -e mc 4 | 5 | -------------------------------------------------------------------------------- /local/bin/urxvt-mutt: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | urxvtc -fn "xft:luximono:style=Regular:pixelsize=14" -fb "xft:luximono:style=Regular:pixelsize=14" -fi "xft:luximono:style=Italic:pixelsize=14" -fbi "xft:luximono:style=Italic:pixelsize=14" -geometry 138x51 -title "mutt" -e mutt 4 | 5 | -------------------------------------------------------------------------------- /local/bin/urxvt-pad: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | urxvtc -geometry 81x16+0+801 -name "scratchpad" 4 | 5 | -------------------------------------------------------------------------------- /local/bin/urxvt-term: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | urxvtc -title "vterm" -geometry 83x33+0+15 4 | -------------------------------------------------------------------------------- /local/bin/urxvt-tmux: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | urxvtc -title "tmux" -cd /home/bohoomil -e tmux -f $HOME/.tmux.conf 4 | 5 | -------------------------------------------------------------------------------- /local/bin/vim-bin: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ $? -ne 0 ]; then 4 | edit='urxvt -fn xft:luximono:style=Regular:pixelsize=15:antialias=false -fb xft:luximono:style=Regular:pixelsize=15:antialias=false -fi xft:luximono:style=Italic:pixelsize=15:antialias=false -fbi xft:luximono:style=Italic:pixelsize=15:antialias=false -geometry 120x48 -e vim -T screen-256color' 5 | else 6 | edit='urxvtc -fn xft:luximono:style=Regular:pixelsize=15:antialias=false -fb xft:luximono:style=Regular:pixelsize=15:antialias=false -fi xft:luximono:style=Italic:pixelsize=15:antialias=false -fbi xft:luximono:style=Italic:pixelsize=15:antialias=false -geometry 120x48 -e vim -T screen-256color' 7 | fi 8 | 9 | if [ ! -f "$1" ]; then 10 | $edit 11 | else 12 | $edit "$1" 13 | fi 14 | 15 | exit 0 16 | 17 | -------------------------------------------------------------------------------- /local/bin/vm_arch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | VBoxSDL --startvm "Arch Linux" 4 | 5 | exit 0 6 | 7 | -------------------------------------------------------------------------------- /local/bin/vm_lenny: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | VBoxSDL --startvm Lenny 3 | 4 | exit 0 5 | 6 | -------------------------------------------------------------------------------- /local/bin/winecfg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ~/.wine/drive_c/windows/system32/ 3 | if [ "$1" != "" ]; then 4 | filename=`echo z:$1 | sed 's/\\//\\\\/g'` 5 | schroot -p -- wine "$filename" 6 | else 7 | schroot -p -- wine winecfg.exe 8 | fi 9 | -------------------------------------------------------------------------------- /local/bin/xelmake: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # by bohoomil 3 | # xelmake -- a trivial wrapper for xelatex 4 | 5 | input="$1" 6 | 7 | if [[ -z "$1" ]]; then 8 | echo -e 'I need some input.' 9 | exit 1 10 | fi 11 | 12 | echo -e "Input file is: $input" 13 | 14 | output=$(echo "$input" | sed 's/\.tex//') 15 | 16 | # do the job 17 | xelatex "$input" 18 | 19 | if [[ $? -ne 0 ]]; then 20 | echo -e 'Check logs -- something went wrong.' 21 | exit 1 22 | else 23 | xdg-open $output.pdf & 24 | rm *.log *.aux *.out 25 | fi 26 | -------------------------------------------------------------------------------- /local/share/mc/skins/newdark.ini: -------------------------------------------------------------------------------- 1 | # Please, use this skin in UTF-8 system codepage only. 2 | 3 | [skin] 4 | description=newdark by bohoomil 5 | 6 | [Lines] 7 | horiz = ─ 8 | vert = │ 9 | lefttop = ┌ 10 | righttop = ┐ 11 | leftbottom = └ 12 | rightbottom = ┘ 13 | topmiddle = ┬ 14 | bottommiddle = ┴ 15 | leftmiddle = ├ 16 | rightmiddle = ┤ 17 | cross = ┼ 18 | dhoriz= ─ 19 | dvert= │ 20 | dlefttop= ┌ 21 | drighttop= ┐ 22 | dleftbottom= └ 23 | drightbottom= ┘ 24 | dtopmiddle= ┬ 25 | dbottommiddle= ┴ 26 | dleftmiddle= ├ 27 | drightmiddle= ┤ 28 | 29 | [core] 30 | _default_=gray;default 31 | selected=color232;lightgray 32 | marked=white;brightred 33 | markselect=default;magenta 34 | gauge=color232;lightgray 35 | input=default;default 36 | inputunchanged=color232;gray 37 | inputmark=cyan;color232 38 | disabled=gray;default 39 | reverse=color172;default 40 | commandlinemark=color232;lightgray 41 | header=gray;default 42 | inputhistory=blue;default 43 | commandhistory=cyan;default 44 | 45 | [dialog] 46 | _default_=lightgray;default 47 | dfocus=color232;brown 48 | dhotnormal=brightred;default 49 | dhotfocus=color232;brown 50 | dtitle=color1;default 51 | 52 | [error] 53 | _default_=white;red 54 | errdfocus=color232;lightgray 55 | errdhotnormal=white;red 56 | errdtitle=white;red 57 | errdhotfocus=red;lightgray 58 | 59 | [filehighlight] 60 | directory=lightgray; 61 | executable=brightgreen; 62 | symlink=brightcyan; 63 | stalelink=brightred; 64 | device=brightmagenta; 65 | special=gray; 66 | core=red; 67 | temp=gray; 68 | archive1=color69; 69 | archive2=red; 70 | iso=color140; 71 | doc=color168; 72 | doc2=color30; 73 | source=color35; 74 | headers=color4; 75 | media=cyan; 76 | audio1=blue; 77 | audio2=brightblue; 78 | audio3=color79; 79 | vid1=color29; 80 | vid2=color167; 81 | vid3=color169; 82 | vid4=color61; 83 | graph1=color132; 84 | graph1a=color140; 85 | graph1b=color96; 86 | graph2=cyan; 87 | graph3=blue; 88 | database=brightred; 89 | text=lightgray; 90 | markup=cyan; 91 | html=color70; 92 | chm=yellow; 93 | pdf=magenta; 94 | djvu=color37; 95 | dvi=brown; 96 | ps=yellow; 97 | otf=color61; 98 | ttf=color30; 99 | pfb=color58; 100 | afm=color59; 101 | pfm=color239; 102 | pcf=color65; 103 | psf=color64; 104 | zsh=color25; 105 | conf=color36; 106 | patch=color31; 107 | 108 | [menu] 109 | _default_=lightgray;default 110 | menuhot=brightred;default 111 | menusel=color232;lightgray 112 | menuhotsel=color232;lightgray 113 | menuinactive=lightgray;default 114 | 115 | [buttonbar] 116 | hotkey=brightred;default 117 | button=lightgray;default 118 | 119 | [statusbar] 120 | _default_=brown;default 121 | 122 | [help] 123 | _default_=default;default 124 | helpitalic=brightred;default 125 | helpbold=brown;default 126 | helplink=brown;default 127 | helpslink=color232;brown 128 | helptitle=brown;default 129 | 130 | [editor] 131 | _default_=lightgray;default 132 | editbold=brown;default 133 | editmarked=cyan;default 134 | editwhitespace=brightblue;default 135 | editlinestate=brightcyan 136 | editrightmargin=brightblue 137 | bookmark=red 138 | bookmarkfound=color232;brown 139 | # editbg=lightred; 140 | editframe=lightblue; 141 | editframeactive=white; 142 | editframedrag=green; 143 | window-state-char = = 144 | window-close-char = x 145 | 146 | [diffviewer] 147 | added=brightgreen;default 148 | changedline=blue;default 149 | changednew=red;default 150 | changed=cyan;default 151 | removed=magenta;default 152 | folder=brightblue;default 153 | error=brightred;default 154 | 155 | [viewer] 156 | viewunderline=lightgray;default 157 | viewbold=brown;default 158 | viewselected=brown;cyan 159 | 160 | [popupmenu] 161 | _default_=lightgray;default 162 | menusel=color232;brown 163 | menutitle=brown;default 164 | 165 | [widget-common] 166 | sort-sign-up = ↑| 167 | sort-sign-down = ↓| 168 | 169 | [widget-panel] 170 | hiddenfiles-sign-show = [+] 171 | hiddenfiles-sign-hide = [-] 172 | history-prev-item-sign = <- 173 | history-next-item-sign = -> 174 | history-show-list-sign = * 175 | filename-scroll-left-char = < 176 | filename-scroll-right-char = > 177 | 178 | [widget-scollbar] 179 | first-vert-char = [^] 180 | last-vert-char = [ˇ] 181 | first-horiz-char = « 182 | last-horiz-char = » 183 | current-char = ■ 184 | background-char = ▒ 185 | -------------------------------------------------------------------------------- /local/share/mc/skins/ovidiu.ini: -------------------------------------------------------------------------------- 1 | # Please, use this skin in UTF-8 system codepage only. 2 | 3 | [skin] 4 | description=Ovidiu's Skin for MC (modified by bohoomil) 5 | 6 | [Lines] 7 | horiz=─ 8 | vert=│ 9 | lefttop=┌ 10 | righttop=┐ 11 | leftbottom=└ 12 | rightbottom=┘ 13 | topmiddle=─ 14 | bottommiddle=─ 15 | leftmiddle=├ 16 | rightmiddle=┤ 17 | cross=┼ 18 | dhoriz=─ 19 | dvert=│ 20 | dlefttop=┌ 21 | drighttop=┐ 22 | dleftbottom=└ 23 | drightbottom=┘ 24 | dtopmiddle=─ 25 | dbottommiddle=─ 26 | dleftmiddle=├ 27 | drightmiddle=┤ 28 | 29 | [core] 30 | _default_=gray,default 31 | selected=white;blue 32 | marked=brightcyan;default 33 | markselect=brightcyan;blue 34 | gauge=black;brightcyan 35 | input=default,default 36 | inputunchanged=color232;brown 37 | inputmark=cyan;color232 38 | disabled=gray;default 39 | reverse=brightred;default 40 | commandlinemark=color232;lightgray 41 | header=brown;default 42 | inputhistory=blue;default 43 | commandhistory=cyan;default 44 | 45 | [dialog] 46 | _default_=white;blue 47 | dfocus=blue;lightgray 48 | dhotnormal=brightred,blue 49 | dhotfocus=brightred,lightgray 50 | dtitle=white;blue 51 | 52 | [error] 53 | _default_=white;red 54 | errdhotnormal=yellow;red 55 | errdhotfocus=yellow;lightgray 56 | errdtitle=white;red 57 | errdhotfocus=red;lightgray 58 | 59 | [filehighlight] 60 | directory=lightgray; 61 | executable=brightgreen; 62 | symlink=brightcyan; 63 | stalelink=brightred; 64 | device=brightmagenta; 65 | special=gray; 66 | core=red; 67 | temp=gray; 68 | archive1=color69; 69 | archive2=red; 70 | iso=color140; 71 | doc=green; 72 | source=color35; 73 | headers=color4; 74 | media=cyan; 75 | audio1=blue; 76 | audio2=brightblue; 77 | audio3=color79; 78 | vid1=color29; 79 | vid2=color167; 80 | vid3=color169; 81 | vid4=color61; 82 | graph1=brightmagenta; 83 | graph1a=color99; 84 | graph1b=color96; 85 | graph2=cyan; 86 | graph3=blue; 87 | database=brightred; 88 | text=lightgray; 89 | markup=cyan; 90 | html=color70; 91 | chm=yellow; 92 | pdf=magenta; 93 | djvu=color37; 94 | dvi=brown; 95 | ps=yellow; 96 | otf=color61; 97 | ttf=color30; 98 | pfb=color58; 99 | afm=color59; 100 | pfm=color239; 101 | pcf=color65; 102 | psf=color64; 103 | zsh=color25; 104 | conf=color36; 105 | patch=color31; 106 | 107 | [menu] 108 | _default_=white;blue 109 | menuhot=white;blue 110 | menusel=blue;lightgray 111 | menuhotsel=white;lightgray 112 | menuinactive=white;blue 113 | 114 | [buttonbar] 115 | hotkey=white;black 116 | button=white;blue 117 | 118 | [statusbar] 119 | _default_=blue;default 120 | 121 | [help] 122 | _default_=brightcyan;blue 123 | helpitalic=brightgreen;blue 124 | helpbold=white;blue 125 | helplink=yellow;blue 126 | helpslink=red;brightblue 127 | helptitle=brown;default 128 | 129 | [editor] 130 | _default_=lightgray;default 131 | editbold=white;default 132 | editmarked=blue;lightgray 133 | editwhitespace=brightblue;default 134 | editlinestate=white;cyan 135 | editrightmargin=brightblue 136 | bookmark=white;red 137 | bookmarkfound=black;green 138 | # editbg=lightred; 139 | editframe=lightblue; 140 | editframeactive=white; 141 | editframedrag=green; 142 | window-state-char = = 143 | window-close-char = x 144 | 145 | [diffviewer] 146 | added=brightgreen;default 147 | changedline=blue;default 148 | changednew=red;default 149 | changed=cyan;default 150 | removed=magenta;default 151 | folder=brightblue;default 152 | error=brightred;default 153 | 154 | [viewer] 155 | viewunderline=lightgray;default 156 | viewbold=brown;default 157 | viewselected=brown;cyan 158 | 159 | [popupmenu] 160 | _default_=lightgray;default 161 | menusel=color232;brown 162 | menutitle=brown;default 163 | 164 | [widget-common] 165 | sort-sign-up =[^] 166 | sort-sign-down =[ˇ] 167 | 168 | [widget-panel] 169 | hiddenfiles-sign-show =[+] 170 | hiddenfiles-sign-hide =[-] 171 | history-prev-item-sign =<- 172 | history-next-item-sign =-> 173 | history-show-list-sign =^ 174 | filename-scroll-left-char =< 175 | filename-scroll-right-char => 176 | 177 | [widget-scollbar] 178 | first-vert-char =[^] 179 | last-vert-char =[ˇ] 180 | first-horiz-char =« 181 | last-horiz-char =» 182 | current-char =■ 183 | background-char =▒ 184 | -------------------------------------------------------------------------------- /mplayer/config: -------------------------------------------------------------------------------- 1 | # MPlayer preferences 2 | # ------------------- 3 | 4 | [default] 5 | # --- general prefs 6 | quiet=1 7 | 8 | # --- disable screensaver 9 | stop-xscreensaver=1 10 | heartbeat-cmd="xautolock -disable;xautolock -enable" 11 | 12 | # sets postprocessing into overdrive using all 13 | # possible spare cpu cycles to make the movie look better 14 | autoq=100 15 | vf=hqdn3d=scale=-ssf-ls=100 16 | spuaa=4 # (0-4) 17 | spugauss=0.5 # (0.0-3.0) 18 | 19 | # --- audio prefs 20 | ao=alsa:device=mplayer 21 | mixer-channel=Mplayer 22 | volstep=2 23 | volume=75 24 | 25 | 26 | # --- video prefs 27 | #vo=gl:yuv=4:lscale=1:cscale=1:rectangle=1 28 | vo=gl 29 | zoom=yes # sofware scaling 30 | sid=0 # subtitle set 31 | double=yes # double buffering (recommended for subtitles) 32 | monitoraspect=16:9 # 16:9 or or 4:3 33 | framedrop=1 # for slower machines 34 | hardframedrop=0 # toggle hard frame drop 35 | vsync=1 36 | lavdopts=threads=2 37 | cache=540 # cache size; lower values produce "Cache not 38 | # responding" error 39 | lirc=0 40 | nojoystick=1 41 | mouse-movements=1 # for dvd menus 42 | 43 | # --- subtitle prefs 44 | subfont="Noto Sans:style=Regular" 45 | subfont-encoding=unicode 46 | subfont-text-scale=4 # truetype font scaling 47 | subfont-outline=0 48 | subfont-blur=8 # Slight blur (0-8) 49 | subpos=90 # by default subtitles are too low (100 is lowest) 50 | subalign=2 # alignment (2 is bottom) 51 | sub-fuzziness=1 # find subtitle files (1: load all subs containing 52 | ## movie name) 53 | slang=en,eng,english # language priorities (format varies by standard) 54 | 55 | # provide colorized terminal output 56 | msgmodule=1 57 | msgcolor=1 58 | msglevel:ass=-1 59 | msglevel:avsync=9 60 | msglevel:cache=-1 61 | msglevel:cplayer=4 62 | msglevel:decvideo=0 63 | msglevel:demux=4 64 | msglevel:demuxer=0 65 | msglevel:global=-1 66 | msglevel:header=-1 67 | msglevel:network=-1 68 | msglevel:osd=-1 69 | msglevel:playtree=0 70 | msglevel:statusline=9 71 | #msglevel:seek=9 72 | msglevel:subreader=0 73 | #msglevel:vo=0 74 | # vim:ft=mplayerconf: 75 | -------------------------------------------------------------------------------- /mplayer/input.conf: -------------------------------------------------------------------------------- 1 | F1 switch_ratio 1.3333 # 4:3 2 | F2 switch_ratio 1.7777 # 16:9 ratio 3 | F3 switch_ratio 1.85 4 | F4 switch_ratio 2.3 5 | F5 switch_ratio 0 # switches back to original aspect ratio 6 | -------------------------------------------------------------------------------- /mpv/config: -------------------------------------------------------------------------------- 1 | # mpv config by bohoomil 2 | 3 | user-agent="Mozilla/5.0" 4 | 5 | stop-screensaver=yes 6 | 7 | #vo=opengl,lscale=lanczos2 8 | vo=opengl-hq 9 | vf=hqdn3d:chroma_spatial=3 10 | sub-gauss=0.75 # (0.0-3.0) 11 | sub-gray 12 | slang=en 13 | 14 | ao=alsa:device=mpv:mixer-name=MPV,block=no 15 | ad-lavc-downmix=no 16 | audio-channels=stereo 17 | softvol=no 18 | volstep=2 19 | volume=50 20 | 21 | no-border 22 | 23 | cache-default=9182 24 | 25 | msg-color 26 | msg-level=af=fatal:ffmpeg=fatal:ao=warn:cplayer=warn:statusline=status:demux=info 27 | 28 | -------------------------------------------------------------------------------- /msmtprc: -------------------------------------------------------------------------------- 1 | ##account1 2 | account account1 3 | host smtp.gmail.com 4 | port 587 5 | protocol smtp 6 | auth on 7 | from mail1@gmail.com 8 | user mail1 9 | password xxxxxxxxxx 10 | tls on 11 | tls_starttls on 12 | # certificate 13 | tls_trust_file /home/bohoomil/.mutt/certificates/Equifax_Secure_CA.crt 14 | #account default: mail1 15 | ##account2 16 | account account2 17 | host smtp.gmail.com 18 | port 587 19 | protocol smtp 20 | auth on 21 | from mail2@gmail.com 22 | user mail2 23 | password xxxxxxxxxx 24 | tls on 25 | tls_starttls on 26 | ##certificate 27 | tls_trust_file /home/bohoomil/.mutt/certificates/Equifax_Secure_CA.crt 28 | ##account3 29 | account account3 30 | host smtp.gmail.com 31 | port 587 32 | protocol smtp 33 | auth on 34 | from mail3@gmail.com 35 | user mail3 36 | password xxxxxxxxxx 37 | tls on 38 | tls_starttls on 39 | ##certificate 40 | tls_trust_file /home/bohoomil/.mutt/certificates/Equifax_Secure_CA.crt 41 | 42 | # vim:ft=msmtp 43 | -------------------------------------------------------------------------------- /mutt/certificates/Equifax_Secure_CA.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJVUzEQMA4GA1UE 3 | ChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5 4 | MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1MVowTjELMAkGA1UEBhMCVVMxEDAOBgNVBAoT 5 | B0VxdWlmYXgxLTArBgNVBAsTJEVxdWlmYXggU2VjdXJlIENlcnRpZmljYXRlIEF1dGhvcml0eTCB 6 | nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwV2xWGcIYu6gmi0fCG2RFGiYCh7+2gRvE4RiIcPR 7 | fM6fBeC4AfBONOziipUEZKzxa1NfBbPLZ4C/QgKO/t0BCezhABRP/PvwDN1Dulsr4R+AcJkVV5MW 8 | 8Q+XarfCaCMczE1ZMKxRHjuvK9buY0V7xdlfUNLjUA86iOe/FP3gx7kCAwEAAaOCAQkwggEFMHAG 9 | A1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UE 10 | CxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoG 11 | A1UdEAQTMBGBDzIwMTgwODIyMTY0MTUxWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUSOZo+SvS 12 | spXXR9gjIBBPM5iQn9QwHQYDVR0OBBYEFEjmaPkr0rKV10fYIyAQTzOYkJ/UMAwGA1UdEwQFMAMB 13 | Af8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUAA4GBAFjOKer89961 14 | zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y7qj/WsjTVbJmcVfewCHrPSqnI0kB 15 | BIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee95 16 | 70+sB3c4 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /mutt/certificates/Thawte_Premium_Server_CA.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkExFTATBgNVBAgT 3 | DFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3Vs 4 | dGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UE 5 | AxMYVGhhd3RlIFByZW1pdW0gU2VydmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZl 6 | ckB0aGF3dGUuY29tMB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYT 7 | AlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsGA1UEChMU 8 | VGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2 9 | aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNlcnZlciBDQTEoMCYGCSqGSIb3DQEJARYZ 10 | cHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2 11 | aovXwlue2oFBYo847kkEVdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIh 12 | Udib0GfQug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMRuHM/ 13 | qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQAm 14 | SCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUIhfzJATj/Tb7yFkJD57taRvvBxhEf 15 | 8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JMpAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7t 16 | UCemDaYj+bvLpgcUQg== 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /mutt/certificates/ca-bundle.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohoomil/dotfiles/2b313b49bc860c9977fb5858a6adfe3c62bfe494/mutt/certificates/ca-bundle.crt -------------------------------------------------------------------------------- /mutt/certificates/certdata.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohoomil/dotfiles/2b313b49bc860c9977fb5858a6adfe3c62bfe494/mutt/certificates/certdata.txt -------------------------------------------------------------------------------- /mutt/colors.muttrc: -------------------------------------------------------------------------------- 1 | # vim: ft=muttrc 2 | # mutt colors file 3 | # by bohoomil 4 | # (with long bits shamelessly 5 | # 'borrowed' from jwr) 6 | 7 | # set default 8 | color normal white default 9 | 10 | # main colors 11 | color tree blue default 12 | color error brightred default 13 | color message brightgreen default 14 | color status white black 15 | color indicator black yellow 16 | 17 | # color all ML mails 18 | color index blue default "~u" 19 | 20 | # uncolor certain messages 21 | uncolor index "~E" 22 | uncolor index "~P" 23 | uncolor index "~C @.com" 24 | uncolor index "~N ~u" 25 | uncolor index "~N !~u" 26 | uncolor index "~T" 27 | uncolor index "~D" 28 | 29 | # and recolor them appropriately 30 | color index brightred default "~E" 31 | color index brightyellow default "~P" 32 | color index green default "~C @.com" 33 | color index red default "~N ~u" # new ML mail 34 | color index brightred default "~N !~u" # new non-ML mail 35 | color index brightgreen default "~T" 36 | color index white red "~D" 37 | 38 | # set up the headers 39 | color header brightmagenta default "^from:" 40 | color header green default "^to:" 41 | color header yellow default "^cc:" 42 | color header blue default "^date:" 43 | color header cyan default "^subject:" 44 | 45 | # message bodies 46 | color attachment brightblack default 47 | color search red brightblack 48 | color signature cyan default 49 | color tilde brightblack default 50 | color hdrdefault yellow default 51 | color bold brightyellow default 52 | 53 | # urls 54 | color body brightblue default "(^|<| )mailto:[^ ]+@[^ ]( |>|$)" 55 | color body brightblue default "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)" 56 | 57 | # urls regex 58 | color body brightblue default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" 59 | 60 | # email regex 61 | color body brightblue default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" 62 | color body brightmagenta default "(regex 1)" 63 | color body brightyellow default "(regex 2a|regex 2b)" 64 | color body brightred default "(regex 3a|regex 3b|regex 3c|regex 3d)" 65 | 66 | # smileys, the right way and the backward-ass euro way 67 | color body cyan default "(^| )+(|[<>|])[8;:](|[^ ])[)(/|DOPS]( |$)+" 68 | color body cyan default "(^| )+[)(/|DOPS](|[^ ])[8;:](|[<>|])( |$)+" 69 | 70 | # *bold*, _underline_, and /italic/ 71 | color body brightcyan default "(^| )\\*[^ ]+\\*( |$)" 72 | color body brightcyan default "(^| )_[^ ]+_( |$)" 73 | color body brightcyan default "(^| )/[^ ]+/( |$)" 74 | 75 | # quote blocks 76 | color quoted magenta default 77 | color quoted1 cyan default 78 | color quoted2 green default 79 | color quoted3 yellow default 80 | color quoted4 brightmagenta default 81 | color quoted5 brightgreen default 82 | color quoted6 brightyellow default 83 | color quoted7 brightcyan default 84 | 85 | # PGP messages 86 | color body brightgreen default "^gpg: Verified signature .*" 87 | color body yellow default "^gpg: " 88 | color body brightred default "^gpg: BAD signature from. *" 89 | 90 | -------------------------------------------------------------------------------- /mutt/gpg.rc: -------------------------------------------------------------------------------- 1 | # -*-muttrc-*- 2 | # 3 | # Command formats for gpg. 4 | # 5 | # This version uses gpg-2comp from 6 | # http://70t.de/download/gpg-2comp.tar.gz 7 | # 8 | # $Id$ 9 | # 10 | # %p The empty string when no passphrase is needed, 11 | # the string "PGPPASSFD=0" if one is needed. 12 | # 13 | # This is mostly used in conditional % sequences. 14 | # 15 | # %f Most PGP commands operate on a single file or a file 16 | # containing a message. %f expands to this file's name. 17 | # 18 | # %s When verifying signatures, there is another temporary file 19 | # containing the detached signature. %s expands to this 20 | # file's name. 21 | # 22 | # %a In "signing" contexts, this expands to the value of the 23 | # configuration variable $pgp_sign_as. You probably need to 24 | # use this within a conditional % sequence. 25 | # 26 | # %r In many contexts, mutt passes key IDs to pgp. %r expands to 27 | # a list of key IDs. 28 | 29 | # Note that we explicitly set the comment armor header since GnuPG, when used 30 | # in some localiaztion environments, generates 8bit data in that header, thereby 31 | # breaking PGP/MIME. 32 | 33 | # decode application/pgp 34 | set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" 35 | 36 | # verify a pgp/mime signature 37 | set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" 38 | 39 | # decrypt a pgp/mime attachment 40 | set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" 41 | 42 | # create a pgp/mime signed attachment 43 | # set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" 44 | set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" 45 | 46 | # create a application/pgp signed (old-style) message 47 | # set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" 48 | set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" 49 | 50 | # create a pgp/mime encrypted attachment 51 | # set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" 52 | set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" 53 | 54 | # create a pgp/mime encrypted and signed attachment 55 | # set pgp_encrypt_sign_command="pgpewrap gpg-2comp %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" 56 | set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" 57 | 58 | # import a key into the public key ring 59 | set pgp_import_command="gpg --no-verbose --import %f" 60 | 61 | # export a key from the public key ring 62 | set pgp_export_command="gpg --no-verbose --export --armor %r" 63 | 64 | # verify a key 65 | set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r" 66 | 67 | # read in the public key ring 68 | set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" 69 | 70 | # read in the secret key ring 71 | set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" 72 | 73 | # fetch keys 74 | # set pgp_getkeys_command="pkspxycwrap %r" 75 | 76 | set pgp_autosign=yes 77 | set pgp_sign_as=6E32FD72 78 | set pgp_timeout=1800 79 | set pgp_replyencrypt=yes 80 | 81 | set pgp_good_sign="^gpgv?: Good signature from " 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /mutt/mailcap: -------------------------------------------------------------------------------- 1 | text/html; dwb %s; test=test -n "$DISPLAY"; needsterminal; 2 | text/html; w3m -I %{charset} -T text/html; copiousoutput; 3 | image/*; sxiv %s 4 | audio/*; mplayer %s 5 | video; mplayer %s 6 | text/*; vim %s 7 | application/pdf; zathura %s & 8 | application/x-html; dwb %s & 9 | -------------------------------------------------------------------------------- /mutt/rh.muttrc: -------------------------------------------------------------------------------- 1 | # needed by RH based distros due to a different certificates location 2 | set ssl_ca_certificates_file=/etc/pki/tls/certs/ca-bundle.crt 3 | -------------------------------------------------------------------------------- /ncmpcpp/config: -------------------------------------------------------------------------------- 1 | ## --- ncmpcpp config by bohoomil 2 | 3 | ## --- connection settings 4 | mpd_host = "127.0.0.1" 5 | mpd_port = "6600" 6 | mpd_music_dir = "/mnt/sda3/music" 7 | mpd_connection_timeout = "5" 8 | mpd_communication_mode = "notifications" 9 | ncmpcpp_directory = "/home/bohoomil/.ncmpcpp" 10 | lyrics_directory = "/home/bohoomil/.ncmpcpp/lyrics" 11 | 12 | lastfm_prefered_language = "en" 13 | 14 | ## --- colours and layout 15 | user_interface = "classic" 16 | 17 | song_list_format = "{ $8%N$9 $1|$9 $8%a$9 }$1-$9{ $8%t$9}$R{ $8%l$9 }" 18 | song_status_format = "{ $6♫$9 $3%a$9 $7%t$9 $6♫$9 }|{ $5♫$9 $3%f$9 $5♫$9 }" 19 | song_library_format = "{%n }{%t}|{%f}" 20 | 21 | default_tag_editor_left_col = "dirs" # albums/dirs 22 | external_editor = "/usr/bin/vim" 23 | use_console_editor = "yes" 24 | 25 | progressbar_look = "-> " 26 | 27 | playlist_display_mode = "classic" 28 | playlist_disable_highlight_delay = "3" 29 | playlist_separate_albums = "no" 30 | 31 | browser_display_mode = "classic" 32 | browser_playlist_prefix = "$6[PLS]$9 " 33 | 34 | media_library_disable_two_column_mode = "no" 35 | media_library_left_column = "a" # (a,y,g,c,p) 36 | media_library_display_date = "yes" 37 | 38 | search_engine_display_mode = "classic" 39 | 40 | header_visibility = "yes" 41 | header_window_color = "black" 42 | display_screens_numbers_on_start = "no" 43 | 44 | colors_enabled = "yes" 45 | color1 = "black" 46 | color2 = "white" 47 | 48 | state_line_color = "black" 49 | state_flags_color = "red" 50 | main_window_color = "white" 51 | main_window_highlight_color = "default" 52 | active_column_color = "green" 53 | volume_color = "white" 54 | progressbar_color = "black" 55 | statusbar_color = "default" #white 56 | discard_colors_if_item_is_selected = "no" 57 | empty_tag_color = "magenta" 58 | 59 | centered_cursor = "yes" 60 | statusbar_visibility = "yes" 61 | cyclic_scrolling = "no" 62 | clock_display_seconds = "no" 63 | ignore_leading_the = "yes" 64 | 65 | # vim:ft=sh 66 | -------------------------------------------------------------------------------- /tmux.conf: -------------------------------------------------------------------------------- 1 | # Based on Thayer Williams' (http://cinderwick.ca) & Jason Ryan's (http://jasonwryan.com/) 2 | 3 | #set -g default-path $HOME 4 | 5 | # set correct term 6 | set -g default-terminal screen-256color 7 | 8 | # reload config without killing server 9 | bind r source-file ~/.tmux.conf \; display-message " Config reloaded". 10 | 11 | # more intuitive keybindings for splitting 12 | unbind % 13 | bind h split-window -v 14 | unbind '"' 15 | bind v split-window -h 16 | 17 | # ctrl+up/down arrows cycles through windows 18 | bind-key -n C-up next 19 | bind-key -n C-down prev 20 | bind-key -n C-k next 21 | bind-key -n C-j prev 22 | 23 | # navigate panes using ctrl+left/right arrows 24 | bind-key -n C-left select-pane -t :.- 25 | bind-key -n C-right select-pane -t :.+ 26 | bind-key -n C-u select-pane -t :.- 27 | bind-key -n C-n select-pane -t :.+ 28 | 29 | # pane movement 30 | bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" 31 | bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" 32 | 33 | # set vi keys 34 | set-window-option -g mode-keys vi 35 | 36 | # copy & paste 37 | unbind [ 38 | bind y copy-mode 39 | unbind p 40 | bind p paste-buffer 41 | 42 | # send the prefix to client inside window (ala nested sessions) 43 | bind-key g send-prefix 44 | 45 | # confirm before killing a window or the server 46 | bind-key k confirm kill-window 47 | bind-key K confirm kill-server 48 | bind-key X confirm kill-session 49 | 50 | # toggle statusbar 51 | bind-key b set-option status 52 | 53 | # run a command in a new window 54 | bind m command-prompt -p "run command:" "new-window 'exec %%'" 55 | 56 | # scrollback buffer n lines 57 | set -g history-limit 50000 58 | 59 | # listen for activity on all windows 60 | set -g bell-action any 61 | set -g bell-on-alert on 62 | 63 | # on-screen time for display-panes in ms 64 | set -g display-panes-time 2000 65 | 66 | # start window indexing at one instead of zero 67 | set -g base-index 1 68 | set -g renumber-windows on 69 | 70 | # enable wm window titles 71 | set -g set-titles on 72 | 73 | # disable auto renaming 74 | set-window-option -g automatic-rename on 75 | 76 | # border colours 77 | set -g pane-border-fg black 78 | set -g pane-active-border-fg cyan 79 | set -g pane-active-border-bg default 80 | 81 | # wm window title string (uses statusbar variables) 82 | set -g window-status-separator " " 83 | set -g set-titles-string "[#I #W]" 84 | set -g window-status-format "#I:#W" 85 | set -g window-status-current-format "[#I:#W]" 86 | 87 | # environment 88 | set -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY" 89 | 90 | # statusbar --------------------------------------------------------------- 91 | set -g status-interval 1 92 | 93 | # default statusbar colors 94 | set -g status-fg white 95 | set -g status-bg default 96 | set -g status-attr dim 97 | 98 | # command/message line colors 99 | set -g message-fg white 100 | set -g message-bg black 101 | set -g message-attr dim 102 | 103 | # Statusbar for X and X-less env. 104 | if '[ -n "$DISPLAY" ]' 'source-file /usr/local/etc/tmux/inx' 105 | if '[ -z "$DISPLAY" ]' 'source-file /usr/local/etc/tmux/xless' 106 | 107 | -------------------------------------------------------------------------------- /toprc: -------------------------------------------------------------------------------- 1 | RCfile for "top with windows" # shameless braggin' 2 | Id:a, Mode_altscr=1, Mode_irixps=0, Delay_time=1.000, Curwin=0 3 | Def fieldscur=AEhioqTWKNmbCdfgjplrsuvyzX 4 | winflags=130488, sortindx=23, maxtasks=0 5 | summclr=2, msgsclr=1, headclr=3, taskclr=3 6 | cpu fieldscur=AbcEfgjlrstuvyzMKNHIWOpQdX 7 | winflags=64825, sortindx=10, maxtasks=0 8 | summclr=6, msgsclr=6, headclr=7, taskclr=6 9 | Mem fieldscur=ANopqrsTuvbcdEfGjlmyzWhiKX 10 | winflags=64889, sortindx=13, maxtasks=0 11 | summclr=5, msgsclr=5, headclr=4, taskclr=5 12 | Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX 13 | winflags=64817, sortindx=4, maxtasks=0 14 | summclr=3, msgsclr=3, headclr=2, taskclr=3 15 | -------------------------------------------------------------------------------- /urlview: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Urlview configuration file. 3 | # man urlview 4 | # 5 | # Put this file in: $HOME/.urlview 6 | # Put url_handler.sh in: /usr/bin 7 | # 8 | # You can call 'urlview' while in 'mutt' by pressing the Ctrl b keys. 9 | # Put these macros in your $HOME/.muttrc file. 10 | # 11 | # macro index \cb |urlview\n 12 | # macro pager \cb |urlview\n 13 | # 14 | # You can call 'urlview' while in 'tin' by pressing | then a for article, 15 | # put urlview as the pipe command. 16 | # 17 | # Regular expression to use to match URLs. 18 | 19 | #REGEXP ((http|https|ftp|gopher):(//)?[^ <>"\t]*|www\.[-a-z0-9.]+)[^ .,;\t<">\):] 20 | #REGEXP (((http|https|ftp|gopher)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):] 21 | REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):] 22 | 23 | # Command to invoke for selected URL. Use lynx, netscape, or url_handler.sh 24 | # shell script. Alternatively, you can leave COMMAND unset and set the BROWSER 25 | # environment variable instead. 26 | 27 | #COMMAND lynx %s 28 | #COMMAND netscape -remote 'openURL(%s)' 29 | #COMMAND url_handler.sh 30 | #COMMAND dwb %s 31 | COMMAND firefox -new-tab %s 32 | 33 | -------------------------------------------------------------------------------- /vim/syntax/conkyrc.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: conkyrc 3 | " Author: Ciaran McCreesh 4 | " Version: 20050923 5 | " Copyright: Copyright (c) 2005 Ciaran McCreesh 6 | " Licence: You may redistribute this under the same terms as Vim itself 7 | 8 | if exists("b:current_syntax") 9 | finish 10 | endif 11 | 12 | syn region ConkyrcComment start=/^\s*#/ end=/$/ 13 | 14 | syn keyword ConkyrcSetting 15 | \ alignment background on_bottom border_margin border_width cpu_avg_samples 16 | \ default_color default_shade_color default_outline_color double_buffer 17 | \ draw_borders draw_shades draw_outline font gap_x gap_y no_buffers 18 | \ mail_spool maximum_width minimum_size mldonkey_hostname mldonkey_port 19 | \ mldonkey_login mldonkey_password mpd_host mpd_port mpd_password 20 | \ net_avg_samples override_utf8_locale own_window own_window_transparent 21 | \ own_window_colour pad_percents stippled_borders total_run_times 22 | \ update_interval uppercase use_spacer use_xft 23 | 24 | syn keyword ConkyrcConstant yes no top_left top_right bottom_left bottom_right none 25 | 26 | syn match ConkyrcNumber /\S\@ 4 | " Last Change: 2009-06-16 5 | " Version: 0.4 6 | " {{{1 7 | 8 | " Syntax setup {{{2 9 | " For version 5.x: Clear all syntax items 10 | " For version 6.x: Quit when a syntax file was already loaded 11 | 12 | if !exists("main_syntax") 13 | if version < 600 14 | syntax clear 15 | elseif exists("b:current_syntax") 16 | finish 17 | endif 18 | let main_syntax = 'json' 19 | endif 20 | 21 | " Syntax: Strings {{{2 22 | syn region jsonString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=jsonEscape 23 | " Syntax: JSON does not allow strings with single quotes, unlike JavaScript. 24 | syn region jsonStringSQ start=+'+ skip=+\\\\\|\\"+ end=+'+ 25 | 26 | " Syntax: Escape sequences {{{3 27 | syn match jsonEscape "\\["\\/bfnrt]" contained 28 | syn match jsonEscape "\\u\x\{4}" contained 29 | 30 | " Syntax: Strings should always be enclosed with quotes. 31 | syn match jsonNoQuotes "\<\a\+\>" 32 | 33 | " Syntax: Numbers {{{2 34 | syn match jsonNumber "-\=\<\%(0\|[1-9]\d*\)\%(\.\d\+\)\=\%([eE][-+]\=\d\+\)\=\>" 35 | 36 | " Syntax: An integer part of 0 followed by other digits is not allowed. 37 | syn match jsonNumError "-\=\<0\d\.\d*\>" 38 | 39 | " Syntax: Boolean {{{2 40 | syn keyword jsonBoolean true false 41 | 42 | " Syntax: Null {{{2 43 | syn keyword jsonNull null 44 | 45 | " Syntax: Braces {{{2 46 | syn match jsonBraces "[{}\[\]]" 47 | 48 | " Define the default highlighting. {{{1 49 | " For version 5.7 and earlier: only when not done already 50 | " For version 5.8 and later: only when an item doesn't have highlighting yet 51 | if version >= 508 || !exists("did_json_syn_inits") 52 | if version < 508 53 | let did_json_syn_inits = 1 54 | command -nargs=+ HiLink hi link 55 | else 56 | command -nargs=+ HiLink hi def link 57 | endif 58 | HiLink jsonString String 59 | HiLink jsonEscape Special 60 | HiLink jsonNumber Number 61 | HiLink jsonBraces Operator 62 | HiLink jsonNull Function 63 | HiLink jsonBoolean Boolean 64 | 65 | HiLink jsonNumError Error 66 | HiLink jsonStringSQ Error 67 | HiLink jsonNoQuotes Error 68 | delcommand HiLink 69 | endif 70 | 71 | let b:current_syntax = "json" 72 | if main_syntax == 'json' 73 | unlet main_syntax 74 | endif 75 | 76 | " Vim settings {{{2 77 | " vim: ts=8 fdm=marker 78 | -------------------------------------------------------------------------------- /vim/syntax/mplayerconf.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: mplayer(1) configuration file 3 | " Maintainer: Nikolai Weibull 4 | " Latest Revision: 2007-06-17 5 | 6 | if exists("b:current_syntax") 7 | finish 8 | endif 9 | 10 | let s:cpo_save = &cpo 11 | set cpo&vim 12 | 13 | setlocal iskeyword+=- 14 | 15 | syn keyword mplayerconfTodo contained TODO FIXME XXX NOTE 16 | 17 | syn region mplayerconfComment display oneline start='#' end='$' 18 | \ contains=mplayerconfTodo,@Spell 19 | 20 | syn keyword mplayerconfPreProc include 21 | 22 | syn keyword mplayerconfBoolean yes no 23 | 24 | syn match mplayerconfNumber '\<\d\+\>' 25 | 26 | syn keyword mplayerconfOption hardframedrop nomouseinput bandwidth dumpstream 27 | \ rtsp-stream-over-tcp tv overlapsub 28 | \ sub-bg-alpha subfont-outline unicode format 29 | \ vo edl cookies fps zrfd af-adv nosound 30 | \ audio-density passlogfile vobsuboutindex autoq 31 | \ autosync benchmark colorkey nocolorkey edlout 32 | \ enqueue fixed-vo framedrop h identify input 33 | \ lircconf list-options loop menu menu-cfg 34 | \ menu-root nojoystick nolirc nortc playlist 35 | \ quiet really-quiet shuffle skin slave 36 | \ softsleep speed sstep use-stdin aid alang 37 | \ audio-demuxer audiofile audiofile-cache 38 | \ cdrom-device cache cdda channels chapter 39 | \ cookies-file demuxer dumpaudio dumpfile 40 | \ dumpvideo dvbin dvd-device dvdangle forceidx 41 | \ frames hr-mp3-seek idx ipv4-only-proxy 42 | \ loadidx mc mf ni nobps noextbased 43 | \ passwd prefer-ipv4 prefer-ipv6 rawaudio 44 | \ rawvideo saveidx sb srate ss tskeepbroken 45 | \ tsprog tsprobe user user-agent vid vivo 46 | \ dumpjacosub dumpmicrodvdsub dumpmpsub dumpsami 47 | \ dumpsrtsub dumpsub ffactor flip-hebrew font 48 | \ forcedsubsonly fribidi-charset ifo noautosub 49 | \ osdlevel sid slang spuaa spualign spugauss 50 | \ sub sub-bg-color sub-demuxer sub-fuzziness 51 | \ sub-no-text-pp subalign subcc subcp subdelay 52 | \ subfile subfont-autoscale subfont-blur 53 | \ subfont-encoding subfont-osd-scale 54 | \ subfont-text-scale subfps subpos subwidth 55 | \ utf8 vobsub vobsubid abs ao aofile aop delay 56 | \ mixer nowaveheader aa bpp brightness contrast 57 | \ dfbopts display double dr dxr2 fb fbmode 58 | \ fbmodeconfig forcexv fs fsmode-dontuse fstype 59 | \ geometry guiwid hue jpeg monitor-dotclock 60 | \ monitor-hfreq monitor-vfreq monitoraspect 61 | \ nograbpointer nokeepaspect noxv ontop panscan 62 | \ rootwin saturation screenw stop-xscreensaver 63 | \ vm vsync wid xineramascreen z zrbw zrcrop 64 | \ zrdev zrhelp zrnorm zrquality zrvdec zrxdoff 65 | \ ac af afm aspect flip lavdopts noaspect 66 | \ noslices novideo oldpp pp pphelp ssf stereo 67 | \ sws vc vfm x xvidopts xy y zoom vf vop 68 | \ audio-delay audio-preload endpos ffourcc 69 | \ include info noautoexpand noskip o oac of 70 | \ ofps ovc skiplimit v vobsubout vobsuboutid 71 | \ lameopts lavcopts nuvopts xvidencopts msgmodule msgcolor msglevel heartbeat-cmd lirc ass ass-hinting ass-font-scale 72 | 73 | hi def link mplayerconfTodo Todo 74 | hi def link mplayerconfComment Comment 75 | hi def link mplayerconfPreProc PreProc 76 | hi def link mplayerconfBoolean Boolean 77 | hi def link mplayerconfNumber Number 78 | hi def link mplayerconfOption Keyword 79 | 80 | let b:current_syntax = "mplayerconf" 81 | 82 | let &cpo = s:cpo_save 83 | unlet s:cpo_save 84 | -------------------------------------------------------------------------------- /vim/syntax/mpsub.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Syntax highlighting for subtitle files in Mplayer (mpsub) format 3 | " Maintainer: Josip Deanovic 4 | " Last Change: 2003 Jun 29 5 | 6 | " For version 5.x: Clear all syntax items 7 | " For version 6.x: Quit when a syntax file was already loaded 8 | if !exists("main_syntax") 9 | if version < 600 10 | syntax clear 11 | elseif exists("b:current_syntax") 12 | finish 13 | endif 14 | let main_syntax = 'mpsub' 15 | endif 16 | 17 | 18 | syn case ignore 19 | 20 | 21 | syn match mpsubComment "#.*" 22 | syn match mpsubNumber "^\([0-9]\+\|[0-9]\+\.[0-9]*\) \([0-9]\+\|[0-9]\+\.[0-9]\+\)$" 23 | syn match mpsubOperator "=" 24 | syn region transparent matchgroup=mpsubTitle start='TITLE' end='[-a-zA-Z0-9 \(\)\\+,\.:!?_/%;\"\']*$' contains=mpsubOperator 25 | syn region transparent matchgroup=mpsubFile start='FILE' end='[0-9]\+,[a-zA-Z0-9]*' contains=mpsubOperator,mpsubComment 26 | syn region transparent matchgroup=mpsubAuthor start='AUTHOR' end='[-a-zA-Z0-9 \(\)\\+,\.:!?_/%;\"\']*$' contains=mpsubOperator 27 | syn region transparent matchgroup=mpsubType start='TYPE' end='VIDEO' contains=mpsubOperator,mpsubComment 28 | syn region transparent matchgroup=mpsubFormat start='FORMAT' end='[0-9]\+,[0-9]\+\|TIME\|[0-9]\+' contains=mpsubOperator,mpsubComment 29 | syn region transparent matchgroup=mpsubNote start='NOTE' end='[-a-zA-Z0-9 \(\)\\+,\.:!?_/%;\"\']*$' contains=mpsubOperator 30 | syn match mpsubError "{y:[bi]}" 31 | syn match mpsubError "{y:[bi][bi]}" 32 | syn match mpsubError "\[br\]" 33 | 34 | 35 | if main_syntax == "mpsub" 36 | syn sync minlines=10 37 | endif 38 | 39 | 40 | " Define the default highlighting. 41 | " For version 5.7 and earlier: only when not done already 42 | " For version 5.8 and later: only when an item doesn't have highlighting yet 43 | if version >= 508 || !exists("did_mpsub_syn_inits") 44 | if version < 508 45 | let did_mpsub_syn_inits = 1 46 | command -nargs=+ HiLink hi link 47 | else 48 | command -nargs=+ HiLink hi def link 49 | endif 50 | 51 | HiLink mpsubComment Comment 52 | HiLink mpsubNumber Number 53 | HiLink mpsubTitle Type 54 | HiLink mpsubFile Type 55 | HiLink mpsubAuthor Type 56 | HiLink mpsubType Type 57 | HiLink mpsubFormat Type 58 | HiLink mpsubNote Type 59 | HiLink mpsubOperator Statement 60 | HiLink mpsubError Error 61 | delcommand HiLink 62 | 63 | endif 64 | 65 | let b:current_syntax = "mpsub" 66 | 67 | if main_syntax == 'mpsub' 68 | unlet main_syntax 69 | endif 70 | 71 | " vim: ts=8 72 | 73 | -------------------------------------------------------------------------------- /vim/syntax/pagemaker.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bohoomil/dotfiles/2b313b49bc860c9977fb5858a6adfe3c62bfe494/vim/syntax/pagemaker.vim -------------------------------------------------------------------------------- /vim/syntax/srt.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Syntax highlighting for subtitle files in Subrip (srt) format 3 | " Maintainer: Josip Deanovic 4 | " Last Change: 2003 Jun 28 5 | 6 | " For version 5.x: Clear all syntax items 7 | " For version 6.x: Quit when a syntax file was already loaded 8 | if !exists("main_syntax") 9 | if version < 600 10 | syntax clear 11 | elseif exists("b:current_syntax") 12 | finish 13 | endif 14 | let main_syntax = 'srt' 15 | endif 16 | 17 | 18 | syn case ignore 19 | 20 | 21 | syn match srtComment "^#.*" 22 | syn match srtNumber "^[0-9]*$" 23 | syn match srtArrow " --> " 24 | syn region transparent matchgroup=srtTime start='[0-9]*:[0-9]*:[0-9]*,[0-9]*' end='[0-9]*:[0-9]*:[0-9]*,[0-9]*' contains=srtArrow 25 | syn match srtError "{y:[bi]}" 26 | syn match srtError "{y:[bi][bi]}" 27 | syn match srtError "\[br\]" 28 | 29 | 30 | if main_syntax == "srt" 31 | syn sync minlines=10 32 | endif 33 | 34 | 35 | " Define the default highlighting. 36 | " For version 5.7 and earlier: only when not done already 37 | " For version 5.8 and later: only when an item doesn't have highlighting yet 38 | if version >= 508 || !exists("did_srt_syn_inits") 39 | if version < 508 40 | let did_srt_syn_inits = 1 41 | command -nargs=+ HiLink hi link 42 | else 43 | command -nargs=+ HiLink hi def link 44 | endif 45 | 46 | HiLink srtComment Comment 47 | HiLink srtNumber Number 48 | HiLink srtArrow Statement 49 | HiLink srtTime Type 50 | HiLink srtError Error 51 | delcommand HiLink 52 | 53 | endif 54 | 55 | let b:current_syntax = "srt" 56 | 57 | if main_syntax == 'srt' 58 | unlet main_syntax 59 | endif 60 | 61 | " vim: ts=8 62 | 63 | -------------------------------------------------------------------------------- /vim/syntax/sub.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Syntax highlighting for subtitle files in MicroDVD (sub) format 3 | " Maintainer: Josip Deanovic 4 | " Last Change: 2002 Aug 17 5 | 6 | " For version 5.x: Clear all syntax items 7 | " For version 6.x: Quit when a syntax file was already loaded 8 | if !exists("main_syntax") 9 | if version < 600 10 | syntax clear 11 | elseif exists("b:current_syntax") 12 | finish 13 | endif 14 | let main_syntax = 'sub' 15 | endif 16 | 17 | 18 | syn case ignore 19 | 20 | 21 | syn match subComment "^#.*" 22 | syn match subFrames contained "[0-9]" 23 | syn match subPipe "|" 24 | syn match subError contained "[a-zA-Z,.;:/*\\!\"#$%&()=?*+\-'{| ]" 25 | syn match subBraces contained "[{}]" 26 | syn region transparent matchgroup=subBraces start='{' end='}' contains=subFrames,subError 27 | syn match subError "{y:[bi]}" 28 | syn match subError "{y:[bi][bi]}" 29 | 30 | 31 | if main_syntax == "sub" 32 | syn sync minlines=10 33 | endif 34 | 35 | 36 | " Define the default highlighting. 37 | " For version 5.7 and earlier: only when not done already 38 | " For version 5.8 and later: only when an item doesn't have highlighting yet 39 | if version >= 508 || !exists("did_sub_syn_inits") 40 | if version < 508 41 | let did_sub_syn_inits = 1 42 | command -nargs=+ HiLink hi link 43 | else 44 | command -nargs=+ HiLink hi def link 45 | endif 46 | 47 | HiLink subFrames Number 48 | HiLink subBraces Statement 49 | HiLink subPipe Type 50 | HiLink subError Error 51 | HiLink subComment Comment 52 | delcommand HiLink 53 | 54 | endif 55 | 56 | let b:current_syntax = "sub" 57 | 58 | if main_syntax == 'sub' 59 | unlet main_syntax 60 | endif 61 | 62 | " vim: ts=8 63 | 64 | -------------------------------------------------------------------------------- /vim/syntax/todo.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: TODO 3 | " Author: Magnus Woldrich 4 | 5 | if version < 600 6 | syntax clear 7 | elseif exists("b:current_syntax") 8 | finish 9 | endif 10 | 11 | syn match tododone /DONE/ 12 | syn match todoinprogress /INPROGRESS/ 13 | syn match todotodo /TODO/ 14 | syn match todosomewhat /SOMEWHAT/ 15 | syn match todonote /NOTE/ 16 | syn match tododate /\(Mon\|Tue\|Wed\|Thu\|Fri\|Sat\|Sun\)\s\(Jan\|Feb\|Mar\|Apr\|May\|Jun\|Jul\|Aug\|Sep\|Oct\|Nov\|Dec\) \d\{2}/ 17 | syn match todotime /\d\{2}:\d\{2}:\d\{2} .\{3,} \d\{4}/ 18 | syn region done start=/\*\*DONE/ end=/\*\*/ 19 | syn region inprogress start=/\*\*INPROGRESS/ end=/\*\*/ 20 | syn region matttodo start=/\*\*TODO/ end=/\*\*/ 21 | syn region majorpoint start=/==>/ end=/-->/me=s-3 contains=ALL 22 | syn region comment start=/#/ end=/\n/ 23 | syn match minorpoint /--/ 24 | syn match minipoint /---/ 25 | syn region todomodified start=/Modified:/ end=/$/ 26 | 27 | if !exists("did_todo_syntax_inits") 28 | let did_todo_syntax_inits = 1 29 | 30 | hi link tododone tDone 31 | hi link done tDone 32 | hi default tDone ctermfg=34 cterm=bold 33 | 34 | hi link todosomewhat tSomewhat 35 | hi link somewhat tSomewhat 36 | hi default tSomewhat ctermfg=208 37 | 38 | hi link todoinprogress tProgress 39 | hi link inprogress tProgress 40 | hi default tProgress ctermfg=226 41 | 42 | hi link todotodo tTodo 43 | hi link matttodo tTodo 44 | hi default tTodo ctermfg=160 ctermbg=233 cterm=bold 45 | 46 | hi link majorpoint tMajor 47 | hi default tMajor ctermfg=196 48 | 49 | hi link todonote tTodonote 50 | hi default tTodonote ctermfg=197 cterm=bold 51 | 52 | hi link minorpoint tMinor 53 | hi default tMinor ctermfg=29 cterm=bold 54 | 55 | hi link minipoint tMini 56 | hi default tMini ctermfg=154 cterm=bold 57 | 58 | hi link tododate tDate 59 | hi link todomodified tDate 60 | hi default tDate ctermfg=245 ctermbg=233 cterm=bold 61 | 62 | hi link todotime tTime 63 | hi link todomodified tTime 64 | hi default tTime ctermfg=238 cterm=bold 65 | endif 66 | 67 | let b:current_syntax="todo" 68 | -------------------------------------------------------------------------------- /w3m/config: -------------------------------------------------------------------------------- 1 | simple_preserve_space 0 2 | gb18030_as_ucs 0 3 | strict_iso2022 1 4 | use_jisx0213 0 5 | use_jisx0212 0 6 | use_jisx0201k 0 7 | use_jisc6226 0 8 | use_jisx0201 0 9 | use_gb12345_map 0 10 | fix_width_conv 1 11 | search_conv 1 12 | pre_conv 0 13 | ucs_conv 1 14 | use_language_tag 1 15 | east_asian_width 0 16 | use_combining 1 17 | use_wide 1 18 | ext_halfdump 0 19 | follow_locale 1 20 | system_charset UTF-8 21 | auto_detect 2 22 | document_charset UTF-8 23 | display_charset UTF-8 24 | cookie_avoid_wrong_number_of_dots 25 | cookie_accept_domains 26 | cookie_reject_domains 27 | accept_bad_cookie 0 28 | accept_cookie 1 29 | show_cookie 1 30 | use_cookie 1 31 | ssl_ca_file 32 | ssl_ca_path 33 | ssl_key_file 34 | ssl_cert_file 35 | ssl_verify_server 0 36 | ssl_forbid_method 37 | no_cache 0 38 | noproxy_netaddr 1 39 | no_proxy 40 | ftp_proxy 41 | https_proxy 42 | http_proxy 43 | use_proxy 1 44 | max_news 50 45 | nntpmode 46 | nntpserver 47 | dns_order 0 48 | meta_refresh 0 49 | follow_redirection 10 50 | default_url 0 51 | retry_http 1 52 | argv_is_url 0 53 | accept_media text/html, text/*;q=0.5, image/* 54 | accept_encoding gzip, compress, bzip, bzip2, deflate 55 | accept_language en;q=1.0 56 | no_referer 0 57 | user_agent 58 | pre_form_file ~/.w3m/pre_form 59 | ftppass_hostnamegen 1 60 | ftppasswd 61 | disable_secret_security_check 0 62 | passwd_file ~/.w3m/passwd 63 | use_lessopen 0 64 | bgextviewer 1 65 | extbrowser3 66 | extbrowser2 /usr/bin/firefox 67 | extbrowser sh -c 'printf %s "$0" | xsel' 68 | mailer /usr/bin/mutt 69 | mailto_options 1 70 | editor /usr/bin/vim 71 | urimethodmap ~/.w3m/urimethodmap, /usr/etc/w3m/urimethodmap 72 | mailcap ~/.mutt/mailcap 73 | mime_types ~/.mime.types, /etc/mime.types 74 | index_file 75 | cgi_bin 76 | personal_document_root 77 | document_root 78 | keymap_file keymap 79 | preserve_timestamp 1 80 | auto_uncompress 0 81 | decode_cte 0 82 | clear_buffer 1 83 | ignorecase_search 1 84 | wrap_search 0 85 | mark_all_pages 0 86 | vi_prec_num 0 87 | emacs_like_lineedit 0 88 | mark 0 89 | close_tab_back 0 90 | confirm_qq 0 91 | save_hist 1 92 | history 100 93 | use_history 1 94 | pagerline 10000 95 | visited_color magenta 96 | visited_anchor 1 97 | active_color cyan 98 | active_style 0 99 | bg_color terminal 100 | mark_color cyan 101 | form_color red 102 | image_color yellow 103 | anchor_color green 104 | basic_color terminal 105 | color 1 106 | nextpage_topline 0 107 | label_topline 0 108 | show_srch_str 1 109 | show_lnum 0 110 | fold_line 0 111 | image_map_list 1 112 | imgdisplay w3mimgdisplay 113 | image_scale 100 114 | ext_image_viewer 1 115 | max_load_image 4 116 | auto_image 1 117 | pseudo_inlines 1 118 | display_image 0 119 | view_unseenobject 0 120 | ignore_null_img_alt 1 121 | display_ins_del 1 122 | fold_textarea 0 123 | graphic_char 0 124 | alt_entity 1 125 | multicol 0 126 | dictcommand file:///$LIB/w3mdict.cgi 127 | use_dictcommand 0 128 | dirlist_cmd file:///$LIB/dirlist.cgi 129 | ext_dirlist 1 130 | display_lineinfo 0 131 | decode_url 0 132 | display_link_number 0 133 | display_link 0 134 | open_tab_dl_list 0 135 | open_tab_blank 0 136 | target_self 0 137 | frame 0 138 | pixel_per_line 17 139 | pixel_per_char 9 140 | indent_incr 4 141 | tabstop 8 142 | -------------------------------------------------------------------------------- /w3m/keymap: -------------------------------------------------------------------------------- 1 | # custom bindings 2 | keymap y EXTERN 3 | keymap Y EXTERN_LINK 4 | keymap b BACK 5 | keymap m NEXT 6 | keymap u PEEK 7 | keymap ESC-u PEEK_LINK 8 | keymap r RELOAD 9 | keymap P PRINT 10 | keymap B ADD_BOOKMARK 11 | keymap o GOTO 12 | keymap C-c OPTIONS 13 | keymap C-s INTERRUPT 14 | 15 | -------------------------------------------------------------------------------- /xinitrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -d /etc/X11/xinit/xinitrc.d ]; then 4 | for rcd in /etc/X11/xinit/xinitrc.d/* ; do 5 | [ -x "$rcd" ] && . "$rcd" 6 | done 7 | unset rcd 8 | fi 9 | 10 | if [ -d /etc/profile.d/ ]; then 11 | for profile in /etc/profile.d/*.sh; do 12 | [ -r "$profile" ] && . "$profile" 13 | done 14 | unset profile 15 | fi 16 | 17 | dwm(){ 18 | if [ -d $HOME/.config/autostart_wm ]; then 19 | for auto in $HOME/.config/autostart_wm/* ; do 20 | [ -x "$auto" ] && . "$auto" 21 | done 22 | unset auto 23 | fi 24 | 25 | #exec adwm 26 | exec $HOME/.local/bin/dwm-start 2>/dev/null 27 | } 28 | 29 | vbox(){ 30 | VirtualBox -startvm "" -fullscreen 31 | } 32 | 33 | dwm 34 | #vbox 35 | 36 | # vim:ft=sh: 37 | -------------------------------------------------------------------------------- /xsession: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /bin/bash --login -i ~/.xinitrc 4 | 5 | --------------------------------------------------------------------------------