From ff24a8794e69f9de476590c42ba58b000c32d8cd Mon Sep 17 00:00:00 2001 From: "J. Elfring" Date: Mon, 25 Dec 2023 15:48:01 +0100 Subject: [PATCH] multiple fixes --- configDots/alacritty/alacritty.yml | 6 ++++++ configDots/doom/init.el | 2 +- simpleDots/bin/server.py | 22 ++++++++++++++++++++++ simpleDots/bin/startAltBrowserPrivat.sh | 3 +++ simpleDots/bin/startBrowser.sh | 4 ++++ simpleDots/i3/config | 1 + simpleDots/vim/vimrc | 6 +++--- simpleDots/xprofile | 7 +++++-- tweaks.org | 15 ++++++++++----- 9 files changed, 55 insertions(+), 11 deletions(-) create mode 100755 simpleDots/bin/server.py diff --git a/configDots/alacritty/alacritty.yml b/configDots/alacritty/alacritty.yml index 9a0d6f4..a2ee222 100644 --- a/configDots/alacritty/alacritty.yml +++ b/configDots/alacritty/alacritty.yml @@ -10,5 +10,11 @@ font: family: EnvyCodeR style: Italic +cursor: + style: + shape: Beam + vi_mode_style: + shape: Underline + import: - ~/.config/alacritty/active_colourscheme.yml diff --git a/configDots/doom/init.el b/configDots/doom/init.el index 3a6ebb3..c8d9df4 100644 --- a/configDots/doom/init.el +++ b/configDots/doom/init.el @@ -169,7 +169,7 @@ ;;rest ; Emacs as a REST client ;;rst ; ReST in peace ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - ;;(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;(scheme +guile) ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor diff --git a/simpleDots/bin/server.py b/simpleDots/bin/server.py new file mode 100755 index 0000000..1e22a3c --- /dev/null +++ b/simpleDots/bin/server.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 + +import http.server as SimpleHTTPServer +import socketserver as SocketServer +import logging + +PORT = 8000 + +class GetHandler( + SimpleHTTPServer.SimpleHTTPRequestHandler + ): + + def do_GET(self): + logging.error(self.headers) + SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) + + +Handler = GetHandler +httpd = SocketServer.TCPServer(("", PORT), Handler) + +httpd.serve_forever() + diff --git a/simpleDots/bin/startAltBrowserPrivat.sh b/simpleDots/bin/startAltBrowserPrivat.sh index b8df0fb..74f2776 100755 --- a/simpleDots/bin/startAltBrowserPrivat.sh +++ b/simpleDots/bin/startAltBrowserPrivat.sh @@ -7,6 +7,9 @@ # ############################################################################### +export MOZ_USE_XINPUT2=1 + + test -x ~/.local/bin/startAltBrowserPrivat.sh && (~/.local/bin/startAltBrowserPrivat.sh $@) && exit 0 test -x /usr/bin/firefox && (/usr/bin/firefox --private-window $@ &) && exit 0 test -x /usr/bin/chromium && (/usr/bin/chromium --force-dark-mode --incognito $@ &) && exit 0 diff --git a/simpleDots/bin/startBrowser.sh b/simpleDots/bin/startBrowser.sh index 5356a36..075192b 100755 --- a/simpleDots/bin/startBrowser.sh +++ b/simpleDots/bin/startBrowser.sh @@ -7,6 +7,10 @@ # ############################################################################### + +export MOZ_USE_XINPUT2=1 + + test -x ~/.local/bin/startBrowser.sh && (~/.local/bin/startBrowser.sh $@) && exit 0 test -x /usr/bin/firefox && (/usr/bin/firefox $@ &) && exit 0 test -x /usr/bin/chromium && (/usr/bin/chromium --force-dark-mode $@ &) && exit 0 diff --git a/simpleDots/i3/config b/simpleDots/i3/config index aff8891..17b2bfd 100644 --- a/simpleDots/i3/config +++ b/simpleDots/i3/config @@ -270,6 +270,7 @@ exec_always --no-startup-id /usr/bin/autotiling ## Window Config for_window [class="smplayer"] floating enable +for_window [instance="x3270"] floating enable for_window [class="Argon"] floating enable for_window [class="Vlc"] floating enable for_window [class="Ghidra"] floating enable diff --git a/simpleDots/vim/vimrc b/simpleDots/vim/vimrc index bbaa050..fee1e6d 100755 --- a/simpleDots/vim/vimrc +++ b/simpleDots/vim/vimrc @@ -92,9 +92,9 @@ cmap w!! w !sudo tee > /dev/null % command! -nargs=* -complete=help Help vertical belowright help " Different Cursorshapes for the modes -let &t_SI = "\[6 q" -let &t_SR = "\[4 q" -let &t_EI = "\[2 q" +"let &t_SI = "\[6 q" +"let &t_SR = "\[4 q" +"let &t_EI = "\[2 q" " ==================== Remap Keys ==================== " Remaps % to tab so navigate to matching brackets diff --git a/simpleDots/xprofile b/simpleDots/xprofile index 2aeb4ee..3db481f 100644 --- a/simpleDots/xprofile +++ b/simpleDots/xprofile @@ -1,6 +1,6 @@ ## Start Keyring-Daemon -eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) -export SSH_AUTH_SOCK +#eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) +#export SSH_AUTH_SOCK ## Import exports source ~/.exports @@ -15,3 +15,6 @@ test -f ~/.local/Xresources && xrdb -merge ~/.local/Xresources test -x ~/.screenlayout/.default && ~/.screenlayout/.default test -x ~/.fehbg && ~/.fehbg +## Add fonts +xset fp+ /usr/share/fonts/3270 + diff --git a/tweaks.org b/tweaks.org index 797533c..1840e3e 100644 --- a/tweaks.org +++ b/tweaks.org @@ -2,11 +2,16 @@ #+BEGIN_EXAMPLE $fierfox-profile/user.js -user_pref("privacy.donottrackheader.enabled", "true" ); // Send Do-not-track -user_pref("findbar.highlightAll", "true" ); // Highlight all partial results in search -user_pref("browser.sessionstore.max_resumed_crashes", "-1" ); // Do not show "Upps, we could not recover" -user_pref("browser.fixup.fallback-to-https", "false"); // Do not try https after http failed -user_pref("extensions.pocket.enabled", "false"); // Disable Pocket +user_pref("privacy.donottrackheader.enabled", true ); // Send Do-not-track +user_pref("findbar.highlightAll", true ); // Highlight all partial results in search +user_pref("browser.sessionstore.max_resumed_crashes", -1 ); // Do not show "Upps, we could not recover" +user_pref("browser.fixup.fallback-to-https", false ); // Do not try https after http failed +user_pref("extensions.pocket.enabled", false ); // Disable Pocket +user_pref("browser.vpn_promo.enabled", false ); // Hide VPN adds +user_pref("cookiebanners.service.mode", 2 ); +user_pref("cookiebanners.service.mode.privateBrowsing", 2 ); +user_pref("cookiebanners.ui.desktop.enabled", true ); +user_pref("signon.firefoxRelay.feature", "0" ) ; #+END_EXAMPLE