Browse Source

Add initial configs

umatrix-rules
Pearu 7 years ago
parent
commit
1d90445298
  1. 26
      htop/.config/htop/htoprc
  2. 41
      i3/.Xdefaults
  3. 6
      i3/.Xresources
  4. 25
      i3/.cfg_src/build_i3.sh
  5. 150
      i3/.cfg_src/i3/config.base
  6. 22
      i3/.cfg_src/i3/config.bug.local
  7. 13
      i3/.cfg_src/i3/config.local.dist
  8. 80
      i3/.cfg_src/i3/i3blocks.base
  9. 13
      i3/.i3/scripts/uptime
  10. 2
      i3/.xinitrc
  11. 2
      idea/.ideavimrc
  12. 107
      vim/.vimrc
  13. 27
      xkb/.config/xkb/symbols/pvx
  14. 1
      xkb/klahvid.sh
  15. 13
      zsh/.zshrc

26
htop/.config/htop/htoprc

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=37 0 48 17 18 38 39 40 2 46 47 49 1
sort_key=47
sort_direction=1
hide_threads=1
hide_kernel_threads=0
hide_userland_threads=1
shadow_other_users=1
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=0
tree_view=0
header_margin=0
detailed_cpu_time=1
cpu_count_from_zero=1
update_process_names=0
account_guest_in_cpu_meter=0
color_scheme=6
delay=15
left_meters=AllCPUs2 Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime
right_meter_modes=2 2 2

41
i3/.Xdefaults

@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
!URxvt*background: grey10
URxvt*background: black
URxvt*foreground: grey90
*color0: #2E3436
*color1: #a40000
*color2: #4E9A06
*color3: #C4A000
*color4: #3465A4
*color5: #75507B
*color6: #ce5c00
*color7: #babdb9
*color8: #555753
*color9: #EF2929
*color10: #8AE234
*color11: #FCE94F
*color12: #729FCF
*color13: #AD7FA8
*color14: #fcaf3e
*color15: #EEEEEC
urxvt*transparent: true
urxvt*shading: 15
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
URxvt.iso14755: False
URxvt.perl-ext-common: default,clipboard
urxvt*perl-lib: /usr/lib/urxvt/perl/
urxvt*perl-ext: default,matcher
urxvt*url-launcher: /usr/bin/firefox
urxvt*matcher.button: 1
! urxvt*matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-]
!URxvt.font: xft:Terminus:size=8
!URxvt*font: -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
!URxvt.letterSpace: -3

6
i3/.Xresources

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: false
Xft.rgba: rgb
Xft.hintstyle: hintslight

25
i3/.cfg_src/build_i3.sh

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
#!/bin/bash
I3C_CFGDIR=$HOME/.config/i3
I3C_SRCDIR=$HOME/.cfg_src/i3
MYHOST=`hostname`;
I3C_LOCCFG=$I3C_SRCDIR/config.$MYHOST.local;
I3B_CFG=$HOME/.i3blocks.conf;
if [ ! -e $I3C_LOCCFG ]
then
cp $I3C_SRCDIR/config.local.dist $I3C_LOCCFG;
fi
if [ ! -e $I3C_CFGDIR ]
then
mkdir -p $I3C_CFGDIR;
fi
cat $I3C_SRCDIR/config.base $I3C_LOCCFG > $I3C_CFGDIR/config;
cat $I3C_SRCDIR/i3blocks.base > $I3B_CFG;

150
i3/.cfg_src/i3/config.base

