summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/bukuadd_c7
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
3SESH=$(loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}') 3if command -v wl-paste &> /dev/null
4 4then
5if [[ "$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")
8else 7else