diff options
author | Yigit Sever | 2024-08-20 09:15:32 +0200 |
---|---|---|
committer | Yigit Sever | 2024-08-20 09:15:32 +0200 |
commit | 65b480d55540dee71f5fadcbd6d956bab8402ff1 (patch) | |
tree | 185322745f7ac3479e332f475aa70a9f206a3a79 /.local/bin/bukuadd_c | |
parent | 980b249ede1f99a7a9f5555ac01a9b67a3968493 (diff) | |
download | dotfiles-65b480d55540dee71f5fadcbd6d956bab8402ff1.tar.gz dotfiles-65b480d55540dee71f5fadcbd6d956bab8402ff1.tar.bz2 dotfiles-65b480d55540dee71f5fadcbd6d956bab8402ff1.zip |
bukuadd_c: better wayland/x11
Diffstat (limited to '.local/bin/bukuadd_c')
-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 |