From 5139bb33f6b5d85767351a9c30a5327ebbb8be31 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sat, 5 Jan 2019 17:48:36 -0500 Subject: [PATCH] Wrote dmenu bg-chooser script --- aliases/zsh_aliases | 6 +++++- configs/i3/config | 4 ++-- configs/i3blocks/i3blocks.conf | 8 ++++---- configs/ranger/rc.conf | 8 ++++++-- scripts/bg-chooser | 10 ++++++++++ scripts/burn-iso.sh | 8 ++++---- txt/key_dirs.txt | 2 +- txt/key_files.txt | 1 - txt/usbs.md | 2 +- 9 files changed, 33 insertions(+), 16 deletions(-) create mode 100755 scripts/bg-chooser diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index e23d5b9..f29bd2b 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -25,7 +25,8 @@ alias ru="xrdb ~/.Xresources" # list file sizes in megabytes with depth 1 alias dum="sudo du -d 1 -B M" -alias grbm="sudo grub-mkconfig -o /boot/grub/grub.cfg" +alias vgb="sni /etc/default/grub" +alias mkgb="sudo grub-mkconfig -o /boot/grub/grub.cfg" function cld() { colordiff -y --suppress-common-lines $1 $2 ; } alias grep='grep --color=auto' @@ -207,8 +208,11 @@ alias psc="pass -c" alias pse="pass edit" alias psi="pass insert -m" alias psg="pass generate -c" + +alias xclip="xclip -selection clipboard" alias yh="echo 'kevin.mok@live.ca' | xclip -selection clipboard" alias yg="xclip -selection clipboard ~/.password-store/social/gmail" +alias yt="xclip -selection clipboard ~/.password-store/social/trapbot" alias yu="echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard" # python related {{{ # diff --git a/configs/i3/config b/configs/i3/config index ba2cbaa..63edebd 100644 --- a/configs/i3/config +++ b/configs/i3/config @@ -135,9 +135,9 @@ bindsym control+Shift+x kill # backgrounds # set $colors_sh "~/.cache/wal/colors.sh" bindsym $mod+q exec wal -i "$HOME/Pictures/Backgrounds/vibrant"; exec ~/.cache/wal/colors.sh -bindsym $mod+w exec wal -i "$HOME/Pictures/Backgrounds/dim"; exec ~/.cache/wal/colors.sh +# bindsym $mod+w exec wal -i "$HOME/Pictures/Backgrounds/dim"; exec ~/.cache/wal/colors.sh bindsym $mod+r exec wal -i "$HOME/Pictures/Backgrounds/"; exec ~/.cache/wal/colors.sh -bindsym $mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg +bindsym $mod+w exec ~/linux-config/scripts/bg-chooser # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle diff --git a/configs/i3blocks/i3blocks.conf b/configs/i3blocks/i3blocks.conf index 935f631..80ed17f 100644 --- a/configs/i3blocks/i3blocks.conf +++ b/configs/i3blocks/i3blocks.conf @@ -37,10 +37,10 @@ label= # color=#3da061 interval=5 -[wifi] -label= -instance=wlp4s0 -interval=10 +# [wifi] +# label= +# instance=wlp4s0 +# interval=10 [name] # label=🎅 diff --git a/configs/ranger/rc.conf b/configs/ranger/rc.conf index f0a656f..65205fc 100644 --- a/configs/ranger/rc.conf +++ b/configs/ranger/rc.conf @@ -674,8 +674,12 @@ map rr source ~/.config/ranger/rc.conf # backgrounds map w shell /usr/bin/wal -i %f -map bgd shell mv %f dim -map bgb shell mv %f vibrant +map bdc shell mv %f dim/editing +map bdn shell mv %f dim/non-editing +# map bbc shell mv %f bright/editing +# map bbn shell mv %f bright/non-editing +map bc shell mv %f editing +map bn shell mv %f non-editing # bulk rename map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ") diff --git a/scripts/bg-chooser b/scripts/bg-chooser new file mode 100755 index 0000000..4bc4fa0 --- /dev/null +++ b/scripts/bg-chooser @@ -0,0 +1,10 @@ +#!/bin/bash + +base_bg_path="/home/kevin/Pictures/Backgrounds" + +brightness_choice=$(echo -e "dim\nbright" | dmenu -i) +editing_choice=$(echo -e "editing\nnon-editing" | dmenu -i) + +bg_path="$base_bg_path/$brightness_choice/$editing_choice" +wal_cmd="wal -i $bg_path" +eval "$wal_cmd" diff --git a/scripts/burn-iso.sh b/scripts/burn-iso.sh index 2ebdc59..dbfee8a 100755 --- a/scripts/burn-iso.sh +++ b/scripts/burn-iso.sh @@ -1,8 +1,8 @@ #!/bin/bash -usb_letter="c" +usb_letter="d1" usb="/dev/sd$usb_letter" -iso="" +iso="/run/media/kevin/iomega/w10.iso" -sudo dd bs=4M if=$iso of=$usb conv=fdatasync status=progress -# sudo dd bs=4M if=$usb of=$iso conv=fdatasync status=progress +# sudo dd bs=4M if=$iso of=$usb conv=fdatasync status=progress +sudo dd bs=4M if=$usb of=$iso conv=fdatasync status=progress diff --git a/txt/key_dirs.txt b/txt/key_dirs.txt index 5b6f882..e0a6611 100644 --- a/txt/key_dirs.txt +++ b/txt/key_dirs.txt @@ -25,7 +25,7 @@ sr /home/kevin/linux-config/scripts snp /home/kevin/.vim/plugged/vim-snippets/UltiSnips sv /home/kevin/coding/spotify-lib-vis/src swa /home/kevin/.local/share/nvim/swap -tt /home/kevin/linux-config/txt +tx /home/kevin/linux-config/txt wo /home/kevin/Documents/workout-logs/11 # }}} cdn * diff --git a/txt/key_files.txt b/txt/key_files.txt index 17e3a14..f57d202 100644 --- a/txt/key_files.txt +++ b/txt/key_files.txt @@ -25,7 +25,6 @@ lh /home/kevin/Documents/listening-history/polarbier.csv no ./.gitignore ne /home/kevin/linux-config/configs/neofetch/config.conf tm /home/kevin/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets -tr /home/kevin/linux-config/txt/pacman-pkgs/aur-pkgs.txt # }}} cdn * diff --git a/txt/usbs.md b/txt/usbs.md index f638b85..0c06149 100644 --- a/txt/usbs.md +++ b/txt/usbs.md @@ -10,5 +10,5 @@ - Adata (16) = Windows files - Lexar (32) = - Kingston (16) = Ubuntu -- Kingston (yellow, 8) = Manjaro +- Kingston (yellow, 8) = Ubuntu Server - Kingston (purple, 4) = Arch