From 170ee0a38be274eaa0ae292f3c70e3e303a41d0a Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 8 Aug 2022 21:46:05 +0530 Subject: removed startup apps from XMonad and moved them to .xprofile --- .config/XMonad/lib/Hooks.hs | 8 -------- .xprofile | 12 +++++++++--- .zprofile | 4 ---- 3 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 .zprofile 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 & -- cgit v1.2.3