45 lines
1.8 KiB
Bash
Executable File
45 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
#i3lock -u -i ~/.config/i3lock/background -e -f
|
|
|
|
background="#1e1e1e"
|
|
#inside="#2d272f"
|
|
inside=$background
|
|
blue="#7587a6"
|
|
green="#8f9d6a"
|
|
orange="#f9ee98"
|
|
yellow="#f9ee98"
|
|
red="#cf6a4c"
|
|
purple="#815986"
|
|
|
|
swaylock --font 'Source Sans Pro' --font-size 15 \
|
|
--indicator-radius 80 --indicator-thickness 10 \
|
|
--inside-color $inside --inside-clear-color $inside --inside-caps-lock-color $inside \
|
|
--inside-ver-color $inside --inside-wrong-color $inside \
|
|
--key-hl-color $purple --bs-hl-color $red \
|
|
--caps-lock-key-hl-color $orange --caps-lock-bs-hl-color $red \
|
|
--ring-color $purple --ring-clear-color $yellow --ring-caps-lock-color $orange \
|
|
--ring-ver-color $purple --ring-wrong-color $red -n \
|
|
--text-color $purple --text-clear-color $yellow --text-caps-lock-color $orange \
|
|
--text-ver-color $purple --text-wrong-color $red \
|
|
-c $background -F -f --ignore-empty-password --indicator-idle-visible
|
|
|
|
sleep 1
|
|
|
|
#result=$(/usr/bin/node $(which aggietimed) -s /run/user/1000/aggietimed.sock --action clock-in 2>/dev/null)
|
|
|
|
# If the last command reported 'err' as true, or if it exited
|
|
# non-zero, then the user did not clock in successfully. In this case,
|
|
# we want to display a notification to the user that they did not
|
|
# clock in successfully.
|
|
|
|
# if [[ $? -ne 0 ]] || [[ $result == *"err"* ]] || [[ $result == *"ERR:"* ]]; then
|
|
# # Check to see if the user is clocked in already
|
|
# # If they are, then don't display a notification
|
|
# shift_data=$(/usr/bin/node $(which aggietimed) -s /run/user/1000/aggietimed.sock --action current-shift 2>/dev/null)
|
|
|
|
# if [[ $? -ne 0 ]] || [[ ${shift_data} == "null" ]] || [[ ${shift_data} == *"err"* ]] || [[ ${shift_data} == *"ERR:"* ]]; then
|
|
# notify-send "Clock In Failed" "You were not successfully clocked in, please go to the website and clock in manually." -u critical -a "AggieTime"
|
|
# fi
|
|
# fi
|