Wayland clipshot?
This commit is contained in:
parent
616099b54d
commit
a07b3e6f63
6 changed files with 24 additions and 11 deletions
|
@ -19,6 +19,7 @@ export WLC_REPEAT_RATE=60
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
export CLUTTER_BACKEND=wayland
|
export CLUTTER_BACKEND=wayland
|
||||||
export SDL_VIDEODRIVER=wayland
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
# export GDK_BACKEND=wayland # DON'T SET THIS ONE
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
||||||
# configuration flag for some of my dotfiles scripts
|
# configuration flag for some of my dotfiles scripts
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if is_wayland; then
|
||||||
|
grim -g "$(slurp -d)" - | wl-copy
|
||||||
|
else
|
||||||
pkill unclutter
|
pkill unclutter
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
import ~/.ss.png
|
import ~/.ss.png
|
||||||
|
@ -9,3 +12,4 @@ chmod 700 ~/.ss.png
|
||||||
< ~/.ss.png xclip -t image/png -i -selection secondary
|
< ~/.ss.png xclip -t image/png -i -selection secondary
|
||||||
< ~/.ss.png xclip -t image/png -i -selection buffer-cut
|
< ~/.ss.png xclip -t image/png -i -selection buffer-cut
|
||||||
unclutter &
|
unclutter &
|
||||||
|
fi
|
||||||
|
|
3
bin/is_wayland
Executable file
3
bin/is_wayland
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
(test -z "$DISPLAY" || test -n "$WAYLAND_DISPLAY" || test -n "$SWAYSOCK" || test "$IS_WAYLAND" -eq 1)
|
|
@ -40,6 +40,7 @@ pacaur --needed -S \
|
||||||
wlroots-git sway-git `# Wayland Compositor` \
|
wlroots-git sway-git `# Wayland Compositor` \
|
||||||
swaylock `# Wayland Compositor` \
|
swaylock `# Wayland Compositor` \
|
||||||
waybar mako `# Wayland Bar & Notifications` \
|
waybar mako `# Wayland Bar & Notifications` \
|
||||||
|
slurp grim `# Wayland Screen Selection & Clipping` \
|
||||||
wl-clipboard `# Wayland Clipboard CLI` \
|
wl-clipboard `# Wayland Clipboard CLI` \
|
||||||
terminus-font ttf-iosevka-type ttf-iosevka-term `# Primary Fonts` \
|
terminus-font ttf-iosevka-type ttf-iosevka-term `# Primary Fonts` \
|
||||||
ttf-font-awesome `# Icon Font` \
|
ttf-font-awesome `# Icon Font` \
|
||||||
|
|
|
@ -75,14 +75,18 @@ Here are some bullet points on my workflow:
|
||||||
|
|
||||||
## To Do and Improvements
|
## To Do and Improvements
|
||||||
|
|
||||||
|
+ Wayland stuff
|
||||||
|
+ Sway hotkey parity (as much as is possible) with sxhkd/bspwm
|
||||||
|
+ Clean out all the X11 cruft?
|
||||||
* Add vim in the terminal as the handler for many MIME types (xdg-open and such)
|
* Add vim in the terminal as the handler for many MIME types (xdg-open and such)
|
||||||
for the rare time I'm in a file manager or for opening easily from
|
for the rare time I'm in a file manager or for opening easily from
|
||||||
the browser.
|
the browser.
|
||||||
* Unify all the common variables... somehow? (and use templates and `envsubst`?)
|
* Unify all the common variables... somehow? (and use templates and `envsubst`?)
|
||||||
* Makefile instead of setup script
|
* Makefile instead of setup script
|
||||||
* [Vimux](https://github.com/benmills/vimux)?
|
* [Vimux](https://github.com/benmills/vimux)?
|
||||||
* Nerd Fonts with ligatures and icons for Kitty
|
* Custom Iosevka font with kitty-compatible ligatures
|
||||||
* Setup network file sharing directory
|
* Setup network file sharing directory
|
||||||
|
+ Investigate some systemd services (homed,
|
||||||
|
|
||||||
|
|
||||||
[upstream]: https://git.faceless.lytedev.io/lytedev/dotfiles
|
[upstream]: https://git.faceless.lytedev.io/lytedev/dotfiles
|
||||||
|
|
Reference in a new issue