Added clipboard functionality to config/.script/screenshot.sh
Fixed window screenshot in config/.config/i3/config Made terminal transparent againclean_emacs
parent
45db1378c2
commit
c0d11e4b79
|
@ -15,3 +15,12 @@ URxvt.matcher.button: 1
|
|||
! Keyboard-select
|
||||
URxvt.keysym.M-Escape: perl:keyboard-select:activate
|
||||
URxvt.keyboard-select.clipboard: true
|
||||
|
||||
! Term
|
||||
urxvt*transparent: true
|
||||
urxvt*shading: 20
|
||||
urxvt*blurRadius: 15
|
||||
|
||||
! Xft
|
||||
Xft.dpi: 92
|
||||
Xft.antialias: 1
|
||||
|
|
|
@ -34,4 +34,3 @@
|
|||
! white
|
||||
*.color7: #98abb2
|
||||
*.color15: #c0bfbc
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ bindsym $mod+m exec thunderbird
|
|||
bindsym Control+Print exec --no-startup-id ~/.scripts/screenshot.sh screen
|
||||
|
||||
# Window
|
||||
bindsym Mod1+Print --release exec --no-startup-id ~/.scripts/screenshot.sh window
|
||||
bindsym Mod1+Sys_Req --release exec --no-startup-id ~/.scripts/screenshot.sh window
|
||||
|
||||
# Area
|
||||
bindsym Print --release exec --no-startup-id ~/.scripts/screenshot.sh area
|
||||
|
|
|
@ -9,5 +9,5 @@ t:/home/tuan/Templates
|
|||
w:/home/tuan/workspace_l/Projects
|
||||
k:/home/tuan/Documents/CTF/TryHackMe/VulnUniversity
|
||||
q:/home/tuan/.nextcloud/Quick Drop
|
||||
':/home/tuan/.byobu
|
||||
':/home/tuan/Pictures/Screenshots
|
||||
e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon
|
||||
|
|
|
@ -7,16 +7,19 @@ case $1 in
|
|||
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
|
||||
maim -f png $d/$filename;
|
||||
dunstify -r 2 "Saved screenshot of screen in $d/$filename";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
;;
|
||||
"window"*)
|
||||
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png
|
||||
maim -u -i $(xdotool getactivewindow) -f png $d/$filename;
|
||||
dunstify -r 2 "Saved screenshot of window in $d/$filename";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
;;
|
||||
"area"*)
|
||||
dunstify -r 2 'Taking screenshot from area.';
|
||||
filename=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)_$(date +%G-%m-%d_%H-%M-%S).png;
|
||||
maim -u -s -f png $d/$filename;
|
||||
dunstify -r 2 "Saved in $d/$filename.";
|
||||
xclip -selection clipboard -t image/png -i $d/$filename
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -4,5 +4,5 @@ augroup templates
|
|||
autocmd BufNewFile *.* silent! execute '0r $HOME/.vim/templates/skeleton.'.expand("<afile>:e")
|
||||
|
||||
" parse special text in the templates after the read
|
||||
autocmd BufNewFile * %substitute#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
|
||||
autocmd BufNewFile * %s#\[:VIM_EVAL:\]\(.\{-\}\)\[:END_EVAL:\]#\=eval(submatch(1))#ge
|
||||
augroup END
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
---
|
||||
title:
|
||||
title: [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:]
|
||||
author: Tuan-Dat Tran
|
||||
date: [:VIM_EVAL:]strftime('%Y-%m-%d')[:END_EVAL:]
|
||||
...
|
||||
|
||||
# [:VIM_EVAL:]system ("basename $(pwd)")[:END_EVAL:]
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
#!/bin/sh
|
|
@ -2,7 +2,8 @@
|
|||
export ZSH="$HOME/.oh-my-zsh"
|
||||
export PATH="$PATH:$HOME/.go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools"
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
export SecList=$HOME/Local/PenTesting/SecLists/
|
||||
export PenTestTools=$HOME/Local/PenTesting/
|
||||
export CTF=$HOME/Documents/CTF/
|
||||
|
||||
|
||||
# Alias
|
||||
|
|
Loading…
Reference in New Issue