Initial commit
parent
dd45db0f79
commit
55240e3b3d
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
##
|
||||||
|
# This file is part of the code-cloppers openbox setup.
|
||||||
|
#
|
||||||
|
# This script should be executed on startup of openbox.
|
||||||
|
|
||||||
|
start() {
|
||||||
|
nohup "$@" &
|
||||||
|
}
|
||||||
|
|
||||||
|
# emacs!
|
||||||
|
start emacs --daemon
|
||||||
|
|
||||||
|
# The launcher
|
||||||
|
start albert
|
||||||
|
|
||||||
|
# The dock
|
||||||
|
start plank
|
||||||
|
|
||||||
|
# Compositing (cool shadows/smooth looks for windows)
|
||||||
|
start xcompmgr
|
||||||
|
|
||||||
|
# Enable tap-to-click
|
||||||
|
xinput set-prop "DLL082A:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1
|
@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
###
|
||||||
|
# This file is part of the code-cloppers openbox setup. Use at your own risk.
|
||||||
|
#
|
||||||
|
# This script should setup openbox for a user on ubuntu
|
||||||
|
|
||||||
|
is-in-path() {
|
||||||
|
which "$1" &>>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
install-apt-dependencies() {
|
||||||
|
echo "=> Installing apt dependencies"
|
||||||
|
set -x
|
||||||
|
sudo apt-get update && \
|
||||||
|
sudo apt-get install xcompmgr openbox albert plank
|
||||||
|
set +x
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
install-dependencies() {
|
||||||
|
echo "=> Checking dependencies"
|
||||||
|
if ! is-in-path xcompmgr || ! is-in-path openbox; then
|
||||||
|
install-apt-dependencies
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
here() {
|
||||||
|
dirname "$(readlink -f "${BASH_SOURCE[0]}")"
|
||||||
|
}
|
||||||
|
|
||||||
|
copy-config() {
|
||||||
|
declare config_dir="$HOME/config/openbox"
|
||||||
|
|
||||||
|
echo "=> Copying config"
|
||||||
|
|
||||||
|
[[ -d "$config_dir" ]] || mkdir -p "$config_dir"
|
||||||
|
cp -r "$(here)/config/"* "$config_dir"/
|
||||||
|
}
|
||||||
|
|
||||||
|
setup-openbox-for-user() {
|
||||||
|
install-dependencies
|
||||||
|
copy-config
|
||||||
|
|
||||||
|
echo "=> Finished"
|
||||||
|
}
|
||||||
|
|
||||||
|
setup-openbox-for-user
|
Loading…
Reference in New Issue