From 28f8d76316144d7d75a163bb2ab2e72e0b658897 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 29 Sep 2024 14:46:36 -0400 Subject: [PATCH] Disable autostart and env var patches - Disable the autostart and env var patch - Replace customized autostart array with example - Replace customized env var array with example --- README.org | 40 ++++++---------------------------------- config.h | 36 ++++-------------------------------- patches.def.h | 4 ++-- 3 files changed, 12 insertions(+), 68 deletions(-) diff --git a/README.org b/README.org index fb1c25b..318414b 100644 --- a/README.org +++ b/README.org @@ -103,7 +103,7 @@ Allow dwl to execute commands from autostart array in your config.h file. And wh Note: Commands from array are executed using execvp(). So if you need to execute shell command you need to prefix it with "sh", "-c" (change sh to any shell you like). #+BEGIN_SRC c :tangle patches.def.h -#define AUTOSTART_PATCH 1 +#define AUTOSTART_PATCH 0 #+END_SRC *** [[https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/float-unfocused-border-color][Float Unfocused Border Color]] @@ -173,7 +173,7 @@ Moves clients to their old output when it is reattached. Allow configuring environment variables in config.h #+BEGIN_SRC c :tangle patches.def.h -#define SETUPENV_PATCH 1 +#define SETUPENV_PATCH 0 #+END_SRC *** [[https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/unclutter][Unclutter]] @@ -259,15 +259,8 @@ static int log_level = WLR_ERROR; #+BEGIN_SRC c :tangle config.h #if SETUPENV_PATCH static const Env envs[] = { - /* variable value */ - { "TERM", "xterm-256color" }, - { "SHELL", "/bin/fish" }, - { "EDITOR", "emacs" }, - { "GIT_EDITOR", "emacs" }, - { "BROWSER", "vivaldi-stable" }, - { "QT_QPA_PLATFORMTHEME", "qt6ct" }, - { "_JAVA_AWT_WM_NONREPARENTING", "1" }, - { "XDG_CURRENT_DESKTOP", "wlroots" }, + /* variable value */ + { "XDG_CURRENT_DESKTOP", "wlroots" }, }; #endif // SETUPENV_PATCH #+END_SRC @@ -277,29 +270,8 @@ static const Env envs[] = { #+BEGIN_SRC c :tangle config.h #if AUTOSTART_PATCH static const char *const autostart[] = { - /* Display / Compositor Setup */ - "/usr/bin/shikane", NULL, - "/usr/bin/bash", "/home/sravan/.azotebg", NULL, - "/usr/bin/gammastep", "-x", NULL, - /* Background Processes */ - "/usr/libexec/polkit-gnome-authentication-agent-1", NULL, - "/usr/bin/kdeconnectd", "--replace", NULL, - "/usr/bin/bash", "/home/sravan/.scripts/dunst.sh", "--on", NULL, - "/usr/bin/wl-paste", "--type", "text", "--watch", "cliphist", "store", NULL, - "/usr/bin/wl-paste", "--type", "image", "--watch", "cliphist", "store", NULL, - /* Tray Applications */ - "/usr/bin/gammastep-indicator", NULL, - "/usr/bin/blueman-applet", NULL, - "/usr/bin/nm-applet", NULL, - "/usr/bin/kdeconnect-indicator", NULL, - "/usr/bin/udiskie", "-a", "-n", "-s", NULL, - /* Status Bar */ - "/usr/bin/sh", "-c", "/home/sravan/.config/dwl/waybar/launch.sh", NULL, - /* GUI Applications */ - "/usr/bin/nextcloud", NULL, - "/usr/bin/syncthing-gtk", NULL, - "/usr/bin/openrgb", NULL, - NULL /* terminate */ + "wbg", "/path/to/your/image", NULL, + NULL /* terminate */ }; #endif // AUTOSTART_PATCH #+END_SRC diff --git a/config.h b/config.h index ab23ca2..a7248d4 100644 --- a/config.h +++ b/config.h @@ -33,43 +33,15 @@ static int log_level = WLR_ERROR; #if SETUPENV_PATCH static const Env envs[] = { - /* variable value */ - { "TERM", "xterm-256color" }, - { "SHELL", "/bin/fish" }, - { "EDITOR", "emacs" }, - { "GIT_EDITOR", "emacs" }, - { "BROWSER", "vivaldi-stable" }, - { "QT_QPA_PLATFORMTHEME", "qt6ct" }, - { "_JAVA_AWT_WM_NONREPARENTING", "1" }, - { "XDG_CURRENT_DESKTOP", "wlroots" }, + /* variable value */ + { "XDG_CURRENT_DESKTOP", "wlroots" }, }; #endif // SETUPENV_PATCH #if AUTOSTART_PATCH static const char *const autostart[] = { - /* Display / Compositor Setup */ - "/usr/bin/shikane", NULL, - "/usr/bin/bash", "/home/sravan/.azotebg", NULL, - "/usr/bin/gammastep", "-x", NULL, - /* Background Processes */ - "/usr/libexec/polkit-gnome-authentication-agent-1", NULL, - "/usr/bin/kdeconnectd", "--replace", NULL, - "/usr/bin/bash", "/home/sravan/.scripts/dunst.sh", "--on", NULL, - "/usr/bin/wl-paste", "--type", "text", "--watch", "cliphist", "store", NULL, - "/usr/bin/wl-paste", "--type", "image", "--watch", "cliphist", "store", NULL, - /* Tray Applications */ - "/usr/bin/gammastep-indicator", NULL, - "/usr/bin/blueman-applet", NULL, - "/usr/bin/nm-applet", NULL, - "/usr/bin/kdeconnect-indicator", NULL, - "/usr/bin/udiskie", "-a", "-n", "-s", NULL, - /* Status Bar */ - "/usr/bin/sh", "-c", "/home/sravan/.config/dwl/waybar/launch.sh", NULL, - /* GUI Applications */ - "/usr/bin/nextcloud", NULL, - "/usr/bin/syncthing-gtk", NULL, - "/usr/bin/openrgb", NULL, - NULL /* terminate */ + "wbg", "/path/to/your/image", NULL, + NULL /* terminate */ }; #endif // AUTOSTART_PATCH diff --git a/patches.def.h b/patches.def.h index cfeb270..694ca89 100644 --- a/patches.def.h +++ b/patches.def.h @@ -2,7 +2,7 @@ #define ATTACHTOP_PATCH 1 -#define AUTOSTART_PATCH 1 +#define AUTOSTART_PATCH 0 #define FLOAT_UNFOCUSED_BORDER_COLOR_PATCH 1 @@ -18,7 +18,7 @@ #define RESTORE_MONITOR_PATCH 1 -#define SETUPENV_PATCH 1 +#define SETUPENV_PATCH 0 #define UNCLUTTER_PATCH 1