diff options
| author | Craig Jennings <c@cjennings.net> | 2024-05-27 21:13:17 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-05-27 21:13:17 -0400 |
| commit | b8d544dd5ff7b2d769c23723c24a2b33ad4e550f (patch) | |
| tree | e0996a6ada4ca5e2bd5986970de7505cff902c0d | |
| parent | 0fc45ebe243d66236018417ba1890289a3eee7ed (diff) | |
updating tasks, better comments, minor fix, wip: touchpad script
fix:
- google-chrome-stable package is now google-chrome
script:
- looking at writing a script that identifies when the Logitech device
is attached/detatched so I could turn the touchpad off/on
| -rw-r--r-- | TODO.org | 55 | ||||
| -rwxr-xr-x | archsetup | 13 | ||||
| -rw-r--r-- | scripts/touchpad.sh | 35 |
3 files changed, 76 insertions, 27 deletions
@@ -2,6 +2,41 @@ === ArchSetup Tasks === * ArchSetup v0.5 +** TODO [#C] task spooler doesn't display flush +:LOGBOOK: +- State "TODO" from [2024-05-06 Mon 21:38] +:END: + +** TODO [#B] At does not install +:LOGBOOK: +- State "TODO" from [2024-05-06 Mon 21:38] +:END: + +** TODO [#B] Finish udev script for mouse +:LOGBOOK: +- State "TODO" from [2024-05-05 Sun 14:15] +:END: + +** TODO Ensure Bitwarden is a Floating Window in DWM + +** TODO [#B] Push Archsetup to Website on Archsetup Commit +:LOGBOOK: +- State "TODO" from [2024-04-18 Thu 16:21] +:END: + +** TODO [#C] Add Docker Image for Telega Emacs Dependency +*** TODO Create and Test Script to Add Docker Image for Telega +perhaps it's as simple as adding: +#+begin_src shell +docker pull zevlg/telega-server:latest +#+end_src +...after installing docker? +** TODO [#C] v0.5 Scenario Test & Bugfixes +*** Virtualbox Installation Testing +*** Reinstall Velox Using Latest +** VERIFY [#C] Quiet Login of Hostname No Longer Working +*** 2024-04-13 Sat @ 14:33:42 -0500 Test if alternate getty is the reason +Ran same sed command to change all agetty commands ** DONE [#C] Screen Recording Solution CLOSED: [2024-04-06 Sat 17:22] *** 2024-04-06 Sat @ 17:22:37 -0500 Added recordnow script using ffmpeg @@ -38,26 +73,6 @@ for this particular dependency: (:map erc-mode-map ("C-y" . erc-yank))) -** VERIFY [#C] Quiet Login of Hostname No Longer Working -*** 2024-04-13 Sat @ 14:33:42 -0500 Test if alternate getty is the reason -Ran same sed command to change all agetty commands -** TODO Ensure Bitwarden is a Floating Window in DWM - -** TODO [#B] Push Archsetup to Website on Archsetup Commit -:LOGBOOK: -- State "TODO" from [2024-04-18 Thu 16:21] -:END: - -** TODO [#C] Add Docker Image for Telega Emacs Dependency -*** TODO Create and Test Script to Add Docker Image for Telega -perhaps it's as simple as adding: -#+begin_src shell -docker pull zevlg/telega-server:latest -#+end_src -...after installing docker? -** TODO [#C] v0.5 Scenario Test & Bugfixes -*** Virtualbox Installation Testing -*** Reinstall Velox Using Latest * ArchSetup v0.6 ** TODO [#B] Sleep/Suspend Working on Framework Laptop *** Note: kernel parameter for sleep/suspend issue in Framework Laptop @@ -163,12 +163,12 @@ prerequisites() { # curl - to transfer source code # git - tools required to work with git source respositories # go - required to build yay, the aur installer - # ntp - must communicate with other servers in ordered manner + # ntp - must communicate with other servers in synchronized manner # python - required for python pip installs # stow - places the dotfiles (see: https://bit.ly/41GmysO) # tar - extract unix archives # vi - should things go wrong, we'll need an editor - # zsh - we'll need a shell interpreter for yay; this is mine + # zsh - we need a shell interpreter for yay; this one's mine display "title" "Prerequisites" @@ -318,7 +318,6 @@ user_customizations() { mkdir -p -m 751 /media/remote2 chown -R $username: /media } >> "$logfile" 2>&1 - } ### AUR Installer @@ -360,7 +359,7 @@ essential_services() { # Firewall - # deny by default, then allow the following: + # deny all connections by default, then allow the following: # http/s : 80/tcp, 443/tcp # tor : 9040,9050,9051,9053,9119/tcp # email : IMAP, IMAPS @@ -612,7 +611,7 @@ desktop_environment() { pacman_install firefox ## TESTING IF NEEDED aur_install librewolf-bin aur_install tor-browser-bin - aur_install google-chrome-stable + aur_install google-chrome # Install Printing @@ -638,7 +637,7 @@ developer_workstation () { # C pacman_install clang # C/C++ compiler pacman_install cmake # make system - pacman_install gdb # the gnu debugger + pacman_install gdb # the GNU debugger pacman_install splint # C programming static analysis pacman_install valgrind # memory management utility @@ -649,7 +648,7 @@ developer_workstation () { # Lisps pacman_install guile # GNU Scheme pacman_install sbcl # Steel Bank Common Lisp - pacman_install racket # also better SICP mit-scheme emulation + pacman_install racket # Racket + SICP mit-scheme emulation # Rust pacman_install rust # Rust programming language diff --git a/scripts/touchpad.sh b/scripts/touchpad.sh new file mode 100644 index 0000000..9726abd --- /dev/null +++ b/scripts/touchpad.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +# Craig Jennings <c@cjennings.net> + +# https://wiki.archlinux.org/title/udev#Waking_from_suspend_with_USB_device + +# lsusb | grep Logitech +# Bus 007 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver + +# grep c52b /sys/bus/usb/devices/*/idProduct +# /sys/bus/usb/devices/1-1.1.1.4/idProduct:c52b + +# udevadm monitor +# (plug / unplug device) +# pick highest path, as +# sudo udevadm info --attribute-walk --path=/devices/pci... +# will show all attributes for the parents + +# https://www.reactivated.net/writing_udev_rules.html#basic +# udevinfo -a -p /sys/bus/usb/devices/1-1.1.1.4/idProduct:c52b + +echo "THIS SCRIPT ISN'T MEANT TO BE RUN YET." +exit 1 + + +echo -e 'SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB Receiver", ACTION=="add", RUN+="/usr/bin/xinput set-prop \"PIXA3854:00 093A:0274 Touchpad\" \"Device Enabled\" 0"' > /etc/udev/rules.d/01-touchpad.rules + +echo -e 'SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB Receiver", ACTION=="remove", RUN+="/usr/bin/xinput set-prop \"PIXA3854:00 093A:0274 Touchpad\" \"Device Enabled\" 1"' >> /etc/udev/rules.d/01-touchpad.rules + + +# ---------------------------------- Testing ---------------------------------- + +echo -e 'SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB Receiver", ACTION=="add", RUN+="/usr/bin/notify-send "Logitech Receiver Added to USB."' > /etc/udev/rules.d/01-touchpad.rules + + +echo -e 'SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB Receiver", ACTION=="remove", RUN+="/usr/bin/notify-send "Logitech Receiver Removed From USB."' >> /etc/udev/rules.d/01-touchpad.rules |
