Install needed packages

./install-apps.sh

Download ffmpeg compiled for yt-dlp

./download-ffmpeg-for-yt-dlp.sh

Zsh setup [Thu, 23.06.2022 00:27]


Docker setup [Thu, 23.06.2022 00:26]

  • configure to run docker commands without sudo
  • change the location for docker images
  • configure credential store for docker
    • use config below in $HOME/.docker/config.json
    {
      "credsStore": "pass"
    }
    • generate gpg key if needed via gpg --full-generate-key (see this)
    • run pass init <gpg-key> to initialize the store, see this for details
    • run docker login and use access token from docker hub as password

Move all configs to their locations

IMPORTANT: before running stow -v -R -t ~ */ make sure that you're in ~/dotfiles/deathmaz folder

## symlink all folders (trailing slash */) in dotfiles dir to home dir
cd path-to-dotfiles/deathmaz
stow -v -t ~ */

## if new folder is added then:
# redo link (-R)
cd path-to-dotfiles/deathmaz
stow -v -R -t ~ */
stow -v -R -t ~ tmux

## if folder was deleted then:
# delete (-D flag then -R to relink)
cd path-to-dotfiles/deathmaz
stow -v -D -t ~ */
stow -v -R -t ~ */

Config example for xmouseless

/* the rate at which the mouse moves in Hz
 * does not change its speed */
static const unsigned int move_rate = 50;

/* the default speed of the mouse pointer
 * in pixels per second */
static const unsigned int default_speed = 500;

/* changes the speed of the mouse pointer */
static SpeedBinding speed_bindings[] = {
    /* key             speed */
    { XK_Super_L,      3000 },
    { XK_Shift_L,        2000 },
    { XK_Alt_L,            100  },
    { XK_Control_L,    10   },
};

/* moves the mouse pointer
 * you can also add any other direction (e.g. diagonals) */
static MoveBinding move_bindings[] = {
    /* key         x      y */
    { XK_j,         0,    1 },
    { XK_l,         1,     0 },
    { XK_h,        -1,     0 },
    { XK_k,         0,     -1 },
    // { XK_y,         -1,     -1 },
    // { XK_n,         -1,     1 },
};

/* 1: left
 * 2: middle
 * 3: right */
static ClickBinding click_bindings[] = {
    /* key         button */
    { XK_u,        1 },
    { XK_f,        1 },
    { XK_i,        2 },
    { XK_o,        3 },
};

/* scrolls up, down, left and right
 * a higher value scrolls faster */
static ScrollBinding scroll_bindings[] = {
    /* key        x      y */
    { XK_n,        0 ,    25 },
    { XK_p,        0 ,   -25 },
    { XK_plus,     0 ,    80 },
    { XK_minus,    0 ,   -80 },
    // { XK_h,        25,    0  },
    { XK_g,       -25,    0  },
};

/* executes shell commands */
static ShellBinding shell_bindings[] = {
    /* key         command */
    { XK_s,        "$HOME/dotfiles/deathmaz/executable/scripts/bin/focus-slack.sh" },
    { XK_m,        "$HOME/dotfiles/deathmaz/executable/scripts/bin/focus-thunderbird.sh" },
    { XK_v,        "$HOME/dotfiles/deathmaz/executable/scripts/bin/focus-mpv.sh" },
    { XK_b,        "$HOME/dotfiles/deathmaz/executable/scripts/bin/focus-brave.sh" },
    { XK_t,        "$HOME/dotfiles/deathmaz/executable/scripts/bin/focus-telegram.sh" },
    { XK_0,        "xdotool mousemove 0 0" },
};

/* exits on key release which allows click and exit with one key */
static KeySym exit_keys[] = {
    XK_Escape, XK_q
};

Clear yay cache [Mon, 27.06.2022 22:33]

yay -Sc

MacOS

# set global settings for macos
./macos.sh
# restart computer