From 9ad2f5aa66a07024526f7309e4d96d88b8f704b2 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 9 Aug 2025 22:51:01 +0200 Subject: [PATCH] Updated scripts --- config/hypr/hypridle.conf | 2 +- config/hypr/hyprland.conf | 1 + config/hypr/hyprland_CMBOX.conf | 2 +- pico-load.sh | 12 ++++-------- update_arch.sh | 16 ++++++++-------- 5 files changed, 15 insertions(+), 18 deletions(-) diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index 63e291e..3019939 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -5,7 +5,7 @@ general { } listener { - timeout = 60 + timeout = 300 on-timeout = python ~/linuxbox/black.py } diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 07a0671..13aa705 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -170,6 +170,7 @@ bind = $mainMod, J, layoutmsg, preselect d bind = $mainMod, K, layoutmsg, preselect u bind = $mainMod, M, exec, com.moonlight_stream.Moonlight bind = $mainMod, F, exec, walker --modules applications +bind = SUPER, L, exec, python ~/linuxbox/black.py bind = $mainMod CTRL, W, exec, $browser bind = $mainMod , N, exec, $nvim bind = ALT, Tab, workspace, e+1 diff --git a/config/hypr/hyprland_CMBOX.conf b/config/hypr/hyprland_CMBOX.conf index 813c967..e418ad6 100644 --- a/config/hypr/hyprland_CMBOX.conf +++ b/config/hypr/hyprland_CMBOX.conf @@ -1,5 +1,5 @@ exec-once = /home/cm/linuxbox/set-xr18-2ch.sh -exec-once = [workspace 1] $nvim +exec-once = systemctl --user start hypridle bind = $mainMod, D, togglespecialworkspace, discord bind = $mainMod, W, togglespecialworkspace, web bind = $mainMod, A, togglespecialworkspace, ranger diff --git a/pico-load.sh b/pico-load.sh index 62b39d5..ed8520f 100755 --- a/pico-load.sh +++ b/pico-load.sh @@ -24,13 +24,9 @@ if [ "$OS" == "Ubuntu" ]; then sudo umount /mnt/usb fi elif [ "$OS" == "Arch Linux" ]; then - # sudo umount /mnt/usb - # while [ ! -f /mnt/usb/INFO_UF2.TXT ]; do - # sudo mkdir -p /mnt/usb - # sudo mount /dev/sda1 /mnt/usb -o umask=000 - # sleep 1 - # done + while [ ! -d /media/RPI-RP2 ]; do + sleep 1 + done set -e - cargo run --release - # sudo umount /mnt/usb + cargo run --release --target thumbv6m-none-eabi fi diff --git a/update_arch.sh b/update_arch.sh index 0de7363..d6db2e0 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -76,14 +76,14 @@ sleep 1 # Create backup/snapshot if pacman -Qs timeshift >/dev/null; then - CONFIG_FILE="/etc/timeshift/timeshift.json" - if [ -f "$CONFIG_FILE" ]; then - BTRFS_MODE=$(jq '.btrfs_mode' "$CONFIG_FILE") - if [ "$BTRFS_MODE" == '"true"' ]; then - printf -- '\033[33m Creating backup/snapshot\n\033[37m' - sudo timeshift --create --comments "Update script" - fi - fi + # CONFIG_FILE="/etc/timeshift/timeshift.json" + # if [ -f "$CONFIG_FILE" ]; then + # BTRFS_MODE=$(jq '.btrfs_mode' "$CONFIG_FILE") + # if [ "$BTRFS_MODE" == '"true"' ]; then + printf -- '\033[33m Creating backup/snapshot\n\033[37m' + sudo timeshift --create --comments "Update script" + # fi + # fi fi # Enable multilib (if applicable)