Move even more files to .config
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
e0e3ad0135
commit
005c4f29b6
11 changed files with 26 additions and 56 deletions
30
README.md
30
README.md
|
@ -33,6 +33,10 @@ This folder contains my [compton](https://github.com/yshui/compton/releases) con
|
||||||
### `.config/cron`
|
### `.config/cron`
|
||||||
This folder contains my crontab file.
|
This folder contains my crontab file.
|
||||||
|
|
||||||
|
### `.config/custom`
|
||||||
|
This folder contains my configuration files that don't fit in any other
|
||||||
|
directory like `dircolors` and `keyleds`.
|
||||||
|
|
||||||
### `.config/dconf`
|
### `.config/dconf`
|
||||||
This folder contains my configurations that are stored in dconf by applications. These are getting loaded on boot in `.bash_profile`.
|
This folder contains my configurations that are stored in dconf by applications. These are getting loaded on boot in `.bash_profile`.
|
||||||
|
|
||||||
|
@ -85,7 +89,11 @@ This folder contains my configuration for
|
||||||
[vue-cli](https://github.com/vuejs/vue-cli).
|
[vue-cli](https://github.com/vuejs/vue-cli).
|
||||||
|
|
||||||
### `.config/wget`
|
### `.config/wget`
|
||||||
This folder contains my configuration for [wget](https://www.gnu.org/software/wget/).
|
This folder contains my configuration for
|
||||||
|
[wget](https://www.gnu.org/software/wget/).
|
||||||
|
|
||||||
|
### `.config/X11`
|
||||||
|
This folder contains my configuration for the X-Server.
|
||||||
|
|
||||||
### `.config/Trolltech.conf`
|
### `.config/Trolltech.conf`
|
||||||
This file contains my QT4 configuration.
|
This file contains my QT4 configuration.
|
||||||
|
@ -103,7 +111,7 @@ This folder contains my custom udev rules. They are moved to
|
||||||
This file contains my aliases that I use on a regular basis. I also use it to replace some standard commands wiht alternatives, like using `exa` instead of `ls`.
|
This file contains my aliases that I use on a regular basis. I also use it to replace some standard commands wiht alternatives, like using `exa` instead of `ls`.
|
||||||
|
|
||||||
### `.bash_logout`
|
### `.bash_logout`
|
||||||
This file contains code that gets executed when the shell is existed.
|
This file contains code that gets executed when the shell is exited.
|
||||||
|
|
||||||
### `.bash_profile`
|
### `.bash_profile`
|
||||||
This file contains code that gets executed when a login shell is started.
|
This file contains code that gets executed when a login shell is started.
|
||||||
|
@ -111,23 +119,5 @@ This file contains code that gets executed when a login shell is started.
|
||||||
### `.bashrc`
|
### `.bashrc`
|
||||||
This file contains code that gets executed when a new shell is started.
|
This file contains code that gets executed when a new shell is started.
|
||||||
|
|
||||||
### `.dircolors`
|
|
||||||
This file contains my used color scheme for `ls`.
|
|
||||||
|
|
||||||
### `.env`
|
### `.env`
|
||||||
This file contains my used environment variables.
|
This file contains my used environment variables.
|
||||||
|
|
||||||
### `.keyleds`
|
|
||||||
This file contains the configuration for my keyboard backlight.
|
|
||||||
|
|
||||||
### `.xinitrc`
|
|
||||||
This file is called when a new x-server is started manually. It loads the contents of `.xsetup` and then starts i3.
|
|
||||||
|
|
||||||
### `.xprofile`
|
|
||||||
This file is used by some display managers to load my normal `.bash_profile` file and `.xsetup`.
|
|
||||||
|
|
||||||
### `.Xresources`
|
|
||||||
This file currently contains my color configuration for [Rofi](https://github.com/DaveDavenport/rofi).
|
|
||||||
|
|
||||||
### `.xsetup`
|
|
||||||
This file contains code that I need on start. That's why it's sourced by both `.xinitrc` and `.xprofile`. This way I only need to write this code once.
|
|
11
install.sh
11
install.sh
|
@ -38,9 +38,11 @@ LINKED_FILES_HOME=(
|
||||||
".config/bat"
|
".config/bat"
|
||||||
".config/compton"
|
".config/compton"
|
||||||
".config/cron"
|
".config/cron"
|
||||||
|
".config/custom"
|
||||||
".config/dconf"
|
".config/dconf"
|
||||||
".config/dunst"
|
".config/dunst"
|
||||||
".config/git"
|
".config/git"
|
||||||
|
".config/gtk-2.0"
|
||||||
".config/gtk-3.0"
|
".config/gtk-3.0"
|
||||||
".config/httpie"
|
".config/httpie"
|
||||||
".config/i3"
|
".config/i3"
|
||||||
|
@ -53,15 +55,8 @@ LINKED_FILES_HOME=(
|
||||||
".config/vim"
|
".config/vim"
|
||||||
".config/vue"
|
".config/vue"
|
||||||
".config/wget"
|
".config/wget"
|
||||||
".dircolors"
|
".config/X11"
|
||||||
".env"
|
".env"
|
||||||
".gtkrc-2.0.mine"
|
|
||||||
".gtkrc-2.0"
|
|
||||||
".keyleds"
|
|
||||||
".xinitrc"
|
|
||||||
".xprofile"
|
|
||||||
".Xresources"
|
|
||||||
".xsetup"
|
|
||||||
"bin"
|
"bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -15,17 +15,17 @@ if [[ -f "${HOME}/.bashrc" ]]; then
|
||||||
. "${HOME}/.bashrc"
|
. "${HOME}/.bashrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "${HOME}/.keyleds" ]]; then
|
if [[ -f "${XDG_CONFIG_HOME}/custom/keyleds" ]]; then
|
||||||
. "${HOME}/.keyleds"
|
. "${XDG_CONFIG_HOME}/custom/keyleds"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restore custom dconf configuration
|
# Restore custom dconf configuration
|
||||||
dconf load / < "${HOME}/.config/dconf/root.conf"
|
dconf load / < "${XDG_CONFIG_HOME}/dconf/root.conf"
|
||||||
|
|
||||||
# Activate correct crontab file
|
# Activate correct crontab file
|
||||||
crontab "${XDG_CONFIG_HOME}/cron/crontab"
|
crontab "${XDG_CONFIG_HOME}/cron/crontab"
|
||||||
|
|
||||||
# If we are on tty1 we start the x-server
|
# If we are on tty1 we start the x-server
|
||||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
startx && exit
|
startx "${XDG_CONFIG_HOME}/X11/xinitrc" && exit
|
||||||
fi
|
fi
|
|
@ -23,8 +23,8 @@ if [ -f "${HOME}/.env" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable color support of ls
|
# Enable color support of ls
|
||||||
if [ -f "${HOME}/.dircolors" ]; then
|
if [ -f "${XDG_CONFIG_HOME}/custom/dircolors" ]; then
|
||||||
dircolors -b "${HOME}/.dircolors" > /dev/null 2>&1
|
dircolors -b "${XDG_CONFIG_HOME}/custom/dircolors" > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sourcing alias definitions
|
# Sourcing alias definitions
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# SCRIPT NAME:
|
# SCRIPT NAME:
|
||||||
# .xinitrc
|
# .config/X11/xinitrc
|
||||||
#
|
#
|
||||||
# AUTHOR:
|
# AUTHOR:
|
||||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||||
|
@ -11,5 +11,5 @@
|
||||||
#
|
#
|
||||||
# USAGE:
|
# USAGE:
|
||||||
# This script is executed when you start the x-server.
|
# This script is executed when you start the x-server.
|
||||||
. "${HOME}/.xsetup"
|
. "${XDG_CONFIG_HOME}/X11/xsetup"
|
||||||
i3
|
i3
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# SCRIPT NAME:
|
# SCRIPT NAME:
|
||||||
# .xsetup
|
# .config/X11/xsetup
|
||||||
#
|
#
|
||||||
# AUTHOR:
|
# AUTHOR:
|
||||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||||
|
@ -26,7 +26,7 @@ nm-applet &
|
||||||
redshift &
|
redshift &
|
||||||
|
|
||||||
# Merge .Xresources on boot
|
# Merge .Xresources on boot
|
||||||
xrdb -merge "${HOME}/.Xresources"
|
xrdb -merge "${XDG_CONFIG_HOME}/X11/xresources"
|
||||||
|
|
||||||
# Start ibus
|
# Start ibus
|
||||||
#ibus-daemon -drx
|
#ibus-daemon -drx
|
|
@ -29,6 +29,8 @@ export PYLINTHOME="${XDG_CACHE_HOME}/pylint"
|
||||||
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
|
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
|
||||||
export GTK_RC_FILES="${XDG_CONFIG_HOME}/gtk-1.0/gtkrc"
|
export GTK_RC_FILES="${XDG_CONFIG_HOME}/gtk-1.0/gtkrc"
|
||||||
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
|
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
|
||||||
|
export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc"
|
||||||
|
export XSERVERRC="${XDG_CONFIG_HOME}/X11/xserverrc"
|
||||||
|
|
||||||
# Bash
|
# Bash
|
||||||
export HISTCONTROL=ignoreboth
|
export HISTCONTROL=ignoreboth
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# SCRIPT NAME:
|
|
||||||
# .xprofile
|
|
||||||
#
|
|
||||||
# AUTHOR:
|
|
||||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
|
||||||
#
|
|
||||||
# DESCRIPTION:
|
|
||||||
# This is the startup script when LightDM starts. Currently it sources .xsetup
|
|
||||||
# and .bash_profile so it's almost the same as if you start the x-server
|
|
||||||
# manually.
|
|
||||||
#
|
|
||||||
# USAGE:
|
|
||||||
# This script is executed when LightDM starts.
|
|
||||||
. "${HOME}/.xsetup"
|
|
||||||
. "${HOME}/.bash_profile"
|
|
Loading…
Add table
Add a link
Reference in a new issue