diff --git a/build.sh b/build.sh index 8e93988..8f91bb2 100755 --- a/build.sh +++ b/build.sh @@ -11,7 +11,7 @@ RAWSVGS_LIGHT="src/light/svgs" INDEX_LIGHT="src/light/cursor.theme" RAWSVGS_DARK="src/dark/svgs" INDEX_DARK="src/dark/cursor.theme" -ALIASES="src/cursorList" +ALIASES="src/cursorList.csv" echo -ne "Checking Requirements..." @@ -99,17 +99,23 @@ success echo -ne "Generating shortcuts... " while read -r ALIAS; do - FROM=${ALIAS% *} - TO=${ALIAS#* } - if [ -e "$OUTPUT_LIGHT/cursors/$FROM" ]; then + LINK=${ALIAS%,*} + TARGET=${ALIAS#*,} + + # skip the header line + if [ "$LINK" == "LINK" ] && [ "$TARGET" == "TARGET" ]; then + continue; + fi + + if [ -e "$OUTPUT_LIGHT/cursors/$LINK" ]; then continue fi - ln -sf "$TO" "$OUTPUT_LIGHT/cursors/$FROM" + ln -sf "$TARGET" "$OUTPUT_LIGHT/cursors/$LINK" - if [ -e "$OUTPUT_DARK/cursors/$FROM" ]; then + if [ -e "$OUTPUT_DARK/cursors/$LINK" ]; then continue fi - ln -sf "$TO" "$OUTPUT_DARK/cursors/$FROM" + ln -sf "$TARGET" "$OUTPUT_DARK/cursors/$LINK" done < $ALIASES success diff --git a/src/cursorList b/src/cursorList deleted file mode 100644 index 9ffc019..0000000 --- a/src/cursorList +++ /dev/null @@ -1,101 +0,0 @@ -00000000000000020006000e7e9ffc3f progress -00008160000006810000408080010102 size_ver -03b6e0fcb3499374a867c041f52298f0 circle -08e8e1c95fe2fc01f976f1e063a24ccd progress -3ecb610c1bf2410f44200f48c40d3599 progress -5c6cd98b3f3ebcb1f9c7f1c204630408 help -9d800788f1b08800ae810202380a0822 pointer -640fb0e74195791501fd1ed57b41487f alias -1081e37283d90000800003c07f3ef6bf copy -3085a0e285430894940527032f8b26df alias -4498f0e0c1937ffe01fd06f973665830 dnd-move -6407b0e94181790501fd1e167b474872 copy -9081237383d90e509aa00f00170e968f dnd-move -a2a266d0498c3104214a47bd64ab0fc8 alias -b66166c04f8c3109214a4fbd64a50fc8 copy -d9ce0ab605698f320427677b458ad60b help -e29285e634086352946a0e7090d73106 pointer -fcf21c00b30f7e3f83fe0dfd12e71cff dnd-move -alias copy -all-scroll fleur -bottom_left_corner size_bdiag -bottom_right_corner size_fdiag -cell crosshair -center_ptr default -circle not-allowed -closedhand dnd-move -col-resize size_hor -color-picker crosshair -context-menu default -copy dnd-move -cross crosshair -crossed_circle not-allowed -dnd-copy copy -dnd-none dnd-move -dnd-no-drop not-allowed -draft pencil -e-resize size_hor -forbidden no-drop -h_double_arrow size_hor -half-busy progress -hand1 pointer -hand2 pointer -help default -ibeam text -left_ptr default -left_ptr_help help -left_ptr_watch progress -left_side left-arrow -link alias -move dnd-move -n-resize size-ver -no-drop not-allowed -plus cell -pointing_hand pointer -question_arrow help -right_ptr default -right_side right-arrow -row-resize size_ver -s-resize size_ver -sb_h_double_arrow size_hor -sb_v_double_arrow size_ver -size_all fleur -split_h col-resize -split_v row-resize -top_left_corner size_fdiag -top_right_corner size_bdiag -top_side up-arrow -v_double_arrow size_ver -vertical-text text -w-resize size_hor -watch wait -whats_this help -xterm text -dnd-move default -down-arrow default -crosshair default -fleur default -left-arrow default -not-allowed default -openhand default -pencil default -pirate default -pointer default -progress default -right-arrow default -size-bdiag default -size-fdiag default -size-hor default -size-ver default -text default -up-arrow default -wait default -x-cursor default -wayland-cursor default -zoom-in default -zoom-out default -ne-resize top_right_corner -nw-resize top_left_corner -se-resize bottom_right_corner -sw-resize bottom_left_corner -top_left_arrow left_ptr diff --git a/src/cursorList.csv b/src/cursorList.csv new file mode 100644 index 0000000..3ab0032 --- /dev/null +++ b/src/cursorList.csv @@ -0,0 +1,102 @@ +LINK,TARGET +00000000000000020006000e7e9ffc3f,progress +00008160000006810000408080010102,size_ver +03b6e0fcb3499374a867c041f52298f0,circle +08e8e1c95fe2fc01f976f1e063a24ccd,progress +3ecb610c1bf2410f44200f48c40d3599,progress +5c6cd98b3f3ebcb1f9c7f1c204630408,help +9d800788f1b08800ae810202380a0822,pointer +640fb0e74195791501fd1ed57b41487f,alias +1081e37283d90000800003c07f3ef6bf,copy +3085a0e285430894940527032f8b26df,alias +4498f0e0c1937ffe01fd06f973665830,dnd-move +6407b0e94181790501fd1e167b474872,copy +9081237383d90e509aa00f00170e968f,dnd-move +a2a266d0498c3104214a47bd64ab0fc8,alias +b66166c04f8c3109214a4fbd64a50fc8,copy +d9ce0ab605698f320427677b458ad60b,help +e29285e634086352946a0e7090d73106,pointer +fcf21c00b30f7e3f83fe0dfd12e71cff,dnd-move +alias,copy +all-scroll,fleur +bottom_left_corner,size_bdiag +bottom_right_corner,size_fdiag +cell,crosshair +center_ptr,default +circle,not-allowed +closedhand,dnd-move +col-resize,size_hor +color-picker,crosshair +context-menu,default +copy,dnd-move +cross,crosshair +crossed_circle,not-allowed +dnd-copy,copy +dnd-none,dnd-move +dnd-no-drop,not-allowed +draft,pencil +e-resize,size_hor +forbidden,no-drop +h_double_arrow,size_hor +half-busy,progress +hand1,pointer +hand2,pointer +help,default +ibeam,text +left_ptr,default +left_ptr_help,help +left_ptr_watch,progress +left_side,left-arrow +link,alias +move,dnd-move +n-resize,size-ver +no-drop,not-allowed +plus,cell +pointing_hand,pointer +question_arrow,help +right_ptr,default +right_side,right-arrow +row-resize,size_ver +s-resize,size_ver +sb_h_double_arrow,size_hor +sb_v_double_arrow,size_ver +size_all,fleur +split_h,col-resize +split_v,row-resize +top_left_corner,size_fdiag +top_right_corner,size_bdiag +top_side,up-arrow +v_double_arrow,size_ver +vertical-text,text +w-resize,size_hor +watch,wait +whats_this,help +xterm,text +dnd-move,default +down-arrow,default +crosshair,default +fleur,default +left-arrow,default +not-allowed,default +openhand,default +pencil,default +pirate,default +pointer,default +progress,default +right-arrow,default +size-bdiag,default +size-fdiag,default +size-hor,default +size-ver,default +text,default +up-arrow,default +wait,default +x-cursor,default +wayland-cursor,default +zoom-in,default +zoom-out,default +ne-resize,top_right_corner +nw-resize,top_left_corner +se-resize,bottom_right_corner +sw-resize,bottom_left_corner +top_left_arrow,left_ptr