summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/shell/aliasrc4
-rw-r--r--.config/sxhkd/sxhkdrc14
-rwxr-xr-x.config/sxiv/exec/key-handler16
-rwxr-xr-x.scripts/setbg2
4 files changed, 28 insertions, 8 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 50f0018..b12a8c6 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -29,7 +29,7 @@ alias \
g2="git commit -S -m" \
g3="git push origin HEAD --force" \
gs="git status" \
- gc="git diff --staged" \
+ gd="git diff --staged" \
glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
#useful command line substitutions
@@ -44,7 +44,9 @@ alias \
mkd="mkdir -pv" #make a parent and sub directory
alias \
myip="curl ipinfo.io/ip && echo """ \
+ myipc="curl -s ipinfo.io/ip | xargs -I {} geoiplookup {}"\
neofetch="neofetch --ascii .config/neofetch/arch-ascii.txt" \
+ ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'\
scr="ffmpeg -f x11grab -i :0.0 out.mp4" \
ss="maim -D -u --select | tee ~/Pictures/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -selection clipboard -t image/png" \
pas="pulseaudio --start" \
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 1e3b687..6800caa 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -88,7 +88,7 @@ super + ctrl + t
# dmenu custom run
super + d
- dmenu_run -hp setbg,xkill,pidkill,librewolf,telegram-desktop,bts,trashy,dmount,dumount,picomm,passmenu
+ dmenu_run -hp bts,dcalc,dmount,dumount,librewolf,passmenu,picomm,pidkill,picomm,setbg,telegram-desktop,todo,tolearn,trashy,xkill
#dmenu emoji-picker (universal)
super + F1
@@ -102,6 +102,7 @@ super + F2
super + F3
pidkill
+
# dmenu wifi-menu
super + ctrl + w
wifi-menu
@@ -110,11 +111,11 @@ super + ctrl + w
super + ctrl + v
vpn-menu
-#dmenu kill
+# xkill
super + alt + w
xkill
-#screenlock
+##screenlock
#loads cached lockscreen (instant)
super+ shift +l
betterlockscreen --lock dimblur
@@ -126,16 +127,17 @@ super+ ctrl + l
XF86MonBrightness{Up,Down}
brillo -s intel_backlight -{A,U} 5 && dunstify -u normal -t 3000 -r 90210 -i display-brightness "$(printf %.0f%% $( brillo -G) )"
+
# Change screen temp
# Take a screenshot (full)
Print
- maim | tee ~/Pictures/Screenshots/pic-full-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -selection clipboard -t image/png
+ maim | tee ~/pix/Screenshots/pic-full-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -selection clipboard -t image/png
# Take a screenshot (sel)
alt + Print
-## maim --window $(xdotool getactivewindow) | tee ~/Pictures/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -sel c -t image/png
- maim -D -u --select | tee ~/Pictures/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -sel c -t image/png
+## maim --window $(xdotool getactivewindow) | tee ~/Pictures/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -sel c -t image/png
+ maim -D -u --select | tee ~/pix/Screenshots/pic-sel-$(date '+%y-%m-%d--%H-%M-%S').png | xclip -selection clipboard -t image/png
ctrl + Print
flameshot gui
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..0d25a50
--- /dev/null
+++ b/.config/sxiv/exec/key-handler
@@ -0,0 +1,16 @@
+#!/bin/sh
+while read file
+do
+ case "$1" in
+ "d")
+ trash-put "$file";;
+ "r")
+ convert -rotate 90 "$file" "$file" ;;
+ "c")
+ echo -n "$file" | xclip -selection clipboard ;;
+ "s")
+ setbg "$file";;
+ "i")
+ convert $file -channel RGB -negate /tmp/output.png && sxiv -f /tmp/output.png ;;
+ esac
+done
diff --git a/.scripts/setbg b/.scripts/setbg
index f267a3a..f743745 100755
--- a/.scripts/setbg
+++ b/.scripts/setbg
@@ -2,7 +2,7 @@
if [ -z "$1" ]; then
echo "Chosing a random wallpaper..."
- wall=$(find $HOME/Pictures/Wallpaper/w/wow -type f | shuf -n 1)
+ wall=$(find $HOME/pix/Wallpaper/w/wow -type f | shuf -n 1)
echo "Setting up the wallpaper: $(echo $wall|cut -d '/' -f 8)"
else
wall="$1"