50 changed files with 623 additions and 721 deletions
@ -0,0 +1,11 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
||||||
|
|
||||||
|
# Copied from Discord post. Thanks to @Zorg |
||||||
|
|
||||||
|
|
||||||
|
# Get id of an active window |
||||||
|
active_pid=$(hyprctl activewindow | grep -o 'pid: [0-9]*' | cut -d' ' -f2) |
||||||
|
|
||||||
|
# Close active window |
||||||
|
kill $active_pid |
||||||
@ -1,27 +1,32 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
||||||
# For disabling touchpad. |
# For disabling touchpad. |
||||||
# Edit the Touchpad_Device according to your system |
# Edit the Touchpad_Device on ~/.config/hypr/UserConfigs/Laptops.conf according to your system |
||||||
# use hyprctl devices to get your system touchpad device name |
# use hyprctl devices to get your system touchpad device name |
||||||
|
# source https://github.com/hyprwm/Hyprland/discussions/4283?sort=new#discussioncomment-8648109 |
||||||
|
|
||||||
|
|
||||||
Touchpad_Device="asue1209:00-04f3:319f-touchpad" |
|
||||||
notif="$HOME/.config/swaync/images/bell.png" |
notif="$HOME/.config/swaync/images/bell.png" |
||||||
|
|
||||||
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)} |
export STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status" |
||||||
STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status" |
|
||||||
|
|
||||||
toggle_touchpad() { |
enable_touchpad() { |
||||||
if [ ! -f "$STATUS_FILE" ] || [ "$(cat "$STATUS_FILE")" = "false" ]; then |
printf "true" >"$STATUS_FILE" |
||||||
echo "true" > "$STATUS_FILE" |
notify-send -u low -i $notif "Enabling touchpad" |
||||||
action="enabled" |
hyprctl keyword '$TOUCHPAD_ENABLED' "true" -r |
||||||
else |
} |
||||||
echo "false" > "$STATUS_FILE" |
|
||||||
action="disabled" |
|
||||||
fi |
|
||||||
|
|
||||||
notify-send -u low -i "$notif" "Touchpad $action" |
disable_touchpad() { |
||||||
hyprctl keyword "device[$Touchpad_Device]:enabled" "$(cat "$STATUS_FILE")" |
printf "false" >"$STATUS_FILE" |
||||||
|
notify-send -u low -i $notif "Disabling touchpad" |
||||||
|
hyprctl keyword '$TOUCHPAD_ENABLED' "false" -r |
||||||
} |
} |
||||||
|
|
||||||
toggle_touchpad |
if ! [ -f "$STATUS_FILE" ]; then |
||||||
|
enable_touchpad |
||||||
|
else |
||||||
|
if [ $(cat "$STATUS_FILE") = "true" ]; then |
||||||
|
disable_touchpad |
||||||
|
elif [ $(cat "$STATUS_FILE") = "false" ]; then |
||||||
|
enable_touchpad |
||||||
|
fi |
||||||
|
fi |
||||||
|
|||||||
|
Before Width: | Height: | Size: 7.3 MiB After Width: | Height: | Size: 10 MiB |
|
Before Width: | Height: | Size: 9.2 MiB After Width: | Height: | Size: 10 MiB |
@ -1,18 +1,18 @@ |
|||||||
$background = rgb(020302) |
$background = rgb(030508) |
||||||
$foreground = rgb(BFBEB7) |
$foreground = rgb(D6CBD5) |
||||||
$color0 = rgb(020302) |
$color0 = rgb(030508) |
||||||
$color1 = rgb(171812) |
$color1 = rgb(0C1523) |
||||||
$color2 = rgb(1F1E16) |
$color2 = rgb(2A3859) |
||||||
$color3 = rgb(26251B) |
$color3 = rgb(324166) |
||||||
$color4 = rgb(2E2C20) |
$color4 = rgb(205F36) |
||||||
$color5 = rgb(363324) |
$color5 = rgb(11606B) |
||||||
$color6 = rgb(363324) |
$color6 = rgb(685066) |
||||||
$color7 = rgb(9B998F) |
$color7 = rgb(BCADBB) |
||||||
$color8 = rgb(6C6B64) |
$color8 = rgb(847983) |
||||||
$color9 = rgb(1F1F18) |
$color9 = rgb(101C2F) |
||||||
$color10 = rgb(29291E) |
$color10 = rgb(384B76) |
||||||
$color11 = rgb(333224) |
$color11 = rgb(425788) |
||||||
$color12 = rgb(3E3B2A) |
$color12 = rgb(2B7F48) |
||||||
$color13 = rgb(484430) |
$color13 = rgb(16808F) |
||||||
$color14 = rgb(484430) |
$color14 = rgb(8A6B88) |
||||||
$color15 = rgb(9B998F) |
$color15 = rgb(BCADBB) |
||||||
|
|||||||
@ -1,28 +1,28 @@ |
|||||||
* { |
* { |
||||||
active-background: #1F1F18; |
active-background: #101C2F; |
||||||
active-foreground: #BFBEB7; |
active-foreground: #D6CBD5; |
||||||
normal-background: #020302; |
normal-background: #030508; |
||||||
normal-foreground: #BFBEB7; |
normal-foreground: #D6CBD5; |
||||||
urgent-background: #3E3B2A; |
urgent-background: #2B7F48; |
||||||
urgent-foreground: #BFBEB7; |
urgent-foreground: #D6CBD5; |
||||||
|
|
||||||
alternate-active-background: #363324; |
alternate-active-background: #11606B; |
||||||
alternate-active-foreground: #BFBEB7; |
alternate-active-foreground: #D6CBD5; |
||||||
alternate-normal-background: #020302; |
alternate-normal-background: #030508; |
||||||
alternate-normal-foreground: #BFBEB7; |
alternate-normal-foreground: #D6CBD5; |
||||||
alternate-urgent-background: #020302; |
alternate-urgent-background: #030508; |
||||||
alternate-urgent-foreground: #BFBEB7; |
alternate-urgent-foreground: #D6CBD5; |
||||||
|
|
||||||
selected-active-background: #1F1F18; |
selected-active-background: #101C2F; |
||||||
selected-active-foreground: #BFBEB7; |
selected-active-foreground: #D6CBD5; |
||||||
selected-normal-background: #9B998F; |
selected-normal-background: #BCADBB; |
||||||
selected-normal-foreground: #BFBEB7; |
selected-normal-foreground: #D6CBD5; |
||||||
selected-urgent-background: #3E3B2A; |
selected-urgent-background: #2B7F48; |
||||||
selected-urgent-foreground: #BFBEB7; |
selected-urgent-foreground: #D6CBD5; |
||||||
|
|
||||||
background-color: #020302; |
background-color: #030508; |
||||||
background: rgba(0,0,0,0.7); |
background: rgba(0,0,0,0.7); |
||||||
foreground: #9B998F; |
foreground: #BCADBB; |
||||||
border-color: #1F1F18; |
border-color: #101C2F; |
||||||
} |
} |
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@ |
|||||||
@define-color foreground #BFBEB7; |
@define-color foreground #D6CBD5; |
||||||
@define-color background rgba(2,3,2,0.25); |
@define-color background rgba(3,5,8,0.25); |
||||||
@define-color cursor #BFBEB7; |
@define-color cursor #D6CBD5; |
||||||
|
|
||||||
@define-color color0 #020302; |
@define-color color0 #030508; |
||||||
@define-color color1 #171812; |
@define-color color1 #0C1523; |
||||||
@define-color color2 #1F1E16; |
@define-color color2 #2A3859; |
||||||
@define-color color3 #26251B; |
@define-color color3 #324166; |
||||||
@define-color color4 #2E2C20; |
@define-color color4 #205F36; |
||||||
@define-color color5 #363324; |
@define-color color5 #11606B; |
||||||
@define-color color6 #363324; |
@define-color color6 #685066; |
||||||
@define-color color7 #9B998F; |
@define-color color7 #BCADBB; |
||||||
@define-color color8 #6C6B64; |
@define-color color8 #847983; |
||||||
@define-color color9 #1F1F18; |
@define-color color9 #101C2F; |
||||||
@define-color color10 #29291E; |
@define-color color10 #384B76; |
||||||
@define-color color11 #333224; |
@define-color color11 #425788; |
||||||
@define-color color12 #3E3B2A; |
@define-color color12 #2B7F48; |
||||||
@define-color color13 #484430; |
@define-color color13 #16808F; |
||||||
@define-color color14 #484430; |
@define-color color14 #8A6B88; |
||||||
@define-color color15 #9B998F; |
@define-color color15 #BCADBB; |
||||||
|
|||||||
|
Before Width: | Height: | Size: 13 MiB After Width: | Height: | Size: 10 MiB |
Loading…
Reference in new issue