diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-20 17:53:42 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-20 17:53:42 +0200 |
commit | 448d79700296d8b1e61c976321ea1b7d6061b5ec (patch) | |
tree | 32aba06a8cf79ba87325441a519bac3ec62bef83 | |
parent | 2dfa7e799e6a153b21bc1ce6734e25a06276a6ae (diff) | |
parent | d6a21ceb1fee35e63198f799b24cd2b504403058 (diff) |
Merge branch 'main' of db:dotfiles
-rwxr-xr-x | bin/common/ytclipo | 1 | ||||
-rw-r--r-- | config/essentials/nvim/ftplugin/telekasten.lua | 2 | ||||
-rw-r--r-- | config/essentials/zsh/aliases.zsh | 1 | ||||
-rw-r--r-- | config/hyprland/hypr/binds.conf | 14 | ||||
-rwxr-xr-x | config/hyprland/hypr/screenshot.sh | 21 |
5 files changed, 30 insertions, 9 deletions
diff --git a/bin/common/ytclipo b/bin/common/ytclipo index 672633a..c283973 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -23,3 +23,4 @@ yt-dlp "$inp" \ -P "$HOME/vids" \ -o "%(title)s.%(ext)s" notify-send "ytclipo" "<b>ytclipo</b><br>finished downloading." +echo "$inp" >> /tmp/ytclipo_history diff --git a/config/essentials/nvim/ftplugin/telekasten.lua b/config/essentials/nvim/ftplugin/telekasten.lua index 99bb361..c920492 100644 --- a/config/essentials/nvim/ftplugin/telekasten.lua +++ b/config/essentials/nvim/ftplugin/telekasten.lua @@ -26,4 +26,4 @@ vim.keymap.set("i", "<LocalLeader>t", "<cmd>Telekasten toggle_todo<cr><Esc>A") vim.keymap.set("n", "<LocalLeader>y", "<cmd>Telekasten yank_notelink<cr>") vim.keymap.set("n", "<LocalLeader>z", "<cmd>Telekasten follow_link<cr>") -vim.keymap.set("i", "<LocalLeader>l", "<esc>![<esc>A]()<left><C-r>+<esc>A") +vim.keymap.set("i", "<LocalLeader>l", "<esc>I[<esc>A]()<left><C-r>+<esc>A") diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 5f4428a..25c4079 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -102,6 +102,7 @@ alias dloc='doas find / -type "d" 2> /dev/null | grep' alias fif='find . -type "f" | grep' alias fid='find . -type "d" | grep' alias sxt='sxiv -t' +alias wgsh='wget --quiet --show-progress' # ssh alias sha='ssh-add' diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index cc3ebf9..e1dc381 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -82,7 +82,7 @@ bind =, H, exec, mhelp bind =, I, exec, mapimg bind =, L, exec, dmlang bind =, M, exec, mpass -bind =, P, exec, dmpdf +bind =, P, exec, mpdf bind =, O, exec, mpower bind =, U, exec, mcurs bind =, V, exec, mvid @@ -96,7 +96,7 @@ bind = $mainMod, H, exec, mhelp bind = $mainMod, I, exec, mapimg bind = $mainMod, L, exec, dmlang bind = $mainMod, M, exec, mpass -bind = $mainMod, P, exec, dmpdf +bind = $mainMod, P, exec, mpdf bind = $mainMod, O, exec, mpower bind = $mainMod, U, exec, mcurs bind = $mainMod, V, exec, mvid @@ -114,9 +114,7 @@ bind =, XF86MonBrightnessDown, exec, light -U 5 bind = $mainMod SHIFT, B, exec, killall waybar; waybar -$actshot = grim -o "$(hyprctl monitors -j | jq -r ".[] | select(.id == "$(hyprctl activewindow -j | jq -r '.monitor')")" | jq -r '.name')" -$selshot = grim -g "$(slurp)" /dev/stdout | wl-copy - -bind = $mainMod ALT, S, exec, $actshot -bind = $mainMod SHIFT, S, exec, $selshot -bind = $mainMod ALT SHIFT, S, exec, $actshot /dev/stdout | wl-copy +bind = $mainMod ALT, S, exec, $HOME/.config/hypr/screenshot.sh -m +bind = $mainMod SHIFT, S, exec, $HOME/.config/hypr/screenshot.sh -sc +bind = $mainMod ALT SHIFT, S, exec, $HOME/.config/hypr/screenshot.sh -s +bind = $mainMod CTRL, S, exec, $HOME/.config/hypr/screenshot.sh -f diff --git a/config/hyprland/hypr/screenshot.sh b/config/hyprland/hypr/screenshot.sh new file mode 100755 index 0000000..533ca98 --- /dev/null +++ b/config/hyprland/hypr/screenshot.sh @@ -0,0 +1,21 @@ +case $1 in + "-m") + actwin="$(hyprctl activewindow -j | jq -r '.monitor')" + actmon="$(hyprctl monitors -j | + jq -r ".[] | select(.id == $actwin)" | + jq -r '.name')" + grim -o "$actmon" $HOME/pics/screenshots/"$(date +%y%m%d_%H_%M_%S.png)" + ;; + "-f") + grim $HOME/pics/screenshots/"$(date +%y%m%d_%H_%M_%S.png)" + ;; + "-s") + grim -g "$(slurp)" $HOME/pics/screenshots/"$(date +%y%m%d_%H_%M_%S.png)" + ;; + "-sc") + grim -g "$(slurp)" - | wl-copy + ;; + *) + exit + ;; +esac |