Everywhere: Add Hyprland Wayland config

This commit is contained in:
Riyyi
2025-02-09 22:46:46 +01:00
parent f0835c1a06
commit 6e50e217c3
35 changed files with 1151 additions and 94 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
XORG_USER='rick'
[ "$USER" = "$XORG_USER" ] && [ "$(tty)" = "/dev/tty1" ] && exec xinit -- vt1 > /dev/null 2>&1
if [ "$WAYLAND" = true ]; then
[ "$USER" = "$XORG_USER" ] && [ "$(tty)" = "/dev/tty1" ] && exec hyprland > /dev/null 2>&1
else
[ "$USER" = "$XORG_USER" ] && [ "$(tty)" = "/dev/tty1" ] && exec xinit -- vt1 > /dev/null 2>&1
fi
+16 -2
View File
@@ -24,6 +24,11 @@ export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron"
# export HIDPI=true
# <<<
# Wayland
# >>> system=wayland
# export WAYLAND=true
# <<<
#--- Program Specific ---#
# Android
@@ -79,7 +84,12 @@ if [ "$HIDPI" = true ]; then
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCREEN_SCALE_FACTORS=2
fi
export QT_QPA_PLATFORMTHEME="qt5gtk2"
if [ "$WAYLAND" = true ]; then
export QT_QPA_PLATFORM="wayland"
fi
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export QT_STYLE_OVERRIDE="kvantum"
# Rust
export CARGO_HOME="$XDG_DATA_HOME/cargo"
@@ -104,7 +114,11 @@ export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
export WINEPREFIX="$XDG_DATA_HOME/wine"
# WM
export WM="bspwm"
if [ "$WAYLAND" = true ]; then
export WM="hyprland"
else
export WM="bspwm"
fi
# Xorg
export XINITRC="$XDG_CONFIG_HOME/xorg/xinitrc"
+4
View File
@@ -73,10 +73,14 @@ zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey '\eOc' forward-word # ctrl-right
bindkey '\e[1;5C' forward-word # ctrl-right
bindkey '\eOd' backward-word # ctrl-left
bindkey '\e[1;5D' backward-word # ctrl-left
bindkey '\e[3~' delete-char # del
bindkey '\e[7~' beginning-of-line # home
bindkey '\e[H' beginning-of-line # home
bindkey '\e[8~' end-of-line # end
bindkey '\e[F' end-of-line # end
bindkey '\e[A' history-beginning-search-backward-end # up
bindkey '\e[B' history-beginning-search-forward-end # down
bindkey '\e[Z' reverse-menu-complete # shift-tab