-
I have two bash scripts, one that should execute on startup; 1 #!/bin/bash
2
3 if xrandr | grep "HDMI1 connected"; then
4 # Execute mons -e left
5 mons -e left
6 fi Another one that is executed upon a keybind; 1 #!/bin/bash
2
3 temp_file=$(mktemp /tmp/screenshot.XXXXXX.png)
4
5 import "$temp_file"
6
7 xclip -selection clipboard -t image/png -i "$temp_file"
8
9 rm "$temp_file" I have tried moving these scripts to various locations such as I have also tried with and without the I have even tried combining the scripts into one exec command to look like this in my i3 config: Any ideas would be much appreciated... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Are these scripts executable? If not, make them executable with: |
Beta Was this translation helpful? Give feedback.
-
This is what my
|
Beta Was this translation helpful? Give feedback.
-
Correct syntax here is:
|
Beta Was this translation helpful? Give feedback.
Correct syntax here is: