mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-09 17:41:12 +10:00
Deleting files.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user