A bunch of linux stuff. Very wip.

This commit is contained in:
Ivan Malison 2014-11-11 01:14:29 -08:00
parent cd982dfbbc
commit 3fd2353544
9 changed files with 250 additions and 4 deletions

21
.gitignore vendored
View File

@ -10,4 +10,23 @@ dotfiles/config/hub
dotfiles/cider/.cache/ dotfiles/cider/.cache/
dotfiles/pip/download_cache/ dotfiles/pip/download_cache/
.gitignore .gitignore
dotfiles/pip/pip.log dotfiles/pip/pip.log
config/google-chrome
dotfiles/config/google-chrome
dotfiles/config/spotify
dotfiles/config/dconf/
dotfiles/config/menus/applications-merged/
dotfiles/config/menus/gnome-applications-merged
dotfiles/config/pulse/
dotfiles/config/hexchat
dotfiles/config/Trolltech.conf
dotfiles/config/gtk-2.0/
dotfiles/config/gtk-3.0/
dotfiles/config/linuxmint/
dotfiles/config/menus/
dotfiles/config/monitors.xml
dotfiles/config/totem/
dotfiles/config/user-dirs.dirs
dotfiles/config/user-dirs.locale
dotfiles/config/vlc/
dotfiles/config/nemo/

View File

@ -0,0 +1,24 @@
# 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=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
highlight_base_name=0
highlight_megabytes=1
highlight_threads=0
tree_view=0
header_margin=1
detailed_cpu_time=0
cpu_count_from_zero=0
update_process_names=0
color_scheme=0
delay=15
left_meters=AllCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime
right_meter_modes=2 2 2

View File

@ -0,0 +1,15 @@
[global_config]
[keybindings]
[profiles]
[[default]]
use_system_font = False
font = Monaco 10
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
[[[window0]]]
type = Window
parent = ""
[plugins]

View File

@ -0,0 +1,7 @@
default xkb_keymap "default" {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)+ctrl(nocaps)+ctrl(swapcaps)" };
xkb_geometry { include "pc(pc105)" };
};

View File

