summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorYigit Sever2024-08-20 09:15:32 +0200
committerYigit Sever2024-08-20 09:15:32 +0200
commit65b480d55540dee71f5fadcbd6d956bab8402ff1 (patch)
tree185322745f7ac3479e332f475aa70a9f206a3a79 /.local
parent980b249ede1f99a7a9f5555ac01a9b67a3968493 (diff)
downloaddotfiles-65b480d55540dee71f5fadcbd6d956bab8402ff1.tar.gz
dotfiles-65b480d55540dee71f5fadcbd6d956bab8402ff1.tar.bz2
dotfiles-65b480d55540dee71f5fadcbd6d956bab8402ff1.zip
bukuadd_c: better wayland/x11
Diffstat (limited to '.local')
-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