Moved sway script into separate directory
This commit is contained in:
parent
c61227779e
commit
8f0eccefde
16
sway/config
16
sway/config
|
@ -13,13 +13,10 @@ set $term kitty
|
||||||
################################################################################
|
################################################################################
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: it's recommended that you pass the final command to sway
|
# Note: it's recommended that you pass the final command to sway
|
||||||
set $menu rofi -m $(expr $(swaymsg -t get_tree | jq '.nodes | map([recurse(.nodes[]?, .floating_nodes[]?) | .focused] | any) | index(true)') - 1) -show drun -p run -run-command 'swaymsg exec -- {cmd}'
|
set $menu bash ~/.config/sway/scripts/menu
|
||||||
|
set $gopass_menu bash ~/.config/sway/scripts/menu_gopass
|
||||||
set $gopass_menu gopass ls --flat \
|
set $clipman_menu bash ~/.config/sway/scripts/menu_clipman
|
||||||
| rofi -dmenu -p pass -i \
|
set $printscreen bash ~/.config/sway/scripts/printscreen
|
||||||
| xargs --no-run-if-empty gopass show -c
|
|
||||||
|
|
||||||
set $clipman_menu clipman --selector="rofi" --select
|
|
||||||
|
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
|
@ -113,15 +110,12 @@ bindsym $mod+Shift+0 move container to workspace 10
|
||||||
# Note: workspaces can have any name you want, not just numbers.
|
# Note: workspaces can have any name you want, not just numbers.
|
||||||
# We just use 1-10 as the default.
|
# We just use 1-10 as the default.
|
||||||
#
|
#
|
||||||
bindsym print exec file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png \
|
|
||||||
&& grim -g "$(slurp)" $file \
|
|
||||||
&& wl-copy $file \
|
|
||||||
&& notify-send -i $file "File copied to clipboard"
|
|
||||||
|
|
||||||
#bindsym $mod+print exec file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').mp4 \
|
#bindsym $mod+print exec file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').mp4 \
|
||||||
## && wf-recorder -g "$(slurp)" $file \
|
## && wf-recorder -g "$(slurp)" $file \
|
||||||
## && wl-copy $file \
|
## && wl-copy $file \
|
||||||
## && notify-send -i $file "File copied to clipboard"
|
## && notify-send -i $file "File copied to clipboard"
|
||||||
|
bindsym print exec $printscreen
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Layout stuff:
|
# Layout stuff:
|
||||||
|
|
5
sway/scripts/menu
Executable file
5
sway/scripts/menu
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#! /bin/sh
|
||||||
|
rofi \
|
||||||
|
-show drun \
|
||||||
|
-p run \
|
||||||
|
-run-command 'swaymsg exec -- {cmd}'
|
2
sway/scripts/menu_clipman
Executable file
2
sway/scripts/menu_clipman
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#! /bin/sh
|
||||||
|
clipman --selector="rofi" --select
|
4
sway/scripts/menu_gopass
Executable file
4
sway/scripts/menu_gopass
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#! /bin/sh
|
||||||
|
gopass ls --flat \
|
||||||
|
| rofi -dmenu -p pass -i \
|
||||||
|
| xargs --no-run-if-empty gopass show -c
|
6
sway/scripts/printscreen
Executable file
6
sway/scripts/printscreen
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
file=~/Pictures/Screenshots/Screenshot-$(date '+%Y%m%d%H%M%S').png
|
||||||
|
grim -g "$(slurp)" $file \
|
||||||
|
&& wl-copy $file \
|
||||||
|
&& notify-send -i $file "File copied to clipboard"
|
Loading…
Reference in New Issue
Block a user