From 93e4b499e4d1603d099fdcea82369e54dfe861aa Mon Sep 17 00:00:00 2001 From: Dym Sohin Date: Fri, 12 Jan 2024 15:45:29 +0100 Subject: [PATCH] upd --- @reboot.sh | 2 +- _sys/nvidia-vulkan.sh | 34 ++++++++++++++++++++++++++-------- doublecmd/session.ini | 8 +++++++- i3/config | 4 ++-- imwheel/.imwheelrc | 8 ++++---- 5 files changed, 40 insertions(+), 16 deletions(-) diff --git a/@reboot.sh b/@reboot.sh index 0a268ea..4373782 100755 --- a/@reboot.sh +++ b/@reboot.sh @@ -3,7 +3,7 @@ # ~/.xsession 2>&1 & imwheel 2>&1 & -nfancurve 2>&1 & +# nfancurve 2>&1 & copyq 2>&1 & sleep 5 && \ diff --git a/_sys/nvidia-vulkan.sh b/_sys/nvidia-vulkan.sh index a7892ce..6bccf07 100755 --- a/_sys/nvidia-vulkan.sh +++ b/_sys/nvidia-vulkan.sh @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/bin/sh # OpenGL sudo apt-get install -y \ @@ -6,14 +6,8 @@ sudo apt-get install -y \ libegl1-mesa libgl1-mesa-glx \ libxcb-xtest0 python3-ibus-1.0 -# nvidia vulkan support -sudo add-apt-repository -y \ - ppa:graphics-drivers/ppa - -sudo apt upgrade -y sudo apt install -y \ - vulkan-tools \ - nvidia-driver-390 + vulkan-tools nvidia-xconfig sudo apt-mark hold 'nvidia-*' @@ -63,3 +57,27 @@ cd ./ffmpeg make -j 8 sudo make install + + +sudo -e /etc/apt/sources.list "deb http://deb.debian.org/debian/ sid main contrib non-free +deb-src http://deb.debian.org/debian/ sid main contrib non-free +" +# Create a preferences file to only install nvidia-legacy drivers and keep your distribution stable +sudo -e /etc/apt/preferences " +Package: * +Pin: release a=stable +Pin-Priority: 700 + +Package: * +Pin: release a=testing +Pin-Priority: 650 + +Package: * +Pin: release a=unstable,sid +Pin-Priority: 600 + +" + +sudo apt update -y +sudo apt install -y linux-headers-amd64 +sudo apt install -y -t sid nvidia-legacy-390-driver diff --git a/doublecmd/session.ini b/doublecmd/session.ini index 3889eff..cb83e7a 100644 --- a/doublecmd/session.ini +++ b/doublecmd/session.ini @@ -121,7 +121,7 @@ lsvwFile_Columns.Item2_Width=1540 [TfrmFindDlg(3840x2160)] TfrmFindDlg_Height=2160 -TfrmFindDlg_Left=3840 +TfrmFindDlg_Left=1920 TfrmFindDlg_Top=0 TfrmFindDlg_Width=1920 TfrmFindDlg_WindowState=wsNormal @@ -248,3 +248,9 @@ Screen_PixelsPerInch=96 TfrmFileProperties_Height=471 TfrmFileProperties_Width=458 Screen_PixelsPerInch=96 + +[TfrmMain(800x600)] +nbConsole_Height=55 +seLogWindow_Height=52 +TreePanel_Width=120 +Screen_PixelsPerInch=150 diff --git a/i3/config b/i3/config index adfb69a..fe04be8 100644 --- a/i3/config +++ b/i3/config @@ -92,7 +92,7 @@ bindsym XF86AudioPrev exec playerctl previous # workspaces (numbers row) set $w__1 "100: web" -bindsym $Meta+1 workspace $w__1; exec [ $(ps -A | grep vivaldi | wc -l) = 0 ] && $(which vivaldi) -s +bindsym $Meta+1 workspace $w__1; exec [ $(wmctrl -l | grep 'Mozilla Firefox' | wc -l) = 0 ] && $(which firefox) set $w__2 "200: files" bindsym $Meta+2 workspace $w__2; exec [ $(ps -A | grep doublecmd | wc -l) = 0 ] && $(which doublecmd) @@ -153,7 +153,7 @@ assign [class="sublime_merge"] $w__KP_5 for_window [class="sublime_merge$"] move container to workspace $w__KP_5 set $w__KP_6 "KP_6: webb" -bindsym $Meta+KP_6 workspace $w__KP_6; exec [ $(wmctrl -l | grep 'Mozilla Firefox' | wc -l) = 0 ] && $(which firefox) +bindsym $Meta+KP_6 workspace $w__KP_6; exec [ $(ps -A | grep vivaldi | wc -l) = 0 ] && $(which vivaldi) -s set $w__KP_7 "KP_7: design" bindsym $Meta+KP_7 workspace $w__KP_7; exec [ $(xdotool search -class 'penpot' | wc -l) = 0 ] && penpot diff --git a/imwheel/.imwheelrc b/imwheel/.imwheelrc index 31dfdd5..17a601c 100644 --- a/imwheel/.imwheelrc +++ b/imwheel/.imwheelrc @@ -1,7 +1,7 @@ ".*" - None , Up , Button4 , 3 - None , Down , Button5 , 3 - Shift_L , Up , Shift_L | Button4 , 3 - Shift_L , Down , Shift_L | Button5 , 3 + None , Up , Button4 , 4 + None , Down , Button5 , 4 + Shift_L , Up , Shift_L | Button4 , 4 + Shift_L , Down , Shift_L | Button5 , 4 Control_L , Up , Control_L | Button4 Control_L , Down , Control_L | Button5