From 786c0857cb9b832280435a6839e31b2d1e90e2b4 Mon Sep 17 00:00:00 2001 From: Phil Bajsicki Date: Sat, 15 Apr 2023 17:58:27 +0200 Subject: [PATCH] Add .run files for Wayland WMs --- .runhikari.sh | 8 ++++++++ .runhyprland.sh | 20 ++++++++++++++++++++ .runqtile.sh | 21 +++++++++++++++++++++ .runsway.sh | 19 +++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100755 .runhikari.sh create mode 100755 .runhyprland.sh create mode 100755 .runqtile.sh create mode 100755 .runsway.sh diff --git a/.runhikari.sh b/.runhikari.sh new file mode 100755 index 0000000..a32ebc8 --- /dev/null +++ b/.runhikari.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +export XKB_DEFAULT_LAYOUT="us(cmk_ed_us)" +export XKB_DEFAULT_MODEL="pc104angle-z" +export XKB_DEFAULT_OPTIONS="misc:extend,lv5:caps_switch_lock,grp:shifts_toggle,compose:rctrl,misc:cmk_curl_dh" +export WLR_RENDERER=vulkan +export WLR_NO_HARDWARE_CURSORS=1 +hikari diff --git a/.runhyprland.sh b/.runhyprland.sh new file mode 100755 index 0000000..670a23a --- /dev/null +++ b/.runhyprland.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +export XKB_DEFAULT_LAYOUT="pl" +export XKB_DEFAULT_OPTIONS="compose:rctrl" + +export WLR_NO_HARDWARE_CURSORS=1 +export _JAVA_AWT_WM_NONREPARENTING=1 +export LIBVA_DRIVER_NAME=nvidia +export GBM_BACKEND=nvidia-drm +export __GLX_VENDOR_LIBRARY_NAME=nvidia +export XDG_SESSION_TYPE=wayland +export XCURSOR_SIZE=24 + +/usr/bin/Hyprland + +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + + diff --git a/.runqtile.sh b/.runqtile.sh new file mode 100755 index 0000000..5d1999b --- /dev/null +++ b/.runqtile.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +export XKB_DEFAULT_LAYOUT="pl" +export WLR_RENDERER=vulkan +export WLR_NO_HARDWARE_CURSORS=1 +export MOZ_ENABLE_WAYLAND=1 +export SDL_VIDEODRIVER=wayland +export _JAVA_AWT_WM_NONREPARENTING=1 +export QT_QPA_PLATFORM=wayland +export __GLX_VENDOR_LIBRARY_NAME=nvidia +export XDG_CURRENT_DESKTOP=qtile +export XDG_SESSION_DESKTOP=qtile +export XCURSOR_SIZE=24 + +qtile start -b wayland + +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + + diff --git a/.runsway.sh b/.runsway.sh new file mode 100755 index 0000000..3d056be --- /dev/null +++ b/.runsway.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +export WLR_NO_HARDWARE_CURSORS=1 +export XDG_CURRENT_DESKTOP=sway +export XDG_CURRENT_SESSION=wayland +export QT_QPA_PLATFORM=wayland +export WLR_NO_HARDWARE_CURSORS=1 +export MOZ_ENABLE_WAYLAND=1 +export SDL_VIDEODRIVER=wayland +export _JAVA_AWT_WM_NONREPARENTING=1 +export XCURSOR_SIZE=24 +export __GLX_VENDOR_LIBRARY_NAME=nvidia + +export PLANTUML_LIMIT_SIZE 16384 + +export XKB_DEFAULT_LAYOUT="pl" +export XKB_DEFAULT_OPTIONS="compose:rctrl" + +sway --unsupported-gpu &