24 July 2017

Debian Fluxbox Setup (November 2020 update)

Biggest change from 2017 and 2019 updates is WICD is now really dead. I've switched to network-manager and network-manager-gnome (for the applet) there is a fair amount of package and space overhead for this but there isn't really a better alternative. Also network-manger is likely to be the first to have WPA3 support, which I plan to implement in my networks as soon as they are available. From here out I plan to keep a change log of this post.


autologin w/ systemd:

/etc/systemd/system/getty@tty1.service.d/autologin.conf:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin $USERNAME %I


Wifi:
$lspci
...
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
...

$sudo apt-get install firmware-iwlwifi

$ip addr show
1: lo ...
2: enp1s0: ...
    link/ether XX:XX:XX:XX:XX:XX...
3: wlp2s0: ...
    link/ether XX:XX:XX:XX:XX:XX...

As we are using network manager now we have tow choices:
   1: Remove interfaces from /etc/network/interfaces so NM will automatically manage them -or-
   2: Force NM to namage=true in /etc/NetworkManager/NetworkManager.conf
I have chosen to use option 1.
for more information see https://wiki.debian.org/NetworkManager

/etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug enp1s0
#iface enp1s0 inet dhcp
# wifi
#allow-hotplug wlp2s0
#iface wlp2s0 inet dhcp


Sound:
apt-get install alsa-utils pulsemixer pulseaudio-utils pulseaudio-module-bluetooth


Backlight:
#Screen Brightness.  Will lower or raise brightness by 5%.
# had to install xbacklight and add the following to /etc/X11/xorg.conf:
Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        Option      "Backlight"  "/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/"
EndSection


Thunar:
apt-get install thunar thunar-volman
remove "Set as wallpaper" context menu item:
https://forums.bunsenlabs.org/viewtopic.php?id=1533
"The Thunar wallpaper plugin is compiled into the Debian standard Thunar (EDIT: libthunarx-2-0 in fact), and we don't want to have to compile our own version, just for a little thing like this. There is a fix though. Rename /usr/lib/{i386-linux-gnu,x86_64-linux-gnu}/thunarx-2/thunar-wallpaper-plugin.so and restart Thunar."


~/.fluxobx/keys:
Mod1 Tab :NextWindow (workspace=[current]) !! FBCV13 !!
Mod1 Shift Tab :PrevWindow (workspace=[current]) !! FBCV13 !!
#
#Volume.  Will lower or raise volume by 5%.  The third key binding will toggle mute.
XF86AudioLowerVolume : Exec amixer sset Master,0 5%-
XF86AudioRaiseVolume : Exec amixer sset Master,0 5%+
XF86AudioMute : Exec amixer sset Master,0 toggle
#
XF86MonBrightnessUp : exec /usr/bin/xbacklight -inc 5
XF86MonBrightnessDown : exec /usr/bin/xbacklight -dec 5
#
Mod1 F4 :Close
Mod1 z :RootMenu
Mod1 Shift z :HideMenus
Mod1 x :exec /usr/bin/xterm
Control Shift n : exec /usr/bin/google-chrome --incognito


~/.fluxbox/startup:
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.
#
# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# This sets a black background
# /usr/bin/fbsetroot -solid black
# /usr/bin/fbsetbg -l
# /usr/bin/fbsetbg -f -r ~/.fluxbox/backgrounds/
# Now set by .fluxbox/init rootCommand
#
# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg
#
# Other examples. Check man xset for details.
#
# Turn off beeps:
xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp "~/.fonts"
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap "~/.Xmodmap"
#
#
#
# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
#/usr/bin/xscreensaver -no-splash &
#/usr/bin/wicd-client -t &
/usr/bin/numlockx on &
/usr/bin/nm-applet &
/usr/bin/blueman-applet &
#/usr/bin/volumeicon &
/usr/bin/pasystray &
~/sbin/cbatticon -i symbolic &
#/usr/local/bin/wmbattery &
#/usr/bin/wmnd -i wlan0 -I wlan0,eth0 &
#/usr/bin/unclutter -idle 2 &
#/usr/bin/chromium --no-startup-window &
/usr/bin/xterm -geometry 120x55+0+0 &
#/usr/bin/xterm -geometry 80x55+725+0 &
#/usr/bin/xterm -geometry 120x55+485+0 &
#/usr/bin/xterm -geometry 80x24+0+403 &
#/usr/bin/xterm -geometry 80x29+0+0 &
#/usr/bin/dropbox start &
#/usr/bin/xtrlock -f -b
/usr/bin/fbsetbg -l &
~/.screenlayout/dual.sh &
#
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
#
exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log "~/.fluxbox/log"


~/.fluxbox/keys (my additions not the entire file):
XF86MonBrightnessUp : exec /usr/bin/xbacklight -inc 5 XF86MonBrightnessDown : exec /usr/bin/xbacklight -dec 5 XF86Calculator : exec ~/sbin/touchpadtoggle.sh Mod1 F4 :Close Mod1 z :RootMenu Mod1 Shift z :HideMenus Mod1 x :exec /usr/bin/xterm Control Shift n : exec /usr/bin/google-chromqe --incognito Mod4 l :xtrlock -b #Mod4 T :ToggleDecor

~/sbin/touchpadtoggle.sh:
#!/bin/dash device="CUST0001:00 04F3:3147 Touchpad" #find the device you wish to toggle using /usr/bin/xinput state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$") if [ $state = '1' ]; then /usr/bin/xinput --disable "$device" else /usr/bin/xinput --enable "$device" fi

Other software installed:
sigil
eye of mate (eom)
simple-scan
dropbox
chrome
network-manager
network-manager-gnome
calibre
evince
libreoffice
moneydance
xfburn
xtrlock
arandr
rhythmbox
soundjuicer
vlc
thunar

No comments:

Post a Comment