diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/bukuadd_c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.local/bin/bukuadd_c b/.local/bin/bukuadd_c index 1ec34a7..eadd705 100755 --- a/.local/bin/bukuadd_c +++ b/.local/bin/bukuadd_c | |||
@@ -1,8 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | SESH=$(loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}') | 3 | if command -v wl-paste &> /dev/null |
4 | 4 | then | |
5 | if [[ "$SESH" = "wayland" ]]; then | ||
6 | url=$(wl-paste) | 5 | url=$(wl-paste) |
7 | tags=$(yad --entry --text="enter tags for $url") | 6 | tags=$(yad --entry --text="enter tags for $url") |
8 | else | 7 | else |