Added primary bin files

This commit is contained in:
GaspardCulis 2023-10-19 13:25:47 +02:00
parent c36d058f0c
commit 891031acb0
7 changed files with 2588 additions and 0 deletions

14
bin/Hyprland Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh -xe
# cd to home
cd
# XDG
export XDG_CONFIG_HOME="${HOME}/.config"
# Execution
exec ssh-agent \
dbus-launch --exit-with-session \
/usr/bin/Hyprland \
"$@"

2461
bin/jaaj Executable file

File diff suppressed because it is too large Load diff

12
bin/mc-key-fix Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
xmodmap -e "keycode 10 = 1"
xmodmap -e "keycode 11 = 2"
xmodmap -e "keycode 12 = 3"
xmodmap -e "keycode 13 = 4"
xmodmap -e "keycode 14 = 5"
xmodmap -e "keycode 15 = 6"
xmodmap -e "keycode 16 = 7"
xmodmap -e "keycode 17 = 8"
xmodmap -e "keycode 18 = 9"
xmodmap -e "keycode 19 = 0"

30
bin/swaylock-hyprland Executable file
View file

@ -0,0 +1,30 @@
#!/bin/sh
# Run swaylock
exec /usr/bin/swaylock \
"$@" \
--indicator \
--daemonize \
--clock \
--screenshots \
--effect-blur 20x10 \
--indicator-radius 100 \
--font 'Hack Nerd Font' \
--bs-hl-color '#FF3366' \
--inside-color '#CC99FF22' \
--inside-clear-color '#F3E6FFDD' \
--inside-ver-color '#9933FF22' \
--inside-wrong-color '#FF336622' \
--key-hl-color '#9933FF' \
--text-color '#F3E6FF' \
--text-caps-lock-color '#FFB3C6' \
--line-uses-ring \
--ring-color '#1A0033' \
--ring-clear-color '#9933FF' \
--ring-ver-color '#4F0099' \
--ring-wrong-color '#800020' \
--text-clear-color '#4F0099' \
--text-ver-color '#F3E6FF' \
--text-wrong-color '#FFB3C6' \
--separator-color '#00000000'

35
bin/toggle-touchpad Executable file
View file

@ -0,0 +1,35 @@
#!/bin/sh
HYPRLAND_DEVICE="asue1209:00-04f3:319f-touchpad"
if [ -z "$XDG_RUNTIME_DIR" ]; then
export XDG_RUNTIME_DIR=/run/user/$(id -u)
fi
export STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status"
enable_touchpad() {
printf "true" > "$STATUS_FILE"
notify-send -u normal "Enabling Touchpad"
hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" true
}
disable_touchpad() {
printf "false" > "$STATUS_FILE"
notify-send -u normal "Disabling Touchpad"
hyprctl keyword "device:$HYPRLAND_DEVICE:enabled" false
}
if ! [ -f "$STATUS_FILE" ]; then
disable_touchpad
else
if [ $(cat "$STATUS_FILE") = "true" ]; then
disable_touchpad
elif [ $(cat "$STATUS_FILE") = "false" ]; then
enable_touchpad
fi
fi

29
bin/togglescreen Executable file
View file

@ -0,0 +1,29 @@
#!/bin/sh
if [ -z "$XDG_RUNTIME_DIR" ]; then
export XDG_RUNTIME_DIR=/run/user/$(id -u)
fi
export STATUS_FILE="$XDG_RUNTIME_DIR/screen.status"
enable_screen() {
printf "true" > "$STATUS_FILE"
hyprctl dispatch dpms on
}
disable_screen() {
printf "false" > "$STATUS_FILE"
hyprctl dispatch dpms off
}
if ! [ -f "$STATUS_FILE" ]; then
disable_screen
else
if [ $(cat "$STATUS_FILE") = "true" ]; then
disable_screen
elif [ $(cat "$STATUS_FILE") = "false" ]; then
enable_screen
fi
fi

7
sync
View file

@ -22,6 +22,13 @@ synced_files = [
('term/rio/', '~/.config/rio/'),
('term/alacritty/', '~/.config/alacritty/'),
('bar/waybar/', '~/.config/waybar/'),
('bin/swaylock-hyprland', '~/.local/bin/swaylock-hyprland'),
('bin/Hyprland', '~/.local/bin/Hyprland'),
('bin/jaaj', '~/.local/bin/jaaj'),
('bin/toggle-touchpad', '~/.local/bin/toggle-touchpad'),
('bin/togglescreen', '~/.local/bin/togglescreen'),
('bin/mc-key-fix', '~/.local/bin/mc-key-fix'),
]
def save():