@ -0,0 +1,150 @@ @@ -0,0 +1,150 @@
set $mod Mod4
font -misc-fixed-medium-r-normal--13-100-75-75-C-70-iso10646-1
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run_history
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+g split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
bindsym $mod+Ctrl+h move workspace to output left
bindsym $mod+Ctrl+l move workspace to output right
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D pulse sset Master 3%+ unmute
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master 3%- unmute
bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse sset Master mute
#change keyboard layout
set $keyboardMode "keyboard e=ee, u=us"
bindsym $mod+shift+i mode $keyboardMode
mode $keyboardMode {
bindsym e exec "setxkbmap ee", exec "pkill -SIGRTMIN+12 i3blocks", mode "default"
bindsym u exec "setxkbmap -layout 'us(intl)'", exec "pkill -SIGRTMIN+12 i3blocks", mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
set $Locker i3lock -c 000000 && sleep 1
set $brbLocker /home/pvx/scripts/lock.sh /home/pvx/Pictures/brb.png && sleep 1
set $mode_system System (l) lock, BRB (b), (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym b exec --no-startup-id $brbLocker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Escape mode "$mode_system"
client.focused #3F8AC2 #096BAA #00BAA7 #00DA8E
client.focused_inactive #333333 #5F676A #ffffff #484e50
client.unfocused #333333 #424242 #888888 #292d2e
client.urgent #C10004 #900000 #ffffff #900000

22
i3/.cfg_src/i3/config.bug.local

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
# bug i3bar config
bar {
output DP-2.8
status_command i3blocks
tray_output primary
position top
colors {
background #000000
statusline #00A5FF
separator $666666
}
}
bar {
output DP-0.8
output DP-5
mode hide
position top
tray_output primary
}

13
i3/.cfg_src/i3/config.local.dist

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
# default i3bar config
bar {
status_command i3blocks
tray_output primary
position top
colors {
background #000000
statusline #00A5FF
separator $666666
}
}

80
i3/.cfg_src/i3/i3blocks.base

@ -0,0 +1,80 @@ @@ -0,0 +1,80 @@
full_text=
align=center
command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
[mediaplayer]
interval=25
signal=10
[uptime]
command=~/.i3/scripts/uptime
interval=60
[volume]
label=VOL
instance=Master
interval=once
signal=10
interval=60
[memory]
label=MEM
separator=false
interval=30
[memory]
label=SWAP
instance=swap
interval=30
[disk]
label=HOME
interval=30
[iface]
color=#00FF00
interval=10
separator=false
[wifi]
interval=10
separator=false
[bandwidth]
interval=5
[cpu_usage]
label=CPU
interval=10
min_width=CPU: 100.00%
separator=false
[load_average]
interval=10
[battery]
label=BAT
instance=1
interval=30
[keymap]
label=KB
interval=60
signal=12
[time]
command=date '+%Y-%m-%d %H:%M:%S'
interval=5
[keyindicator]
instance=NUM
interval=once
signal=11
[keyindicator]
instance=CAPS
interval=once
signal=11

13
i3/.i3/scripts/uptime

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
#!/bin/bash
#
# Author: Raphael P. Ribeiro <raphaelpr01@gmail.com>
uptime=$(</proc/uptime)
uptime=${uptime%%.*}
s=$(( uptime%60 ))
m=$(( uptime/60%60 ))
h=$(( uptime/60/60%24 ))
d=$(( uptime/60/60/24 ))
echo "UPTIME "$d"d "$h"h "$m"m"

2
i3/.xinitrc

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
exec i3

2
idea/.ideavimrc

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
set incsearch

107
vim/.vimrc

@ -0,0 +1,107 @@ @@ -0,0 +1,107 @@
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2015 Mar 24
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set backup " keep a backup file (restore to previous version)
set undofile " keep an undo file (undo changes after closing)
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" Don't use Ex mode, use Q for formatting
map Q gq
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=a
endif
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
if has('langmap') && exists('+langnoremap')
" Prevent that the langmap option applies to characters that result from a
" mapping. If unset (default), this may break plugins (but it's backward
" compatible).
set langnoremap
endif
set number

27
xkb/.config/xkb/symbols/pvx

@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
partial alphanumeric_keys
xkb_symbols "pvx"
{
include "us(basic)"
include "level3(ralt_switch)"
include "eurosign(e)"
key <AD02> { [ w, W, scaron, Scaron ] };
key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
key <AC02> { [ s, S, otilde, Otilde ] };
key <AC03> { [ d, D, odiaeresis, Odiaeresis ] };
key <AC04> { [ f, F, udiaeresis, Udiaeresis ] };
key <AB01> { [ z, Z, zcaron, Zcaron ] };
key <AB10> { [ slash, question, U2E2E ] };
key <AC06> { [ h, H, U5350, U534D ] };
key <AD10> { [ p, P, U26E7, U262E ] };
key <AB03> { [ c, C, U262D ] };
key <CAPS> {
type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Multi_key, Caps_Lock ],
actions[Group1] = [ RedirectKey(key=<BKSP>), LockMods(modifiers=Lock) ]
};
replace key <KPEN> { [ Return ] };
};

1
xkb/klahvid.sh

@ -0,0 +1 @@ @@ -0,0 +1 @@
setxkbmap -I.config/xkb pvx -print | xkbcomp -I.config/xkb - $DISPLAY

13
zsh/.zshrc

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
source /usr/share/zaw/zaw.zsh
bindkey '^R' zaw-history
bindkey -M filterselect '^R' down-line-or-history
bindkey -M filterselect '^S' up-line-or-history
bindkey -M filterselect '^E' accept-search
zstyle ':filter-select:highlight' matched fg=green
zstyle ':filter-select' max-lines 3
zstyle ':filter-select' extended-search yes
eval $(thefuck --alias)
Loading…
Cancel
Save