pactl set-sink-port alsa_output.pci-0000_09_00.4.analog-stereo analog-output-headphonespactl set-sink-port alsa_output.pci-0000_09_00.4.analog-stereo analog-output-lineout| # /etc/X11/xorg.conf.d/30-trackball.conf | |
| Section "InputClass" | |
| Identifier "ELECOM TrackBall Mouse DEFT Pro TrackBall" | |
| MatchProduct "ELECOM TrackBall Mouse DEFT Pro TrackBall" | |
| Driver "libinput" | |
| Option "ScrollMethod" "button" | |
| Option "ScrollButton" "11" | |
| Option "NaturalScrolling" "false" | |
| Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 1 3 2" | |
| EndSection |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log/slog" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "syscall" |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "github.com/confluentinc/confluent-kafka-go/kafka" | |
| ) |
| #!/bin/bash | |
| # Check if exactly one argument is provided | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 {up|down}" | |
| exit 1 | |
| fi | |
| # Get the argument | |
| ACTION=$1 |
| #!/bin/bash | |
| year=$(date +%Y) | |
| month=$(date +%m) | |
| day=$(date +%d) | |
| template="$year-$month-$day\n\nTODO:" | |
| dir=$HOME/notes | |
| folder_path=$dir/$year/$month |
| localectl set-x11-keymap us pc105 intl |
pactl set-sink-port alsa_output.pci-0000_09_00.4.analog-stereo analog-output-headphonespactl set-sink-port alsa_output.pci-0000_09_00.4.analog-stereo analog-output-lineout| #!/bin/elixir | |
| System.argv() | |
| |> case do | |
| ["up"] -> | |
| System.cmd("nmcli", ["connection", "up", "work"]) | |
| |> IO.inspect() | |
| ["down"] -> | |
| System.cmd("nmcli", ["connection", "down", "work"]) |
| #!/bin/bash | |
| # pacman -S dnsutils | |
| dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | |
| dig +short txt ch whoami.cloudflare @1.0.0.1 |