terminal is now xiate

This commit is contained in:
Franzi 2021-04-17 12:06:15 +02:00
parent ba39e3f3be
commit 99bda4ba71
Signed by untrusted user: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 28 additions and 3 deletions

4
.bin/xiate-history-handler Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
trap 'rm -f "$1"' EXIT
xiate -name xiate-history -e vim -R "$1"

13
.bin/xiate-link-handler Executable file
View file

@ -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")"

View file

@ -1,9 +1,8 @@
set -U -x EDITOR vim set -U -x EDITOR vim
set -U -x MPD_HOST 172.19.138.20 set -U -x MPD_HOST 172.19.138.20
set -U fish_features stderr-nocaret qmark-noglob 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 weechat='mosh htz.ex42-1048908 -- tmux attach-session -d -t weechat-tmux'
alias voc-ansible='/home/kunsi/.bin/voc-ansible' alias voc-ansible='/home/kunsi/.bin/voc-ansible'
alias share-via-ssh='/home/kunsi/git/share-via-ssh/share-via-ssh' alias share-via-ssh='/home/kunsi/git/share-via-ssh/share-via-ssh'
@ -36,3 +35,11 @@ end
function fish_command_not_found function fish_command_not_found
__fish_default_command_not_found_handler $argv[1] __fish_default_command_not_found_handler $argv[1]
end 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

View file

@ -5,7 +5,7 @@ font pango:DejaVuSans Regular 8
floating_modifier $mod floating_modifier $mod
bindsym $mod+Return exec gnome-terminal bindsym $mod+Return exec xiate
bindsym $mod+Shift+x kill 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="Pavucontrol"] floating enable
for_window [class="Gnome-calculator"] floating enable for_window [class="Gnome-calculator"] floating enable
for_window [class="realvnc-vncviewer"] floating enable for_window [class="realvnc-vncviewer"] floating enable
for_window [class="xiate-history"] floating enable
workspace 1 output DP2-2 workspace 1 output DP2-2
workspace 2 output DP2-1 workspace 2 output DP2-1