Wrote dmenu bg-chooser script
This commit is contained in:
@@ -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 {{{ #
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -37,10 +37,10 @@ label=
|
||||
# color=#3da061
|
||||
interval=5
|
||||
|
||||
[wifi]
|
||||
label=
|
||||
instance=wlp4s0
|
||||
interval=10
|
||||
# [wifi]
|
||||
# label=
|
||||
# instance=wlp4s0
|
||||
# interval=10
|
||||
|
||||
[name]
|
||||
# label=🎅
|
||||
|
||||
@@ -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
Executable file
10
scripts/bg-chooser
Executable file
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -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 *
|
||||
|
||||
@@ -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 *
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user