dotfiles2/dot_config/i3/executable_swap_mod.sh

10 lines
192 B
Bash

#!/usr/bin/env sh
CONF="${HOME}/.config/i3/config"
if grep -q '$mod Mod4' "${CONF}"; then
sed -i 's/$mod Mod4/$mod Mod1/' "${CONF}"
else
sed -i 's/$mod Mod1/$mod Mod4/' "${CONF}"
fi