Configure screenshot with Flameshot and handle clipboard with nwg-clipman

This commit is contained in:
Fabio Scotto di Santolo
2025-08-12 15:26:19 +02:00
parent ba40c4b29f
commit de4b6ae048
5 changed files with 28 additions and 7 deletions

View File

@@ -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 #

View File

@@ -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

View File

View File