aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-08 21:46:05 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-08 21:46:05 +0530
commit170ee0a38be274eaa0ae292f3c70e3e303a41d0a (patch)
treeb557b1b2e617b67e717571e6d07ea73ad4d6ea75
parent13d80183fdbb64c1babfd163b71fd0755703a149 (diff)
removed startup apps from XMonad and moved them to .xprofile
-rw-r--r--.config/XMonad/lib/Hooks.hs8
-rwxr-xr-x.xprofile12
-rw-r--r--.zprofile4
3 files changed, 9 insertions, 15 deletions
diff --git a/.config/XMonad/lib/Hooks.hs b/.config/XMonad/lib/Hooks.hs
index a982398..5e13225 100644
--- a/.config/XMonad/lib/Hooks.hs
+++ b/.config/XMonad/lib/Hooks.hs
@@ -32,14 +32,6 @@ myLayoutHook = avoidStruts $ maximize $ windowNavigation $ smartBorders $ myGap
emptyBSP ||| tabbed shrinkText myTabTheme ||| Grid
myStartupHook = do
- spawnOnce "xmodmap /home/zt/.Xmodmap"
- spawnOnce "picom"
- spawnOnce "blueman-applet"
- spawnOnce "dunst"
- spawnOnce "polystart"
- spawnOnce "nitrogen --restore"
- -- spawnOnce "cbatticon"
- spawnOnce "udiskie"
setWMName "Anime Thighs"
-- setWMName "LG3D"
setDefaultCursor xC_left_ptr
diff --git a/.xprofile b/.xprofile
index 221fae7..11e7911 100755
--- a/.xprofile
+++ b/.xprofile
@@ -1,8 +1,14 @@
-#!/bin/bash
+#!/bin/zsh
+
+# zprofile contents
+[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv
+if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
+ exec startx
+fi
# makes optimus-manager work (probably)
-xrandr --setprovideroutputsource modesetting NVIDIA-0
-xrandr --auto
+# xrandr --setprovideroutputsource modesetting NVIDIA-0
+# xrandr --auto
# makes gnome-keyring work
dbus-update-activation-environment --all
diff --git a/.zprofile b/.zprofile
deleted file mode 100644
index c5be59e..0000000
--- a/.zprofile
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv
-startpage &