From 35a16b43e83b07a1c68f525c77e0243bc5151a1c Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 8 Jun 2020 10:13:40 +0200 Subject: [PATCH] Small bindings and scripts changes --- .config/newsboat/urls | 9 --------- .config/nvim/bindings.vim | 2 +- .config/zsh/bindings | 10 ++++++++-- .local/bin/scripts/aur | 2 +- .local/bin/scripts/pac | 5 +---- .local/bin/scripts/setwall | 2 +- .xinitrc | 11 ++++++----- 7 files changed, 18 insertions(+), 23 deletions(-) delete mode 100644 .config/newsboat/urls diff --git a/.config/newsboat/urls b/.config/newsboat/urls deleted file mode 100644 index a474aee..0000000 --- a/.config/newsboat/urls +++ /dev/null @@ -1,9 +0,0 @@ -http://lukesmith.xyz/rss.xml "luke smith" -https://notrelated.libsyn.com/rss "luke smith" -https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "luke smith" "~Luke Smith (YouTube)" -https://suckless.org/atom.xml "linux" -https://privacytools.statuspage.io/history.rss "privacy" -https://www.archlinux.org/feeds/news/ "linux" -https://www.parabola.nu/feeds/news/ "linux" -https://gynvael.coldwind.pl/rss_pl.php "tech" "~Gynvael Coldwind" -http://postmarketos.org/blog/feed.atom diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim index d45ec61..f8271f7 100644 --- a/.config/nvim/bindings.vim +++ b/.config/nvim/bindings.vim @@ -2,7 +2,7 @@ " Key Bindings "============== " Leader key -let mapleader = ' ' +let mapleader = "\" let g:move_key_modifier = 'A' "~~~~~~~~~~~~~~~~~ diff --git a/.config/zsh/bindings b/.config/zsh/bindings index ceed9f8..1f50b99 100644 --- a/.config/zsh/bindings +++ b/.config/zsh/bindings @@ -33,13 +33,19 @@ bindkey -M vicmd "^f" f_run bindkey -M viins "^f" f_run # pac -pac_run() { pac; zle redisplay; } +pac_run() { + pac + zle redisplay +} zle -N pac_run bindkey -M vicmd "^p" pac_run bindkey -M viins "^p" pac_run # aur -aur_run() { aur; zle redisplay; } +aur_run() { + aur + zle redisplay +} zle -N aur_run bindkey -M vicmd "^a" aur_run bindkey -M viins "^a" aur_run diff --git a/.local/bin/scripts/aur b/.local/bin/scripts/aur index 08cca0a..622159d 100755 --- a/.local/bin/scripts/aur +++ b/.local/bin/scripts/aur @@ -2,4 +2,4 @@ # Menu with AUR packages. -yay -Slq | fzf -m --preview 'yay -Si {1}' | yay -S - +yay -Slq | fzf -m --preview 'yay -Si {1}' --height 45% | yay -S - diff --git a/.local/bin/scripts/pac b/.local/bin/scripts/pac index 8c73822..6cf1fab 100755 --- a/.local/bin/scripts/pac +++ b/.local/bin/scripts/pac @@ -2,7 +2,4 @@ # Menu with official repository packages. -package="$(pacman -Slq | fzf -m --preview 'pacman -Si {1}')" -[ ! "$package" ] && exit - -sudo pacman -S "$package" +pacman -Slq | fzf -m --preview 'yay -Si {1}' --height 45% | yay -S - diff --git a/.local/bin/scripts/setwall b/.local/bin/scripts/setwall index 4c50be7..801395d 100755 --- a/.local/bin/scripts/setwall +++ b/.local/bin/scripts/setwall @@ -2,7 +2,7 @@ # Set desktop background. -[ "$1" ] && { xwallpaper --maximize "$1" && exit 1; } +[ "$1" ] && { xwallpaper --zoom "$1" && exit 1; } if [ "$(cat /etc/hostname)" = "pc" ]; then res="1920x1080" diff --git a/.xinitrc b/.xinitrc index f770d95..dcd9b79 100644 --- a/.xinitrc +++ b/.xinitrc @@ -6,11 +6,6 @@ picom & mpd & dunst & -setxkbmap -layout 'pl' -option caps:swapescape & -xset r rate 300 50 & -xsetroot -cursor_name left_ptr & -xmodmap -e "keycode 135 = Super_L" & -unclutter -idle 2 & syncthing -no-browser & telegram-desktop & @@ -19,3 +14,9 @@ xrdb ~/.config/Xresources & setwall & dbar & exec ~/.local/bin/scripts/startdwm + +setxkbmap -layout 'pl' -option caps:swapescape & +xset r rate 300 50 & +xsetroot -cursor_name left_ptr & +xmodmap -e "keycode 135 = Super_L" & +unclutter -idle 2 &