clip
This commit is contained in:
parent
5698150492
commit
6d85f129f1
4 changed files with 11 additions and 9 deletions
|
|
@ -37,7 +37,7 @@ set $term alacritty
|
||||||
set $menu exec $(~/.config/scripts/menu/menu run "Run:")
|
set $menu exec $(~/.config/scripts/menu/menu run "Run:")
|
||||||
set $menu-input ~/.config/scripts/menu/menu-input
|
set $menu-input ~/.config/scripts/menu/menu-input
|
||||||
set $menu-output ~/.config/scripts/menu/menu-output
|
set $menu-output ~/.config/scripts/menu/menu-output
|
||||||
set $menu-open-bookmark ~/.config/scripts/menu/menu-open-bookmark
|
set $menu-copy-bookmark ~/.config/scripts/menu/menu-copy-bookmark
|
||||||
set $passmgr ~/.config/scripts/dwm/dwmpass
|
set $passmgr ~/.config/scripts/dwm/dwmpass
|
||||||
set $passotp ~/.config/scripts/dwm/dwmotp
|
set $passotp ~/.config/scripts/dwm/dwmotp
|
||||||
set $prtsc exec ~/.config/scripts/prtsc
|
set $prtsc exec ~/.config/scripts/prtsc
|
||||||
|
|
@ -59,7 +59,7 @@ bindsym $mod+Shift+p exec $passmgr
|
||||||
bindsym $mod+Shift+o exec $passotp
|
bindsym $mod+Shift+o exec $passotp
|
||||||
bindsym $mod+e exec $filemgr
|
bindsym $mod+e exec $filemgr
|
||||||
bindsym $mod+w exec $browser
|
bindsym $mod+w exec $browser
|
||||||
bindsym $mod+b exec $menu-open-bookmark
|
bindsym $mod+b exec $menu-copy-bookmark
|
||||||
bindsym $mod+i exec $menu-input
|
bindsym $mod+i exec $menu-input
|
||||||
bindsym $mod+o exec $menu-output
|
bindsym $mod+o exec $menu-output
|
||||||
bindsym XF86AudioRaiseVolume exec volup
|
bindsym XF86AudioRaiseVolume exec volup
|
||||||
|
|
|
||||||
7
scripts/clip
Executable file
7
scripts/clip
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$GDK_BACKEND" = "x11" ]; then
|
||||||
|
xclip -selection clipboard
|
||||||
|
elif [ "$GDK_BACKEND" = "wayland" ]; then
|
||||||
|
wl-copy
|
||||||
|
fi
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
bm="$(menu-bookmarks)"
|
bm="$(menu-bookmarks)"
|
||||||
|
|
||||||
if [ -n "$bm" ]; then
|
if [ -n "$bm" ]; then
|
||||||
xdg-open "$bm"
|
printf '%s' "$bm" | clip
|
||||||
fi
|
fi
|
||||||
|
|
@ -50,10 +50,5 @@ alias \
|
||||||
scp="scp ${SSH_CONFIG}" \
|
scp="scp ${SSH_CONFIG}" \
|
||||||
rsync="rsync --rsh \"ssh ${SSH_CONFIG}\"" \
|
rsync="rsync --rsh \"ssh ${SSH_CONFIG}\"" \
|
||||||
lg="lazygit" \
|
lg="lazygit" \
|
||||||
|
adb='HOME="$XDG_DATA_HOME"/android adb' \
|
||||||
lvim="VIMINIT= nvim"
|
lvim="VIMINIT= nvim"
|
||||||
|
|
||||||
if [ "$GDK_BACKEND" = "x11" ]; then
|
|
||||||
alias clip='xclip -selection clipboard'
|
|
||||||
elif [ "$GDK_BACKEND" = "wayland" ]; then
|
|
||||||
alias clip='wl-copy'
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue