From db211c7f310a5de18c7803a1ebfbb7ab2b1e3f0d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 29 Jul 2016 20:06:28 +0200 Subject: make my dotfiles location independent This is achieved by storing the absolute path to the dotfile directory in the variable $DOTFILES_LOCATION. And change every hardcoded location into the dotfiles with this var. The Variable $DOTFILES_LOCATION populated with the output of get_dotfiles_location.sh at 3 places: 1) config.fish | zshrc 2) xinitrc (should be allready exported) get_dotfiles_location uses the assumption that it is symlinked into the dotfiles directory. offlineimap: * include patch for offlineimap * change config to the small one * include environment file in systemd unit setup.py: * handle offlineimap situation * print a warning and prompt for proceeding * write the environment file for the systemd unit * add pseudo dependency (get_dotfiles_location) to [fish-config, offlineimap, i3] * print errors on stderr * don't exit if a function fails config.fish: * export $DOTFILES_LOCATION * change hardcoded links * add perl tools to path * export some yaourt specific vars if yaourt is available zshrc: export $DOTFILES_LOCATION xinitrc: export $DOTFILES_LOCATION i3/*: change hardcoded links scripts/* change hardcoded links README.md: mention $DOTFILES_LOCATION --- i3/config | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'i3/config') diff --git a/i3/config b/i3/config index f28591b..0cb16a4 100644 --- a/i3/config +++ b/i3/config @@ -47,9 +47,9 @@ bindsym $mod+Shift+q kill # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # programm starter -bindsym $mod+d exec ~/.dotfiles/scripts/program_starter.sh +bindsym $mod+d exec $DOTFILES_LOCATION/scripts/program_starter.sh # ssh starter -bindsym $mod+Shift+d exec ~/.dotfiles/scripts/ssh_starter.sh +bindsym $mod+Shift+d exec $DOTFILES_LOCATION/scripts/ssh_starter.sh # change focus bindsym $mod+$left focus left @@ -174,20 +174,20 @@ bar { # Audio shortcuts # # Volume -bindsym XF86AudioLowerVolume exec ~/.dotfiles/scripts/audio_control.sh -5 -bindsym XF86AudioRaiseVolume exec ~/.dotfiles/scripts/audio_control.sh +5 -bindsym XF86AudioMute exec ~/.dotfiles/scripts/audio_control.sh toggle +bindsym XF86AudioLowerVolume exec $DOTFILES_LOCATION/scripts/audio_control.sh -5 +bindsym XF86AudioRaiseVolume exec $DOTFILES_LOCATION/scripts/audio_control.sh +5 +bindsym XF86AudioMute exec $DOTFILES_LOCATION/scripts/audio_control.sh toggle # # Music -bindsym XF86AudioPrev exec ~/.dotfiles/scripts/media_control.sh prev -bindsym XF86AudioPlay exec ~/.dotfiles/scripts/media_control.sh toggle -bindsym XF86AudioNext exec ~/.dotfiles/scripts/media_control.sh next +bindsym XF86AudioPrev exec $DOTFILES_LOCATION/scripts/media_control.sh prev +bindsym XF86AudioPlay exec $DOTFILES_LOCATION/scripts/media_control.sh toggle +bindsym XF86AudioNext exec $DOTFILES_LOCATION/scripts/media_control.sh next ## brightnescontroll bindsym XF86MonBrightnessUp exec /usr/bin/xbacklight +10 bindsym XF86MonBrightnessDown exec /usr/bin/xbacklight -10 # Toogle Touchpad with Batterybutton -bindsym XF86Battery exec ~/.dotfiles/scripts/toggle_syn_touchpad.sh +bindsym XF86Battery exec $DOTFILES_LOCATION/scripts/toggle_syn_touchpad.sh #hide broders new_window pixel 3 @@ -198,10 +198,10 @@ new_window pixel 3 exec --no-startup-id xrandr --output HDMI1 --right-of eDP1 # set i3lock as xscreensaver -exec --no-startup-id xss-lock -- i3lock -i ~/.dotfiles/wallpapers/blue_screen.png #-lock +exec --no-startup-id xss-lock -- i3lock -i $DOTFILES_LOCATION/wallpapers/blue_screen.png #-lock # Autostart Programms -exec --no-startup-id feh --bg-fill ~/.dotfiles/wallpapers/nsa_wallpaper.png +exec --no-startup-id feh --bg-fill $DOTFILES_LOCATION/wallpapers/nsa_wallpaper.png exec --no-startup-id syndaemon -i 1 -d #exec --no-startup-id nm-applet exec --no-startup-id owncloud -- cgit v1.2.3