cliphist
This commit is contained in:
@@ -28,7 +28,7 @@ PACKAGES=(
|
||||
|
||||
greetd sway swaybg swayidle # desktop basic
|
||||
alacritty wmenu i3blocks mako libnotify # terminals, ui
|
||||
wev wl-clipboard wtype slurp grim # interaction
|
||||
wev wl-clipboard cliphist wtype slurp grim # interaction
|
||||
ttf-roboto ttf-roboto-mono otf-font-awesome # fonts
|
||||
kvantum kvantum-qt5 kvantum-theme-materia materia-gtk-theme # themes
|
||||
|
||||
|
||||
7
arch-user/bin/sway/paste-from-history.sh
Executable file
7
arch-user/bin/sway/paste-from-history.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
item="$(cliphist list | ~/.local/bin/menu/vertical.sh -p paste)"
|
||||
if [ -n "$item" ]; then
|
||||
echo "$item" | cliphist decode | wl-copy
|
||||
wtype -M ctrl v -m ctrl
|
||||
fi
|
||||
|
||||
@@ -161,6 +161,7 @@ bindsym --to-code {
|
||||
$mod+x exec wtype -M ctrl x -m ctrl
|
||||
$mod+c exec wtype -M ctrl c -m ctrl
|
||||
$mod+v exec wtype -M ctrl v -m ctrl
|
||||
$altmod+v exec ~/.local/bin/sway/paste-from-history.sh
|
||||
$mod+Slash exec ~/.local/bin/sway/search-mode.sh
|
||||
$mod+z focus child
|
||||
}
|
||||
@@ -181,6 +182,11 @@ floating_modifier $mod normal
|
||||
bindsym --to-code {
|
||||
# generic
|
||||
$mod+Escape kill
|
||||
# basic scripts
|
||||
$mod+Return exec alacritty msg create-window
|
||||
$altmod+Return exec alacritty
|
||||
$mod+Colon exec ~/.local/bin/sway/command-mode.sh
|
||||
$mod+Space exec ~/.local/bin/menu/run.sh
|
||||
# media
|
||||
XF86MonBrightnessDown exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%-
|
||||
XF86MonBrightnessUp exec ~/.local/bin/sway/brightness-set-and-notify.sh 5%+
|
||||
@@ -189,11 +195,6 @@ bindsym --to-code {
|
||||
XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+2 i3blocks
|
||||
XF86Calculator exec .local/bin/menu/run-calc.sh calc tui
|
||||
# basic scripts
|
||||
$mod+Return exec alacritty msg create-window
|
||||
$altmod+Return exec alacritty
|
||||
$mod+Colon exec ~/.local/bin/sway/command-mode.sh
|
||||
$mod+Space exec ~/.local/bin/menu/run.sh
|
||||
}
|
||||
##############################################
|
||||
|
||||
@@ -201,6 +202,7 @@ bindsym --to-code {
|
||||
exec mako
|
||||
exec swayidle
|
||||
exec alacritty --daemon
|
||||
exec wl-paste --watch cliphist store
|
||||
##############################################
|
||||
|
||||
############## app-specific ##################
|
||||
|
||||
Reference in New Issue
Block a user