initial commit
This commit is contained in:
commit
2564138cff
22 changed files with 2642 additions and 0 deletions
18
linux/.local/bin/binaryclock.sh
Normal file
18
linux/.local/bin/binaryclock.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
row0=("⠀" "⠈" "⠐" "⠘" "⠠" "⠨" "⠰" "⠸" "⢀" "⢈")
|
||||
row1=("⠁" "⠉" "⠑" "⠙" "⠡" "⠩" "⠱" "⠹" "⢁" "⢉")
|
||||
row2=("⠂" "⠊" "⠒" "⠚" "⠢" "⠪" "⠲" "⠺" "⢂" "⢊")
|
||||
row3=("⠃" "⠋" "⠓" "⠛" "⠣" "⠫" "⠳" "⠻" "⢃" "⢋")
|
||||
row4=("⠄" "⠌" "⠔" "⠜" "⠤" "⠬" "⠴" "⠼" "⢄" "⢌")
|
||||
row5=("⠅" "⠍" "⠕" "⠝" "⠥" "⠭" "⠵" "⠽" "⢅" "⢍")
|
||||
chars=("${row0[@]}" "${row1[@]}" "${row2[@]}" "${row3[@]}" "${row4[@]}" "${row5[@]}")
|
||||
|
||||
hour=$(date +"%H")
|
||||
minute=$(date +"%M")
|
||||
second=$(date +"%S")
|
||||
[[ $hour = 0* ]] && hour=${hour:1:1}
|
||||
[[ $minute = 0* ]] && minute=${minute:1:1}
|
||||
[[ $second = 0* ]] && second=${second:1:1}
|
||||
|
||||
echo "${chars[$hour]} ${chars[$minute]} ${chars[$second]}"
|
7
linux/.local/bin/polybar.sh
Normal file
7
linux/.local/bin/polybar.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
pkill polybar
|
||||
|
||||
while pgrep -x polybar > /dev/null; do sleep 1; done
|
||||
|
||||
polybar bar >> /dev/null 2>&1 &
|
Loading…
Add table
Add a link
Reference in a new issue