diff options
Diffstat (limited to 'dot_config')
| -rw-r--r-- | dot_config/sway/config | 4 | ||||
| -rw-r--r-- | dot_config/systemd/user/cliphist-image.service | 14 | ||||
| -rw-r--r-- | dot_config/systemd/user/cliphist-text.service | 14 | ||||
| -rw-r--r-- | dot_config/systemd/user/sway-session.target | 2 |
4 files changed, 33 insertions, 1 deletions
diff --git a/dot_config/sway/config b/dot_config/sway/config index 39ddd65..c3b347a 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -144,6 +144,10 @@ bindsym $mod+Shift+s exec "playerctl -a pause; swaylock -f -e -c 282828" bindsym $mod+n exec makoctl dismiss bindsym $mod+Shift+n exec makoctl dismiss --all +# Clipboard history +bindsym $mod+v exec sh -c 'cliphist list | fuzzel --dmenu | cliphist decode | wl-copy' +bindsym $mod+Shift+v exec sh -c 'cliphist list | fuzzel --dmenu | cliphist delete' + # Display mode switching bindsym --no-repeat F7 exec ~/.config/sway/display-toggle.sh diff --git a/dot_config/systemd/user/cliphist-image.service b/dot_config/systemd/user/cliphist-image.service new file mode 100644 index 0000000..5ddab8f --- /dev/null +++ b/dot_config/systemd/user/cliphist-image.service @@ -0,0 +1,14 @@ +[Unit] +Description=Clipboard history (image) via cliphist +PartOf=graphical-session.target +After=graphical-session.target +ConditionEnvironment=WAYLAND_DISPLAY + +[Service] +Type=simple +ExecStart=/usr/bin/wl-paste --type image --watch cliphist store +Restart=on-failure +RestartSec=2s + +[Install] +WantedBy=sway-session.target diff --git a/dot_config/systemd/user/cliphist-text.service b/dot_config/systemd/user/cliphist-text.service new file mode 100644 index 0000000..96b0602 --- /dev/null +++ b/dot_config/systemd/user/cliphist-text.service @@ -0,0 +1,14 @@ +[Unit] +Description=Clipboard history (text) via cliphist +PartOf=graphical-session.target +After=graphical-session.target +ConditionEnvironment=WAYLAND_DISPLAY + +[Service] +Type=simple +ExecStart=/usr/bin/wl-paste --type text --watch cliphist store +Restart=on-failure +RestartSec=2s + +[Install] +WantedBy=sway-session.target diff --git a/dot_config/systemd/user/sway-session.target b/dot_config/systemd/user/sway-session.target index db57db4..0c33a40 100644 --- a/dot_config/systemd/user/sway-session.target +++ b/dot_config/systemd/user/sway-session.target @@ -2,6 +2,6 @@ Description=sway compositor session Documentation=man:systemd.special(7) BindsTo=graphical-session.target -Wants=graphical-session-pre.target mako.service poweralertd.service display-watcher.service swayidle.service +Wants=graphical-session-pre.target mako.service poweralertd.service display-watcher.service swayidle.service cliphist-text.service cliphist-image.service After=graphical-session-pre.target StopWhenUnneeded=yes |
