Compare commits

...

3 commits

Author SHA1 Message Date
4f545de7ef Added swaylock keybind 2023-10-19 13:26:12 +02:00
891031acb0 Added primary bin files 2023-10-19 13:25:47 +02:00
c36d058f0c Changed hyprland monitor scale
From 1.50 to 1
2023-10-19 11:12:48 +02:00
10 changed files with 2591 additions and 2 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

View file

@ -11,7 +11,7 @@ OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
#
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
monitor=,preferred,auto,1
# unscale XWayland
xwayland {

View file

@ -11,6 +11,7 @@ bind = $mainMod SHIFT, SPACE, togglefloating,
bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, L, exec, swaylock-hyprland
# Screenshots
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy

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():

View file

@ -170,7 +170,7 @@ font:
style: Bold Italic
# Point size
size: 7.0
size: 10.0
# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter