summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-08-17 20:27:50 +0100
committerubq323 <ubq323@ubq323.website>2023-08-17 20:27:50 +0100
commit46596692dcbd30c8d105d79b96aacc8b9f3bd12f (patch)
tree4afa514392f2f6338642258db52e863831384c93
parentfce7ca54f045c8b9259a7ed504a4d672651aac2b (diff)
pasting, pipewire
-rw-r--r--.config/kak/kakrc12
-rw-r--r--.config/sway/config1
-rwxr-xr-xbin/status.sh4
3 files changed, 13 insertions, 4 deletions
diff --git a/.config/kak/kakrc b/.config/kak/kakrc
index c5ab4a7..fb2baec 100644
--- a/.config/kak/kakrc
+++ b/.config/kak/kakrc
@@ -15,6 +15,14 @@ hook global WinSetOption filetype=python %{
map global user <c> ':comment-line<ret>' -docstring 'comment line'
-map global user <x> '<a-|>wl-copy<ret>' -docstring 'wl-copy'
-
+# map global user <x> '<a-|>wl-copy<ret>' -docstring 'wl-copy'
add-highlighter global/longline column 70 ,rgb:333333
+
+
+evaluate-commands %sh{
+ copy='printf "\033]52;;%s\033\\" $(base64 | tr -d "\n") > $( [ -n "$kak_client_pid" ] && echo /proc/$kak_client_pid/fd/0 || echo /dev/tty )'
+ backend='OSC 52'
+ printf "map global user -docstring 'yank to primary' y '<a-|>%s<ret>:echo -markup %%{{Information}copied selection to %s primary}<ret>'\n" "$copy" "$backend"
+}
+
+
diff --git a/.config/sway/config b/.config/sway/config
index 1adb4e9..472663f 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -27,6 +27,7 @@ input type:touchpad {
exec pipewire
exec wireplumber
+exec pipewire-pulse
bindsym $mod+Return exec exec $term
bindsym $mod+Shift+q kill
diff --git a/bin/status.sh b/bin/status.sh
index dd75c41..a618f5b 100755
--- a/bin/status.sh
+++ b/bin/status.sh
@@ -24,9 +24,9 @@ puts '['
while true; do
puts '['
- volinfo="$(amixer get Master | grep 'Mono:')"
+ volinfo="$(amixer get Master | grep 'Front Left:')"
vol_level="$(printf %s "$volinfo" | awk -F'[][]' '{print $2}')"
- vol_enabled="$(printf %s "$volinfo" | awk -F'[][]' '{print $6}')"
+ vol_enabled="$(printf %s "$volinfo" | awk -F'[][]' '{print $4}')"
color="#ffffff"; bl=""; br=""
[ "$vol_enabled" = "off" ] && { color="#ffff00"; bl="("; br=")"; }
block_color "vol $bl$vol_level$br" "$color"