how to check in a bash script where the shell is run from
- by nass
I am fuzzy about how to set a command in a script to be run only when the shell is running within an X session.
basically, in ~/.bashrc I set my keyboard maps as
setxkbmap -layout 'us,gr' -variant 'altgr-intl,extended' -option grp:alt_shift_toggle
If I am connecting through putty , or otherwise, and i just open a command prompt window, I DONT…