aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-17 23:59:38 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-09-17 23:59:38 +0300
commita479092a592bc1f97f849410593f8a06a8688cd1 (patch)
tree6dbbe9a7d33e3d3455010f4652e2d1eaf2861997 /dotfiles/.config
parent376d68b0443a60a237e9e35462781a2ff504c7ac (diff)
downloadswayrice-a479092a592bc1f97f849410593f8a06a8688cd1.tar.gz
swayrice-a479092a592bc1f97f849410593f8a06a8688cd1.zip
Some changes/improvements
* New menuman mode to search with apropos * Dragon drag-and-drop marked images in sxiv * Other changes.
Diffstat (limited to 'dotfiles/.config')
-rw-r--r--dotfiles/.config/sway/config1
-rwxr-xr-xdotfiles/.config/sxiv/exec/key-handler76
-rw-r--r--dotfiles/.config/vimb/config2
-rw-r--r--dotfiles/.config/zsh/shortcuts5
4 files changed, 48 insertions, 36 deletions
diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config
index 8127c5f..dc8eec2 100644
--- a/dotfiles/.config/sway/config
+++ b/dotfiles/.config/sway/config
@@ -170,6 +170,7 @@ bindsym --to-code {
$mod+Shift+w exec menuwebsurf
$mod+Ctrl+w exec menuwebsurf paste
$mod+F1 exec menuman
+ $mod+Shift+F1 exec menuman -s
$mod+F2 exec menumako
$mod+F3 exec menudisplay
$mod+F4 exec menublk
diff --git a/dotfiles/.config/sxiv/exec/key-handler b/dotfiles/.config/sxiv/exec/key-handler
index 17abf60..f20a143 100755
--- a/dotfiles/.config/sxiv/exec/key-handler
+++ b/dotfiles/.config/sxiv/exec/key-handler
@@ -9,39 +9,47 @@ rotate() {
esac
}
+if [ "$1" = "t" ]; then
+ while read file; do
+ files="$(printf "%s\n%s" "$files" "$file")"
+ done
+ dragon-drag-and-drop -a $files
+ exit 0
+fi
+
while read file; do
- case "$1" in
- "C-a" | "C-1")
- setbg "$file"
- exit ;;
- "C-2")
- setbg "$file" "2"
- exit ;;
- "C-s")
- setbglblur "$file"
- exit ;;
- "C-d")
- setbglsimple "$file"
- exit ;;
- "C-c")
- wl-copy < "$file"
- exit ;;
- "C-f")
- wl-copy "$file"
- exit ;;
- "C-r")
- # Move file to 'trash' directory, if the current directory's name is
- # JPEG, remove the NEF file as well
- dir="$(dirname "$file")"
- name="$(basename "$file")"
- base="${name%.*}"
- mv "$file" ~/.local/trash/
- if [ "JPEG" = "$(basename $dir)" ]; then
- mv $(dirname "$dir")/"$base".NEF ~/.local/trash/
- fi
- exit ;;
- "C-comma") rotate 270 $file ;;
- "C-period") rotate 90 $file ;;
- "C-slash") rotate 180 $file ;;
- esac
+ case "$1" in
+ "C-a" | "C-1")
+ setbg "$file"
+ exit ;;
+ "C-2")
+ setbg "$file" "2"
+ exit ;;
+ "C-s")
+ setbglblur "$file"
+ exit ;;
+ "C-d")
+ setbglsimple "$file"
+ exit ;;
+ "C-c")
+ wl-copy < "$file"
+ exit ;;
+ "C-f")
+ wl-copy "$file"
+ exit ;;
+ "C-r")
+ # Move file to 'trash' directory, if the current directory's name is
+ # JPEG, remove the NEF file as well
+ dir="$(dirname "$file")"
+ name="$(basename "$file")"
+ base="${name%.*}"
+ mv "$file" ~/.local/trash/
+ if [ "JPEG" = "$(basename $dir)" ]; then
+ mv $(dirname "$dir")/"$base".NEF ~/.local/trash/
+ fi
+ exit ;;
+ "C-comma") rotate 270 $file ;;
+ "C-period") rotate 90 $file ;;
+ "C-slash") rotate 180 $file ;;
+ esac
done
diff --git a/dotfiles/.config/vimb/config b/dotfiles/.config/vimb/config
index 1bdce52..29f07e2 100644
--- a/dotfiles/.config/vimb/config
+++ b/dotfiles/.config/vimb/config
@@ -35,8 +35,6 @@ set x-hint-command=:sh! xdg-open <C-R>;
set geolocation=never
-set prevent-newwindow=true
-
set cookie-accept=origin
# GUI color settings
diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts
index 9ec350c..e203a26 100644
--- a/dotfiles/.config/zsh/shortcuts
+++ b/dotfiles/.config/zsh/shortcuts
@@ -68,6 +68,11 @@ alias yta="youtube-dl --add-metadata -xic" # Download only audio
alias YT="youtube-viewer"
alias starwars="telnet towel.blinkenlights.nl"
+# git
+gitcc () {
+ git clone "$(wl-paste --no-newline)"
+}
+
# Audio and Music
alias mute="lmc mute"
alias vu="lmc up"