From de4b6ae04806d961ba1e3d80239239d7a9d61ef9 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Tue, 12 Aug 2025 15:26:19 +0200 Subject: [PATCH] Configure screenshot with Flameshot and handle clipboard with nwg-clipman --- flameshot/.config/flameshot/flameshot.ini | 10 ++++++++++ sway/.config/sway/conf.d/window.conf | 8 ++++---- sway/.config/sway/config | 17 ++++++++++++++--- sway/.config/sway/outputs | 0 sway/.config/sway/workspaces | 0 5 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 flameshot/.config/flameshot/flameshot.ini create mode 100644 sway/.config/sway/outputs create mode 100644 sway/.config/sway/workspaces diff --git a/flameshot/.config/flameshot/flameshot.ini b/flameshot/.config/flameshot/flameshot.ini new file mode 100644 index 0000000..0c76368 --- /dev/null +++ b/flameshot/.config/flameshot/flameshot.ini @@ -0,0 +1,10 @@ +[General] +contrastOpacity=188 +copyPathAfterSave=true +saveAfterCopy=false +saveAsFileExtension=png +savePath=/home/fscotto/Pictures/Screenshots +savePathFixed=true +showStartupLaunchMessage=false +startupLaunch=false +useGrimAdapter=true diff --git a/sway/.config/sway/conf.d/window.conf b/sway/.config/sway/conf.d/window.conf index e283d84..8640b29 100644 --- a/sway/.config/sway/conf.d/window.conf +++ b/sway/.config/sway/conf.d/window.conf @@ -40,10 +40,10 @@ #-------------------------------------------------------# # Sticky floating windows(sticky enable|disable|toggle) # #-------------------------------------------------------# - for_window [app_id="danmufloat"] floating enable - for_window [app_id="danmufloat"] sticky enable - for_window [app_id="danmufloat"] resize set height 540 - for_window [app_id="danmufloat"] resize set width 960 + for_window [app_id="nwg-clipman"] floating enable + for_window [app_id="nwg-clipman"] sticky enable + for_window [app_id="nwg-clipman"] resize set height 540 + for_window [app_id="nwg-clipman"] resize set width 960 #-----------------# # Program Opacity # diff --git a/sway/.config/sway/config b/sway/.config/sway/config index d5e21d2..ef02263 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -21,6 +21,9 @@ set $browser 'firefox' # Your preferred notification daemon set $notification 'mako' +# Your preferred clipboard manager +set $clipboard 'nwg-clipman --numbers --window' + # Set theme include themes/catppuccin-mocha @@ -70,7 +73,8 @@ exec $notification exec pipewire ### Run clipboard manager -exec wl-paste -t text --watch clipman store --no-persist +exec wl-paste -t text --watch cliphist store +exec wl-paste -t image --watch cliphist store ### OSD server exec swayosd-server @@ -78,6 +82,9 @@ exec swayosd-server ### Start terminal emulator exec $term +### Screenshot tool +exec flameshot + #----------------# # set gtk+ theme # #----------------# @@ -131,9 +138,12 @@ exec_always { # Start your launcher bindsym $mod+d exec $menu - # Star my browser + # Start my browser bindsym $mod+Shift+b exec $browser + # Start my clipboard manager + bindsym $mod+Shift+v exec $clipboard + # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. @@ -303,7 +313,8 @@ bindsym $mod+r mode "resize" # Brightness lower with custom value('-' sign needed) bindsym XF86MonBrightnessDown exec swayosd-client --brightness -5 # Special key to take a screenshot with grim - bindsym Print exec ~/.config/sway/scripts/screenshot.sh + # bindsym Print exec ~/.config/sway/scripts/screenshot.sh + bindsym Print exec flameshot gui -p ~/Pictures/Screenshots # bindsym Print exec grim # Lock the screen bindsym $mod+Alt+l exec $lockman diff --git a/sway/.config/sway/outputs b/sway/.config/sway/outputs new file mode 100644 index 0000000..e69de29 diff --git a/sway/.config/sway/workspaces b/sway/.config/sway/workspaces new file mode 100644 index 0000000..e69de29