Sunday, July 21, 2024

grave (tilde) as left click herbstluftwm antix linux


# keypress //
bindsym grave exec xdotool click 1

getting tmux setup

clone tpm

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

this one-liner creates the directories, the tmux.conf and echos the contents into the file. Once youve run that, open tmux and press Ctrl + B + I to install tpm into tmux. you should now see the catpuccin theme be applied (no more ugly green status bar) and you can use Ctrl + B + vim motions to move between panes.

quick tmux refresher

  • Ctrl + B + % horizontal split
  • Ctrl + B + " vertical split
mkdir -p ~/.config/tmux
cat << EOF > ~/.config/tmux/tmux.conf
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on

#unbind C-b
#set -g prefix C-Space
#bind C-Space send-prefix

# Vim style pane selection
bind h select-pane -L
bind j select-pane -D 
bind k select-pane -U
bind l select-pane -R

# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on

# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Shift arrow to switch windows
bind -n S-Left  previous-window
bind -n S-Right next-window

# Shift Alt vim keys to switch windows
bind -n M-H previous-window
bind -n M-L next-window

set -g @catppuccin_flavour 'mocha'

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
set -g @plugin 'tmux-plugins/tmux-yank'

run '~/.tmux/plugins/tpm/tpm'

# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel

bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
EOF

Saturday, July 20, 2024

devilspie2

how to set window rules so
firefox browser opens and jumps to workspace 2
thunar file manager opens and jump to workspace 3

sudo apt install devilspie2
vim ~/.config/devilspie2/window_rules.lua

if (string.match(get_application_name(), "Firefox")) then
    set_window_workspace(2)
    change_workspace(2)
end

if (string.match(get_application_name(), "Thunar")) then
    set_window_workspace(3)
    change_workspace(3)
end

if (string.match(get_application_name(), "mpv")) then
    undecorate_window();
end

if (get_window_name() == "xfce4-terminal") then
    set_window_geometry(319, 228, 1024, 626);
end

controll centre > session > user desktop session > startup

#start devilspie2
devilspie2 -d &

on antix w icewm

  • Alt + 1 - 4 move to desktop 1 - 4
  • Ctrl + Alt + B browser
  • Ctrl + Alt + F file manager
  • Cmd + left arrow/right arrow move to half of screen
  • Ctrl + Alt + numpad 4/6 move to left/right side of screen
  • Ctrl + Alt + 9 fullscreen
  • Ctrl + Alt + 0 close window

terminal

  • Ctrl + Alt + T open terminal
  • Ctrl + Shift + Q close terminal
  • Ctrl + Shift + N new terminal window
  • Ctrl + Shift + T new terminal tab
  • Ctrl + Shift + W close terminal tab
  • Ctrl + pgup/pgdn next/prev terminal tab

Sunday, July 14, 2024

reborn os - remap caps to escape

vim ~/.xprofile
setxkbmap -option caps:escape

reborn os dark theme for pcmanfm

in i3 you use dmenu to run lxappearance but there is no dark theme so run

sudo pacman-S arc-dark-theme

then choose arc dark

reborn os fix wifi

weird that wifi connects fine but you need ethernet to get wifi drivers set up.

the fix:

sudo pacman -S broadcom-wl 

then reboot

“oh nvm actually there is”

it’s in the installer under backend

things i like to install

  • kolourpaint
  • kamoso
  • reaper
  • lmms
  • vim
  • git
  • kdenlive
  • xfce4-terminal /kitty
  • rhubarb
  • discord

reborn os multi desktop

you hold ctrl you can highlight multiple during the installer!!!

  • first order of biz:
xbacklight -set 5
“the brightness is brutal by default”

this time i’m trying

  • regolith
  • trinity
  • open box
  • lxde

on startup in i3:

 vim ~/.config/i3/config
exec --no-startup-id xbacklight -set 5

Wednesday, July 10, 2024

changing brightness on 2008 imac on reborn os

xorg-xbacklight or brightnessctl don't work for this imac. on the laptop that was my goto fix before.

on the 2008 imac you gotta use sysfs interface

  • check the available interfaces
ls ~/sys/class/backlight/

in my case it was radeon_bl0

sudo vim ~/sys/class/backlight/brightness

it says 255 jeez. im going to lower it to 70

