From 4334870653a2d663988517cd2f696bc17df2eedd Mon Sep 17 00:00:00 2001 From: Chris Nutter Date: Mon, 14 Sep 2020 21:17:25 -0700 Subject: [PATCH] more changes and more things added --- .config/dunst/dunstrc | 46 ++++++++++++++++---------------- .config/i3/config | 9 ++++++- .gitignore | 1 + .scripts/copy-from-purple.sh | 5 ++++ .scripts/git-in.sh | 4 +++ .scripts/latex-setup.sh | 38 ++++++++++++++++++++++++++ .scripts/mount-scripts/blue.sh | 6 +++++ .scripts/mount-scripts/purple.sh | 2 +- .zshrc | 4 +++ 9 files changed, 90 insertions(+), 25 deletions(-) create mode 100644 .gitignore create mode 100755 .scripts/copy-from-purple.sh create mode 100755 .scripts/git-in.sh create mode 100755 .scripts/latex-setup.sh create mode 100755 .scripts/mount-scripts/blue.sh diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 4324932..cd09c8b 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,6 +1,6 @@ [global] frame_width = 1 - frame_color = "#E57B81" + frame_color = "#9C171C" font = Noto Sans 10 @@ -181,18 +181,18 @@ [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. # Otherwise the "#" and following would be interpreted as a comment. - background = "#060C13" - foreground = "#E57B81" + background = "#03000A" + foreground = "#9C171C" timeout = 10 [urgency_normal] - background = "#060C13" - foreground = "#E57B81" + background = "#03000A" + foreground = "#9C171C" timeout = 10 [urgency_critical] - background = "#060C13" - foreground = "#E57B81" + background = "#03000A" + foreground = "#9C171C" timeout = 0 @@ -252,8 +252,8 @@ # appname = claws-mail # category = email.arrived # urgency = normal -# background = "#060C13" -# foreground = "#E57B81" +# background = "#03000A" +# foreground = "#9C171C" # #[mute.sh] # appname = mute @@ -263,40 +263,40 @@ #[JDownloader] # appname = JDownloader # category = JD -# background = "#060C13" -# foreground = "#E57B81" +# background = "#03000A" +# foreground = "#9C171C" # #[newsbeuter] # summary = *Feeds* -# background = "#060C13" -# foreground = "#E57B81" +# background = "#03000A" +# foreground = "#9C171C" # [irc] appname = weechat timeout = 0 - background = "#060C13" - foreground = "#E57B81" + background = "#03000A" + foreground = "#9C171C" # [weechat hl] appname = weechat category = weechat.HL - background = "#060C13" - foreground = "#E57B81" + background = "#03000A" + foreground = "#9C171C" # [weechat pn] appname = weechat category = weechat.PM - background = "#060C13" - foreground = "#E57B81" + background = "#03000A" + foreground = "#9C171C" # #[CMUS] # appname = CMUS # category = cmus -# background = "#060C13" -# foreground = "#E57B81" +# background = "#03000A" +# foreground = "#9C171C" # # -# background = "#060C13" -# foreground = "#E57B81" +# background = "#03000A" +# foreground = "#9C171C" # # vim: ft=cfg diff --git a/.config/i3/config b/.config/i3/config index 06d41b7..1cfc634 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -355,7 +355,7 @@ set_From_resource $bg i3wm.color2 #} # hide/unhide i3status bar -bindsym $mod+m bar mode toggle +#bindsym $mod+m bar mode toggle # Theme colors # class border backgr. text indic. child_border @@ -450,5 +450,12 @@ exec synergyc --no-tray --restart --name Gray 192.168.1.236:24800 # --> Xresources DPI Switcher exec_always sh ~/.scripts/dpi-switch.sh && xrdb ~/.Xresources +# --> Mounting All Network Drives +bindsym $mod+Shift+m exec kitty -e sudo umount /mnt/blue/* && sudo umount /mnt/* +bindsym $mod+m exec kitty -e mount-purple && mount-blue + + # Unused +######################################################## + #exec kitty ~/.scripts/monitor-setup.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9e2e5d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +win-credentials-* diff --git a/.scripts/copy-from-purple.sh b/.scripts/copy-from-purple.sh new file mode 100755 index 0000000..f090136 --- /dev/null +++ b/.scripts/copy-from-purple.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +# For now it does Music. Will do more things later such as pictures for lectures. etc. +cp -r -n /mnt/purple/Music/Playlists/Apple\ Music\ Playlists ~/Music/ + diff --git a/.scripts/git-in.sh b/.scripts/git-in.sh new file mode 100755 index 0000000..acff3be --- /dev/null +++ b/.scripts/git-in.sh @@ -0,0 +1,4 @@ +#! /bin/ash + +git fetch +git pull diff --git a/.scripts/latex-setup.sh b/.scripts/latex-setup.sh new file mode 100755 index 0000000..5c430da --- /dev/null +++ b/.scripts/latex-setup.sh @@ -0,0 +1,38 @@ +#! /bin/bash + +EDITOR=vim +bold=$(tput bold) +normal=$(tput sgr0) + +now=`date +"%m%d%Y"` + +############################### + +pause() { + read -p "If you're good to go, press any key to continue." +} + +prompt() { + echo "This is meant to be ran in the current directory of your choosing." + echo "If you don't mean to use it in..." + echo "${bold}" && pwd && echo "${normal}" + echo -n "...then Ctrl-D or Ctrl-C." + pause +} + +setup() { + cp ~/School/homework-and-stuffs/*.tex . + mv *.tex $2-${now}.tex + vim *.tex +} + +if [[ $1 = "--no-prompt" -o $2 = "--no-prompt" ]] + setup + +else + prompt + setup + +fi + + diff --git a/.scripts/mount-scripts/blue.sh b/.scripts/mount-scripts/blue.sh new file mode 100755 index 0000000..c7c140f --- /dev/null +++ b/.scripts/mount-scripts/blue.sh @@ -0,0 +1,6 @@ +sudo mount.cifs -o credentials=/home/cdnutter/.files/secret/win-credentials-blue "//192.168.1.66/Blue's Internal" /mnt/blue/internal +sudo mount.cifs -o credentials=/home/cdnutter/.files/secret/win-credentials-blue "//192.168.1.66/Blue's Movies" /mnt/blue/movies +sudo mount.cifs -o credentials=/home/cdnutter/.files/secret/win-credentials-blue "//192.168.1.66/Blue's TV Shows" /mnt/blue/tv_shows +sudo mount.cifs -o credentials=/home/cdnutter/.files/secret/win-credentials-blue "//192.168.1.66/Blue's 4K" /mnt/blue/4k +sudo mount.cifs -o credentials=/home/cdnutter/.files/secret/win-credentials-blue "//192.168.1.66/Blue's Anime" /mnt/blue/other + diff --git a/.scripts/mount-scripts/purple.sh b/.scripts/mount-scripts/purple.sh index 9761dbd..fe2f56c 100755 --- a/.scripts/mount-scripts/purple.sh +++ b/.scripts/mount-scripts/purple.sh @@ -1 +1 @@ -sudo mount.cifs //192.168.1.176/data /mnt/purple/ -o user=admin +sudo mount -t cifs -o credentials=/home/cdnutter/.files/secret/win-credentials-purple //192.168.1.176/data /mnt/purple/ diff --git a/.zshrc b/.zshrc index e9fa452..edc0e5b 100644 --- a/.zshrc +++ b/.zshrc @@ -106,6 +106,10 @@ alias icat="kitty +kitten icat" alias please="sudo" alias sl="sh ~/.scripts/loop-sl.sh" alias git-out="sh ~/.scripts/git-out.sh" +alias git-in="sh ~/.scripts/git-in.sh" + +alias mount-purple="sh ~/.scripts/mount-scripts/purple.sh" +alias mount-blue="sh ~/.scripts/mount-scripts/blue.sh" ## wal