This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/dotfiles-setup-for-root

32 lines
817 B
Text
Raw Normal View History

2018-11-08 09:34:17 -06:00
#!/usr/bin/env bash
if [[ $UID -ne 0 ]]; then
echo "Re-running with 'sudo -E'..."
sudo -E "$0" "$@"
exit
fi
dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../../" && pwd)
2020-11-06 09:31:50 -06:00
source "${dfp}/env/common/setup_helpers.bash"
2018-11-08 09:34:17 -06:00
2020-11-21 23:13:58 -06:00
cp "$dfp/apps/de/sway/dm-entry" "/usr/share/wayland-sessions/lsway.desktop"
2020-11-05 22:29:58 -06:00
2018-11-08 09:34:17 -06:00
links=(
2019-09-24 08:51:02 -05:00
# display manager files
2020-03-24 12:05:08 -05:00
"apps/de/sway/init" "/usr/bin/sway-lytedev"
2020-01-16 13:28:23 -06:00
# udev rules
2020-11-05 21:32:01 -06:00
# TODO: how does this work in nix?
2020-11-01 19:12:11 -06:00
"apps/udev-rules/gcadapter" "/etc/udev/rules.d/51-gcadapter.rules"
2020-01-16 13:28:23 -06:00
# tmpfiles
# TODO: does this even do anything anymore?
2020-03-24 12:05:08 -05:00
"apps/tmpfiles/disable-lid-wakeup" "/etc/tmpfiles.d/disable-lid-wakeup.conf"
2020-11-01 19:12:11 -06:00
# lightdm
"apps/de/gnome/gdm-tap-to-click" "/etc/dconf/db/gdm.d/06-tap-to-click"
2018-11-08 09:34:17 -06:00
)
2020-11-06 09:31:50 -06:00
_dotfiles_setup_run_setup "$HOME/.using-lytedev-etcfiles.lock" "${links[@]}"
2018-11-08 09:34:17 -06:00