From db6706d3211ba2841140ec0a7101d9b740b86363 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 10 Sep 2020 09:48:36 +0300 Subject: swayresize: resize amount * Resize by a custom amount of pixels; Default is 2 pixels. * Added shortcut to sway config to resize by 10 pixels. --- dotfiles/.config/sway/config | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index ba88469..7939442 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -4,6 +4,7 @@ # Set mod key (Mod1=, Mod4=) set $mod Mod4 +set $alt Mod1 set $term termite set $browser "qutebrowser" @@ -326,10 +327,15 @@ bindsym --to-code { # Shut down, restart and locking features $mod+Shift+e exec menusession + # Resize $mod+Shift+y exec --no-startup-id swayresize left $mod+Shift+u exec --no-startup-id swayresize down $mod+Shift+i exec --no-startup-id swayresize up $mod+Shift+o exec --no-startup-id swayresize right + $mod+Ctrl+y exec --no-startup-id swayresize left 10 + $mod+Ctrl+u exec --no-startup-id swayresize down 10 + $mod+Ctrl+i exec --no-startup-id swayresize up 10 + $mod+Ctrl+o exec --no-startup-id swayresize right 10 # Lock screen $mod+x exec --no-startup-id lock-color -- cgit v1.2.3 From d48fc92bcb7c0dbf49883aab54ff495d95386785 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 10 Sep 2020 09:50:02 +0300 Subject: shortcut to lock screen without screen timeout --- dotfiles/.config/sway/config | 1 + 1 file changed, 1 insertion(+) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 7939442..1019d0a 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -339,6 +339,7 @@ bindsym --to-code { # Lock screen $mod+x exec --no-startup-id lock-color + $mod+Shift+x exec --no-startup-id lock-color screenon # Gaps $mod+semicolon gaps inner current set 15; gaps outer current set 0 -- cgit v1.2.3 From e5a7e88b25b88f9aa55bbce105467c81472a6aba Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 10 Sep 2020 10:08:50 +0300 Subject: specify find command in vim fuzzy finder alias --- dotfiles/.config/zsh/shortcuts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/zsh/shortcuts b/dotfiles/.config/zsh/shortcuts index 990d485..6081b30 100644 --- a/dotfiles/.config/zsh/shortcuts +++ b/dotfiles/.config/zsh/shortcuts @@ -25,7 +25,7 @@ alias spw="setsid $TERMINAL >/dev/null 2>&1 &" # Fuzzy finder alias fzd='cd "$(find * -type d | fzf || echo ".")"' -alias fzv='nvim $(fzf)' +alias fzv='nvim $(find * -type f | fzf)' # Mounting drive shortcuts alias mnt="udisksctl mount -b" -- cgit v1.2.3