From b0d48faad8a06a395b3052e739c865dfe18fca73 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Tue, 6 May 2025 19:18:18 +0200 Subject: [PATCH] Script updated --- config/alacritty/alacritty.toml | 14 +++++--------- config/hypr/hypridle.conf | 16 ++++++++-------- config/hypr/hyprland.conf | 4 ++-- config/waybar/style.css | 8 ++++---- update_arch.sh | 4 +++- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml index 75b6ebf..7e5d9e0 100644 --- a/config/alacritty/alacritty.toml +++ b/config/alacritty/alacritty.toml @@ -1,9 +1,7 @@ [font] size=12 - -[font.normal] -family = "FiraCodeNerdFontMono" -style = "Regular" +offset={x= 0} +normal={family="RobotoMonoNerdFont", style="Regular"} [colors.primary] foreground="#c6c6c6" @@ -33,10 +31,8 @@ white="#eeeeee" save_to_clipboard = true [window] -decorations = "none" - -[window.padding] -x= 2 +decorations="none" +padding={x=2} [env] -TERM = "xterm-256color" +TERM="xterm-256color" diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index c16eaad..e4dba85 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -4,13 +4,13 @@ general { after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. } -listener { - timeout = 300 # 5min - on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed - on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. -} - # listener { -# timeout = 1800 # 30min -# on-timeout = systemctl suspend # suspend pc +# timeout = 300 # 5min +# on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed +# on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. # } + +listener { + timeout = 1800 # 30min + on-timeout = shutdown now # shutdown pc +} diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 24039b6..b1e5cfa 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -242,7 +242,7 @@ workspace = special:web, on-created-empty:$browser windowrulev2 = size 450 253, initialTitle:^(Picture in picture)$ windowrulev2 = opacity 1.0 0.7, initialTitle:^(Picture in picture)$ windowrulev2 = float, initialTitle:^(Picture in picture)$ -windowrulev2 = move 100%-w-20 50, initialTitle:^(Picture in picture)$ +windowrulev2 = move 100%-w-20 60, initialTitle:^(Picture in picture)$ windowrulev2 = workspace e+0, initialTitle:^(Picture in picture)$ # FzfMenu @@ -279,7 +279,7 @@ workspace = special:discord, on-created-empty:flatpak run io.github.equicord.equ windowrulev2 = workspace special:discord, initialTitle:^(.*equibop.*)$ windowrulev2 = opacity 1.0 0.9, initialTitle:^(Discord Popout)$ windowrulev2 = float, initialTitle:^(Discord Popout)$ -windowrulev2 = move 100%-w-20 50, initialTitle:^(Discord Popout)$ +windowrulev2 = move 100%-w-20 60, initialTitle:^(Discord Popout)$ windowrulev2 = workspace e+0, initialTitle:^(Discord Popout)$ # Pipewire diff --git a/config/waybar/style.css b/config/waybar/style.css index 65c4544..7b53eb6 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -48,8 +48,8 @@ #waybar { background: #000000; color: #eeeeee; - font-family: FiraCodeNerdFontMono; - font-size: 11pt; + font-family: RobotoMonoNerdFontMono; + font-size: 12pt; } /* Each module */ @@ -164,8 +164,8 @@ #workspaces button { margin-top: 4px; margin-bottom: 4px; - padding-left: 1px; - padding-right: 2px; + padding-left: 0px; + padding-right: 0px; color: #eeeeee; } diff --git a/update_arch.sh b/update_arch.sh index e571e18..8647b33 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -203,6 +203,8 @@ if [ "${ROLES[HYPERLAND]}" == "yes" ]; then ln -sf ~/linuxbox/config/qt6ct/qt6ct.conf ~/.config/qt6ct/qt6ct.conf ln -sf ~/linuxbox/config/dunst/dunstrc ~/.config/dunst/dunstrc + systemctl --user enable --now hypridle.service + printf -- '\033[33m Installing waybar\n\033[37m' sudo pacman --noconfirm --needed -S waybar mkdir -p ~/.config/waybar @@ -236,7 +238,7 @@ if [ "${ROLES[TERMINAL]}" == "yes" ]; then if pacman -Qs gnu-free-fonts >/dev/null; then sudo pacman --noconfirm -R gnu-free-fonts fi - sudo pacman --noconfirm --needed -S alacritty btop ranger tmux fd neovim ttf-firacode-nerd ttf-nerd-fonts-symbols + sudo pacman --noconfirm --needed -S alacritty btop ranger tmux fd neovim ttf-nerd-fonts-symbols ttf-roboto-mono-nerd cargo install ripgrep eza cargo install zoxide --locked