chmod and chown the brightness file so you don't need sudo to edit the file then:

# Increase brightness
bindsym XF86MonBrightnessUp exec --no-startup-id sh -c 'echo $(($(cat /sys/class/backlight/radeon_bl0/brightness) + 10)) > /sys/class/backlight/radeon_bl0/brightness'

# Decrease brightness
bindsym XF86MonBrightnessDown exec --no-startup-id sh -c 'echo $(($(cat /sys/class/backlight/radeon_bl0/brightness) - 10)) > /sys/class/backlight/radeon_bl0/brightness'

Tuesday, July 9, 2024

spotlight indexing using 98%cpu

disable spotlight indexing

sudo mdutil -i off /

delete existing index

sudo mdutil -E /

re-enable indexing

sudo mdutil -i on /

temporary disable spotlight

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

re-enable spotlight

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

photoanalysisd

whats photoanalysisd ? It scans your photos. creepy and resource intensive, no thanks.

prevent photoanalysisd from running

launchctl unload -w /System/Library/LaunchAgents/com.apple.photoanalysisd.plist

to re-enable it

launchctl load -w /System/Library/LaunchAgents/com.apple.photoanalysisd.plist

clean mac install

my laptops been running hot
could be that sketchy non https puppy linux iso that did nothing when run. ready to burn my computer and start anew.

before I do i want to take stock of some of my favorite ios apps

  • mweb
  • tiles
  • alfred
  • amphetamine
  • etcher
  • brackets
  • chrome
  • calibre
  • cliptools
  • dj player pro
  • emacs
  • fl studio
  • github desktop
  • handbrake
  • hosting au
  • keycaster
  • jump desktop connect
  • karabiner elements
  • koala sampler
  • libre office
  • luxonix purity
  • chipsynth md /portafm
  • milkytracker
  • minimal midi player/ midiplayerx
  • mixxx
  • paintbrush/pinta
  • polyphone
  • quiqr cms for hugo
  • reaper
  • renoise
  • reason
  • schismtracker
  • sforzando
  • shotcut
  • sooperlooper
  • textastic
  • virtualdj
  • unetbootin
  • virtualbox
  • vscode
  • theunarchiver
  • vital
  • xampp

Monday, July 8, 2024

Linux live usbs

was thinking about labeling them with green tape and dental floss but thought how gross it would be to have the adhesive rub off.
was thinking packing tape and nfc tags. looking for envelopes only had one / too bulky. would probably get thrown out by mistake.

keeping it simple
if i flash il try ventoy next time

Saturday, July 6, 2024

next linux distro?

 looking to try a new one in virtual box

- regolith

- mx linux

- lubuntu

- peppermint 

- antix

- ubuntu mate

- arch with i3

- manjaro community with i3

- void

- artix

Vifm unzip a file

how to unzip a file

:!unzip file

linux mint trackpad on mac is weird

 a possible fix linux mint forum discussion

for now i3 and tilde keybind to click is ok

havent figured out how to click and drag though :/

vifm how to toggle splits

- use the :only command for 1 pane

- :vsplit for vertical 

- :split for horizontal

rofi themes

I installed a dracula theme from github it wasn't necessary.

in the terminal you just need to type rofi-theme-selector

- enter to preview

- alt a to apply

I like "android notification by rasi"

Friday, July 5, 2024

how to toggle hidden files in vifm

ZA toggles on off

how to simulate mouse click using keyboard in i3

to left click you lightly double tap quickly with one finger, Its weird one day i woke up and i thought my trackpad was broken but I think i just forgot how to use it. its weird. I think I was using somebody elses mbp for a week that had a really clicky trackpad. when I came back I thought It was broken because it wasn't clicking. anyway here's the work around.

sudo apt install xdotool

# keypress //
bindsym shift+grave exec xdotool click 1

how to cd around using vifm

you add this to your .bashrc and then source .bashrc


vicd()
{
    local dst="$(command vifm --choose-dir - "$@")"
    if [ -z "$dst" ]; then
        echo 'Directory picking cancelled/failed'
        return 1
    fi
    cd "$dst"
}

THE TRICK is you need to use vicd to open vifm!! NOT VIFM. i was banging my head against a wall wondering why this wasn't working for me till i realized this

vicd is the new vifm