From 99bda4ba71dac2349091842930f5027e82834188 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 17 Apr 2021 12:06:15 +0200 Subject: [PATCH] terminal is now xiate --- .bin/{daily.sh => backup-and-update-system} | 0 .bin/xiate-history-handler | 4 ++++ .bin/xiate-link-handler | 13 +++++++++++++ .config/fish/config.fish | 11 +++++++++-- .config/i3/config | 3 ++- 5 files changed, 28 insertions(+), 3 deletions(-) rename .bin/{daily.sh => backup-and-update-system} (100%) create mode 100755 .bin/xiate-history-handler create mode 100755 .bin/xiate-link-handler diff --git a/.bin/daily.sh b/.bin/backup-and-update-system similarity index 100% rename from .bin/daily.sh rename to .bin/backup-and-update-system diff --git a/.bin/xiate-history-handler b/.bin/xiate-history-handler new file mode 100755 index 0000000..607fb30 --- /dev/null +++ b/.bin/xiate-history-handler @@ -0,0 +1,4 @@ +#!/bin/sh + +trap 'rm -f "$1"' EXIT +xiate -name xiate-history -e vim -R "$1" diff --git a/.bin/xiate-link-handler b/.bin/xiate-link-handler new file mode 100755 index 0000000..7e68844 --- /dev/null +++ b/.bin/xiate-link-handler @@ -0,0 +1,13 @@ +#!/bin/sh + +# $1 = "explicit" or "match" +# $2 = URL + +# Save all links to a file for debugging (and, yeah, to have a history). +linkhist=/tmp/xiate-link-history-$USER/history +install -dm0700 "$(dirname "$linkhist")" +printf "%s [%s] [%s]\n" "$(date)" "$1" "$2" >>"$linkhist" + +printf "%s" "$2" | xclip -selection clipboard + +notify-send -u low -t 5000 -a xiate-link-handler "copied link to clipboard" "$(printf "%s" "$2")" diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2b5fcd3..492c64f 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,9 +1,8 @@ set -U -x EDITOR vim set -U -x MPD_HOST 172.19.138.20 set -U fish_features stderr-nocaret qmark-noglob -set PATH /home/kunsi/.local/bin /home/kunsi/.gem/ruby/2.6.0/bin/ $PATH +set PATH $PATH /home/kunsi/.local/bin /home/kunsi/.gem/ruby/2.6.0/bin/ /home/kunsi/.bin -alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias weechat='mosh htz.ex42-1048908 -- tmux attach-session -d -t weechat-tmux' alias voc-ansible='/home/kunsi/.bin/voc-ansible' alias share-via-ssh='/home/kunsi/git/share-via-ssh/share-via-ssh' @@ -36,3 +35,11 @@ end function fish_command_not_found __fish_default_command_not_found_handler $argv[1] end + +function fish_title + echo (status current-command) +end + +function config --wraps=/usr/bin/git + /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $argv; +end diff --git a/.config/i3/config b/.config/i3/config index 2b1ac09..0b07aa7 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -5,7 +5,7 @@ font pango:DejaVuSans Regular 8 floating_modifier $mod -bindsym $mod+Return exec gnome-terminal +bindsym $mod+Return exec xiate bindsym $mod+Shift+x kill @@ -94,6 +94,7 @@ for_window [window_role="pop-up"] floating enable for_window [class="Pavucontrol"] floating enable for_window [class="Gnome-calculator"] floating enable for_window [class="realvnc-vncviewer"] floating enable +for_window [class="xiate-history"] floating enable workspace 1 output DP2-2 workspace 2 output DP2-1