Debian Notes

default
dpkg --get-selections
Show installed packages	

dpkg --get-selections | grep mouse
dpkg -S xserver-xorg-input-kbd
Show installed packages with mouse in name

dpkg -L xserver-xorg-input-mouse
Show locations of files within a package

sudo dpkg-reconfigure slim
Reconfigure a package

apt-cache search xserver-xorg-input-kbd
aptitude search xserver-xorg-input-kbd
Search repository for package by name and description 

apt-cache search --names-only xorg
Search packages querying in the name only

apt-cache show xserver-xorg-input-mouse
apt-cache showpkg xserver-xorg-input-mouse
Show detailed information about a package

apt-get install dwb 
Install a package


adduser hippiechick sudo
Add a user to the sudo group
User must logout and login to take effect


lspci -v | grep VGA
Show type of video card system has

vim /usr/share/gdm/dconf/10-desktop-base-settings
picture-uri='file:///blahbla.jpg'
File to set background image if using gdm

vim /usr/share/gdm/dconf/10-desktop-base-settings
[org/gnome/desktop/background]
picture-options='none'
primary-color='#000000'
Remove background picture

vim /etc/gdm3/greeter.gsettings
File to change the login screen for gdm3

dpkg-reconfigure gdm3
Reload gdm3 configuration on logout/reboot

/etc/alternatives
Location of alternatives. Don't cat these they
are binaries. Just use them to see what options
you can throw at update alternatives.

update-alternatives --display x-window-manager
Shows the symlinks for the default and alternative
window managers

update-alternatives --config x-window-manager
Shows alternatives and give choice of which to use

update-alternatives --config x-www-browser
Set which browser to use as default

update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/dwb 100
Add dwb to x-www-browser list and set it's priority to 100


Slim notes to keep in mind
--------------------------
/etc/X11/default-display-manager
This file determines the default display manager
/usr/sbin/gdm3
Would be for gdm3
/usr/bin/slim
Sets slim as the default display manager
qingy - is another choice

/etc/init.d/gdm3
Contain the settings for gdm3
HEED_DEFAULT_DISPLAY_MANAGER=true
This line will instructs whether gdm3 should
respect the default, if set to false, it
can run at same time as another.

End-slim-default-display-manager
--------------------------------


i3 as default window manager with slim
--------------------------------------
sudo update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/bin/i3 200
Set i3 to have a higher priority than it did before.
Slim is reading gnome-session as the default, when
logging in. I want it to be i3.

/etc/slim.conf
Even if this file has i3 as the first option under
sessions. Slim still defaulting to gnome.

Now create or edit and add:
~/.xsession
exec i3

Slim's default is now i3!

The culprit seems to be this file:
/etc/X11/Xsession.d/50x11-common_determine-startup
# If there is still nothing to use for a startup program, try the system
 # default session manager, window manager, and terminal emulator.
 if [ -z "$STARTUP" ]; then
   if [ -x /usr/bin/x-session-manager ]; then
     STARTUP=x-session-manager
   elif [ -x /usr/bin/x-window-manager ]; then
     STARTUP=x-window-manager
   elif [ -x /usr/bin/x-terminal-emulator ]; then
     STARTUP=x-terminal-emulator
   fi
 fi

So two other options may be to try to set:
x-session-manager
As i3. I don't know what will happpen.
Or to change these lines, so that it reads
x-window-manager
before
x-session-manager

Of course if you ever stop using i3 these will
need to be changed back, especially if change to 
gnome-session

Not sure which of the three is best, but right
now I'm using .xsession = exec i3

Ok I removed .xsession and swapped the if statements
around and it still works.

ps -aux | wc -l
Shows 130 process running this way.

Changing 50x11-common_determine-startup
back to the original way and putting
~/.xsession back
ps -aux | wc -l
128 processes

So take you pick. The .xsession way seems to be
the easier one to alter if future changes occur.
Might even be able to use it to jump to bspwm
and not have to change all the other debian
config crap. Not gonna try setting i3 to
x-session-manager, already have to fixes.

I do have i3 first in:
/etc/slim.conf
sessions    i3,gnome-session
If that makes a difference.

And I was rebooting for these to take effect.
Not sure if there is a way to reload on the fly.

End-slim-i3-as-default-wm
--------------------------------------
default