Browse Source
Let my HOME alone 2/2
Let my HOME alone 2/2
Also I messed up my Vim syntax coloring and probably X with DM. Oh well.crash2
17 changed files with 136 additions and 85 deletions
-
10Xclients
-
48config/pythonstartup.py
-
0config/screenrc
-
6config/scripts/changeColors
-
1config/shell/commonrc
-
19config/shell/shenv
-
5config/shell/shrc
-
0config/terminfo/a/alacritty
-
0config/terminfo/a/alacritty-256color
-
0config/terminfo/r/rxvt-unicode
-
0config/terminfo/r/rxvt-unicode-256color
-
0config/tmux.conf
-
13config/vim/vimrc
-
1tern-config
-
6xinitrc
-
60xprofile
-
52xsession
@ -1,10 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
# |
|||
# ~/.Xclients |
|||
# |
|||
# Executed by xdm/gdm/kdm at login |
|||
# |
|||
|
|||
/bin/bash --login -i ~/.xinitrc |
|||
|
@ -1,3 +1,49 @@ |
|||
import rlcompleter |
|||
import readline |
|||
readline.parse_and_bind("tab: complete") |
|||
import sys |
|||
import os |
|||
|
|||
print("HELLO") |
|||
|
|||
# From https://github.com/python/cpython/blob/v3.7.0b5/Lib/site.py#L436 |
|||
# Changing the history file |
|||
def register_readline(): |
|||
import atexit |
|||
try: |
|||
import readline |
|||
import rlcompleter |
|||
except ImportError: |
|||
return |
|||
|
|||
# Reading the initialization (config) file may not be enough to set a |
|||
# completion key, so we set one first and then read the file. |
|||
readline_doc = getattr(readline, '__doc__', '') |
|||
if readline_doc is not None and 'libedit' in readline_doc: |
|||
readline.parse_and_bind('bind ^I rl_complete') |
|||
else: |
|||
readline.parse_and_bind('tab: complete') |
|||
|
|||
try: |
|||
readline.read_init_file() |
|||
except OSError: |
|||
# An OSError here could have many causes, but the most likely one |
|||
# is that there's no .inputrc file (or .editrc file in the case of |
|||
# Mac OS X + libedit) in the expected location. In that case, we |
|||
# want to ignore the exception. |
|||
pass |
|||
|
|||
if readline.get_current_history_length() == 0: |
|||
# If no history was loaded, default to .python_history. |
|||
# The guard is necessary to avoid doubling history size at |
|||
# each interpreter exit when readline was already configured |
|||
# through a PYTHONSTARTUP hook, see: |
|||
# http://bugs.python.org/issue5845#msg198636 |
|||
history = os.path.join(os.path.expanduser('~'), |
|||
'.cache/python_history') |
|||
try: |
|||
readline.read_history_file(history) |
|||
except OSError: |
|||
pass |
|||
atexit.register(readline.write_history_file, history) |
|||
|
|||
sys.__interactivehook__ = register_readline |
@ -1 +0,0 @@ |
|||
{} |
@ -1,60 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
# |
|||
# ~/.xprofile |
|||
# |
|||
# sourced by your display manager |
|||
# |
|||
|
|||
|
|||
[ -f ~/.config/Xresources/main ] && xrdb -I"$HOME" ~/.config/Xresources/main |
|||
xset b off |
|||
|
|||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" |
|||
|
|||
found=0 |
|||
tryDM() { |
|||
if [ $found -eq 0 ]; then |
|||
parameters='' |
|||
case $1 in |
|||
awesome ) executable=awesome;; |
|||
bspwm ) executable=bspwm;; |
|||
catwm ) executable=catwm;; |
|||
cinnamon ) executable=cinnamon-session;; |
|||
dwm ) executable=dwm;; |
|||
enlightenment ) executable=enlightenment_start;; |
|||
ede ) executable=startede;; |
|||
fluxbox ) executable=startfluxbox;; |
|||
gnome ) executable=gnome-session;; |
|||
gnome-classic ) executable=gnome-session; parameters="--session=gnome-classic";; |
|||
i3|i3wm ) executable=i3;; |
|||
icewm ) executable=icewm-session;; |
|||
jwm ) executable=jwm;; |
|||
kde ) executable=startkde;; |
|||
mate ) executable=mate-session;; |
|||
monster|monsterwm ) executable=monsterwm;; |
|||
notion ) executable=notion;; |
|||
openbox ) executable=openbox-session;; |
|||
unity ) executable=unity;; |
|||
xfce|xfce4 ) executable=startxfce4;; |
|||
xmonad ) executable=xmonad;; |
|||
*) executable=$1;; |
|||
esac |
|||
if commannd -v "$executable" |
|||
then |
|||
found=1 |
|||
exec "$executable" $parameters |
|||
fi |
|||
fi |
|||
} |
|||
|
|||
if [ -n "$1" ] |
|||
then |
|||
tryDM "$1" |
|||
fi |
|||
tryDM i3 |
|||
tryDM xfce4 |
|||
tryDM mate |
|||
tryDM gnome |
|||
tryDM kde |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue