-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShift
More file actions
executable file
·1017 lines (635 loc) · 21 KB
/
Shift
File metadata and controls
executable file
·1017 lines (635 loc) · 21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
#
# shift - setup changer automated written in BASH with backup support.
#
# Created by : blackcat
# Gihub : https://github.com/noirecat
#
export LC_ALL=C
export LANG=C
shopt -s nullglob nocasematch
#. /usr/share/bash-completion/completions/shift
# Colors
red='\e[1;31m'
yellow='\e[0;33m'
green='\033[92m'
blue='\e[1;34m'
cyan='\e[0;36m'
white='\e[1;37m'
reset="\033[00m"
# Variables
export input=$2
export input1=$3
export input2=$4
exec 2> /dev/null
# Check wm what is being used later,then overwriting the theme with input variable
get_setup(){
old=$(cat ~/.config/openbox/rc.xml | sed -n '/<theme>/{n;p}' | awk -F "<|>" '{print $3}')
old1=$(grep 'THEME=' ~/.config/windowchef/windowchefrc | awk -F "THEME=" '{print $2}' | sed 's/"//g')
gtk=$(grep "gtk-theme-name" ~/.gtkrc-2.0 | cut -f2- -d= | sed 's/"//g' )
if local wm=$(wmctrl -m | grep Name | cut -d: -f2)
then
if [ $wm == Openbox ]
then
sed -i "s/$old/$input/g" ~/.config/openbox/rc.xml
sed -i "s/$gtk/$input/g" ~/.gtkrc-2.0
elif [ $wm == windowchef ]
then
sed -i "s/$old1/$input/g" ~/.config/windowchef/windowchefrc
sed -i "s/$gtk/$input1/g" ~/.gtkrc-2.0
elif [ $wm == Xfwm4 ]
then
# Set the theme first
xfconf-query -c xsettings -p /Net/ThemeName -s "${input}"
xfconf-query -c xfwm4 -p /general/theme -s "${input}"
if [ $input1 == --icons ]
then
xfconf-query -c xsettings -p /Net/IconThemeName -s "${input2}"
fi
else
echo "Can't defined window manager."
fi
fi
}
icons(){
icon=$(grep "icon-theme-name" ~/.gtkrc-2.0 | cut -f2- -d= | sed 's/"//g')
if local wm=$(wmctrl -m | grep Name | cut -d: -f2)
then
if [ $wm == Xfwm4 ]
then
xfconf-query -c xsettings -p /Net/IconThemeName -s "${input}"
# Another wm exclude Xfce4 / Xfwm4
elif [ ! -z $wm ]
then
sed -i "s/$icon/$input/g" ~/.gtkrc-2.0
else
echo "No valid an argument"
fi
fi
}
set_wall(){
if local wm=$(wmctrl -m | grep Name | cut -d: -f2)
then
if [ $wm == Xfwm4 ]
then
xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitor0/image-path --set "$input" 2>/dev/null
xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitor0/workspace0/last-image --set "$input" 2>/dev/null
elif [ ! -z $wm ]
then
if [ -f /usr/bin/feh ]
then
if [ $input1 == fill ]
then
feh --bg-fill $input > ~/.fehbg
elif [ $input1 == tile ]
then
feh --bg-tile $input > ~/.fehbg
elif [ -z $input1 ]
then
feh --bg-fill $input > ~/.fehbg
else
echo "No valid an argument"
fi
elif [ -f /usr/bin/nitrogen ]
then
nitrogen --set-zoom-fill $input
else
hsetroot -fill $input
fi
fi
fi
}
#
# Kill running processes to restart configuration
#
kill(){
pkill -USR1 -x lemonbar
killall -q polybar tint2
}
#
# Reload current desktop configuration
#
reload_wm(){
old=$(grep 'polybar' ~/.config/openbox/autostart | awk -F 'polybar' '{print $3}' | sed 's/^.//')
pos=$(grep 'polybar' ~/.config/openbox/autostart | cut -d ' ' -f2)
w2=$(grep 'polybar' ~/.config/windowchef/windowchefrc | cut -d ' ' -f2)
w1=$(grep '.config/polybar' ~/.config/windowchef/windowchefrc | awk -F 'lemonbar' '{print $2}' | sed 's/^.//')
old2=$( grep 'lemonbar' ~/.config/openbox/autostart | awk -F 'lemonbar' '{print $2}' | sed 's/^.//')
w=$(grep '.config/lemonbar' ~/.config/windowchef/windowchefrc | awk -F 'lemonbar' '{print $2}' | sed 's/^.//')
old1=$(grep 'tint2' ~/.config/openbox/autostart | awk -F 'tint2' '{print $3}' | sed 's/^.//; s/.$//' )
if local wm=$(wmctrl -m | grep Name | cut -d: -f2)
then
if [ $wm == Openbox ]
then
openbox --reconfigure
if [ $input1 == --lemonbar ]
then
sed -i "s/$old2/$input2/g" ~/.config/openbox/autostart
kill
. ~/.config/lemonbar/$input2 &
dishown
elif [ $input1 == --polybar ]
then
sed -i "s/$old/$input2/g" ~/.config/openbox/autostart
kill
polybar $pos -c ~/.config/polybar/$input2 &
dishown
elif [ $input1 == --tint2 ]
then
sed -i "s/$old1/$input2/g" ~/.config/openbox/autostart
kill
tint2 -c ~/.config/tint2/$input2.tint2rc &
dishown
elif [ -z $input1 ]
then
""
else
echo "Didn't find the panel process"
fi
# restart windowchef configuration
elif [ $wm == windowchef ]
then
. ~/.config/windowchef/windowchefrc
if [ $input1 == --lemonbar ]
then
sed -i "s/$w/$input2/g" ~/.config/windowchef/windowchefrc
kill
. ~/.config/lemonbar/$input2 &
dishown
elif [ $input1 == --polybar ]
then
sed -i "s/$w2/$input2/g" ~/.config/windowchef/windowchefrc
kill
polybar $w2 -c ~/.config/polybar/$input &
dishown
elif [ -z $input1 ]
then
""
else
echo "Didn't find the panel process"
fi
# kill & start process of xfwm4
elif [ $wm == Xfwm4 ]
then
kill `pidof xfwm4` && xfwm4 --replace & exit >/dev/null
if [ $input1 == tint2 ]
then
kill
tint2 -c ~/.config/tint2/$input.tint2rc &
dishown
elif [ $input == xfce4 ]
then
kill
xfce4-panel -r
elif [ -z $input1 ]
then
""
else
echo "Didn't find the panel process"
fi
else
echo "Can't defined your window manager"
fi
fi
reload_xrdb
}
# Replace preset name on .Xresources, but the file must include :
#
# #include ".colors/name"
#
reload_xrdb(){
old=$(grep '.colors' ~/.Xresources | awk -F '.colors' '{print $2}'| sed 's/^.//; s/.$//')
sed -i "s/$old/$input/g" ~/.Xresources
# reload urxvt/xterm resources&
xrdb -merge ~/.Xresources
#xrdb -merge ~/.Xresources && killall -SIGHUP urxvt && urxvt & dishown
}
#
# Deploy dotfiles to your system
#
deploy(){
# To include hidden files
shopt -s nullglob dotglob
# Check the inpur is valid git url
if [[ $input =~ http?(s)://.*\.git ]]
then
git clone $input deploy
if [ -f deploy/Makefile ]
then
if [ -d deploy ]
then
echo "Directory already exists"
exit 0
else
echo "Installing dotfiles ...."
cd deploy
sudo make install
fi
else
read -p "Overwriting all configuration? [Y|n] " abc
case $abc in
y|Y)
mv -i deploy/* $HOME/
;;
n|N)
echo "You must backup before apply this dotfiles"
exit
;;
*)
exit ;;
esac
fi
else
echo "Invalid repo "
exit 1
fi
}
backup(){
if [ -d $input ]
then
echo "Directory already exists"
exit 0
else
echo "Creating $input directory ...."
mkdir -p $input
fi
if local wm=$(wmctrl -m | grep Name | cut -d: -f2)
then
if [ $wm == Openbox ]
then
if [ ! -z `pidof lemonbar` ]
then
mkdir -p $input/panel/lemonbar
cp -r ~/.config/lemonbar $input/panel 2>/dev/null
elif [ ! -z `pidof polybar` ]
then
mkdir -p $input/panel/polybar
cp -r ~/.config/polybar $input/panel 2>/dev/null
elif [ ! -z `pidof tint2` ]
then
mkdir -p $input/panel/tint2
cp -r ~/.config/tint2 $input/panel 2>/dev/null
else
echo "Didn't find the panel"
fi
mkdir -p $input/openbox
cp -r ~/.config/openbox $input 2>/dev/null && tar -zcvf $input.tar.gz $input
elif [ $wm == windowchef ]
then
if [ ! -z `pidof lemonbar` ]
then
mkdir -p $input/panel/lemonbar
cp -r ~/.config/lemonbar $input/panel 2>/dev/null
elif [ ! -z `pidof polybar` ]
then
mkdir -p $input/panel/polybar
cp -r ~/.config/polybar $input/panel 2>/dev/null
else
echo "Didn't find the panel"
fi
mkdir -p $input/windowchef
cp -r ~/.config/windowchef $input/windowchef 2>/dev/null && tar -zcvf $input.tar.gz $input
elif [ $wm == Xfwm4 ]
then
if [ ! -z `pidof lemonbar` ]
then
mkdir -p $input/panel/lemonbar
cp -r ~/.config/lemonbar $input/panel 2>/dev/null
elif [ ! -z `pidof polybar` ]
then
mkdir -p $input/panel/polybar
cp -r ~/.config/polybar $input/panel 2>/dev/null
elif [ ! -z `pidof tint2` ]
then
mkdir -p $input/panel/tint2
cp -r ~/.config/tint2 $input/panel 2>/dev/null
else
echo "Didn't find the panel"
fi
mkdir -p $input/{xfce4,xfconf}
cp -r ~/.config/xfce4/terminal/terminalrc $input/xfce4
cp -r ~/.config/xfce4/xfconf/xfce-perchannel-xml/*.xml $input/xfconf && tar -zcvf $input.tar.gz $input
else
echo "Can't defined the window manager"
fi
fi
echo -e $reset "Backup ${green}completed!${reset} your tarball is ${red}$input.tar.gz${reset}"
}
backup_all(){
if [ -d $input ]
then
echo "Directory already exists"
exit 0
else
echo "Creating $input directory ...."
mkdir -p $input
fi
# Window manager
if [ -d ~/.config/openbox ]
then
mkdir -p $input/.config/openbox
cp -r ~/.config/openbox $input/.config/openbox
echo -e $green"[+] Saved$reset ~/.config/openbox/ to $input/.config/openbox "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/openbox"
sleep 0.1
fi
if [ -d ~/.config/windowchef ]
then
mkdir -p $input/.config/windowchef
cp -r ~/.config/windowchef $input/.config/windowchef
echo -e $green"[+] Saved$reset ~/.config/windowchef to $input/.config/windowchef "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/windowchef"
sleep 0.1
fi
if [ -d ~/.config/xfce4/xfconf ] && [ -d ~/.config/xfce4/xfconf]
then
mkdir -p $input/.xfce4/{xfconf,terminal}
cp -r ~/.config/xfce4/{xfconf,terminal} $input/.config/xfce4/
echo -e $green"[+] Saved$reset ~/.config/xfce4/xfconf to $input/.config/xfce4/xfconf "
sleep 0.1
echo -e $green"[+] Saved$reset ~/.config/xfce4/terminal to $input/.config/xfce4/terminal "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/xfce4/xfconf"
sleep 0.1
echo -e $red"[-] Can't find$reset ~/.config/xfce4/terminal"
sleep 0.1
fi
if [ -d ~/.i3/config ]
then
mkdir -p $input/.i3
cp -r ~/.i3/conf $input/.config/windowchef
echo -e $green"[+] Saved$reset ~/.i3/.config to $input/.i3/config "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.i3/config"
sleep 0.1
fi
if [ -d ~/.pekwm ]
then
mkdir -p $input/.pekwm
cp -r ~/.pekwm $input/.pekwm
echo -e $green"[+] Saved$reset ~/.pekwm/ to $input/.pekwm "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.pekwm"
sleep 0.1
fi
# Panel
if [ -d ~/.config/lemonbar ]
then
mkdir -p $input/.config/lemonbar
cp -r ~/.config/lemonbar $input/.config/lemonbar
echo -e $green"[+] Saved$reset ~/.config/lemonbar to $input/.config/lemonbar "
sleep 0.1
else
echo -e $red"[-]$reset Can't ~/.config/lemonbar"
sleep 0.1
fi
if [ -d ~/.config/polybar ]
then
mkdir -p $input/.config/polybar
cp -r ~/.config/polybar $input/.config/polybar
echo -e $green"[+] Saved$reset ~/.config/polybar to $input/.config/polybar "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/polybar"
sleep 0.1
fi
if [ -d ~/.config/tint2 ]
then
mkdir -p $input/.config/tint2
cp -r ~/.config/tint2 $input/.config/tint2
echo -e $green"[+] Saved$reset ~/.config/tint2 to $input/.config/tint2 "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/tint2"
sleep 0.1
fi
if [ -d ~/.config/cava ]
then
mkdir -p $input/.config/cava
cp -r ~/.config/cava $input/.config/cava
echo -e $green"[+] Saved$reset ~/.config/cava to $input/.config/cava "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/cava"
sleep 0.1
fi
if [ -d ~/.config/compton.conf ]
then
cp -r ~/.config/compton.conf $input/.config/compton.conf
echo -e $green"[+] Saved$reset ~/.config/compton.conf to $input/.config/compton.conf "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/compton.conf"
sleep 0.1
fi
if [ -d ~/.config/dunst ]
then
mkdir -p $input/.config/dunst
cp -r ~/.config/cava $input/.config/dunst
echo -e $green"[+] Saved$reset ~/.config/dunst to $input/.config/dunst "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/dunst"
sleep 0.1
fi
if [ -d ~/.config/jgmenu ]
then
mkdir -p $input/.config/jgmenu
cp -r ~/.config/jgmenu $input/.config/jgmenu
echo -e $green"[+] Saved$reset ~/.config/jgmenu to $input/.config/jgmenu "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/jgmenu"
sleep 0.1
fi
if [ -d ~/.config/obmenu-generator]
then
mkdir -p $input/.config/obmenu-generator
cp -r ~/.config/obmenu-generator $input/.config/obmenu-generator
echo -e $green"[+] Saved$reset ~/.config/obmenu-generator to $input/.config/obmenu-generator "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/obmenu-generator"
sleep 0.1
fi
if [ -f ~/.config/redshift.conf]
then
cp -r ~/.config/redshift.conf $input/.config/redshift.conf
echo -e $green"[+] Saved$reset ~/.config/redshift.conf to $input/.config/redshift.conf "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.config/redshift.conf"
sleep 0.1
fi
if [ -d ~/.mpd ]
then
mkdir -p $input/.mpd
cp -r ~/.mpd $input/.mpd
echo -e $green"[+] Saved$reset ~/.mpd to $input/.mpd "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.ncmpcpp"
sleep 0.1
fi
if [ -d ~/.ncmpcpp ]
then
mkdir -p $input/.ncmpcpp
cp -r ~/.ncmpcpp $input/.ncmpcpp
echo -e $green"[+] Saved$reset ~/.ncmpcpp to $input/.ncmpcpp "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.ncmpcpp"
sleep 0.1
fi
if [ -d ~/.tmux.conf ]
then
mkdir -p $input/.tmux.conf
cp -r ~/.tmux.conf $input/.tmux.conf
echo -e $green"[+] Saved$reset ~/.tmux.conf to $input/.tmux.conf "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.tmux.conf"
sleep 0.1
fi
if [ -d ~/.vim ] && [ -f ~/.vimrc ]
then
mkdir -p $input/.vim
cp -r ~/.vim ~/.vimrc $input
echo -e $green"[+] Saved$reset ~/.vim to $input/.vim "
sleep 0.1
echo -e $green"[+] Saved$reset ~/.vimrc to $input/.vimrc "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.tmux.conf"
sleep 0.1
fi
# Shell
if [ -f ~/.bashrc ]
then
cp -r ~/.bashrc $input/
echo -e $green"[+] Saved$reset ~/.bashrc to $input/.bashrc "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.bashrc"
sleep 0.1
fi
if [ -d ~/.config/fish ]
then
mkdir -p $input/.config/fish
cp -r ~/.config/fish/config.fish $input/.config/fish
echo -e $green"[+] Saved$reset ~/.config/fish/config.fish to $input/.config/fish/config.fish "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.bashrc"
sleep 0.1
fi
if [ -f ~/.zshrc ]
then
cp -r ~/.zshrc $input/
echo -e $green"[+] Saved$reset ~/.zshrc to $input/.zshrc "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.zshrc"
sleep 0.1
fi
if [ -d ~/.oh-my-zsh ]
then
cp -r ~/.oh-my-zsh $input/.oh-my-zsh
echo -e $green"[+] Saved$reset ~/.oh-my-zsh to $input/.oh-my-zsh "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.zshrc"
sleep 0.1
fi
if [ -f ~/.Xresources ]
then
cp -r ~/.Xresources $input/
echo -e $green"[+] Saved$reset ~/.Xresources to $input/.bashrc "
sleep 0.1
elif [ -f ~/.Xdefaults ]
then
cp -r ~/.Xdefaults $input/
echo -e $green"[+] Saved$reset ~/.Xdefaults to $input/.Xdefaults "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.Xresources and ~/.Xdefaults"
sleep 0.1
fi
if [ -f ~/.xinitrc ]
then
cp -r ~/.xinitrc $input/.xinitrc
echo -e $green"[+] Saved$reset ~/.xinitrc to $input/.xinitrc "
sleep 0.1
else
echo -e $red"[-] Can't find$reset ~/.xinitrc"
sleep 0.1
fi
}
more(){ printf "%s" "\
_____ _ _ ___ _
| __| |_|_| _| |_
|__ | | | _| _|
|_____|_|_|_|_| |_| v.1.1
Usage : shift [--options] preset [--options] preset
Example : shift --setup arc --polybar light
Options :
--backup-all Backup all configuration into dotfiles.
--backup Backup your desktop config into tarball.
--deploy Clone and install the dotfiles into your system.
--icons Change GTK3 icons.
--setup Change setup of window manager.
--wall Set wallpaper to desktop.
-v,--version Show version.
-h,--help Show this help.
"
}
help(){ printf "%s" "\
_____ _ _ ___ _
| __| |_|_| _| |_
|__ | | | _| _|
|_____|_|_|_|_| |_| v1.1
Usage : shift [--options] preset [--options] preset
Error: missing an argument options, try -h or --help for help
"
}
version(){
printf "%s" "\
Shift v1.1#stable
MIT License
Copyright (c) 2018 noirecat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE