From 1dd04028d14f5884eeed5378de1ccfdded4d4388 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sat, 9 Nov 2024 17:41:28 +0100 Subject: [PATCH 1/4] [sway] fix waybar header --- .config/waybar/config | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index a444e02..b20eaeb 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,22 +1,22 @@ -#================================================================================# -# Waybar Configuration File # -#--------------------------------------------------------------------------------# -# Purpose: Creates a minimalistic (yet functional) waybar at # -# the top of the screen. # -# themes and colors, set the wallpaper, and more. # -# # -# License: Creative Commons Attribution 4.0 International # -# Source: https:#www.learnlinux.tv # -# Author: Gregory Trolliet # -# # -# Credit: # -# Battery section adapted from: # -# https://github.com/Egosummiki/dotfiles/blob/master/waybar/config # -# # -# Pipewire audio adapted from: # -# https://www.reddit.com/r/swaywm/comments/sks343/ # -# pwvolume_pipewire_volume_control_and_waybar_module # -#================================================================================# +//================================================================================// +// Waybar Configuration File // +//--------------------------------------------------------------------------------// +// Purpose: Creates a minimalistic (yet functional) waybar at // +// the top of the screen. // +// themes and colors, set the wallpaper, and more. // +// // +// License: Creative Commons Attribution 4.0 International // +// Source: https://www.learnlinux.tv // +// Author: Gregory Trolliet Date: Sat, 9 Nov 2024 17:41:48 +0100 Subject: [PATCH 2/4] [sway] remove wrong char --- .config/sway/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 61453e9..6608f80 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -6,7 +6,7 @@ # # # License: Creative Commons Attribution 4.0 International # # Source: https://www.learnlinux.tv # -# Author: Gregory Trolliet Date: Sat, 9 Nov 2024 17:51:35 +0100 Subject: [PATCH 3/4] [sway] fix missing } at the end of file --- .config/waybar/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index b20eaeb..5c6afbe 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -96,4 +96,4 @@ "interval": "once", "on-click": "/usr/bin/rxvt -e /usr/bin/htop", }, - +} From dcfc30a56109c1adcea9a518a80177e795f766fe Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Sat, 9 Nov 2024 17:52:14 +0100 Subject: [PATCH 4/4] [sway] add screen capture --- .config/sway/config | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.config/sway/config b/.config/sway/config index 6608f80..e0c5c17 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -160,6 +160,19 @@ mode "present" { } bindsym $mod+p mode "present" +#========================# +# Screen capture # +#========================# + +# save screen to ~/Pictures +bindsym Print exec grim +# save a region to ~/Pictures +bindsym Shift+Print exec grim -g "$(slurp)" +# send screen to clipboard +bindsym Ctrl+Print exec grim - | wl-copy +# send a region to clipboard +bindsym Ctrl+Shift+Print exec grim -g "$(slurp)" - | wl-copy + #=================================# # Keyboard Shortcuts (Workspaces) # #=================================#