2023-11-22 22:55:38 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# set PATH so it includes user's private bin if it exists
|
|
|
|
if [ -d "$HOME/bin" ] ; then
|
|
|
|
PATH="$HOME/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# set PATH so it includes user's private bin if it exists
|
|
|
|
if [ -d "$HOME/.local/bin" ] ; then
|
|
|
|
PATH="$HOME/.local/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Fix gpg for git commit signing
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
|
2024-02-25 20:30:31 +01:00
|
|
|
# Autostart Hyprland at login
|
|
|
|
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
|
2024-05-27 23:37:19 +02:00
|
|
|
{% if (hostvars[ansible_hostname]['virtual_machine'] | default('false')) | bool %}
|
2024-02-25 20:30:31 +01:00
|
|
|
export WLR_NO_HARDWARE_CURSORS=1
|
2024-05-27 23:37:19 +02:00
|
|
|
{% endif %}
|
2024-02-25 20:30:31 +01:00
|
|
|
exec Hyprland
|
|
|
|
fi
|