From a417515939c2b5a6e6ca1791fd8d4b99bf3590d7 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 12 Jan 2023 19:30:21 +0530 Subject: added alternatives to frequently used modal keybindings --- .xprofile | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to '.xprofile') diff --git a/.xprofile b/.xprofile index 0ad8de4..d3db31c 100755 --- a/.xprofile +++ b/.xprofile @@ -1,31 +1,30 @@ #!/bin/zsh -# zprofile contents +# set .zshenv [[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv -if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - exec startx -fi -# set screen layout -# this would fail when on integrated graphics -# that's the desired behaviour -xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x749 --rotate normal +# keyboard layout +xmodmap /home/zt/.Xmodmap & # makes gnome-keyring work dbus-update-activation-environment --all -# keyboard layout -xmodmap /home/zt/.Xmodmap & - -# autostart apps -blueman-applet & -picom & -dunst & +# autostart apps for both xmonad and any other DE emacs --daemon & -# udiskie messes up something in my system -# idk what it is but it's pretty bad -# basically it's temporarily disabled -# until I decide to troubleshoot it (I'm lazy) -# udiskie & -nitrogen --restore & -polystart & + +# autostart apps for xmonad +if [[ $DESKTOP_SESSION = "xmonad" ]]; then + # set screen layout + # this would fail when on integrated graphics + # that's the desired behaviour + xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x749 --rotate normal + + # autostart apps + blueman-applet & + picom & + dunst & + udiskie & + nitrogen --restore & + polystart & + +fi -- cgit v1.2.3