startwayfire 817 B

12345678910111213141516
  1. #!/bin/sh
  2. export XDG_RUNTIME_DIR=/tmp/runtime-$UID
  3. mkdir -p $XDG_RUNTIME_DIR
  4. chown $UID:$UID $XDG_RUNTIME_DIR
  5. chmod 700 $XDG_RUNTIME_DIR
  6. export XKB_DEFAULT_LAYOUT=`initc keyboard`
  7. export WLR_RENDERER_ALLOW_SOFTWARE=1
  8. mkdir -p ~/.config/waybar
  9. [ ! -f ~/.config/wayfire.ini ] && cp /etc/wayfire/wayfire.ini ~/.config/
  10. [ ! -f ~/.config/wf-shell.ini ] && cp /etc/wayfire/wf-shell.ini ~/.config/
  11. [ -f /etc/waybar/config ] && [ ! -f ~/.config/waybar/config ] && cp -f /etc/waybar/* ~/.config/waybar/
  12. [ -d /etc/wofi ] && [ ! -d ~/.config/wofi ] && cp -rf /etc/wofi ~/.config/
  13. [ -d /etc/skel/.config/gtk-3.0 ] && [ ! -d ~/.config/gtk-3.0 ] && cp -rf /etc/skel/.config/gtk-3.0 ~/.config/
  14. [ -d /etc/skel/.config/geany ] && [ ! -d ~/.config/geany ] && cp -rf /etc/skel/.config/geany ~/.config/
  15. wayfire -c ~/.config/wayfire.ini