This commit is contained in:
Christoffer Martinsson 2024-11-24 17:32:03 +01:00
parent a46059a66d
commit 6c466b5c2f
2 changed files with 11 additions and 10 deletions

View File

@ -48,6 +48,8 @@ $menu = wofi --show drun
exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # for GTK3 apps exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # for GTK3 apps
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# exec-once = waybar # exec-once = waybar
exec-once = $terminal exec-once = $terminal
@ -219,14 +221,12 @@ device {
$mainMod = SHIFT ALT # Sets "Windows" key as main modifier $mainMod = SHIFT ALT # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal bind = $mainMod, T, exec, $terminal
bind = $mainMod, C, killactive, bind = $mainMod, C, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating, bind = $mainMod, F, togglefloating,
bind = $mainMod, R, exec, $menu bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l bind = $mainMod, left, movefocus, l

View File

@ -57,10 +57,11 @@ elif [ "$OS" == "Arch Linux" ]; then
cd ~ cd ~
if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi
fi fi
sudo pacman --noconfirm --needed -S waybar hyprland hyprlock greetd pipewire git base-devel cmake gawk wget gettext unzip curl tmux btop ncdu ranger qt5ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance sudo pacman --noconfirm --needed -S waybar wofi hyprland hyprlock polkit-gnome xorg-xhost greetd pipewire git base-devel cmake gawk wget gettext unzip curl tmux btop ncdu ranger qt5ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance
yay --noconfirm -S --needed --aur adwaita-qt5-git yay --noconfirm -S --needed --aur adwaita-qt5-git
yay --noconfirm -S --needed --aur adwaita-qt6-git yay --noconfirm -S --needed --aur adwaita-qt6-git
fi fi
# Setup locals # Setup locals
@ -456,15 +457,15 @@ if [ "$DESKTOP" == "yes" ]; then
elif [ "$OS" == "Arch Linux" ]; then elif [ "$OS" == "Arch Linux" ]; then
sudo pacman --noconfirm --needed -S timeshift sudo pacman --noconfirm --needed -S timeshift
fi fi
# Install sunshine # Install sunshine
printf -- '\033[33m Installing Sunshine\n\033[37m' printf -- '\033[33m Installing Sunshine\n\033[37m'
if [ "$OS" == "Arch Linux" ]; then if [ "$OS" == "Arch Linux" ]; then
yay --noconfirm --needed -S sunshine yay --noconfirm --needed -S sunshine
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/60-sunshine.rules echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/60-sunshine.rules
sudo udevadm control --reload-rules sudo udevadm control --reload-rules
sudo udevadm trigger sudo udevadm trigger
sudo modprobe uinput sudo modprobe uinput
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine)) sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
fi fi