Add screenshot tool

This commit is contained in:
Tobias Reisinger 2021-03-30 22:59:59 +02:00
parent c7cbf35e15
commit 0dc9ab97ab
6 changed files with 32 additions and 5 deletions

View file

@ -45,7 +45,6 @@ alias qutebrowser-kiosk='qutebrowser -B $XDG_DATA_HOME/qutebrowser-kiosk -C $XDG
alias rm='rm -I --one-file-system -v' alias rm='rm -I --one-file-system -v'
alias s3cmd="s3cmd --config=$XDG_CONFIG_HOME/s3cmd/config"
alias sudo='sudo ' alias sudo='sudo '
alias wget='wget -c' alias wget='wget -c'

View file

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
bspc config normal_border_color "#44475a"
bspc config active_border_color "#bd93f9"
bspc config focused_border_color "#ff79c6"
bspc config presel_feedback_color "#6272a4"
host_name=$(cat /proc/sys/kernel/hostname) host_name=$(cat /proc/sys/kernel/hostname)
if [[ $host_name == "portalo" ]]; then if [[ $host_name == "portalo" ]]; then
primary="HDMI-A-0" primary="HDMI-A-0"
@ -50,6 +55,7 @@ bspc rule -a 'Brave-browser:brave-browser' follow='true' desktop='side-view'
bspc rule -a 'TeamSpeak 3' desktop='voip' locked='true' bspc rule -a 'TeamSpeak 3' desktop='voip' locked='true'
bspc rule -a '*:*:TeamSpeak' desktop='voip'
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true' bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
bspc rule -a 'Element' desktop='voip' locked='true' bspc rule -a 'Element' desktop='voip' locked='true'
bspc rule -a 'Element (Riot)' desktop='voip' locked='true' bspc rule -a 'Element (Riot)' desktop='voip' locked='true'

View file

@ -18,8 +18,10 @@ super + p
super + Escape super + Escape
pkill -USR1 -x sxhkd pkill -USR1 -x sxhkd
super + {_, ctrl +, shift + } Print #super + {_, ctrl +, shift + } Print
suas {sel, win, } # suas {sel, win, }
super + Print
screenshot
super + Pause super + Pause
rofi-shutdown rofi-shutdown

View file

@ -10,7 +10,7 @@ case "$action" in
systemctl reboot systemctl reboot
;; ;;
"Logout") "Logout")
bspc quit systemctl --user exit
;; ;;
*) *)
;; ;;

19
.local/bin/screenshot Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env sh
s3_bucket=public.serguzim.me/screenshots
s3_host=https://sos-de-fra-1.exo.io
path=/tmp/screenshot.png
if flameshot gui -r > $path
then
file=$(date "+%F_%H-%M-%S").png
xclip -t image/png $path -selection clipboard
s3cmd put -P $path s3://$s3_bucket/$file
echo "$s3_host/$s3_bucket/$file" | xclip -selection primary
fi

View file

@ -52,7 +52,8 @@ _autostart_on_launch()
sleep 1 sleep 1
### Workspace VOIP ### Workspace VOIP
teamspeak3 & #teamspeak3 &
/opt/teamspeak5/TeamSpeak &
#sleep 2 #sleep 2
#alacritty --class "mail" --command sh -c "neomutt" & #alacritty --class "mail" --command sh -c "neomutt" &
sleep 1 sleep 1