From 5230a48d54a167c6c61f6bd71c752928d40f6782 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 18 Nov 2022 14:33:17 -0800 Subject: i3: bind F11 to flameshot for screenshots --- dot_config/flameshot/flameshot.ini | 12 ++++++++++++ dot_config/i3/config | 8 +++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 dot_config/flameshot/flameshot.ini diff --git a/dot_config/flameshot/flameshot.ini b/dot_config/flameshot/flameshot.ini new file mode 100644 index 0000000..6f4616a --- /dev/null +++ b/dot_config/flameshot/flameshot.ini @@ -0,0 +1,12 @@ +[General] +contrastOpacity=188 +copyOnDoubleClick=true +drawColor=#ffffff +filenamePattern=Snipaste_%F_%H-%M-%S +saveAfterCopy=true +saveAsFileExtension=png +savePath=/home/clarkzjw/Documents/sync/Pictures/Screenshots/2022 +savePathFixed=true +showHelp=true +showStartupLaunchMessage=false +startupLaunch=true diff --git a/dot_config/i3/config b/dot_config/i3/config index ef94027..6116923 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -190,7 +190,6 @@ bindsym F1 exec ~/.config/i3/scripts/keyhint-2 # switch between builtin monitor and external monitors bindsym F9 exec --no-startup-id ~/.config/i3/scripts/monitor - # Backlight control bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" @@ -267,10 +266,13 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl previous # Redirect sound to headphones #bindsym $mod+p exec /usr/local/bin/switch-audio-port -## App shortcuts +# App shortcuts bindsym $mod+w exec /usr/bin/firefox bindsym $mod+n exec /usr/bin/thunar -bindsym Print exec --no-startup-id mkdir -p ~/Pictures/Screenshot/`date +"%Y/%m"` && scrot ~/Pictures/Screenshot/%Y/%m/%Y-%m-%d-%T-screenshot.png && notify-send "Screenshot saved" + +# Screenshot +bindsym Print exec --no-startup-id flameshot gui +bindsym $mod+Print exec --no-startup-id flameshot full # Power Profiles menu switcher (rofi) bindsym $mod+Shift+p exec --no-startup-id ~/.config/i3/scripts/power-profiles -- cgit v1.2.3