Add screenshot tool
This commit is contained in:
parent
c7cbf35e15
commit
0dc9ab97ab
6 changed files with 32 additions and 5 deletions
|
@ -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 s3cmd="s3cmd --config=$XDG_CONFIG_HOME/s3cmd/config"
|
||||
alias sudo='sudo '
|
||||
|
||||
alias wget='wget -c'
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#!/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)
|
||||
if [[ $host_name == "portalo" ]]; then
|
||||
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' desktop='voip'
|
||||
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
|
||||
bspc rule -a 'Element' desktop='voip' locked='true'
|
||||
bspc rule -a 'Element (Riot)' desktop='voip' locked='true'
|
||||
|
|
|
@ -18,8 +18,10 @@ super + p
|
|||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
super + {_, ctrl +, shift + } Print
|
||||
suas {sel, win, }
|
||||
#super + {_, ctrl +, shift + } Print
|
||||
# suas {sel, win, }
|
||||
super + Print
|
||||
screenshot
|
||||
|
||||
super + Pause
|
||||
rofi-shutdown
|
||||
|
|
|
@ -10,7 +10,7 @@ case "$action" in
|
|||
systemctl reboot
|
||||
;;
|
||||
"Logout")
|
||||
bspc quit
|
||||
systemctl --user exit
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
|
19
.local/bin/screenshot
Executable file
19
.local/bin/screenshot
Executable 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
|
||||
|
||||
|
||||
|
||||
|
|
@ -52,7 +52,8 @@ _autostart_on_launch()
|
|||
sleep 1
|
||||
|
||||
### Workspace VOIP
|
||||
teamspeak3 &
|
||||
#teamspeak3 &
|
||||
/opt/teamspeak5/TeamSpeak &
|
||||
#sleep 2
|
||||
#alacritty --class "mail" --command sh -c "neomutt" &
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in a new issue