chore(sway): update config
This commit is contained in:
parent
eb9ff171fb
commit
3b48d97418
10
sway/config
10
sway/config
@ -205,9 +205,9 @@ bindsym $mod+Shift+minus move scratchpad
|
|||||||
bindsym $mod+minus scratchpad show
|
bindsym $mod+minus scratchpad show
|
||||||
|
|
||||||
# Resizing containers
|
# Resizing containers
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "Resize"
|
||||||
|
|
||||||
mode "resize" {
|
mode "Resize" {
|
||||||
# left will shrink the containers width
|
# left will shrink the containers width
|
||||||
bindsym $left resize shrink width 10px
|
bindsym $left resize shrink width 10px
|
||||||
# right will grow the containers width
|
# right will grow the containers width
|
||||||
@ -219,12 +219,13 @@ mode "resize" {
|
|||||||
|
|
||||||
# Return to default mode
|
# Return to default mode
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
|
bindsym $mod+r mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
# screenshot
|
# screenshot
|
||||||
bindsym Print mode "screenshot"
|
bindsym Print mode "Screenshot"
|
||||||
|
|
||||||
mode "screenshot" {
|
mode "Screenshot" {
|
||||||
bindsym Mod4+s+v exec grimshot save active - | swappy -f -
|
bindsym Mod4+s+v exec grimshot save active - | swappy -f -
|
||||||
bindsym $mod+c+v exec grimshot copy active
|
bindsym $mod+c+v exec grimshot copy active
|
||||||
bindsym $mod+s+a exec grimshot save area - | swappy -f -
|
bindsym $mod+s+a exec grimshot save area - | swappy -f -
|
||||||
@ -235,6 +236,7 @@ mode "screenshot" {
|
|||||||
|
|
||||||
# Return to default mode
|
# Return to default mode
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
|
bindsym Print mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Status Bar:
|
# Status Bar:
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pid="$(pgrep "wf-recorder" || pgrep "slurp")"
|
main() {
|
||||||
status=$?
|
local pid="$(pgrep "wf-recorder" || pgrep "slurp")"
|
||||||
|
|
||||||
if [[ $status != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
GEO="$(slurp)" && wf-recorder -g "$GEO" -f "$HOME/Pictures/$(date +'recording_%Y-%m-%d-%H%M%S.mp4')"
|
GEO="$(slurp)" && wf-recorder -g "$GEO" -f "$HOME/Pictures/$(date +'recording_%Y-%m-%d-%H%M%S.mp4')"
|
||||||
else
|
else
|
||||||
pkill --signal SIGINT wf-recorder
|
pkill --signal SIGINT wf-recorder
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
Loading…
x
Reference in New Issue
Block a user