[Bin] Scripts for VNC remote connection from my tablet
This commit is contained in:
parent
4088f199d5
commit
86741cf0dc
@ -2104,22 +2104,47 @@ export WINIT_UNIX_BACKEND=wayland
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
export DBUS_SESSION_BUS_PID
|
||||
#+end_src
|
||||
|
||||
** Qtile
|
||||
*** Hyprland VNC
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/launch-qtile
|
||||
:CUSTOM_ID: WaylandQtile-v5l2wdx03nj0
|
||||
:CUSTOM_ID: WaylandWaylandEnvironmentVariablesSetupHyprlandVNC-m3o4g3w0i0k0
|
||||
:END:
|
||||
**** Get Hyprland signature
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env fish" :mkdirp yes :tangle ~/.local/bin/hyprland-signature
|
||||
:CUSTOM_ID: WaylandGetHyprlandsignature-0uwezmv0i0k0
|
||||
:END:
|
||||
#+begin_src fish
|
||||
if test ! -e /tmp/hypr
|
||||
exit 1
|
||||
end
|
||||
set LOCKFILES (ls -1 /tmp/hypr/*.lock)
|
||||
if test (count $LOCKFILES) -lt 1
|
||||
exit 1
|
||||
end
|
||||
set LOCKFILE (basename $LOCKFILES[1] ".lock")
|
||||
echo $LOCKFILE
|
||||
#+end_src
|
||||
|
||||
**** Prepare monitors for VNC connection
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/hyprland-set-vnc-monitors
|
||||
:CUSTOM_ID: WaylandPreparemonitorsforVNCconnection-pttgzov0i0k0
|
||||
:END:
|
||||
#+begin_src sh
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export XDG_SESSION_DESKTOP=wlroots
|
||||
export XDG_CURRENT_TYPE=wlroots
|
||||
export XDG_CURRENT_DESKTOP=wlroots
|
||||
. /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
|
||||
. way-env-setup
|
||||
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec qtile start -b wayland
|
||||
export HYPRLAND_INSTANCE_SIGNATURE=$(hyprland-signature)
|
||||
hyprctl keyword monitor eDP-1,disable
|
||||
hyprctl keyword monitor HDMI-A-1,1280x720,0x0,1
|
||||
#+end_src
|
||||
|
||||
**** Launch wayvnc if it isn’t already
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/hyprland-launch-vnc
|
||||
:CUSTOM_ID: WaylandWaylandEnvironmentVariablesSetupHyprlandVNCLaunchwayvncifitisntalready-jd2025w0i0k0
|
||||
:END:
|
||||
#+begin_src sh
|
||||
export HYPRLAND_INSTANCE_SIGNATURE=$(hyprland-signature)
|
||||
hyprctl dispatch -- exec "pidof wayvnc || wayvnc -k fr-bepo_afnor"
|
||||
hyprland-set-vnc-monitors
|
||||
#+end_src
|
||||
|
||||
** Newm
|
||||
@ -2139,6 +2164,23 @@ systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec start-newm
|
||||
#+end_src
|
||||
|
||||
** Qtile
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/launch-qtile
|
||||
:CUSTOM_ID: WaylandQtile-v5l2wdx03nj0
|
||||
:END:
|
||||
#+begin_src sh
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export XDG_SESSION_DESKTOP=wlroots
|
||||
export XDG_CURRENT_TYPE=wlroots
|
||||
export XDG_CURRENT_DESKTOP=wlroots
|
||||
. /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
|
||||
. way-env-setup
|
||||
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec qtile start -b wayland
|
||||
#+end_src
|
||||
|
||||
** Sway
|
||||
:PROPERTIES:
|
||||
:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/swaybar-cmd
|
||||
|
Loading…
Reference in New Issue
Block a user