Browse Source

Various: Cleanup pass

master
jcmdln 3 years ago
parent
commit
d57499aebf
4 changed files with 25 additions and 21 deletions
  1. 7
    3
      etc/portage/make.conf
  2. 1
    0
      etc/portage/package.use/packages
  3. 0
    1
      usr/local/gein/gpkg
  4. 17
    17
      usr/local/gein/srandr

+ 7
- 3
etc/portage/make.conf View File

@@ -5,7 +5,7 @@ CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 s
INPUT_DEVICES="libinput"
L10N="en-US"
LINGUAS="en_US"
VIDEO_CARDS="Video_Cards"
VIDEO_CARDS="i915 i965 intel"

# Portage
GENTOO_MIRRORS="http://distfiles.gentoo.org"
@@ -13,7 +13,11 @@ PORTDIR="/usr/portage"
DISTDIR="$PORTDIR/distfiles"
PKGDIR="$PORTDIR/packages"

# Targets
PYTHON_TARGETS="python3_6 python2_7"
PYTHON_SINGLE_TARGET="python3_6"

# Compilation
MAKEOPTS="Make_Opts"
CFLAGS="-march=native -O2 -pipe"
MAKEOPTS="-j4"
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="$CFLAGS"

+ 1
- 0
etc/portage/package.use/packages View File

@@ -8,6 +8,7 @@ app-emulation/qemu usb
app-laptop/laptop-mode-tools acpi
app-misc/screenfetch -X
app-office/libreoffice collada gltf gstreamer gtk mysql pdfimport postgres
app-text/asciidoc python_single_target_python2_7
app-text/ghostscript-gpl cups
app-text/poppler -qt5
app-text/xmlto text

+ 0
- 1
usr/local/gein/gpkg View File

@@ -47,5 +47,4 @@ case $1 in
echo " -p, purge Purge package and dependencies"
echo " -u, update Update @world packages"
echo " -U, upgrade Update @system packages"
;;
esac

+ 17
- 17
usr/local/gein/srandr View File

@@ -4,30 +4,30 @@ Displays=""

while :; do
if [[ $DISPLAY ]]; then
CDisplays=$(xrandr | grep ' connected' | awk '{print $1}')
DDisplays=$(xrandr | grep 'disconnected' | awk '{print $1}')
CDisplays=$(xrandr | grep ' connected' | awk '{print $1}')
DDisplays=$(xrandr | grep 'disconnected' | awk '{print $1}')

if [ "$Displays" != "$CDisplays" ]; then
if [ "$Displays" != "$CDisplays" ]; then
for display in $CDisplays; do
if [ -e "$HOME/.display.sh" ]; then
. "$HOME/.display.sh"
for config in $DisplayConfigs; do
if [ "$display" == "$config" ]; then
$config
fi
done
else
if [ -e "$HOME/.display.sh" ]; then
. "$HOME/.display.sh"
for config in $DisplayConfigs; do
if [ "$display" == "$config" ]; then
$config
fi
done
else
xrandr --output "$display" --auto
fi
fi
done

for display in $DDisplays; do
xrandr --output "$display" --off
for display in $DDisplays; do
xrandr --output "$display" --off
done

Displays="$Connected"
fi
else
sleep 5
fi
fi

sleep 5
done

Loading…
Cancel
Save