Updated scripts

This commit is contained in:
Christoffer Martinsson 2025-08-09 22:51:01 +02:00
parent 179ab2707f
commit 9ad2f5aa66
5 changed files with 15 additions and 18 deletions

View File

@ -5,7 +5,7 @@ general {
}
listener {
timeout = 60
timeout = 300
on-timeout = python ~/linuxbox/black.py
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)