Beta 25.04.04-2: made setup functionnal again

This commit is contained in:
Gu://em_ 2025-04-04 17:42:36 +02:00
parent e6b08b867f
commit 1c9f79e8c5
6 changed files with 62 additions and 57 deletions

View file

@ -74,28 +74,28 @@ bind = $mainMod, T, togglefloating,
bind = $mainMod, H, pseudo, # Toggle pseudo-tiling bind = $mainMod, H, pseudo, # Toggle pseudo-tiling
# Switch workspaces with mainMod + [0-9] # Switch workspaces with mainMod + [0-9]
bind = $mainMod, ampersand, workspace, 1 bind = $mainMod, 1, workspace, 1
bind = $mainMod, eacute, workspace, 2 bind = $mainMod, 2, workspace, 2
bind = $mainMod, quotedbl, workspace, 3 bind = $mainMod, 3, workspace, 3
bind = $mainMod, apostrophe, workspace, 4 bind = $mainMod, 4, workspace, 4
bind = $mainMod, parenleft, workspace, 5 bind = $mainMod, 5, workspace, 5
bind = $mainMod, minus, workspace, 6 bind = $mainMod, 6, workspace, 6
bind = $mainMod, egrave, workspace, 7 bind = $mainMod, 7, workspace, 7
bind = $mainMod, underscore, workspace, 8 bind = $mainMod, 8, workspace, 8
bind = $mainMod, ccedilla, workspace, 9 bind = $mainMod, 9, workspace, 9
bind = $mainMod, agrave, workspace, 10 bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9] # Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, ampersand, movetoworkspace, 1 bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, eacute, movetoworkspace, 2 bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, quotedbl, movetoworkspace, 3 bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, apostrophe, movetoworkspace, 4 bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, parenleft, movetoworkspace, 5 bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, minus, movetoworkspace, 6 bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, egrave, movetoworkspace, 7 bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, underscore, movetoworkspace, 8 bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, ccedilla, movetoworkspace, 9 bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, agrave, movetoworkspace, 10 bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod, S, togglespecialworkspace, magic
@ -146,5 +146,5 @@ bind = , Print, exec, ~/.config/hypr/scripts/screenshot.sh
### CONTROL keys, this is why there are present here ### CONTROL keys, this is why there are present here
bind = SUPER CONTROL, XF86TouchpadToggle, exec, ~/.config/hypr/scripts/toggle-touchpad.sh bind = SUPER CONTROL, XF86TouchpadToggle, exec, ~/.config/hypr/scripts/toggle-touchpad.sh
## Testing ## Overview
#bind = $mainMod, TAB, overview:toggle, toggle #bind = $mainMod, TAB, overview:toggle, toggle

View file

@ -1,10 +0,0 @@
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
monitor=eDP-1,preferred,0x0,1 # Laptop screen
monitor=DP-1, preferred, 0x-1080, 1 # HP Home monitor
monitor=DP-2, preferred, 0x-1080, 1 # HP Home monitor
monitor=HDMI-A-1, preferred, 0x-1440, 1 # Dell monitor

View file

@ -4,4 +4,3 @@
# See https://wiki.hyprland.org/Configuring/Monitors/ # See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
monitor=eDP-1,preferred,0x0,1 # Laptop screen

View file

