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
This commit is contained in:
40
README.org
40
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
|
||||
|
36
config.h
36
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
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user