Browse Source

Wrote dmenu bg-chooser script

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
5139bb33f6
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 6
      aliases/zsh_aliases
  2. 4
      configs/i3/config
  3. 8
      configs/i3blocks/i3blocks.conf
  4. 8
      configs/ranger/rc.conf
  5. 10
      scripts/bg-chooser
  6. 8
      scripts/burn-iso.sh
  7. 2
      txt/key_dirs.txt
  8. 1
      txt/key_files.txt
  9. 2
      txt/usbs.md

6
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 {{{ #

4
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

8
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=🎅

8
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 ")

10
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"

8
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

2
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 *

1
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 *

2
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
Loading…
Cancel
Save