@ -8,7 +8,7 @@
#source = ~/.config/hypr/config/monitors_default.conf #source = ~/.config/hypr/config/monitors_default.conf
source = ~/.config/hypr/config/monitors.conf source = ~/.config/hypr/config/monitors.conf
source = ~/.config/hypr/config/environment.conf source = ~/.config/hypr/config/environment.conf
source = ~/.config/hypr/config/input.conf source = ~/.config/hypr/config/input-fr.conf
source = ~/.config/hypr/config/appearance.conf source = ~/.config/hypr/config/appearance.conf
source = ~/.config/hypr/config/plugins.conf source = ~/.config/hypr/config/plugins.conf
#source = ~/.config/hypr/config/minimalist-mod.conf #source = ~/.config/hypr/config/minimalist-mod.conf

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
version="Beta 25.04.04" version="Beta 25.04.04-2"
echo "Atlas Desktop Installer - ${version}\n" echo -e "Atlas Desktop Installer - ${version}\n"
# Definitions # Definitions
@ -15,14 +15,14 @@ dotfiles_path="~/.dotfiles"
## Functions ## Functions
function install() { function install() {
echo "Downloading $1 packages" echo -e "\nDownloading $1 packages...\n"
# sudo pacman -Syu --noconfirm --color auto $(cat $pkgs_path/$1.pkgs) sudo pacman -Syu --noconfirm --color auto $(cat $pkgs_path/$1.pkgs)
echo "Done" echo -e "\n\nDone\n"
} }
function install-aur() { function install_aur() {
echo "Downloading $1 packages" echo -e "\nDownloading $1 packages...\n"
# paru -Syu --noconfirm $(cat $pkgs_path/$1.pkgs) paru -Syu --noconfirm --color auto $(cat $pkgs_path/$1.pkgs)
echo "Done" echo -e "\nDone\n"
} }
@ -36,61 +36,76 @@ if [ $? != 0 ]; then
fi fi
## Scripts presence ## Scripts presence
if [ ! -d $pkgs_path ]; then if [ ! -d "$pkgs_path" ]; then
echo "Couldn't find 'packages' folder inside ${script_path}" echo "Couldn't find 'packages' folder inside ${script_path}"
exit 1 exit 1
fi fi
if [ ! -d $config_path ]; then if [ ! -d "$config_path" ]; then
echo "Couldn't find 'config' folder inside ${script_path}" echo "Couldn't find 'config' folder inside ${script_path}"
exit 1 exit 1
fi fi
# Install packages
echo "--- Downloading packages ---"
## # Installation
echo "--- Installation ---"
## Main packages
install core install core
install cli-dev-tools install cli-dev-tools
install fonts install fonts
install desktop install desktop
install theming install theming
## Install vendor specific software ## Vendor specific packages
if [ $CPU_vendor == "Genuine Intel" ]; then if [ $CPU_vendor == "Genuine Intel" ]; then
install intel install intel
fi fi
## Install paru ## Paru
git clone https://aur.archlinux.org/paru.git /tmp/paru && git clone https://aur.archlinux.org/paru.git /tmp/paru &&
echo "Installing paru" &&
cd /tmp/paru && cd /tmp/paru &&
makepkg -si makepkg -si
cd $script_path cd $script_path
install-aur aur ## AUR packages
install_aur aur
# Configuration # Configuration
echo -e "\n--- Configuration ---\n"
## Dotfiles ## Dotfiles
echo "Copying configuration files"
cp $config_path $dotfiles_path && cp $config_path $dotfiles_path &&
cd $dotfiles_path && cd $dotfiles_path &&
stow . stow .
cd $script_path cd $script_path
## Install launcher theme (albert)
sudo ln -s .config/albert/schemes/Seventy\ Eight.qss /usr/share/albert/widgetsboxmodel/themes/
## Swap (Zram) ## Swap (Zram)
is_zram_active=$(sudo systemctl is-active systemd-zram-setup@zram0.service) is_zram_active=$(sudo systemctl is-active systemd-zram-setup@zram0.service)
if [ is_zram_active != "active" ]; then if [ is_zram_active != "active" ]; then
... echo -e "\n========================================"
echo "WARNING: you don't have Zram enabled"
echo "Since this script is not yet capable of activating zram, you'll have to do it yourself"
echo "Please refer to https://wiki.archlinux.org/title/Zram#Using_zram-generator"
echo -e "========================================\n"
fi fi
## Mandatory Access Control (Apparmor) ## Mandatory Access Control (Apparmor)
is_aa_active=$(sudo systemctl is-active apparmor.service) is_aa_active=$(sudo systemctl is-active apparmor.service)
if [ is_aa_active != "active" ]; then if [ is_aa_active != "active" ]; then
echo "========================================" echo -e "\n========================================"
echo "WARNING: you don't have apparmor enabled" echo "WARNING: you don't have AppArmor enabled"
echo "Since this script is not yet capable to handle kernel parameters, you'll have to do it yourself" echo "Since this script is not yet capable of managing kernel parameters, you'll have to do it yourself"
echo "Please refer to https://wiki.archlinux.org/title/AppArmor" echo "Please refer to https://wiki.archlinux.org/title/AppArmor"
echo "========================================" echo -e "========================================\n"
fi fi
## Display manager (Greetd) ## Display manager (Greetd)
@ -107,3 +122,4 @@ echo
echo "Installation finished" echo "Installation finished"
echo "Please check the previous outputs for warnings" echo "Please check the previous outputs for warnings"
echo "You can make final adjustements before rebooting" echo "You can make final adjustements before rebooting"
echo "- In particular, if you are using a qwerty keyboard, changing input-fr to input-en in ~/.config/hypr/hyprland.conf"