mirror of https://github.com/ericonr/dotfiles.git
Clean up scripts directory. Remove Nvidia Optimus.
* Switched to setup for selecting GPU at boot, so utilities to try and launch the GPU while the device is working are unecessary. Sway doesn't even work properly with Nvidia. * Also removed some old clutter from there: * openlink doesn't work reliably anyway * nmtui isn't used anymore since switching to iwd
This commit is contained in:
parent
e3f1833d74
commit
1c099809c6
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
kdesu enablegpu
|
||||
sleep 2
|
||||
|
||||
darktable "$@"
|
||||
|
||||
kdesu disablegpu
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "Restarting bumblebee service."
|
||||
systemctl restart bumblebeed.service
|
||||
sleep 1
|
||||
|
||||
echo "Removing modules."
|
||||
modprobe -r nvidia_drm
|
||||
modprobe -r nvidia_uvm
|
||||
modprobe -r nvidia_modeset
|
||||
modprobe -r nvidia
|
||||
|
||||
echo "Changing power settings."
|
||||
# Change NVIDIA card power control
|
||||
echo -n auto > /sys/bus/pci/devices/0000\:01\:00.0/power/control
|
||||
sleep 1
|
||||
# change PCIe power control
|
||||
echo -n auto > /sys/bus/pci/devices/0000\:00\:01.0/power/control
|
||||
sleep 1
|
||||
|
||||
echo "Moving config files."
|
||||
# Lock system form loading nvidia module
|
||||
mv /etc/modprobe.d/disable-nvidia.conf.disable /etc/modprobe.d/disable-nvidia.conf
|
||||
mv /home/ericonr/.local/share/vulkan/icd.d/nvidiaegl_icd.json /home/ericonr/.local/share/vulkan/icd.d/nvidiaegl_icd.json.disable
|
|
@ -1,21 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "Moving config files."
|
||||
# allow to load nvidia module
|
||||
mv /etc/modprobe.d/disable-nvidia.conf /etc/modprobe.d/disable-nvidia.conf.disable
|
||||
# add ICD layer for vulkan
|
||||
mv /home/ericonr/.local/share/vulkan/icd.d/nvidiaegl_icd.json.disable /home/ericonr/.local/share/vulkan/icd.d/nvidiaegl_icd.json
|
||||
|
||||
echo "Changing power settings."
|
||||
# Remove NVIDIA card (currently in power/control = auto)
|
||||
echo -n 1 > /sys/bus/pci/devices/0000\:01\:00.0/remove
|
||||
sleep 1
|
||||
# change PCIe power control
|
||||
echo -n on > /sys/bus/pci/devices/0000\:00\:01.0/power/control
|
||||
sleep 1
|
||||
# rescan for NVIDIA card (defaults to power/control = on)
|
||||
echo -n 1 > /sys/bus/pci/rescan
|
||||
|
||||
echo "Loading modules."
|
||||
# someone said that modprobe nvidia is needed also to load nvidia, to check
|
||||
modprobe nvidia
|
|
@ -1,44 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
source ~/.local/bin/wayland-vars
|
||||
|
||||
HICOLOR="/usr/share/icons/hicolor"
|
||||
GNOME="/usr/share/icons/gnome"
|
||||
|
||||
if [ -z $1 ]
|
||||
then
|
||||
:
|
||||
else
|
||||
if [ $1 = EXIT ]
|
||||
then
|
||||
LAYER=(-l overlay)
|
||||
POSITION=(-p top)
|
||||
SIZE=(-s 60)
|
||||
EXITB=(-b "$GNOME/256x256/actions/exit.png" "exit")
|
||||
fi
|
||||
fi
|
||||
|
||||
lavalauncher \
|
||||
-M 6 \
|
||||
-S 1 \
|
||||
-c "#909090FF" \
|
||||
-C "#EEEEEEFF" \
|
||||
${LAYER[0]} ${LAYER[1]} \
|
||||
${POSITION[0]} ${POSITION[1]} \
|
||||
${SIZE[0]} ${SIZE[1]} \
|
||||
-b "$HICOLOR/256x256/apps/firefox.png" "firefox" \
|
||||
-b "$HICOLOR/512x512/apps/qutebrowser.png" "qutebrowser" \
|
||||
-b "$HICOLOR/256x256/apps/thunderbird.png" "thunderbird" \
|
||||
-b "$HICOLOR/128x128/apps/konversation.png" "konversation" \
|
||||
-b "$HICOLOR/192x192/apps/qbittorrent.png" "qbittorrent" \
|
||||
-b "$HICOLOR/512x512/apps/libreoffice-startcenter.png" "libreoffice" \
|
||||
-b "$HICOLOR/512x512/apps/spotify.png" "spotify" \
|
||||
-b "$HICOLOR/128x128/apps/elisa.png" "elisa" \
|
||||
-b "$HICOLOR/256x256/apps/digikam.png" "digikam" \
|
||||
-b "$HICOLOR/256x256/apps/darktable.png" "darktable" \
|
||||
-b "$HICOLOR/256x256/apps/steam.png" "steam" \
|
||||
-b "$GNOME/256x256/apps/gnome-terminal.png" "alacritty" \
|
||||
-b "$GNOME/256x256/apps/ksysguard.png" "ksysguard" \
|
||||
-b "$GNOME/256x256/actions/system-shutdown.png" "notify-send hello" \
|
||||
${EXITB[0]} ${EXITB[1]} ${EXITB[2]}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
optirun gwe --ctrl-display :8
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
optirun -b none nvidia-settings -c=:8
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
firejail --join=firefox firefox "$@"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
generic-launcher nmtui
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Categories=Graphics;Photography;GTK;
|
||||
Comment[en_US]=Organize and develop images from digital cameras
|
||||
Comment=Organize and develop images from digital cameras
|
||||
Comment[ca]=Organitza i revela imatges de càmeres digitals
|
||||
Comment[cs]=Správa a vyvolávání snímků z digitálních fotoaparátů
|
||||
Comment[da]=organisér og fremkald billeder fra digitale kameraer
|
||||
Comment[de]=Organisiere und entwickle Bilder von Digitalkameras
|
||||
Comment[el]=οργανώστε και εμφανίστε εικόνες απο ψηφιακές μηχανές
|
||||
Comment[es]=Revele y organice las imágenes de cámaras digitales
|
||||
Comment[fi]=Hallinnoi ja kehitä digitaalikameroilla otettuja valokuvia.
|
||||
Comment[fr]=Organiser et développer les images d'un boîtier numérique
|
||||
Comment[he]=ארגן ופתח תמונות ממצלמות דיגיטליות
|
||||
Comment[hu]=Digitális fényképező képeinek rendezése, kidolgozása
|
||||
Comment[it]=Organizza e sviluppa le immagini della tua fotocamera digitale
|
||||
Comment[ja]=デジタルカメラ画像の現像と整理
|
||||
Comment[nb]=Organiser og fremkall bilder fra digitale kamera
|
||||
Comment[nl]=organiseer en ontwikkel afbeeldingen van digitale camera's
|
||||
Comment[pl]=Organizuj i obrabiaj zdjęcia z aparatów cyfrowych
|
||||
Comment[pt_BR]=Organiza e revela imagens de câmeras digitais
|
||||
Comment[ru]=Организация и обработка цифровых фотографий
|
||||
Comment[sk]=Organizuje a vyvoláva obrázky z digitálnych fotoaprátov
|
||||
Comment[sl]=Organizira in razvija slike digitalnih kamer
|
||||
Comment[sq]=organizoni dhe zhvilloni imazhet nga fotoaparatet
|
||||
Comment[sv]=Organisera och utveckla bilder från digitalkameror
|
||||
Exec=/home/ericonr/.local/bin/darktable-launcher %U
|
||||
GenericName[en_US]=Virtual Lighttable and Darkroom
|
||||
GenericName=Virtual Lighttable and Darkroom
|
||||
GenericName[ca]=Taula de llum i Cambra fosca virtuals
|
||||
GenericName[cs]=Virtuální prosvětlovací pult a fotokomora
|
||||
GenericName[da]=Virtuelt lysbord og mørkekammer
|
||||
GenericName[de]=Virtueller Leuchttisch und Dunkelkammer
|
||||
GenericName[el]=Virtual Lighttable and Darkroom
|
||||
GenericName[es]=Mesa de Luz y Cuarto Oscuro Virtuales
|
||||
GenericName[fi]=Virtuaalinen valopöytä ja pimiö.
|
||||
GenericName[fr]=Table Lumineuse et Chambre Noire virtuelles
|
||||
GenericName[he]=שולחן אור וחדר חושך וירטואלי
|
||||
GenericName[hu]=Virtuális átvilágító és sötétkamra
|
||||
GenericName[it]=Tavolo luminoso e camera oscura virtuali
|
||||
GenericName[ja]=Virtual Lighttable and Darkroom
|
||||
GenericName[nb]=Virtuelt lysbord og mørkerom
|
||||
GenericName[nl]=virtuele bibliotheek en donkere kamer
|
||||
GenericName[pl]=Wirtualny Stół Podświetlany i Ciemnia
|
||||
GenericName[pt_BR]=Mesa de Luz e Sala Escura Virtuais
|
||||
GenericName[ru]=Виртуальный световой стол и фоторедактор
|
||||
GenericName[sk]=Virtuálny presvetľovací pult a fotokomora
|
||||
GenericName[sl]=Virtualna osvetljena podlaga in temnica
|
||||
GenericName[sq]=Fototekë dhe Dhomë e Errët Virtuale
|
||||
GenericName[sv]=Virtuellt ljusbord och mörkerrum
|
||||
Icon=darktable
|
||||
Keywords=graphics;photography;raw;
|
||||
Keywords[ca]=graphics;photography;raw;
|
||||
Keywords[cs]=grafika;fotografie;raw;
|
||||
Keywords[da]=grafik;fotografi;raw;
|
||||
Keywords[de]=Graphik;Grafik;Photographie;Fotografie;Raw;
|
||||
Keywords[el]=graphics;photography;raw;
|
||||
Keywords[es]=gráficos;fotografía;raw;
|
||||
Keywords[fi]=Grafiikka;Valokuvaus;RAW;
|
||||
Keywords[fr]=graphisme;photographie;raw;
|
||||
Keywords[he]=גרפיקה;צילום;raw;
|
||||
Keywords[hu]=grafika;fénykép;fotó;raw;
|
||||
Keywords[it]=grafica;fotografia;raw;
|
||||
Keywords[ja]=graphics;photography;raw;
|
||||
Keywords[nb]=grafikk;fotografering;raw;
|
||||
Keywords[nl]=grafische vormgeving;fotografie;raw;
|
||||
Keywords[pl]=grafika;fotografia;raw;
|
||||
Keywords[pt_BR]=gráfico;fotografia;raw;
|
||||
Keywords[ru]=graphics;photography;raw;
|
||||
Keywords[sk]=grafika;fotografovanie;fotografie;raw;surový;
|
||||
Keywords[sl]=grafika;fotografije;surove;
|
||||
Keywords[sq]=graphics;photography;raw;
|
||||
Keywords[sv]=grafik;fotografi;rå;
|
||||
MimeType=image/x-portable-pixmap;image/x-exr;image/x-dcraw;image/tiff;image/png;image/jpeg;image/jp2;
|
||||
Name[en_US]=Darktable
|
||||
Name=Darktable
|
||||
Path=
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
TryExec=/usr/bin/darktable
|
||||
Type=Application
|
||||
Version=1.0
|
||||
X-DBUS-ServiceName=
|
||||
X-DBUS-StartupType=
|
||||
X-GNOME-FullName=Darktable Photo Workflow Software
|
||||
X-KDE-SubstituteUID=false
|
||||
X-KDE-Username=
|
||||
X-Unity-IconBackgroundColor=#252525
|
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/env xdg-open
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Deezer
|
||||
GenericName=A proprietary music streaming service
|
||||
Comment=Graphical interface to Deezer audio streaming service.
|
||||
Icon=/usr/share/deezer/app.ico
|
||||
Exec=deezer
|
||||
Terminal=false
|
||||
Categories=Multimedia
|
||||
StartupNotify=false
|
||||
|
Loading…
Reference in New Issue