@ -0,0 +1,153 @@
// $Id: symbols 67048 2014-02-05 00:39:26Z vinc17/xvii $
// See examples in /usr/share/X11/xkb/symbols
xkb_symbols "local" {
key <LALT> {
type = "ONE_LEVEL",
symbols[Group1] = [ ISO_Level3_Shift ]
};
key <RALT> {
type = "ONE_LEVEL",
symbols[Group1] = [ ISO_Level3_Shift ]
};
key <LMTA> {
type = "ONE_LEVEL",
symbols[Group1] = [ Alt_L ]
};
key <RMTA> {
type = "ONE_LEVEL",
symbols[Group1] = [ Alt_L ]
};
key <TLDE> { [ grave, notsign, dead_grave ] };
key <AE01> { [ 1, exclam, onesuperior, exclamdown ] };
key <AE02> { [ 2, quotedbl, twosuperior, dead_diaeresis ] };
key <AE03> { [ 3, sterling, threesuperior, ellipsis ] };
key <AE04> { [ 4, dollar, EuroSign, currency ] };
key <AE05> { [ 5, percent ] };
key <AE06> { [ 6, asciicircum, diamond, dead_circumflex ] };
key <AE07> { [ 7, ampersand ] };
key <AE08> { [ 8, asterisk, U220F, multiply ] };
key <AE09> { [ 9, parenleft ] };
key <AE10> { [ 0, parenright, degree, dead_abovering ] };
key <AE11> { [ minus, underscore, hyphen, U2212 ] };
key <AE12> { [ equal, plus, notequal, plusminus ] };
key <BKSP> { [ BackSpace, 0x1000017 ] };
key <AD01> { [ q, Q, emptyset ] };
key <AD02> { [ w, W ] };
key <AD03> { [ e, E, U2203, U2200 ] };
key <AD04> { [ r, R, registered, radical ] };
key <AD05> { [ t, T ] };
key <AD06> { [ y, Y, yen ] };
key <AD07> { [ u, U, union, uparrow ] };
key <AD08> { [ i, I, intersection, infinity ] };
key <AD09> { [ o, O, oe, OE ] };
key <AD10> { [ p, P, section, paragraph ] };
key <AD11> { [ bracketleft, braceleft, dead_acute, leftarrow ] };
key <AD12> { [ bracketright, braceright, dead_grave, rightarrow ] };
key <AC01> { [ a, A, ae, AE ] };
key <AC02> { [ s, S, ssharp, U2211 ] };
key <AC03> { [ d, D, dagger, downarrow ] };
key <AC04> { [ f, F, U2500, U2502 ] };
key <AC05> { [ g, G, U250C, U251C ] };
key <AC06> { [ h, H, U2510, U2524 ] };
key <AC07> { [ j, J, U2514, U252C ] };
key <AC08> { [ k, K, U2518, U2534 ] };
key <AC09> { [ l, L, sterling, U253C ] };
key <AC10> { [ semicolon, colon, dead_diaeresis ] };
key <AC11> { [ apostrophe, at, dead_acute, dead_cedilla ] };
key <BKSL> { [ numbersign, asciitilde, dead_circumflex, dead_tilde ] };
key <LSGT> { [ backslash, bar, emdash, brokenbar ] };
key <AB01> { [ z, Z, guillemotleft, elementof ] };
key <AB02> { [ x, X, guillemotright, notelementof ] };
key <AB03> { [ c, C, copyright, includedin ] };
key <AB04> { [ v, V, logicalor, logicaland ] };
key <AB05> { [ b, B ] };
key <AB06> { [ n, N, endash ] };
key <AB07> { [ m, M, mu ] };
key <AB08> { [ comma, less, cedilla, lessthanequal ] };
key <AB09> { [ period, greater, periodcentered, greaterthanequal ] };
key <AB10> { [ slash, question, division, questiondown ] };
key <FK01> {
type = "CUSTFNKEY",
symbols[Group1] = [ eacute, Eacute, F1, XF86Switch_VT_1 ]
};
key <FK02> {
type = "CUSTFNKEY",
symbols[Group1] = [ egrave, Egrave, F2, XF86Switch_VT_2 ]
};
key <FK03> {
type = "CUSTFNKEY",
symbols[Group1] = [ ecircumflex, Ecircumflex, F3, XF86Switch_VT_3 ]
};
key <FK04> {
type = "CUSTFNKEY",
symbols[Group1] = [ ediaeresis, Ediaeresis, F4, XF86Switch_VT_4 ]
};
key <FK05> {
type = "CUSTFNKEY",
symbols[Group1] = [ acircumflex, Acircumflex, F5, XF86Switch_VT_5 ]
};
key <FK06> {
type = "CUSTFNKEY",
symbols[Group1] = [ icircumflex, Icircumflex, F6, XF86Switch_VT_6 ]
};
key <FK07> {
type = "CUSTFNKEY",
symbols[Group1] = [ ocircumflex, Ocircumflex, F7, XF86Switch_VT_7 ]
};
key <FK08> {
type = "CUSTFNKEY",
symbols[Group1] = [ ucircumflex, Ucircumflex, F8, XF86Switch_VT_8 ]
};
key <FK09> {
type = "CUSTFNKEY",
symbols[Group1] = [ agrave, Agrave, F9, XF86Switch_VT_9 ]
};
key <FK10> {
type = "CUSTFNKEY",
symbols[Group1] = [ ugrave, Ugrave, F10, XF86Switch_VT_10 ]
};
key <FK11> {
type = "CUSTFNKEY",
symbols[Group1] = [ idiaeresis, Idiaeresis, F11, XF86Switch_VT_11 ]
};
key <FK12> {
type = "CUSTFNKEY",
symbols[Group1] = [ ccedilla, Ccedilla, F12, XF86Switch_VT_12 ]
};
key <SPCE> { [ space, nobreakspace ] };
key <KPEQ> { [ equal ] };
key <KPDV> { [ slash ] };
key <KPMU> { [ asterisk ] };
key <KPSU> { [ minus ] };
key <KPAD> { [ plus ] };
key <KPEN> { [ Return ] };
key <KP7> { [ 7 ] };
key <KP8> { [ 8 ] };
key <KP9> { [ 9 ] };
key <KP4> { [ 4 ] };
key <KP5> { [ 5 ] };
key <KP6> { [ 6 ] };
key <KP1> { [ 1 ] };
key <KP2> { [ 2 ] };
key <KP3> { [ 3 ] };
key <KP0> { [ 0 ] };
key <KPDL> { [ period ] };
key <UP> {
type = "CUSTLEVELTHREE",
symbols[Group1] = [ Up, 0x1000012 ]
};
key <LEFT> {
type = "CUSTLEVELTHREE",
symbols[Group1] = [ Left, 0x1000001 ]
};
key <DOWN> {
type = "CUSTLEVELTHREE",
symbols[Group1] = [ Down, 0x1000013 ]
};
key <RGHT> {
type = "CUSTLEVELTHREE",
symbols[Group1] = [ Right, 0x1000005 ]
};
};

View File

@ -0,0 +1,26 @@
// $Id: types 43746 2011-05-15 14:32:38Z vinc17/xvii $
default xkb_types "local" {
include "complete"
type "CUSTFNKEY" {
modifiers = Shift+Lock+Control+Alt;
map[Shift] = Level2;
map[Lock] = Level2;
map[Control] = Level3;
map[Control+Alt] = Level4;
level_name[Level1] = "Base";
level_name[Level2] = "Caps";
level_name[Level3] = "Level3";
level_name[Level4] = "Ctrl+Alt";
};
type "CUSTLEVELTHREE" {
modifiers = LevelThree;
map[LevelThree] = Level2;
level_name[Level1] = "Base";
level_name[Level2] = "Alt";
};
};

5
dotfiles/xsession Normal file
View File

@ -0,0 +1,5 @@
if [ -d $HOME/.xkb/keymap ]; then
setxkbmap -types local -print | \
sed -e '/xkb_symbols/s/"[[:space:]]/+local&/' > $HOME/.xkb/keymap/custom
xkbcomp -w0 -I$HOME/.xkb -R$HOME/.xkb keymap/custom $DISPLAY
fi

View File

@ -31,7 +31,6 @@ function osx() {
} }
function go() { function go() {
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
git clone https://github.com/IvanMalison/dotfiles.git --recursive git clone https://github.com/IvanMalison/dotfiles.git --recursive
cd dotfiles cd dotfiles
sudo pip install invoke dotfiles sudo pip install invoke dotfiles
@ -39,7 +38,6 @@ function go() {
} }
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
case `uname` in case `uname` in
'Darwin') 'Darwin')
osx osx

View File

@ -28,7 +28,6 @@ def setup(ctx):
change_shell(ctx) change_shell(ctx)
@ctask @ctask
def dotfiles(ctx, flags=''): def dotfiles(ctx, flags=''):
ctx.run('hash dotfiles || sudo pip install dotfiles') ctx.run('hash dotfiles || sudo pip install dotfiles')