From 166eaabf182894387d639c33fb937c7ea7d45e1a Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Mon, 8 Mar 2021 14:15:55 -0600 Subject: [PATCH] Deleting files. --- .dmenu/dmenu-edit-configs.sh | 159 ----------------------------------- .dmenu/dmenu-reddio.sh | 38 --------- .dmenu/dmenu-scrot.sh | 47 ----------- .dmenu/dmenu-surfraw.sh | 20 ----- .dmenu/dmenu-sysmon.sh | 45 ---------- .dmenu/dmenu-trading.sh | 35 -------- 6 files changed, 344 deletions(-) delete mode 100755 .dmenu/dmenu-edit-configs.sh delete mode 100755 .dmenu/dmenu-reddio.sh delete mode 100755 .dmenu/dmenu-scrot.sh delete mode 100755 .dmenu/dmenu-surfraw.sh delete mode 100755 .dmenu/dmenu-sysmon.sh delete mode 100755 .dmenu/dmenu-trading.sh diff --git a/.dmenu/dmenu-edit-configs.sh b/.dmenu/dmenu-edit-configs.sh deleted file mode 100755 index 5b98fef..0000000 --- a/.dmenu/dmenu-edit-configs.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/bash -# ____ _____ -# | _ \_ _| Derek Taylor (DistroTube) -# | | | || | http://www.youtube.com/c/DistroTube -# | |_| || | http://www.gitlab.com/dwt1/ -# |____/ |_| -# -# Dmenu script for editing some of my more frequently edited config files. - - -declare -a options=("alacritty" -"awesome" -"bash" -"broot" -"bspwm" -"doom.d/config.el" -"doom.d/init.el" -"dunst" -"dwm" -"emacs.d/init.el" -"herbstluftwm" -"i3" -"neovim" -"picom" -"polybar" -"qtile" -"quickmarks" -"qutebrowser" -"spectrwm" -"st" -"stumpwm" -"surf" -"sxhkd" -"tabbed" -"termite" -"vifm" -"vim" -"vimb" -"xmobar" -"xmonad" -"xresources" -"zsh" -"quit" -) - -# The combination of echo and printf is done to add line breaks to the end of each -# item in the array before it is piped into dmenu. Otherwise, all the items are listed -# as one long line (one item). - -choice=$(echo "$(printf '%s\n' "${options[@]}")" | dmenu -p 'Edit config file: ') -case "$choice" in - quit) - echo "Program terminated." && exit 1 - ;; - alacritty) - choice="$HOME/.config/alacritty/alacritty.yml" - ;; - awesome) - choice="$HOME/.config/awesome/rc.lua" - ;; - bash) - choice="$HOME/.bashrc" - ;; - broot) - choice="$HOME/.config/broot/conf.toml" - ;; - bspwm) - choice="$HOME/.config/bspwm/bspwmrc" - ;; - doom.d/config.el) - choice="$HOME/.doom.d/config.el" - ;; - doom.d/init.el) - choice="$HOME/.doom.d/init.el" - ;; - dunst) - choice="$HOME/.config/dunst/dunstrc" - ;; - dwm) - choice="$HOME/dwm-distrotube/config.h" - ;; - emacs.d/init.el) - choice="$HOME/.emacs.d/init.el" - ;; - herbstluftwm) - choice="$HOME/.config/herbstluftwm/autostart" - ;; - i3) - choice="$HOME/.i3/config" - ;; - neovim) - choice="$HOME/.config/nvim/init.vim" - ;; - picom) - choice="$HOME/.config/picom/picom.conf" - ;; - polybar) - choice="$HOME/.config/polybar/config" - ;; - qtile) - choice="$HOME/.config/qtile/config.py" - ;; - quickmarks) - choice="$HOME/.config/qutebrowser/quickmarks" - ;; - qutebrowser) - choice="$HOME/.config/qutebrowser/autoconfig.yml" - ;; - spectrwm) - choice="$HOME/.spectrwm.conf" - ;; - st) - choice="$HOME/st-distrotube/config.h" - ;; - stumpwm) - choice="$HOME/.config/stumpwm/config" - ;; - surf) - choice="$HOME/surf-distrotube/config.h" - ;; - sxhkd) - choice="$HOME/.config/sxhkd/sxhkdrc" - ;; - tabbed) - choice="$HOME/tabbed-distrotube/config.h" - ;; - termite) - choice="$HOME/.config/termite/config" - ;; - vifm) - choice="$HOME/.config/vifm/vifmrc" - ;; - vim) - choice="$HOME/.vimrc" - ;; - vimb) - choice="$HOME/.config/vimb/config" - ;; - xmobar) - choice="$HOME/.config/xmobar/xmobarrc2" - ;; - xmonad) - choice="$HOME/.xmonad/xmonad.hs" - ;; - xresources) - choice="$HOME/.Xresources" - ;; - zsh) - choice="$HOME/.zshrc" - ;; - *) - exit 1 - ;; -esac - -# Ultimately, what do want to do with our choice? Open in our editor! -alacritty -e nvim "$choice" -# emacsclient -c -a emacs "$choice" - diff --git a/.dmenu/dmenu-reddio.sh b/.dmenu/dmenu-reddio.sh deleted file mode 100755 index 6ce424b..0000000 --- a/.dmenu/dmenu-reddio.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# ____ _____ -# | _ \_ _| Derek Taylor (DistroTube) -# | | | || | http://www.youtube.com/c/DistroTube -# | |_| || | http://www.gitlab.com/dwt1/ -# |____/ |_| -# -# Dmenu script for reddio - a command line Reddit viewer. - - -declare -a options=("r/archlinux -r/bash -r/commandline -r/DistroTube -r/linux -r/linux4noobs -r/linuxmasterrace -r/linuxquestions -r/suckless -r/unixporn -r/vim -quit") - -choice=$(echo -e "${options[@]}" | dmenu -l 10 -i -p 'Last 10 Posts From Reddit: ') - -case "$choice" in - quit) - echo "Program terminated." && exit 1 - ;; - r/*) - reddio print -l 15 "$choice" | sed 's/\x1b\[[0-9;]*m//g' \ - | dmenu -l 15 -i -p "$choice" - exec st -e $SHELL -c "reddio print -l 10 $choice;$SHELL" - ;; - *) - exit 1 - ;; -esac diff --git a/.dmenu/dmenu-scrot.sh b/.dmenu/dmenu-scrot.sh deleted file mode 100755 index 2dadb89..0000000 --- a/.dmenu/dmenu-scrot.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -#changelog -#v0.3 -#added 1. Notifications 2.unique names for each type (for quick launch) 3.better photo editor (pinta) 4.dmenu title -#v0.4 -#1.Added variable for notification timeouts. 2. Show link in notification - - -IMG_PATH=/home/dt/scrot/ -UL=fb -EDIT=gimp -TIME=3000 #Miliseconds notification should remain visible - - -prog=" ----Local screenshots (saved at IMG_PATH)--- -1.quick_fullscreen -2.delayed_fullscreen -3.section -4.edit_fullscreen ----Upload to remote service (images will be deleted)--- -a.upload_fullscreen -u.upload_delayed_fullscreen -e.edit_upload_fullscreen -s.upload_section -p.edit_upload_section -" - -cmd=$(dmenu -l 20 -nf '#999' -nb '#292d3e' -sf '#eee' -sb '#0077bb' -p 'Choose Screenshot Type' <<< "$prog") - -cd $IMG_PATH -case ${cmd%% *} in - - 1.quick_fullscreen) scrot -d 1 '%Y-%m-%d-@%H-%M-%S-scrot.png' && notify-send -u low -t $TIME 'Scrot' 'Fullscreen taken and saved' ;; - 2.delayed_fullscreen) scrot -d 4 '%Y-%m-%d-@%H-%M-%S-scrot.png' && notify-send -u low -t $TIME 'Scrot' 'Fullscreen Screenshot saved' ;; - 3.section) scrot -s '%Y-%m-%d-@%H-%M-%S-scrot.png' && notify-send -u low -t $TIME 'Scrot' 'Screenshot of section saved' ;; - 4.edit_fullscreen) scrot -d 1 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$EDIT \$f" && notify-send -u low -t $TIME 'Scrot' 'Screenshot edited and saved' ;; - -a.upload_fullscreen) scrot -d 1 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$UL \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low -t $TIME "Scrot" "Screenshot Uploaded (powered by fb) - $(xclip -o;echo)" ;; - u.upload_delayed_fullscreen) scrot -d 4 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$UL \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low -t $TIME "Scrot" "Screenshot Uploaded (powered by fb) - $(xclip -o)" ;; - e.edit_upload_fullscreen) scrot -d 4 '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$EDIT \$f && $UL \$f && rm -f \$f" && notify-send -u low -t $TIME "Scrot" "Screenshot Uploaded (powered by fb) - $(xclip -o)" ;; -s.upload_section) scrot -s '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$UL \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low -t $TIME "Scrot" "Screenshot Uploaded (powered by fb - $(xclip -o)";; - p.edit_upload_section) scrot -s '%Y-%m-%d-@%H-%M-%S-scrot.png' -e "$EDIT \$f && $UL \$f && rm -f \$f" && (xclip -o;echo) | xclip -selection clipboard && notify-send -u low -t $TIME "Scrot" "Screenshot Uploaded (powered by FB) - $(xclip -o)" ;; - - - *) exec "'${cmd}'" ;; -esac diff --git a/.dmenu/dmenu-surfraw.sh b/.dmenu/dmenu-surfraw.sh deleted file mode 100755 index 5d54f85..0000000 --- a/.dmenu/dmenu-surfraw.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# ____ _____ -# | _ \_ _| Derek Taylor (DistroTube) -# | | | || | http://www.youtube.com/c/DistroTube -# | |_| || | http://www.gitlab.com/dwt1/ -# |____/ |_| -# -# Dmenu script for launching surfaw, a command line search utility. - -cmd="dmenu" - -while [ -z "$engine" ]; do -engine=$(sr -elvi | gawk '{if (NR!=1) { print $1 }}' | $cmd -p "Search engine?") || exit -done - -while [ -z "$query" ]; do -query=$(echo "" | $cmd -p "Searching $engine") || exit -done - -st -e sr "$engine" "$query" diff --git a/.dmenu/dmenu-sysmon.sh b/.dmenu/dmenu-sysmon.sh deleted file mode 100755 index b43a8ca..0000000 --- a/.dmenu/dmenu-sysmon.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# ____ _____ -# | _ \_ _| Derek Taylor (DistroTube) -# | | | || | http://www.youtube.com/c/DistroTube -# | |_| || | http://www.gitlab.com/dwt1/ -# |____/ |_| -# -# Dmenu script for launching system monitoring programs. - - -declare -a options=("bashtop -glances -gtop -htop -iftop -iotop -iptraf-ng -nmon -s-tui -quit") - -choice=$(echo -e "${options[@]}" | dmenu -l -i -p 'System monitors: ') - -case $choice in - quit) - echo "Program terminated." && exit 1 - ;; - bashtop| \ - glances| \ - gtop| \ - htop| \ - nmon| \ - s-tui) - exec st -e $choice - ;; - iftop| \ - iotop| \ - iptraf-ng) - exec st -e gksu $choice - ;; - *) - exit 1 - ;; -esac - diff --git a/.dmenu/dmenu-trading.sh b/.dmenu/dmenu-trading.sh deleted file mode 100755 index 4c1daac..0000000 --- a/.dmenu/dmenu-trading.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# ____ _____ -# | _ \_ _| Derek Taylor (DistroTube) -# | | | || | http://www.youtube.com/c/DistroTube -# | |_| || | http://www.gitlab.com/dwt1/ -# |____/ |_| -# -# Dmenu script for launching trading programs. - - -declare -a options=("tastyworks -tastytrade -thinkorswim -quit") - -choice=$(echo -e "${options[@]}" | dmenu -l -i -p 'System monitors: ') - -case $choice in - quit) - echo "Program terminated." && exit 1 - ;; - tastyworks) - exec /opt/tastyworks/tastyworks - ;; - tastytrade) - exec firefox tastytrade.com - ;; - thinkorswim) - exec "$HOME/thinkorswim/thinkorswim" - ;; - *) - exit 1 - ;; -esac -