bash: add e and se alias for editing files with emacs
[~bandali/configs] / .config / sway / config
index 73a291b..dded332 100644 (file)
@@ -21,9 +21,13 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
 #
 # You can get the names of your outputs by running: swaymsg -t get_outputs
 
-output DP-1 res 2560x1440 pos 1366,0
+# output DP-1 res 2560x1440 pos 1366,0
+# # 672 = 1440 - 768
+# output LVDS-1 pos 0,760
+
+output DP-1 res 2560x1440 pos 0,0
 # 672 = 1440 - 768
-output LVDS-1 pos 0,760
+output LVDS-1 pos 2560,760
 
 ### Idle configuration
 
@@ -269,7 +273,7 @@ mode notifications {
 set $mode_screenshot (a)ll | (r)egion
 mode "$mode_screenshot" {
     bindsym a exec grim $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
-    bindsym r exec slurp | grim -g - $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
+    bindsym r exec grim -g "$(slurp)" $(xdg-user-dir PICTURES)/shots/$(date +'%Y-%m-%d-%H%M%S.png'); mode default
 
     bindsym Escape mode default
     bindsym q      mode default